From 790e9c80f391a3cb394ec77c911b3d112ae28bc0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 22 Jan 2020 23:19:13 -0300 Subject: Start making battle rating in something remotely useful --- npc/functions/honor.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'npc/functions/honor.txt') 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); } -- cgit v1.2.3-70-g09d2