Skip to content

Commit 0cf8a8f

Browse files
authored
update boredom to use SMODS probability
was missed when updating earlier
1 parent b0af2e5 commit 0cf8a8f

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

items/epic.lua

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -877,10 +877,12 @@ local boredom = {
877877
cost = 14,
878878
blueprint_compat = true,
879879
loc_vars = function(self, info_queue, card)
880+
local num, denom = SMODS.get_probability_vars(card, 1, card and card.ability.extra.odds or self.config.extra.odds)
881+
880882
return {
881883
vars = {
882-
cry_prob(card.ability.cry_prob, card.ability.extra.odds, card.ability.cry_rigged),
883-
card.ability.extra.odds,
884+
num,
885+
denom,
884886
},
885887
}
886888
end,
@@ -891,10 +893,12 @@ local boredom = {
891893
and not context.retrigger_joker
892894
and not (context.other_card.ability and context.other_card.ability.name == "cry-Boredom")
893895
then
894-
if
895-
pseudorandom("cry_boredom_joker")
896-
< cry_prob(card.ability.cry_prob, card.ability.extra.odds, card.ability.cry_rigged)
897-
/ card.ability.extra.odds
896+
if SMODS.pseudorandom_probability(
897+
card,
898+
"cry_boredom_joker",
899+
1,
900+
card and card.ability.extra.odds or self.config.extra.odds
901+
)
898902
then
899903
return {
900904
message = localize("k_again_ex"),
@@ -908,8 +912,12 @@ local boredom = {
908912
if
909913
context.repetition
910914
and context.cardarea == G.play
911-
and pseudorandom("cry_boredom_card")
912-
< cry_prob(card.ability.cry_prob, card.ability.extra.odds, card.ability.cry_rigged) / card.ability.extra.odds
915+
and SMODS.pseudorandom_probability(
916+
card,
917+
"cry_boredom_joker",
918+
1,
919+
card and card.ability.extra.odds or self.config.extra.odds
920+
)
913921
then
914922
return {
915923
message = localize("k_again_ex"),

0 commit comments

Comments
 (0)