From dfe06e506c492c62b530e1c0cd71ae631727d6a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=B6=E7=9A=93?= <1214946206@qq.com> Date: Tue, 26 Jul 2022 08:15:36 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/fz_score.sc | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/scripts/fz_score.sc b/scripts/fz_score.sc index b0c4032..1bd2658 100644 --- a/scripts/fz_score.sc +++ b/scripts/fz_score.sc @@ -1,7 +1,7 @@ // 计分板模块扩展插件 // 忽略假人分数 // **请勿修改文件名!!** -global_app_version = '1.0-beta.1'; +global_app_version = '1.0-beta.2'; __config() -> { 'scope' -> 'global', @@ -104,7 +104,7 @@ delete_old() -> ( ); restore_merge_old() -> ( - + merge_score('activation', 'fz.module.scoreboard.display.activation'); merge_score('damageTaken', 'fz.module.scoreboard.display.damage_taken'); merge_score('deathCounter', 'fz.module.scoreboard.display.death_count'); @@ -219,6 +219,19 @@ get_total_score_name_new(scoreboard) -> ( ); recalculate_total_scores() -> ( + scoreboards = [ + 'fz.module.scoreboard.display.activation', + 'fz.module.scoreboard.display.damage_taken', + 'fz.module.scoreboard.display.death_count', + 'fz.module.scoreboard.display.dig_count', + 'fz.module.scoreboard.display.fishing_count', + 'fz.module.scoreboard.display.kill_count', + 'fz.module.scoreboard.display.trade_count', + 'fz.module.scoreboard.display.bedrock_broke_count', + 'fz.module.scoreboard.display.aviating_distance' + ]; + for(scoreboards,recalculate_total_score(_, get_total_score_name_new(_))); + print('完成!'); return(0); ); @@ -237,6 +250,7 @@ recalculate_total_score(scoreboard, total_score_name_new) -> ( total_score ); display_total_score(scoreboard); + print('已重新计算总分:' + scoreboard); return(0); ); @@ -250,10 +264,12 @@ display_total_score(scoreboard) -> ( ); restore_from_stats() -> ( + print('暂未开发'); return(0); ); merge_stat(scoreboard, ...stats) -> ( + print('暂未开发'); return(0); );