Heavily nerf joker-in-a-tarot
This commit is contained in:
parent
b4834d2c9b
commit
93e0a4f6d6
2 changed files with 26 additions and 3 deletions
|
|
@ -17,5 +17,5 @@
|
||||||
"conflicts": [
|
"conflicts": [
|
||||||
"Jen"
|
"Jen"
|
||||||
],
|
],
|
||||||
"version": "1.5.11"
|
"version": "1.5.12"
|
||||||
}
|
}
|
||||||
|
|
@ -2,6 +2,13 @@ local function j()
|
||||||
return G.GAME.used_vouchers.v_jane_jolly_voucher and "j_jolly" or "j_joker"
|
return G.GAME.used_vouchers.v_jane_jolly_voucher and "j_jolly" or "j_joker"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local required = Cryptid and 2 or 4
|
||||||
|
|
||||||
|
local function get_uses()
|
||||||
|
G.GAME.joker_in_a_tarot = G.GAME.joker_in_a_tarot or 2
|
||||||
|
return G.GAME.joker_in_a_tarot
|
||||||
|
end
|
||||||
|
|
||||||
local blurbs = {
|
local blurbs = {
|
||||||
"M!",
|
"M!",
|
||||||
"Hey! Pick me!",
|
"Hey! Pick me!",
|
||||||
|
|
@ -36,9 +43,13 @@ SMODS.Consumable {
|
||||||
set = "Tarot",
|
set = "Tarot",
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "#1#-in-a-Tarot",
|
name = "#1#-in-a-Tarot",
|
||||||
text = {
|
text = Cryptid and {
|
||||||
"Create a {C:dark_edition}Negative {C:attention}#2#",
|
"Create a {C:dark_edition}Negative {C:attention}#2#",
|
||||||
"{C:inactive,E:1}#3#{}",
|
"{C:inactive,E:1}#3#{}",
|
||||||
|
} or {
|
||||||
|
"Create a {C:dark_edition}Negative {C:attention}#2#",
|
||||||
|
"after {C:attention}#3# {}uses {C:inactive}(#4# left)",
|
||||||
|
"{C:inactive,E:1}#5#{}",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
loc_vars = function(_, info_queue, card)
|
loc_vars = function(_, info_queue, card)
|
||||||
|
|
@ -54,12 +65,24 @@ SMODS.Consumable {
|
||||||
|
|
||||||
local desc = is_jolly and "Jolly Joker" or "default Joker"
|
local desc = is_jolly and "Jolly Joker" or "default Joker"
|
||||||
local name = is_jolly and "Jolly" or "Joker"
|
local name = is_jolly and "Jolly" or "Joker"
|
||||||
return {vars = {name, desc, card.blurb}}
|
|
||||||
|
local vars = Cryptid and {name, desc, card.blurb} or
|
||||||
|
{name, desc, required, required - get_uses(), card.blurb}
|
||||||
|
|
||||||
|
return {vars = vars}
|
||||||
end,
|
end,
|
||||||
pos = {x = 0, y = 1},
|
pos = {x = 0, y = 1},
|
||||||
cost = 4,
|
cost = 4,
|
||||||
can_use = Jane.can_use,
|
can_use = Jane.can_use,
|
||||||
use = function(_, _, _, _)
|
use = function(_, _, _, _)
|
||||||
|
local uses = get_uses() + 1
|
||||||
|
|
||||||
|
if uses < required then
|
||||||
|
G.GAME.joker_in_a_tarot = uses
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
G.GAME.joker_in_a_tarot = 0
|
||||||
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, j(), "jokerfromatarot")
|
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, j(), "jokerfromatarot")
|
||||||
card:set_edition({negative = true}, true)
|
card:set_edition({negative = true}, true)
|
||||||
card.cost = 1
|
card.cost = 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue