summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/hub.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 9fc9c9876..6bcda9ccb 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -263,7 +263,27 @@ function script HUB_PvP {
.@honor=calc_HR(.@atk, .@def);
.@m$=getmap();
+ // This is an official PVP Map
if (ispvpmap(.@m$)) {
+ // Honorable Death
+ if (.@honor) {
+ HONOR+=.@honor;
+ } else {
+ // Dishonorable... But... Legit?
+ if (is_bandit(killedrid))
+ HONOR+=1;
+ else
+ HONOR+=.@honor; // It's negative
+ }
+
+ // It was a duel!
+ } else {
+ // Honorable Duel: HONOR +30%
+ if (.@honor)
+ HONOR+=max(1, .@honor*3/10);
+ else
+ HONOR+=1;
+ // ^ Dishonorable duel, but was a duel!
}
// TODO: Start using readparam2() to read if the opponent was worthy