Skip to content

Commit 488bd9f

Browse files
fix Lock RNG
fixed lock RNG using math.random instead of psuedorandom_element
1 parent 3cda779 commit 488bd9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

items/spectral.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ local lock = {
3333
use = function(self, card, area, copier)
3434
local used_consumable = copier or card
3535
check_for_unlock({ cry_used_consumable = "c_cry_lock" })
36-
local target = #G.jokers.cards == 1 and G.jokers.cards[1] or G.jokers.cards[math.random(#G.jokers.cards)]
36+
local target = #G.jokers.cards == 1 and G.jokers.cards[1]
37+
or pseudorandom_element(G.jokers.cards, pseudoseed("Dudeman"))
3738
G.E_MANAGER:add_event(Event({
3839
trigger = "after",
3940
delay = 0.4,

0 commit comments

Comments
 (0)