summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-23 21:40:26 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-23 21:40:26 -0300
commit5147ff2436d787c511009c4b31f468dc26b9b089 (patch)
tree580ed72f85ccbaaae3f33184fc6571433abb2404 /npc/functions
parent1912de6f9352e0c4713c5c22f0866e85b346b34c (diff)
downloadserverdata-5147ff2436d787c511009c4b31f468dc26b9b089.tar.gz
serverdata-5147ff2436d787c511009c4b31f468dc26b9b089.tar.bz2
serverdata-5147ff2436d787c511009c4b31f468dc26b9b089.tar.xz
serverdata-5147ff2436d787c511009c4b31f468dc26b9b089.zip
Warn that the formula will burn with :fire: in future.
BR now takes in account only base stats and damage. We still need to detect glass sacrifices.
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/honor.txt9
-rw-r--r--npc/functions/scoreboards.txt2
2 files changed, 9 insertions, 2 deletions
diff --git a/npc/functions/honor.txt b/npc/functions/honor.txt
index 8ebe86cd8..97a79a31c 100644
--- a/npc/functions/honor.txt
+++ b/npc/functions/honor.txt
@@ -25,6 +25,10 @@ function script get_BR {
// 6 BR per level
.@br+=BaseLevel*6;
+
+ // 1 BR for 5 DMG points (average)
+ .@br+=(battleparam(UDT_ATKMIN)+battleparam(UDT_ATKMAX))/5;
+ .@br+=battleparam(UDT_MATKMAX)/5;
} else {
Exception("GET_BR INVALID RID "+.@rid, RB_DEBUGMES|RB_IRCBROADCAST);
}
@@ -50,10 +54,11 @@ function script calc_HR {
// Dishonorable: You used maxop above cbase
// Maybe we should use level difference?
+ // FIXME
if (.@overpower > .@cbase+.@maxop) {
- .@honor=-(0);
+ .@honor=-(BaseLevel/4);
} else {
- .@honor=0;
+ .@honor=BaseLevel/4;
}
return .@honor;
diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt
index 86bccdd86..eab2a0514 100644
--- a/npc/functions/scoreboards.txt
+++ b/npc/functions/scoreboards.txt
@@ -227,6 +227,8 @@ function script HallOfUDT {
function script HallOfHonor {
mes "";
mes l("##BHall Of Honor: TOP 10##b");
+ mesc l("WARNING: This is experimental!!"), 1;
+ mesc l("We may delete all entries and change formulas in the future."), 1;
mes("1."+$@hof_name$[0]+" ("+$@hof_value[0]+")");
mes("2."+$@hof_name$[1]+" ("+$@hof_value[1]+")");
mes("3."+$@hof_name$[2]+" ("+$@hof_value[2]+")");