From 3c96d61b3d5c590bfab94131e6b8488a9f38c3b4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 18 Feb 2020 09:20:53 -0300 Subject: Honor points gain are now based on overpower status. --- npc/functions/honor.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'npc/functions/honor.txt') 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) -- cgit v1.2.3-60-g2f50