bug修复

This commit is contained in:
延皓 2022-07-26 08:15:36 +08:00
parent 3ce37c9abf
commit dfe06e506c

View File

@ -1,7 +1,7 @@
// 计分板模块扩展插件 // 计分板模块扩展插件
// 忽略假人分数 // 忽略假人分数
// **请勿修改文件名** // **请勿修改文件名**
global_app_version = '1.0-beta.1'; global_app_version = '1.0-beta.2';
__config() -> { __config() -> {
'scope' -> 'global', 'scope' -> 'global',
@ -104,7 +104,7 @@ delete_old() -> (
); );
restore_merge_old() -> ( restore_merge_old() -> (
merge_score('activation', 'fz.module.scoreboard.display.activation'); merge_score('activation', 'fz.module.scoreboard.display.activation');
merge_score('damageTaken', 'fz.module.scoreboard.display.damage_taken'); merge_score('damageTaken', 'fz.module.scoreboard.display.damage_taken');
merge_score('deathCounter', 'fz.module.scoreboard.display.death_count'); merge_score('deathCounter', 'fz.module.scoreboard.display.death_count');
@ -219,6 +219,19 @@ get_total_score_name_new(scoreboard) -> (
); );
recalculate_total_scores() -> ( 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); return(0);
); );
@ -237,6 +250,7 @@ recalculate_total_score(scoreboard, total_score_name_new) -> (
total_score total_score
); );
display_total_score(scoreboard); display_total_score(scoreboard);
print('已重新计算总分:' + scoreboard);
return(0); return(0);
); );
@ -250,10 +264,12 @@ display_total_score(scoreboard) -> (
); );
restore_from_stats() -> ( restore_from_stats() -> (
print('暂未开发');
return(0); return(0);
); );
merge_stat(scoreboard, ...stats) -> ( merge_stat(scoreboard, ...stats) -> (
print('暂未开发');
return(0); return(0);
); );