summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-22 23:19:13 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-22 23:19:13 -0300
commit790e9c80f391a3cb394ec77c911b3d112ae28bc0 (patch)
tree5294945da04f84d72c5ae80cd12d9298715d752a /npc
parent7e2bf74ba8a0c7bf5529c001777579799617c9c4 (diff)
downloadserverdata-790e9c80f391a3cb394ec77c911b3d112ae28bc0.tar.gz
serverdata-790e9c80f391a3cb394ec77c911b3d112ae28bc0.tar.bz2
serverdata-790e9c80f391a3cb394ec77c911b3d112ae28bc0.tar.xz
serverdata-790e9c80f391a3cb394ec77c911b3d112ae28bc0.zip
Start making battle rating in something remotely useful
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/honor.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/npc/functions/honor.txt b/npc/functions/honor.txt
index 5ab2e42c8..0d1c0138d 100644
--- a/npc/functions/honor.txt
+++ b/npc/functions/honor.txt
@@ -15,7 +15,16 @@ function script get_BR {
// readbattleparam(.@rid)
// Or rather: battleparam()
if (attachrid(.@rid)) {
- .@br+=BaseLevel;
+ // 1 BR per allocated status point
+ .@br+=battleparam(UDT_STR);
+ .@br+=battleparam(UDT_AGI);
+ .@br+=battleparam(UDT_VIT);
+ .@br+=battleparam(UDT_DEX);
+ .@br+=battleparam(UDT_INT);
+ .@br+=battleparam(UDT_LUK);
+
+ // 6 BR per level
+ .@br+=BaseLevel*6;
} else {
Exception("GET_BR INVALID RID "+.@rid, RB_DEBUGMES|RB_IRCBROADCAST);
}