Remove all RNG in Multiplayer Martingale
This commit is contained in:
parent
918ebbc30b
commit
adcfc47e21
3 changed files with 6 additions and 8 deletions
|
|
@ -6,7 +6,7 @@
|
|||
"author": [
|
||||
"Emik"
|
||||
],
|
||||
"version": "2.2.12",
|
||||
"version": "2.2.13",
|
||||
"badge_colour": "8BE9FD",
|
||||
"main_file": "src/main.lua",
|
||||
"badge_text_colour": "44475A",
|
||||
|
|
|
|||
|
|
@ -332,11 +332,6 @@ if cry_prob then
|
|||
end
|
||||
|
||||
function SMODS.current_mod:calculate(context)
|
||||
if context.setting_blind and G.GAME.blind.name == "bl_mp_nemesis" then
|
||||
local modifiers = G.GAME.modifiers
|
||||
modifiers.Roland_martingale_seed = (modifiers.Roland_martingale_seed or 0) + 1
|
||||
end
|
||||
|
||||
local _ = type(G.calccontext) == "function" and G.calccontext(context)
|
||||
local _ = type(G.calckeys) == "function" and G.calckeys(f(context):keys())
|
||||
local _ = type(G.calc) == "function" and G.calc(f(context):keys():string())
|
||||
|
|
|
|||
|
|
@ -778,10 +778,13 @@ joker {
|
|||
return
|
||||
end
|
||||
|
||||
local extra, numerator, xmult = card.ability.extra, 1, 1
|
||||
local g, extra, numerator, xmult = G.GAME, card.ability.extra, 1, 1
|
||||
|
||||
if g.blind.name == "bl_mp_nemesis" then
|
||||
return {card = card, xmult = extra}
|
||||
end
|
||||
|
||||
for _ = 1, 64 do
|
||||
local g = G.GAME
|
||||
local key = "RolandMartingale" .. tostring(g.modifiers.Roland_martingale_seed or "")
|
||||
|
||||
if SMODS.pseudorandom_probability(card, self.key, 1, extra.odds, key) then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue