Ensure Sleeve's apply saves the game

nice
This commit is contained in:
Emik 2026-07-20 22:55:47 +02:00
parent a639a92c3c
commit ce35879117
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 3 additions and 3 deletions

View file

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

View file

@ -40,7 +40,7 @@ local back = (function()
return ret return ret
end, end,
apply = function(self, ...) apply = function(self, ...)
return (tbl.alt_apply and self:is_alt() and tbl.alt_apply or apply)(self, ...) return save((tbl.alt_apply and self:is_alt() and tbl.alt_apply or apply)(self, ...))
end, end,
calculate = function(self, ...) calculate = function(self, ...)
return (tbl.alt_calculate and self:is_alt() and tbl.alt_calculate or calculate)(self, ...) return (tbl.alt_calculate and self:is_alt() and tbl.alt_calculate or calculate)(self, ...)

View file

@ -60,8 +60,8 @@ SMODS.Tag {
pos = {x = 0, y = 0}, pos = {x = 0, y = 0},
config = {amount = 5}, config = {amount = 5},
loc_vars = function(self, info_queue, tag) loc_vars = function(self, info_queue, tag)
info_queue[#info_queue + 1] = G.P_CENTERS.e_Roland_frozen
tag.ability = tag.ability or {} tag.ability = tag.ability or {}
table.insert(info_queue, G.P_CENTERS.e_Roland_frozen)
return {vars = {tag.ability.amount or self.config.amount}} return {vars = {tag.ability.amount or self.config.amount}}
end, end,
apply = function(self, tag, context) apply = function(self, tag, context)