Buff Oops! All 7s and nerf Martingale
This commit is contained in:
parent
e76fee417e
commit
dd7188cbae
2 changed files with 14 additions and 16 deletions
|
|
@ -169,10 +169,9 @@ return {
|
|||
j_Roland_oops = {
|
||||
name = "Oops! All 7s",
|
||||
text = {
|
||||
"Listed {C:green,E:1}probabilities",
|
||||
"{C:attention}increase{} for each",
|
||||
"{C:hand}hand played this round",
|
||||
"{C:inactive}(Currently {C:green}X#1#{C:inactive})",
|
||||
"{X:green,C:white}X#1#{C:green,E:1} probability {}after every",
|
||||
"{C:blue}hand {}played this round",
|
||||
"{C:inactive}(Currently {X:green,C:white}X#2#{C:inactive})",
|
||||
},
|
||||
},
|
||||
j_Roland_sunny = {
|
||||
|
|
|
|||
|
|
@ -532,14 +532,15 @@ joker {
|
|||
key = "oops",
|
||||
pronouns = "he_they",
|
||||
artist = "Roland_char",
|
||||
cost = 8,
|
||||
cost = 7,
|
||||
rarity = 3,
|
||||
config = {extra = {probability = 1, delta = 1}},
|
||||
config = {extra = {probability = 1, probability_mult = 2, reset = 1}},
|
||||
eternal_compat = true,
|
||||
blueprint_compat = false,
|
||||
perishable_compat = true,
|
||||
loc_vars = function(_, _, card)
|
||||
return {vars = {card.ability.extra.probability}}
|
||||
local extra = card.ability.extra
|
||||
return {vars = {extra.probability_mult, extra.probability}}
|
||||
end,
|
||||
calculate = function(_, card, context)
|
||||
if context.blueprint or not card.ability then
|
||||
|
|
@ -552,13 +553,13 @@ joker {
|
|||
return {numerator = extra.probability}
|
||||
end
|
||||
|
||||
if context.end_of_round and extra.probability ~= extra.delta then
|
||||
extra.probability = extra.delta
|
||||
if context.end_of_round and extra.probability ~= extra.reset then
|
||||
extra.probability = extra.reset
|
||||
return {message = localize "k_reset", colour = G.C.RED}
|
||||
end
|
||||
|
||||
if context.after then
|
||||
extra.probability = extra.probability + extra.delta
|
||||
extra.probability = extra.probability * extra.probability_mult
|
||||
return {message = localize "k_upgrade_ex", colour = G.C.GREEN}
|
||||
end
|
||||
end,
|
||||
|
|
@ -567,8 +568,8 @@ joker {
|
|||
joker {
|
||||
key = "martingale",
|
||||
pronouns = "he_him",
|
||||
config = {extra = {odds = 2, times = 0}},
|
||||
cost = 7,
|
||||
config = {extra = {odds = 2}},
|
||||
cost = 8,
|
||||
rarity = 3,
|
||||
eternal_compat = true,
|
||||
blueprint_compat = true,
|
||||
|
|
@ -589,11 +590,9 @@ joker {
|
|||
return
|
||||
end
|
||||
|
||||
local extra = card.ability.extra
|
||||
local xmult = extra.odds
|
||||
local numerator = 1
|
||||
local extra, numerator, xmult = card.ability.extra, 1, 1
|
||||
|
||||
for _ = 1, 63 do
|
||||
for _ = 1, 64 do
|
||||
if SMODS.pseudorandom_probability(card, "j_Roland_martingale", 1, extra.odds, "Martingale") then
|
||||
break
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue