summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-15 04:13:51 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-15 04:13:51 -0300
commit1f3aae21ccc3dfefbd8475ad25125da9b99163b4 (patch)
tree5e8ed079d8e8ead4fcaa0f47e385647f73021b1c /npc/functions
parentc01601b7efcd506981767c017b94e31cf676f718 (diff)
downloadserverdata-1f3aae21ccc3dfefbd8475ad25125da9b99163b4.tar.gz
serverdata-1f3aae21ccc3dfefbd8475ad25125da9b99163b4.tar.bz2
serverdata-1f3aae21ccc3dfefbd8475ad25125da9b99163b4.tar.xz
serverdata-1f3aae21ccc3dfefbd8475ad25125da9b99163b4.zip
Generate a new randomness seed everyday, and deploy it for every script.
Overrides default randomness from Hercules. (Previously, on my PC, the billions digit didn't vary. Now they vary.) Effects cannot be predicted. Hope for no overflows!
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/event.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/functions/event.txt b/npc/functions/event.txt
index 41096f344..33892439c 100644
--- a/npc/functions/event.txt
+++ b/npc/functions/event.txt
@@ -282,6 +282,11 @@ OnClock0000:
.@m=gettime(GETTIME_MONTH);
.@o=gettime(GETTIME_WEEKDAY); // Resets at 0 (sunday)
debugmes "A new day begins! Today is %02d/%02d", .@d, .@m;
+
+ // Override the server-wide randomness
+ resetrng();
+
+ // Initialize the event core
if ($@DEBUG_OD)
.@d=$@DEBUG_OD;
if ($@DEBUG_OM)