Fix charm-related crash
This commit is contained in:
parent
0bb1eed9d5
commit
fe0630048e
3 changed files with 7 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"id": "Roland",
|
"id": "Roland",
|
||||||
"name": "Roland",
|
"name": "Roland",
|
||||||
"prefix": "Roland",
|
"prefix": "Roland",
|
||||||
"version": "2.9.24",
|
"version": "2.9.25",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"display_name": "Roland",
|
"display_name": "Roland",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
|
|
|
||||||
|
|
@ -261,7 +261,7 @@ local orig_apply_to_run = Tag.apply_to_run
|
||||||
|
|
||||||
function Tag:apply_to_run(...)
|
function Tag:apply_to_run(...)
|
||||||
if G.GAME.Bakery_charm == "BakeryCharm_Roland_wii" and
|
if G.GAME.Bakery_charm == "BakeryCharm_Roland_wii" and
|
||||||
G.Bakery_charm_area.cards[1].config.center.ability.extra.active then
|
G.Bakery_charm_area.cards[1].ability.extra.active then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,15 +19,18 @@ Balatest = Balatest
|
||||||
--- @type { constants?: { TEN: table }, new: (fun(self: self, arr?: number[], sign?: number, noNormalize?: boolean): table), pow: (fun(x: number, y: number): number) }
|
--- @type { constants?: { TEN: table }, new: (fun(self: self, arr?: number[], sign?: number, noNormalize?: boolean): table), pow: (fun(x: number, y: number): number) }
|
||||||
Big = Big
|
Big = Big
|
||||||
|
|
||||||
--- @type table
|
--- @type table?
|
||||||
CardSleeves = CardSleeves
|
CardSleeves = CardSleeves
|
||||||
|
|
||||||
--- @type fun(obj: SMODS.Back): SMODS.Back
|
--- @type table|fun(obj: SMODS.Back): SMODS.Back
|
||||||
CardSleeves.Sleeve = CardSleeves.Sleeve
|
CardSleeves.Sleeve = CardSleeves.Sleeve
|
||||||
|
|
||||||
--- @type fun(area: CardArea, ...: ...): Card
|
--- @type fun(area: CardArea, ...: ...): Card
|
||||||
create_card_for_shop = create_card_for_shop
|
create_card_for_shop = create_card_for_shop
|
||||||
|
|
||||||
|
--- @type boolean|table
|
||||||
|
G.Bakery_charm_area.cards[1].ability.extra = G.Bakery_charm_area.cards[1].ability.extra
|
||||||
|
|
||||||
SMODS.Mods.Roland.config = require "config"
|
SMODS.Mods.Roland.config = require "config"
|
||||||
|
|
||||||
---@type userdata|{getWidth: fun(self: self): number}
|
---@type userdata|{getWidth: fun(self: self): number}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue