summaryrefslogtreecommitdiff
path: root/npc/014-5-1/sagratha.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-16 23:43:53 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-16 23:43:53 -0300
commit1ad03f3cdca3fc747c7be66911621c8f57b8d8d4 (patch)
tree7d5b735dd716d0ae56e6eee0ec266d01d6c5d043 /npc/014-5-1/sagratha.txt
parent508c75860c19527a4481b022ebe5bdf26ed87de6 (diff)
downloadserverdata-1ad03f3cdca3fc747c7be66911621c8f57b8d8d4.tar.gz
serverdata-1ad03f3cdca3fc747c7be66911621c8f57b8d8d4.tar.bz2
serverdata-1ad03f3cdca3fc747c7be66911621c8f57b8d8d4.tar.xz
serverdata-1ad03f3cdca3fc747c7be66911621c8f57b8d8d4.zip
Use limit() instead of max(min()) where appliable
Diffstat (limited to 'npc/014-5-1/sagratha.txt')
-rw-r--r--npc/014-5-1/sagratha.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/014-5-1/sagratha.txt b/npc/014-5-1/sagratha.txt
index c06615f2f..c22cf5d75 100644
--- a/npc/014-5-1/sagratha.txt
+++ b/npc/014-5-1/sagratha.txt
@@ -7,7 +7,7 @@
// SaggyScoreUpdate( amount )
function script SaggyScoreUpdate {
.@val=getarg(0);
- SAGRATHA_SCORE=max(-50, min(50, SAGRATHA_SCORE+.@val));
+ SAGRATHA_SCORE=limit(-50, SAGRATHA_SCORE+.@val, 50);
return;
}