summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/honor.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/honor.txt b/npc/functions/honor.txt
index 97a79a31c..3b470bf63 100644
--- a/npc/functions/honor.txt
+++ b/npc/functions/honor.txt
@@ -29,6 +29,13 @@ function script get_BR {
// 1 BR for 5 DMG points (average)
.@br+=(battleparam(UDT_ATKMIN)+battleparam(UDT_ATKMAX))/5;
.@br+=battleparam(UDT_MATKMAX)/5;
+
+ // 8 BR for each attack range
+ .@br+=battleparam(UDT_ATKRANGE)*8;
+
+ // 1 BR for 10 DEF points
+ .@br+=battleparam(UDT_DEF)/10;
+ .@br+=battleparam(UDT_MDEF)/10;
} else {
Exception("GET_BR INVALID RID "+.@rid, RB_DEBUGMES|RB_IRCBROADCAST);
}