Make Jumbo visual-only for playing cards in non-Cryptid
This commit is contained in:
parent
742c3b1aee
commit
78110fc93c
2 changed files with 13 additions and 1 deletions
|
|
@ -17,5 +17,5 @@
|
|||
"conflicts": [
|
||||
"Jen"
|
||||
],
|
||||
"version": "1.5.26"
|
||||
"version": "1.5.27"
|
||||
}
|
||||
|
|
@ -22,6 +22,10 @@ local function get_weight(self)
|
|||
return G.GAME.edition_rate * self.weight
|
||||
end
|
||||
|
||||
local function is_playing_card(card)
|
||||
return ({Default = true, Enhanced = true})[((card.config or {}).center or {}).set]
|
||||
end
|
||||
|
||||
SMODS.Edition({
|
||||
key = "polygloss",
|
||||
loc_txt = {
|
||||
|
|
@ -106,6 +110,10 @@ SMODS.Edition({
|
|||
},
|
||||
},
|
||||
on_apply = function(card)
|
||||
if not Cryptid and is_playing_card(card) then
|
||||
return
|
||||
end
|
||||
|
||||
Jane.q(function()
|
||||
Jane.resize(card, Jane.config.wee_sizemod)
|
||||
end, nil, nil, nil, false, false)
|
||||
|
|
@ -127,6 +135,10 @@ SMODS.Edition({
|
|||
end
|
||||
end,
|
||||
on_remove = function(card)
|
||||
if not Cryptid and is_playing_card(card) then
|
||||
return
|
||||
end
|
||||
|
||||
Jane.q(function()
|
||||
Jane.resize(card, 1 / Jane.config.wee_sizemod)
|
||||
end, nil, nil, nil, false, false)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue