summaryrefslogtreecommitdiff
path: root/npc/functions/honor.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-04 12:19:54 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-04 12:19:54 -0300
commit7ad63bedb74759ec9a162b451455d2955d4e3823 (patch)
treef9817fde589f89458f2bb5817364a67ec6855bca /npc/functions/honor.txt
parentaa8f332bc192afda8cbb4785ebdfa685e86c1292 (diff)
downloadserverdata-7ad63bedb74759ec9a162b451455d2955d4e3823.tar.gz
serverdata-7ad63bedb74759ec9a162b451455d2955d4e3823.tar.bz2
serverdata-7ad63bedb74759ec9a162b451455d2955d4e3823.tar.xz
serverdata-7ad63bedb74759ec9a162b451455d2955d4e3823.zip
Overpower is now based on level instead of BR. But the 30% rule still applies
Diffstat (limited to 'npc/functions/honor.txt')
-rw-r--r--npc/functions/honor.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/npc/functions/honor.txt b/npc/functions/honor.txt
index 015a40460..40f2d583e 100644
--- a/npc/functions/honor.txt
+++ b/npc/functions/honor.txt
@@ -58,13 +58,14 @@ function script get_BR {
// Calculate the Honor Points which are due
// calc_HR( get_BR(getcharid(3)), get_BR(killedrid) )
function script calc_HR {
- .@atk_br=getarg(0);
- .@def_br=getarg(1);
+ .@atk_br=get_BR(getarg(0));
+ .@def_br=get_BR(getarg(1));
.@cbase=1000;
.@maxop=300; // 30%
// Calculate how much (%) you've used above needed
- .@overpower=.@atk_br*.@cbase/.@def_br;
+ //.@overpower=.@atk_br*.@cbase/.@def_br;
+ .@overpower=readparam(BaseLevel, getarg(0))*.@cbase/readparam(BaseLevel, getarg(1));
// Dishonorable: You used maxop above cbase
// Maybe we should use level difference?