Add alias
This commit is contained in:
parent
8f5d6b830e
commit
4f411eadd2
1 changed files with 8 additions and 10 deletions
|
|
@ -104,12 +104,12 @@ SMODS.Joker {
|
|||
soul_pos = {x = 1, y = 0},
|
||||
cost = Cryptid and 20 or 8,
|
||||
rarity = Cryptid and 4 or 3,
|
||||
loc_vars = function(_, _, center)
|
||||
loc_vars = function(_, _, card)
|
||||
local function rounds(amount)
|
||||
return " round" .. ((math.abs(amount) > 1 or math.abs(amount) == 0) and "s" or "")
|
||||
end
|
||||
|
||||
local rounds_left = center.ability.rounds_left
|
||||
local rounds_left = card.ability.rounds_left
|
||||
local sold = rounds_left - hunter[2]
|
||||
|
||||
return {vars = {
|
||||
|
|
@ -181,10 +181,6 @@ SMODS.Joker {
|
|||
Jane.q(function()
|
||||
card.hunter_prep = nil
|
||||
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)
|
||||
end
|
||||
|
||||
|
|
@ -458,10 +454,7 @@ SMODS.Joker {
|
|||
update = function(_, card, _)
|
||||
if card.added_to_deck and card.children.center and card.children.floating_sprite then
|
||||
local extra = card.ability.extra
|
||||
local karma = extra.karma
|
||||
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})
|
||||
card.children.floating_sprite:set_sprite_pos({x = extra.karma >= extra.max_karma and 2 or 1, y = 0})
|
||||
end
|
||||
end,
|
||||
calculate = function(_, card, context)
|
||||
|
|
@ -564,6 +557,11 @@ SMODS.Joker {
|
|||
end
|
||||
}
|
||||
|
||||
if Cryptid then
|
||||
Cryptid.aliases["saint"] = "j_jane_saint"
|
||||
Cryptid.aliases["the saint"] = "j_jane_saint"
|
||||
end
|
||||
|
||||
SMODS.Joker {
|
||||
key = "rot",
|
||||
atlas = "janerot",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue