summaryrefslogtreecommitdiff
path: root/npc/functions/honor.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-23 21:40:26 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-23 21:40:26 -0300
commit5147ff2436d787c511009c4b31f468dc26b9b089 (patch)
tree580ed72f85ccbaaae3f33184fc6571433abb2404 /npc/functions/honor.txt
parent1912de6f9352e0c4713c5c22f0866e85b346b34c (diff)
downloadserverdata-5147ff2436d787c511009c4b31f468dc26b9b089.tar.gz
serverdata-5147ff2436d787c511009c4b31f468dc26b9b089.tar.bz2
serverdata-5147ff2436d787c511009c4b31f468dc26b9b089.tar.xz
serverdata-5147ff2436d787c511009c4b31f468dc26b9b089.zip
Warn that the formula will burn with :fire: in future.
BR now takes in account only base stats and damage. We still need to detect glass sacrifices.
Diffstat (limited to 'npc/functions/honor.txt')
-rw-r--r--npc/functions/honor.txt9
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;