Fix bootstraps and erosion mixup

This commit is contained in:
Emik 2026-06-04 02:20:38 +02:00
parent 835a001302
commit 043ff1f8d1
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 6 additions and 6 deletions

View file

@ -91,5 +91,5 @@ match_indent = true
target = "card.lua" target = "card.lua"
pattern = "math\\.floor\\(\\(G\\.GAME\\.dollars \\+ \\(G\\.GAME\\.dollar_buffer or 0\\)\\)/self\\.ability\\.extra\\.dollars\\)" pattern = "math\\.floor\\(\\(G\\.GAME\\.dollars \\+ \\(G\\.GAME\\.dollar_buffer or 0\\)\\)/self\\.ability\\.extra\\.dollars\\)"
position = "at" position = "at"
payload = "G.P_CENTERS.j_erosion:mult(self)" payload = "G.P_CENTERS.j_bootstraps:mult(self)"
match_indent = true match_indent = true

View file

@ -3,7 +3,7 @@
"id": "Roland", "id": "Roland",
"name": "Roland", "name": "Roland",
"prefix": "Roland", "prefix": "Roland",
"version": "2.8.4", "version": "2.8.5",
"badge_colour": "8BE9FD", "badge_colour": "8BE9FD",
"display_name": "Roland", "display_name": "Roland",
"main_file": "src/main.lua", "main_file": "src/main.lua",

View file

@ -17,9 +17,9 @@ local frozen_sounds = f(4):map(frozen_sound):map("key"):table()
local needs_chip_mult_override = { local needs_chip_mult_override = {
Bull = true, Bull = true,
Erosion = true,
Misprint = true, Misprint = true,
TierList = true, TierList = true,
Bootstraps = true,
["Blue Joker"] = true, ["Blue Joker"] = true,
["Abstract Joker"] = true, ["Abstract Joker"] = true,
["Fortune Teller"] = true, ["Fortune Teller"] = true,
@ -186,7 +186,7 @@ end
local orig_get_probability_vars = SMODS.get_probability_vars local orig_get_probability_vars = SMODS.get_probability_vars
function G.P_CENTERS.j_erosion:mult(card) function G.P_CENTERS.j_bootstraps:mult(card)
local ability = card.Roland_frozen_ability local ability = card.Roland_frozen_ability
local ret = math.floor((G.GAME.dollars + (G.GAME.dollar_buffer or 0)) / card.ability.extra.dollars) local ret = math.floor((G.GAME.dollars + (G.GAME.dollar_buffer or 0)) / card.ability.extra.dollars)
@ -194,8 +194,8 @@ function G.P_CENTERS.j_erosion:mult(card)
return ret return ret
end end
ability.Roland_erosion_mult = ability.Roland_erosion_mult or ret ability.Roland_bootstraps_mult = ability.Roland_bootstraps_mult or ret
return ability.Roland_erosion_mult return ability.Roland_bootstraps_mult
end end
function SMODS.get_probability_vars(trigger_obj, ...) function SMODS.get_probability_vars(trigger_obj, ...)