summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-04 12:28:22 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-04 12:28:22 -0300
commit1afbf822b6c1ba0689d0ae13670d26bc888ae77d (patch)
treea78250c3f77c254565874d4073f54e73d1c82b88 /npc/functions
parent0d5aea7a6d8cfdc32db34673f92945e4dcbae291 (diff)
downloadserverdata-1afbf822b6c1ba0689d0ae13670d26bc888ae77d.tar.gz
serverdata-1afbf822b6c1ba0689d0ae13670d26bc888ae77d.tar.bz2
serverdata-1afbf822b6c1ba0689d0ae13670d26bc888ae77d.tar.xz
serverdata-1afbf822b6c1ba0689d0ae13670d26bc888ae77d.zip
Handle that now Honor can be zero
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/hub.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 2dc883545..6569e3c75 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -293,9 +293,9 @@ function script HUB_PvP {
// It was a duel!
} else {
// Honorable Duel: HONOR +30%
- if (.@honor)
+ if (.@honor > 0)
HONOR+=max(1, .@honor*3/10);
- else
+ else if (.@honor < 0)
HONOR+=1;
// ^ Dishonorable duel, but was a duel!
}