diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-16 23:43:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-16 23:43:53 -0300 |
commit | 1ad03f3cdca3fc747c7be66911621c8f57b8d8d4 (patch) | |
tree | 7d5b735dd716d0ae56e6eee0ec266d01d6c5d043 /npc/014-5-1/sagratha.txt | |
parent | 508c75860c19527a4481b022ebe5bdf26ed87de6 (diff) | |
download | serverdata-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.txt | 2 |
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; } |