summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-04 12:29:27 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-04 12:29:27 -0300
commit133d8d7c35b98aca5eab52fe811dda9c6d7871f0 (patch)
treed86f2c4a5847ccf541febae72fcb45ec8a00bd6b /npc/functions
parent1afbf822b6c1ba0689d0ae13670d26bc888ae77d (diff)
downloadserverdata-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.txt12
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!