From eacc7a8967687e4a8a9189c695254883b4b9d3f2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 30 Jul 2024 13:07:48 -0300 Subject: Refactor this slightly weird logic --- npc/functions/seasons.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt index b3f4ce80b..d29f2c378 100644 --- a/npc/functions/seasons.txt +++ b/npc/functions/seasons.txt @@ -125,10 +125,10 @@ function script sEaster { addmonsterdrop(SmokeDragon, GoldenEasteregg, 7500); addmonsterdrop(SmokeDragon, SilverEasteregg, 9000); // Enable event - if (playerattached()) { + if (getarg(0, true)) set $EVENT$, "Easter"; + if (playerattached()) logmes "Enabled EASTER event.", LOGMES_ATCOMMAND; - } return; } @@ -218,7 +218,7 @@ function script SeasonReload { if ($EVENT$ == "Valentine") sValentine(); if ($EVENT$ == "Easter") - sEaster(); + sEaster(false); $@SEASON=season(); initnpctimer("#SeasonCore"); -- cgit v1.2.3-70-g09d2