Skip to content

Commit bde0c07

Browse files
committed
nerf seed
1 parent 1ac0edb commit bde0c07

File tree

5 files changed

+17
-33
lines changed

5 files changed

+17
-33
lines changed

items/code.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,6 +1988,13 @@ local rigged = {
19881988
) -- this doesn't really do much tbh, but the slight effect is nice
19891989
card.hover_tilt = card.hover_tilt * 2
19901990
end,
1991+
calculate = function(self, card, context)
1992+
if context.mod_probability and context.trigger_obj == card then
1993+
return {
1994+
numerator = context.numerator * 2
1995+
}
1996+
end
1997+
end
19911998
}
19921999
-- ://Patch
19932000
-- Removes all visible debuffs, flips cards face up

lib/overrides.lua

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,35 +2166,6 @@ function get_straight(hand, min_length, skip, wrap)
21662166
return get_straight_ref(hand, min_length + stones, skip, wrap)
21672167
end
21682168

2169-
local get_prob_vars_ref = SMODS.get_probability_vars
2170-
function SMODS.get_probability_vars(trigger_obj, base_numerator, base_denominator, identifier, from_roll, no_mod, ...)
2171-
local mod = trigger_obj and trigger_obj.ability and trigger_obj.ability.cry_prob or 1
2172-
local numerator = base_numerator * mod
2173-
if trigger_obj and trigger_obj.ability and trigger_obj.ability.cry_rigged and not no_mod then
2174-
numerator = base_denominator
2175-
end
2176-
return get_prob_vars_ref(trigger_obj, numerator, base_denominator, identifier, from_roll, no_mod, ...)
2177-
end
2178-
2179-
local pseudorandom_probability_ref = SMODS.pseudorandom_probability
2180-
function SMODS.pseudorandom_probability(trigger_obj, seed, base_numerator, base_denominator, identifier, no_mod, ...)
2181-
local mod = trigger_obj and trigger_obj.ability and trigger_obj.ability.cry_prob or 1
2182-
local numerator = base_numerator * mod
2183-
if trigger_obj and trigger_obj.ability and trigger_obj.ability.cry_rigged and not no_mod then
2184-
SMODS.post_prob = SMODS.post_prob or {}
2185-
SMODS.post_prob[#SMODS.post_prob + 1] = {
2186-
pseudorandom_result = true,
2187-
result = true,
2188-
trigger_obj = trigger_obj,
2189-
numerator = base_denominator,
2190-
denominator = base_denominator,
2191-
identifier = identifier or seed,
2192-
}
2193-
return true
2194-
end
2195-
return pseudorandom_probability_ref(trigger_obj, seed, numerator, base_denominator, identifier, no_mod, ...)
2196-
end
2197-
21982169
local is_eternalref = SMODS.is_eternal
21992170
function SMODS.is_eternal(card)
22002171
if Cryptid.safe_get(card, "ability", "cry_absolute") then

localization/en-us.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4479,8 +4479,9 @@ return {
44794479
cry_rigged = {
44804480
name = "Rigged",
44814481
text = {
4482-
"All {C:cry_code}listed{} probabilities",
4483-
"are {C:cry_code}guaranteed",
4482+
"Doubles all",
4483+
"{C:cry_code}listed{} probabilities",
4484+
"on this card",
44844485
},
44854486
},
44864487
cry_hooked = {

localization/fr.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4445,8 +4445,9 @@ return {
44454445
cry_rigged = {
44464446
name = "Truqué",
44474447
text = {
4448-
"Toutes les probabilités {C:cry_code}listées{}",
4449-
"sont {C:cry_code}garanties",
4448+
"Double toutes",
4449+
"les probabilités {C:cry_code}listées{}",
4450+
"sur cette carte",
44504451
},
44514452
},
44524453
cry_hooked = {

localization/nl.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
--yes somehow that was harder than RNJoker
33
--Wip Localization, putting this here since people have expressed interst in this
44
--I'm Assuming de is the file for dutch? just rename it if it isn't
5+
-- de is the language code for german????
56

67
--[[
78
Progress:
@@ -2736,13 +2737,16 @@ return {
27362737
"destroyed each round",
27372738
},
27382739
},
2740+
-- commented out so this will default to the english description
2741+
--[[
27392742
cry_rigged = {
27402743
name = "Rigged",
27412744
text = {
27422745
"All {C:cry_code}listed{} probabilities",
27432746
"are {C:cry_code}guaranteed",
27442747
},
27452748
},
2749+
]]
27462750
cry_hooked = {
27472751
name = "Hooked",
27482752
text = {

0 commit comments

Comments
 (0)