From 1afbf822b6c1ba0689d0ae13670d26bc888ae77d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 4 Feb 2020 12:28:22 -0300 Subject: Handle that now Honor can be zero --- npc/functions/hub.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/functions') 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! } -- cgit v1.2.3-60-g2f50