Skip to content

Commit a4ed128

Browse files
committed
Stencil
1 parent 8e082a8 commit a4ed128

3 files changed

Lines changed: 33 additions & 5 deletions

File tree

.vscode/settings.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
2-
"Lua.diagnostics.globals": [
3-
"G"
2+
"Lua.workspace.library": [
3+
// Base
4+
"../smods",
5+
"../lovely/dump",
6+
// Compat
7+
"../Giga-Balatro_Mod",
8+
"../JokerDisplay",
9+
],
10+
"Lua.diagnostics.disable": [
11+
"lowercase-global"
412
]
513
}

localization/en-us.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,15 @@ return {
731731
"and {C:attention}halves{} all its values"
732732
}
733733
},
734+
j_fg_stencil = {
735+
name = 'Joker Stencil',
736+
text = {
737+
"{C:gold}+$#1#{} for each empty",
738+
"{C:attention}Joker{} slot",
739+
"{s:0.8}Joker Stencil? included{}",
740+
"{C:inactive}(Currently {C:gold}+$#2#{C:inactive})"
741+
}
742+
},
734743
j_fg_credit_card = {
735744
name = 'Credit Card?',
736745
text = {

src/jokers.lua

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ SMODS.Joker{
16501650
return ret
16511651
end
16521652
}
1653-
--[[ Stencil
1653+
-- Stencil
16541654
SMODS.Joker{
16551655
key = 'stencil',
16561656
atlas = 'Joker',
@@ -1660,8 +1660,19 @@ SMODS.Joker{
16601660
is_alternate = true,
16611661
alternate_key = 'j_stencil'
16621662
},
1663-
rarity = ''
1664-
}]]
1663+
rarity = 'fg_uncommon_alt',
1664+
cost = 5,
1665+
config = {extra = 4},
1666+
loc_vars = function (self, info_queue, card)
1667+
return {vars = {
1668+
card.ability.extra,
1669+
G.jokers and card.ability.extra * (G.jokers.config.card_limit - #G.jokers.cards + 1) or 0
1670+
}}
1671+
end,
1672+
calc_dollar_bonus = function (self, card, context)
1673+
return card.ability.extra * (G.jokers.config.card_limit - #G.jokers.cards + 1)
1674+
end
1675+
}
16651676
-- Four fingers
16661677
-- Mime
16671678
-- Credit card

0 commit comments

Comments
 (0)