From 6b20c5b6988c889df35b890d93c338f8b87fa430 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 2 Nov 2014 01:30:33 +0100 Subject: Added min() and max() script commands - Special thanks to Streusel, Xgear Signed-off-by: Haru --- npc/dev/test.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'npc') 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); -- cgit v1.2.3-60-g2f50