Remove all RNG in Multiplayer Martingale

This commit is contained in:
Emik 2026-05-05 20:06:45 +02:00
parent 918ebbc30b
commit 0bfdfde532
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 6 additions and 8 deletions

View file

@ -6,7 +6,7 @@
"author": [ "author": [
"Emik" "Emik"
], ],
"version": "2.2.12", "version": "2.2.13",
"badge_colour": "8BE9FD", "badge_colour": "8BE9FD",
"main_file": "src/main.lua", "main_file": "src/main.lua",
"badge_text_colour": "44475A", "badge_text_colour": "44475A",

View file

@ -332,11 +332,6 @@ if cry_prob then
end end
function SMODS.current_mod:calculate(context) 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.calccontext) == "function" and G.calccontext(context)
local _ = type(G.calckeys) == "function" and G.calckeys(f(context):keys()) local _ = type(G.calckeys) == "function" and G.calckeys(f(context):keys())
local _ = type(G.calc) == "function" and G.calc(f(context):keys():string()) local _ = type(G.calc) == "function" and G.calc(f(context):keys():string())

View file

@ -778,10 +778,13 @@ joker {
return return
end 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 for _ = 1, 64 do
local g = G.GAME
local key = "RolandMartingale" .. tostring(g.modifiers.Roland_martingale_seed or "") local key = "RolandMartingale" .. tostring(g.modifiers.Roland_martingale_seed or "")
if SMODS.pseudorandom_probability(card, self.key, 1, extra.odds, key) then if SMODS.pseudorandom_probability(card, self.key, 1, extra.odds, key) then