diff options
author | Haru <haru@dotalux.com> | 2014-11-02 01:30:33 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-11-02 01:34:58 +0100 |
commit | 6b20c5b6988c889df35b890d93c338f8b87fa430 (patch) | |
tree | 470f3ae3255ed4211687db27b2d187c6f03fde0f /npc/dev/test.txt | |
parent | 19e6b0f9de7280770f0dd98d9431d3337b9a6e7c (diff) | |
download | hercules-6b20c5b6988c889df35b890d93c338f8b87fa430.tar.gz hercules-6b20c5b6988c889df35b890d93c338f8b87fa430.tar.bz2 hercules-6b20c5b6988c889df35b890d93c338f8b87fa430.tar.xz hercules-6b20c5b6988c889df35b890d93c338f8b87fa430.zip |
Added min() and max() script commands
- Special thanks to Streusel, Xgear
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/dev/test.txt')
-rw-r--r-- | npc/dev/test.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/dev/test.txt b/npc/dev/test.txt index f9e4fc410..7b498e922 100644 --- a/npc/dev/test.txt +++ b/npc/dev/test.txt @@ -565,6 +565,10 @@ function script HerculesSelfTestHelper { callsub(OnCheck, "array shrink", .@x[1], 0); callsub(OnCheck, "array shrink and getarraysize", getarraysize(.@x), 0); + // min and max + callsub(OnCheck, "min()", min(5, -10, 8, 3, -2, 1000), -10); + callsub(OnCheck, "max()", max(5, -10, 8, 3, -2, 1000), 1000); + // Constants callsub(OnCheck, "'true' constant", true, 1); |