functional dr house joker, locale changes, change mod prefix to 'serena'

This commit is contained in:
Sunskimmer82 2025-06-20 13:55:43 -05:00
parent 16e3a586b6
commit 59fa2844c4
4 changed files with 27 additions and 14 deletions

View File

@ -24,7 +24,7 @@ SMODS.Joker {
if card.ability.extra.remaining > 0 then if card.ability.extra.remaining > 0 then
G.GAME.current_round.hands_left = G.GAME.round_resets.hands G.GAME.current_round.hands_left = G.GAME.round_resets.hands
G.GAME.current_round.discards_left = G.GAME.round_resets.discards G.GAME.current_round.discards_left = G.GAME.round_resets.discards
play_sound('serenasbalatro_soul') play_sound('serena_soul')
card.ability.extra.remaining = card.ability.extra.remaining - 1 card.ability.extra.remaining = card.ability.extra.remaining - 1
end end
end end
@ -84,7 +84,7 @@ SMODS.Joker {
end end
return { return {
message = localize("k_nums_increased"), message = localize("k_serena_nums_increased"),
colour = G.C.MONEY colour = G.C.MONEY
} }
end end
@ -137,20 +137,27 @@ SMODS.Joker {
cost = 8, cost = 8,
calculate = function(self, card, context) calculate = function(self, card, context)
--stage 1: remove debuff on played hand --stage 1: remove debuff on played hand
if context.before and context.cardarea == G.play then local check = false
if context.before then
for i, played_card in ipairs(G.play.cards) do for i, played_card in ipairs(G.play.cards) do
print("index "..i.." has card "..played_card.ability.name) if played_card.debuff then
if played_card.debuffed then G.play.cards[i].debuff = false
G.play.cards[i].debuffed = false
card.ability.extra.x_mult = card.ability.extra.x_mult + card.ability.extra.increase card.ability.extra.x_mult = card.ability.extra.x_mult + card.ability.extra.increase
check = true
end end
end end
end end
if check then
return {
message = localize('k_serena_debuff_removed')
}
end
--stage 2: do the xmult thing 🤤🤤🤤🤤🤤 --stage 2: do the xmult thing 🤤🤤🤤🤤🤤
if context.joker_main then if context.joker_main then
return { return {
xmult = card.ability.extra.xmult xmult = card.ability.extra.x_mult
} }
end end

View File

@ -3,7 +3,7 @@ return {
Back = {}, --decks Back = {}, --decks
Blind = {}, --blinds Blind = {}, --blinds
Joker = { Joker = {
j_serenasbalatro_determination = { j_serena_determination = {
name = "{C:red}DETERMINATION{}", name = "{C:red}DETERMINATION{}",
text = { text = {
"{C:inactive}The hardened {S:1.1,C:red,E:2}SOUL{} in your chest.{}", "{C:inactive}The hardened {S:1.1,C:red,E:2}SOUL{} in your chest.{}",
@ -13,20 +13,20 @@ return {
"after a boss blind is defeated." "after a boss blind is defeated."
}, },
}, },
j_serenasbalatro_inflation = { j_serena_inflation = {
name = "Inflation Joker", name = "Inflation Joker",
text = { text = {
"Increases {C:green}every value{} on each", "Increases {C:green}every value{} on each",
"held joker by {C:money}#1#{} at the end of each round.", "held joker by {C:money}#1#{} at the end of each round.",
}, },
}, },
j_serenasbalatro_mimic = { j_serena_mimic = {
name = "Mimic", name = "Mimic",
text = { text = {
}, },
}, },
j_serenasbalatro_dr_house = { j_serena_dr_house = {
name = "Dr. House", name = "Dr. House",
text = { text = {
"This joker gains {X:mult,C:white}x#2#{} mult when a debuffed card is played,", "This joker gains {X:mult,C:white}x#2#{} mult when a debuffed card is played,",
@ -35,5 +35,11 @@ return {
} }
} }
}, },
misc = {
dictionary = {
k_serena_nums_increased = "Values UP!",
k_serena_debuff_removed = "Cured!",
}
}
} }
} }

View File

@ -1,7 +1,7 @@
{ {
"id": "serenasbalatro", "id": "serenasbalatro",
"name": "Serena's Balatro Mod", "name": "Serena's Balatro Mod",
"prefix": "serenasbalatro", "prefix": "serena",
"author": [ "author": [
"Serena (Sunskimmer82)" "Serena (Sunskimmer82)"
], ],

View File

@ -21,6 +21,6 @@ vanilla_food = {
} }
modded_food = { modded_food = {
j_vanilla = true, j_serena_vanilla = true,
j_500_cigarettes = true, j_serena_500_cigarettes = true,
} }