diff options
Diffstat (limited to 'npc/functions/honor.txt')
-rw-r--r-- | npc/functions/honor.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/npc/functions/honor.txt b/npc/functions/honor.txt index 8ebe86cd8..97a79a31c 100644 --- a/npc/functions/honor.txt +++ b/npc/functions/honor.txt @@ -25,6 +25,10 @@ function script get_BR { // 6 BR per level .@br+=BaseLevel*6; + + // 1 BR for 5 DMG points (average) + .@br+=(battleparam(UDT_ATKMIN)+battleparam(UDT_ATKMAX))/5; + .@br+=battleparam(UDT_MATKMAX)/5; } else { Exception("GET_BR INVALID RID "+.@rid, RB_DEBUGMES|RB_IRCBROADCAST); } @@ -50,10 +54,11 @@ function script calc_HR { // Dishonorable: You used maxop above cbase // Maybe we should use level difference? + // FIXME if (.@overpower > .@cbase+.@maxop) { - .@honor=-(0); + .@honor=-(BaseLevel/4); } else { - .@honor=0; + .@honor=BaseLevel/4; } return .@honor; |