Give more favorable luck in Karma Deck
This commit is contained in:
parent
11a583e31b
commit
3db88370ac
4 changed files with 23 additions and 10 deletions
|
|
@ -17,5 +17,5 @@
|
||||||
"conflicts": [
|
"conflicts": [
|
||||||
"Jen"
|
"Jen"
|
||||||
],
|
],
|
||||||
"version": "1.5.36"
|
"version": "1.5.37"
|
||||||
}
|
}
|
||||||
14
src/back.lua
14
src/back.lua
|
|
@ -149,16 +149,13 @@ back {
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
Jane.rain_world_jokers = {
|
local rain_world_jokers = {
|
||||||
"j_jane_monk",
|
"j_jane_monk",
|
||||||
"j_jane_survivor",
|
"j_jane_survivor",
|
||||||
"j_jane_hunter",
|
|
||||||
"j_jane_gourmand",
|
|
||||||
"j_jane_artificer",
|
"j_jane_artificer",
|
||||||
"j_jane_spearmaster",
|
"j_jane_spearmaster",
|
||||||
"j_jane_rivulet",
|
"j_jane_rivulet",
|
||||||
"j_jane_saint",
|
"j_jane_saint",
|
||||||
"j_jane_rot",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local function add_rain_world_joker()
|
local function add_rain_world_joker()
|
||||||
|
|
@ -168,14 +165,17 @@ local function add_rain_world_joker()
|
||||||
|
|
||||||
local unobtained = {}
|
local unobtained = {}
|
||||||
|
|
||||||
for _, v in pairs(Jane.rain_world_jokers) do
|
for _, v in pairs(rain_world_jokers) do
|
||||||
if not next(SMODS.find_card(v, true)) then
|
if not next(SMODS.find_card(v, true)) then
|
||||||
unobtained[#unobtained + 1] = v
|
unobtained[#unobtained + 1] = v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local chosen = pseudorandom_element(next(unobtained) and unobtained or Jane.rain_world_jokers,
|
local chosen = pseudorandom_element(
|
||||||
pseudoseed("karma_deck"))
|
next(unobtained) and unobtained or rain_world_jokers,
|
||||||
|
pseudoseed("karma_deck")
|
||||||
|
)
|
||||||
|
|
||||||
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, chosen, "karma_deck_next")
|
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, chosen, "karma_deck_next")
|
||||||
card:add_to_deck()
|
card:add_to_deck()
|
||||||
card:start_materialize()
|
card:start_materialize()
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
|
local rain_world_jokers = {
|
||||||
|
"j_jane_monk",
|
||||||
|
"j_jane_survivor",
|
||||||
|
"j_jane_hunter",
|
||||||
|
"j_jane_gourmand",
|
||||||
|
"j_jane_artificer",
|
||||||
|
"j_jane_spearmaster",
|
||||||
|
"j_jane_rivulet",
|
||||||
|
"j_jane_saint",
|
||||||
|
"j_jane_rot",
|
||||||
|
}
|
||||||
|
|
||||||
local is_rain_world_joker = {}
|
local is_rain_world_joker = {}
|
||||||
|
|
||||||
for _, v in pairs(Jane.rain_world_jokers) do
|
for _, v in pairs(rain_world_jokers) do
|
||||||
is_rain_world_joker[v] = true
|
is_rain_world_joker[v] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -18,7 +30,7 @@ SMODS.Challenge {
|
||||||
apply = function(_)
|
apply = function(_)
|
||||||
G.GAME.win_ante = 16
|
G.GAME.win_ante = 16
|
||||||
|
|
||||||
for _, v in ipairs(Jane.rain_world_jokers) do
|
for _, v in ipairs(rain_world_jokers) do
|
||||||
Jane.q(function()
|
Jane.q(function()
|
||||||
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, v, "karma_deck_next")
|
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, v, "karma_deck_next")
|
||||||
card:add_to_deck()
|
card:add_to_deck()
|
||||||
|
|
|
||||||
|
|
@ -307,6 +307,7 @@ SMODS.Joker {
|
||||||
soul_pos = {x = 1, y = 0},
|
soul_pos = {x = 1, y = 0},
|
||||||
cost = 8,
|
cost = 8,
|
||||||
rarity = 3,
|
rarity = 3,
|
||||||
|
blueprint_compat = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
local orig_set_ability = Card.set_ability
|
local orig_set_ability = Card.set_ability
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue