From 8c478bf8fb51cd5637c9c99975031de6e4e608fc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Apr 2021 23:57:58 -0300 Subject: Remove some possibly broken stuff. Hopefully now only shops/magic/warps broken --- npc/055-1/pumpkins.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'npc/055-1') diff --git a/npc/055-1/pumpkins.txt b/npc/055-1/pumpkins.txt index 8fc25eb3..d4c6150a 100755 --- a/npc/055-1/pumpkins.txt +++ b/npc/055-1/pumpkins.txt @@ -66,11 +66,8 @@ OnAppear: L_Destroy: disablenpc strnpcinfo(0); // makes the npc invisible, unclickable - addnpctimer .death_t, strnpcinfo(0) + "::OnReallyDestroy"; // schedule a respawn - end; - -OnReallyDestroy: - set .nodes[.i], get(.nodes[.i], "_N-Pumpkin") - 1, "_N-Pumpkin"; // tell the puppeteer we lost an egg + sleep(.death_t); + set(getvariableofnpc(.nodes[.i], "_N-Pumpkin"), get(.nodes[.i], "_N-Pumpkin") - 1); // tell the puppeteer we lost an egg destroy; -- cgit v1.2.3-60-g2f50