From 13c26f1c4ecea2944cf04cceb558243142c0af28 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 17 May 2020 14:30:58 -0300 Subject: Actually, move this to utils. Will look cleaner this way. --- npc/functions/util.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'npc/functions/util.txt') diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 98d96336e..5ac5beda7 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -578,6 +578,16 @@ function script nard_time { return INT_MAX; } +// Returns if an event is a ranked Aurora Event or not +// (Had to be moved from functions/aurora.txt) +function script FYEventUsesRanking { + setarray .@av$, "Expo", "Fishing"; + if (array_find(.@av$, $EVENT$) >= 0) { + return true; + } + return false; +} + // Determines if player is still in range. // eg. // if (reachable(.x, .y, .distance)) { -- cgit v1.2.3-70-g09d2