summaryrefslogtreecommitdiff
path: root/npc/functions/honor.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-23 21:42:59 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-23 21:42:59 -0300
commit76359f9526f426243a09df520ace1c7fb0fe6ada (patch)
tree8270cb8b737259ebbb71fecae558f14501a35605 /npc/functions/honor.txt
parent5147ff2436d787c511009c4b31f468dc26b9b089 (diff)
downloadserverdata-76359f9526f426243a09df520ace1c7fb0fe6ada.tar.gz
serverdata-76359f9526f426243a09df520ace1c7fb0fe6ada.tar.bz2
serverdata-76359f9526f426243a09df520ace1c7fb0fe6ada.tar.xz
serverdata-76359f9526f426243a09df520ace1c7fb0fe6ada.zip
Okay this will do as a fake BR formula
Diffstat (limited to 'npc/functions/honor.txt')
-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);
}