Swap Gourmand and Rivulet, but with a twist
This commit is contained in:
parent
65fd36476a
commit
2af1d9be76
3 changed files with 23 additions and 24 deletions
|
|
@ -18,5 +18,5 @@
|
||||||
"conflicts": [
|
"conflicts": [
|
||||||
"Jen"
|
"Jen"
|
||||||
],
|
],
|
||||||
"version": "1.9.4"
|
"version": "1.10.0"
|
||||||
}
|
}
|
||||||
|
|
@ -153,7 +153,7 @@ local rain_world_jokers = {
|
||||||
"j_jane_monk",
|
"j_jane_monk",
|
||||||
"j_jane_survivor",
|
"j_jane_survivor",
|
||||||
"j_jane_spearmaster",
|
"j_jane_spearmaster",
|
||||||
"j_jane_rivulet",
|
"j_jane_gourmand",
|
||||||
"j_jane_saint",
|
"j_jane_saint",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -275,22 +275,16 @@ SMODS.Joker {
|
||||||
atlas = "janegourmand",
|
atlas = "janegourmand",
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "The Gourmand",
|
name = "The Gourmand",
|
||||||
text = {
|
text = {"All cards are {C:dark_edition}Jumbo"},
|
||||||
"Values on {C:attention}consumables",
|
|
||||||
"are {C:attention}" .. (Jane.cry and "multiplied" or "added") .. "{} by {C:attention}#1#" .. (Jane.cry and "" or "{} when"),
|
|
||||||
(Jane.cry and "when " or "") .. "they are created",
|
|
||||||
"{C:inactive}(If possible)",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
loc_vars = function(_, _, center)
|
|
||||||
return {vars = {center.ability.modifier}}
|
|
||||||
end,
|
|
||||||
config = {modifier = Jane.cry and 2 or 1},
|
|
||||||
pos = {x = 0, y = 0},
|
pos = {x = 0, y = 0},
|
||||||
soul_pos = {x = 1, y = 0},
|
soul_pos = {x = 1, y = 0},
|
||||||
blueprint_compat = false,
|
blueprint_compat = false,
|
||||||
cost = 8,
|
cost = 20,
|
||||||
rarity = 3,
|
rarity = 4,
|
||||||
|
loc_vars = function(_, info_queue)
|
||||||
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_jumbo
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
local function add_to_consumable_ability_by(n)
|
local function add_to_consumable_ability_by(n)
|
||||||
|
|
@ -344,14 +338,14 @@ local orig_set_ability = Card.set_ability
|
||||||
function Card:set_ability(center, initial, delay_sprites)
|
function Card:set_ability(center, initial, delay_sprites)
|
||||||
orig_set_ability(self, center, initial, delay_sprites)
|
orig_set_ability(self, center, initial, delay_sprites)
|
||||||
|
|
||||||
if next(SMODS.find_card("j_jane_gourmand")) and
|
if next(SMODS.find_card("j_jane_rivulet")) and
|
||||||
self.gc and
|
self.gc and
|
||||||
self:gc().key ~= "c_base" and
|
self:gc().key ~= "c_base" and
|
||||||
string.sub(self:gc().key, 1, 2) == "c_" then
|
string.sub(self:gc().key, 1, 2) == "c_" then
|
||||||
if Jane.cry or not ((SMODS.Mods.Roland or {}).qol or {})[1] then
|
if Jane.cry or not ((SMODS.Mods.Roland or {}).qol or {})[1] then
|
||||||
local mod = 1
|
local mod = 1
|
||||||
|
|
||||||
for _, v in pairs(SMODS.find_card("j_jane_gourmand")) do
|
for _, v in pairs(SMODS.find_card("j_jane_rivulet")) do
|
||||||
mod = mod * v.ability.modifier
|
mod = mod * v.ability.modifier
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -359,7 +353,7 @@ function Card:set_ability(center, initial, delay_sprites)
|
||||||
else
|
else
|
||||||
local mod = 0
|
local mod = 0
|
||||||
|
|
||||||
for _, v in pairs(SMODS.find_card("j_jane_gourmand")) do
|
for _, v in pairs(SMODS.find_card("j_jane_rivulet")) do
|
||||||
mod = mod + v.ability.modifier
|
mod = mod + v.ability.modifier
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -522,15 +516,21 @@ SMODS.Joker {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "The Rivulet",
|
name = "The Rivulet",
|
||||||
text = {
|
text = {
|
||||||
"All cards are given",
|
"Values on {C:attention}consumables",
|
||||||
"a random {C:dark_edition}Edition",
|
"are {C:attention}" .. (Jane.cry and "multiplied" or "added") .. "{} by {C:attention}#1#" .. (Jane.cry and "" or "{} when"),
|
||||||
|
(Jane.cry and "when " or "") .. "they are created",
|
||||||
|
"{C:inactive}(If possible)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
config = {modifier = Jane.cry and 2 or 1},
|
||||||
pos = {x = 0, y = 0},
|
pos = {x = 0, y = 0},
|
||||||
soul_pos = {x = 1, y = 0},
|
soul_pos = {x = 1, y = 0},
|
||||||
blueprint_compat = false,
|
blueprint_compat = false,
|
||||||
cost = 20,
|
cost = 8,
|
||||||
rarity = 4,
|
rarity = 3,
|
||||||
|
loc_vars = function(_, _, center)
|
||||||
|
return {vars = {center.ability.modifier}}
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
local orig_draw = Card.draw
|
local orig_draw = Card.draw
|
||||||
|
|
@ -558,9 +558,8 @@ function Card:draw(layer)
|
||||||
(self.added_to_deck or (self.area and self.area == G.hand)) and not
|
(self.added_to_deck or (self.area and self.area == G.hand)) and not
|
||||||
self.edition and
|
self.edition and
|
||||||
(self.area == G.consumeables or cen.set ~= "Booster") and
|
(self.area == G.consumeables or cen.set ~= "Booster") and
|
||||||
next(SMODS.find_card("j_jane_rivulet")) then
|
next(SMODS.find_card("j_jane_gourmand")) then
|
||||||
local edition = poll_edition("rivulet_edition", nil, true, true)
|
self:set_edition("e_jane_jumbo")
|
||||||
self:set_edition(edition == "e_Roland_frozen" and "e_jane_polygloss" or edition)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
orig_draw(self, layer)
|
orig_draw(self, layer)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue