From 5147ff2436d787c511009c4b31f468dc26b9b089 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 23 Jan 2020 21:40:26 -0300 Subject: 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. --- npc/functions/honor.txt | 9 +++++++-- npc/functions/scoreboards.txt | 2 ++ 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]+")"); -- cgit v1.2.3-70-g09d2