summaryrefslogtreecommitdiff
path: root/npc/functions/honor.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-18 09:20:53 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-18 09:20:53 -0300
commit3c96d61b3d5c590bfab94131e6b8488a9f38c3b4 (patch)
tree22aef2aac3c24fd607d682c5cd283c86d5e0c201 /npc/functions/honor.txt
parent54b55ba3cb06df65a0e00956fd85ae0d49fa8e73 (diff)
downloadserverdata-3c96d61b3d5c590bfab94131e6b8488a9f38c3b4.tar.gz
serverdata-3c96d61b3d5c590bfab94131e6b8488a9f38c3b4.tar.bz2
serverdata-3c96d61b3d5c590bfab94131e6b8488a9f38c3b4.tar.xz
serverdata-3c96d61b3d5c590bfab94131e6b8488a9f38c3b4.zip
Honor points gain are now based on overpower status.
Diffstat (limited to 'npc/functions/honor.txt')
-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)