Skip to content

Commit 44b6bd3

Browse files
Combine hooks
1 parent 2bc09a2 commit 44b6bd3

File tree

2 files changed

+21
-24
lines changed

2 files changed

+21
-24
lines changed

items/misc.lua

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,30 +1557,6 @@ local double_sided = {
15571557
end
15581558
return retval
15591559
end
1560-
local cupd = Card.update
1561-
function Card:update(dt)
1562-
cupd(self, dt)
1563-
if self.area then
1564-
if self.area.config.type == "discard" or self.area.config.type == "deck" then
1565-
return --prevent lagging event queues with unneeded flips
1566-
end
1567-
end
1568-
if self.sprite_facing == "back" and self.edition and self.edition.cry_double_sided then
1569-
self.sprite_facing = "front"
1570-
self.facing = "front"
1571-
if self.flipping == "f2b" then
1572-
self.flipping = "b2f"
1573-
end
1574-
self:dbl_side_flip()
1575-
end
1576-
if self.ability.cry_absolute then -- feedback loop... may be problematic
1577-
self.cry_absolute = true
1578-
end
1579-
if self.cry_absolute then
1580-
self.ability.cry_absolute = true
1581-
self.ability.eternal = true
1582-
end
1583-
end
15841560
function Cryptid.copy_dbl_card(C, c, deck_effects)
15851561
if not deck_effects then
15861562
Cdeck = C.added_to_deck

lib/modifiers.lua

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,26 @@ end
307307
local updateref = Card.update
308308
function Card:update(dt)
309309
updateref(self, dt)
310+
if self.area then
311+
if self.area.config.type == "discard" or self.area.config.type == "deck" then
312+
return --prevent lagging event queues with unneeded flips
313+
end
314+
end
315+
if self.sprite_facing == "back" and self.edition and self.edition.cry_double_sided then
316+
self.sprite_facing = "front"
317+
self.facing = "front"
318+
if self.flipping == "f2b" then
319+
self.flipping = "b2f"
320+
end
321+
self:dbl_side_flip()
322+
end
323+
if self.ability.cry_absolute then -- feedback loop... may be problematic
324+
self.cry_absolute = true
325+
end
326+
if self.cry_absolute then
327+
self.ability.cry_absolute = true
328+
self.ability.eternal = true
329+
end
310330
if self.ability.pinned then
311331
self.pinned = true
312332
end -- gluing these variables together
@@ -385,6 +405,7 @@ end
385405
local evaluateroundref = G.FUNCS.evaluate_round
386406
G.FUNCS.evaluate_round = function()
387407
G.GAME.interest_cap = cry_best_interest_cap() -- blehhhhhh
408+
--Semicolon Stuff
388409
if G.GAME.current_round.semicolon then
389410
add_round_eval_row({ dollars = 0, name = "blind1", pitch = 0.95, saved = true })
390411
G.E_MANAGER:add_event(Event({

0 commit comments

Comments
 (0)