diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-02-04 12:29:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-02-04 12:29:27 -0300 |
commit | 133d8d7c35b98aca5eab52fe811dda9c6d7871f0 (patch) | |
tree | d86f2c4a5847ccf541febae72fcb45ec8a00bd6b /npc/functions | |
parent | 1afbf822b6c1ba0689d0ae13670d26bc888ae77d (diff) | |
download | serverdata-133d8d7c35b98aca5eab52fe811dda9c6d7871f0.tar.gz serverdata-133d8d7c35b98aca5eab52fe811dda9c6d7871f0.tar.bz2 serverdata-133d8d7c35b98aca5eab52fe811dda9c6d7871f0.tar.xz serverdata-133d8d7c35b98aca5eab52fe811dda9c6d7871f0.zip |
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.
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/hub.txt | 12 |
1 files 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! |