From 133d8d7c35b98aca5eab52fe811dda9c6d7871f0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 4 Feb 2020 12:29:27 -0300 Subject: Overpower Safety. If it is "honorable", but you have over 200% Battle Rating....... ...Obviously the defender did little to no effort and I don't care with that. --- npc/functions/hub.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 6569e3c75..50cec28cd 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -281,7 +281,11 @@ function script HUB_PvP { if (ispvpmap(.@m$)) { // Honorable Death if (.@honor >= 0) { - HONOR+=.@honor; + // Overpower safety (200%) + if (.@atk > .@def*3) + HONOR+=1; + else + HONOR+=.@honor; } else { // Dishonorable... But... Legit? if (is_bandit(killedrid)) @@ -294,7 +298,11 @@ function script HUB_PvP { } else { // Honorable Duel: HONOR +30% if (.@honor > 0) - HONOR+=max(1, .@honor*3/10); + // Overpower safety (200%) + if (.@atk > .@def*3) + HONOR+=1; + else + HONOR+=max(1, .@honor*3/10); else if (.@honor < 0) HONOR+=1; // ^ Dishonorable duel, but was a duel! -- cgit v1.2.3-60-g2f50