LTCatt 5 лет назад
Родитель
Сommit
b96ddd436e

+ 0 - 2
data/ltw/functions/main/game_end.mcfunction

@@ -83,5 +83,3 @@ tellraw @a[tag=!watcher] ""
 schedule function ltw:state/0/state_enter 2t replace
 execute as @a at @s run function lib:sounds/theend
 forceload remove all
-
-# TODO: https://shimo.im/docs/8dQtWhYp8rJhRRWG

+ 1 - 0
data/ltw/functions/main/player_enter.mcfunction

@@ -22,6 +22,7 @@ execute if entity @s[tag=!watcher] if score @s game_id = $ game_id run function
 bossbar set ltw:notice players @a
 function lib:bossbar/show
 
+# TODO: https://shimo.im/docs/8dQtWhYp8rJhRRWG
 # FIXME: [010] 在 init 的时候也重置随机数组
 # FIXME: [010] 已确认确实可以用钓鱼竿获得两个奖励
 # TODO: [LTCat/HIM] 土豆的两个炸弹同时爆炸把两个人炸死,让他们俩并列第三(按存活回合数记分)

+ 3 - 2
data/ltw/functions/state/6/generate_bonus.mcfunction

@@ -5,8 +5,9 @@ kill @e[type=item]
 kill @e[type=arrow]
 kill @e[type=trident]
 
-#execute store result score #bonus_count mem if entity @a[tag=!watcher]
-scoreboard players set #bonus_count mem 8
+# 生成 玩家数+2 个奖励
+execute store result score #bonus_count mem if entity @a[tag=!watcher]
+scoreboard players add #bonus_count mem 2
 execute if score #bonus_count mem matches 1.. positioned 17.5 10.2 1967.5 run function item:bonus_item/gameparty/random
 execute if score #bonus_count mem matches 2.. positioned 19.5 10.2 1962.5 run function item:bonus_item/gameparty/random
 execute if score #bonus_count mem matches 3.. positioned 24.5 10.2 1960.5 run function item:bonus_item/gameparty/random