Skip to content

Commit

Permalink
fix quantum savescum bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MathIsFun0 committed Dec 18, 2024
1 parent c87126f commit 0dc91f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lovely/enhancement.toml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ effects[1].edition = nil
local extra_enhancements = SMODS.get_enhancements(scoring_hand[i], true)
local old_ability = copy_table(scoring_hand[i].ability)
local old_center = scoring_hand[i].config.center
local old_center_key = scoring_hand[i].config.center_key
for k, _ in pairs(extra_enhancements) do
if G.P_CENTERS[k] then
scoring_hand[i]:set_ability(G.P_CENTERS[k])
Expand All @@ -300,6 +301,7 @@ end
effects[#effects+1] = post_effect
scoring_hand[i].ability = old_ability
scoring_hand[i].config.center = old_center
scoring_hand[i].config.center_key = old_center_key
scoring_hand[i]:set_sprites(old_center)
'''
match_indent = true
Expand All @@ -314,6 +316,7 @@ payload = '''
local extra_enhancements = SMODS.get_enhancements(G.hand.cards[i], true)
local old_ability = copy_table(G.hand.cards[i].ability)
local old_center = G.hand.cards[i].config.center
local old_center_key = G.hand.cards[i].config.center_key
for k, _ in pairs(extra_enhancements) do
if G.P_CENTERS[k] then
G.hand.cards[i]:set_ability(G.P_CENTERS[k])
Expand All @@ -323,6 +326,7 @@ for k, _ in pairs(extra_enhancements) do
end
G.hand.cards[i].ability = old_ability
G.hand.cards[i].config.center = old_center
G.hand.cards[i].config.center_key = old_center_key
G.hand.cards[i]:set_sprites(old_center)
'''
match_indent = true
Expand All @@ -337,6 +341,7 @@ payload = '''
local extra_enhancements = SMODS.get_enhancements(G.hand.cards[i], true)
local old_ability = copy_table(G.hand.cards[i].ability)
local old_center = G.hand.cards[i].config.center
local old_center_key = G.hand.cards[i].config.center_key
for k, _ in pairs(extra_enhancements) do
if G.P_CENTERS[k] then
G.hand.cards[i]:set_ability(G.P_CENTERS[k])
Expand All @@ -346,6 +351,7 @@ for k, _ in pairs(extra_enhancements) do
end
G.hand.cards[i].ability = old_ability
G.hand.cards[i].config.center = old_center
G.hand.cards[i].config.center_key = old_center_key
G.hand.cards[i]:set_sprites(old_center)
'''
match_indent = true
Expand Down

0 comments on commit 0dc91f0

Please sign in to comment.