summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/honor.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/npc/functions/honor.txt b/npc/functions/honor.txt
index 6fdc86e67..0bb0d0803 100644
--- a/npc/functions/honor.txt
+++ b/npc/functions/honor.txt
@@ -68,11 +68,10 @@ function script calc_HR {
.@overpower=.@atk-.@def;
// Dishonorable: You used 15 levels above target, or target < level 30
- // TODO: Fixed honor points (eg. honorable = 10 points, dishonorable = -5)
if (.@overpower > 15 || .@def < 30) {
- .@honor=-(BaseLevel/4);
+ .@honor=-(limit(1, .@overpower-15, 15));
} else {
- .@honor=BaseLevel/4;
+ .@honor=limit(1, -(.@overpower)+15, 20);
}
// Log cooldown (30 minutes)