diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-02-04 12:28:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-02-04 12:28:22 -0300 |
commit | 1afbf822b6c1ba0689d0ae13670d26bc888ae77d (patch) | |
tree | a78250c3f77c254565874d4073f54e73d1c82b88 /npc/functions | |
parent | 0d5aea7a6d8cfdc32db34673f92945e4dcbae291 (diff) | |
download | serverdata-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.txt | 4 |
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! } |