diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-02-18 09:20:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-02-18 09:20:53 -0300 |
commit | 3c96d61b3d5c590bfab94131e6b8488a9f38c3b4 (patch) | |
tree | 22aef2aac3c24fd607d682c5cd283c86d5e0c201 /npc | |
parent | 54b55ba3cb06df65a0e00956fd85ae0d49fa8e73 (diff) | |
download | serverdata-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')
-rw-r--r-- | npc/functions/honor.txt | 5 |
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) |