Add alias

This commit is contained in:
Emik 2025-03-26 19:56:25 +01:00
parent 8f5d6b830e
commit 4f411eadd2
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D

View file

@ -104,12 +104,12 @@ SMODS.Joker {
soul_pos = {x = 1, y = 0}, soul_pos = {x = 1, y = 0},
cost = Cryptid and 20 or 8, cost = Cryptid and 20 or 8,
rarity = Cryptid and 4 or 3, rarity = Cryptid and 4 or 3,
loc_vars = function(_, _, center) loc_vars = function(_, _, card)
local function rounds(amount) local function rounds(amount)
return " round" .. ((math.abs(amount) > 1 or math.abs(amount) == 0) and "s" or "") return " round" .. ((math.abs(amount) > 1 or math.abs(amount) == 0) and "s" or "")
end end
local rounds_left = center.ability.rounds_left local rounds_left = card.ability.rounds_left
local sold = rounds_left - hunter[2] local sold = rounds_left - hunter[2]
return {vars = { return {vars = {
@ -181,10 +181,6 @@ SMODS.Joker {
Jane.q(function() Jane.q(function()
card.hunter_prep = nil card.hunter_prep = nil
if G.GAME.current_round.hands_left < G.GAME.round_resets.hands then if G.GAME.current_round.hands_left < G.GAME.round_resets.hands then
card.ability.hands_replenished =
(card.ability.hands_replenished or 0) +
(G.GAME.round_resets.hands - G.GAME.current_round.hands_left)
ease_hands_played(G.GAME.round_resets.hands - G.GAME.current_round.hands_left) ease_hands_played(G.GAME.round_resets.hands - G.GAME.current_round.hands_left)
end end
@ -458,10 +454,7 @@ SMODS.Joker {
update = function(_, card, _) update = function(_, card, _)
if card.added_to_deck and card.children.center and card.children.floating_sprite then if card.added_to_deck and card.children.center and card.children.floating_sprite then
local extra = card.ability.extra local extra = card.ability.extra
local karma = extra.karma card.children.floating_sprite:set_sprite_pos({x = extra.karma >= extra.max_karma and 2 or 1, y = 0})
local max_karma = extra.max_karma
local is_attuned = karma >= max_karma
card.children.floating_sprite:set_sprite_pos({x = is_attuned and 2 or 1, y = 0})
end end
end, end,
calculate = function(_, card, context) calculate = function(_, card, context)
@ -564,6 +557,11 @@ SMODS.Joker {
end end
} }
if Cryptid then
Cryptid.aliases["saint"] = "j_jane_saint"
Cryptid.aliases["the saint"] = "j_jane_saint"
end
SMODS.Joker { SMODS.Joker {
key = "rot", key = "rot",
atlas = "janerot", atlas = "janerot",