Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# asset_manager:artifact/use/
# asset_manager:artifact/tick/
# core:tick/
# debug:artifact/cooldown/reset_all

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2つ目のコミット(b41accd)で関数を debug:artifact/cooldown_reset に改名しましたが、この @within には改名前の debug:artifact/cooldown/reset_all が残っています。PR の head にこの関数はなく、$ArtifactSpecialCooldown を書き換える debug:artifact/cooldown_reset(cooldown_reset.mcfunction の24行目)は、この宣言の公開範囲に含まれていません。

Suggested change
# debug:artifact/cooldown/reset_all
# debug:artifact/cooldown_reset

食い違いはコメント内の宣言だけにあり、ゲーム内の動作には表れないため、ゲーム内では確認していません。

#declare score_holder $ArtifactSpecialCooldown

#> Trigger検知用
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#> debug:artifact/cooldown_reset
#
# 実行者のすべての神器クールダウンを解消します
#
# @private
# @user

# 実行者が居ない場合エラー
execute unless entity @s[type=player] run return run tellraw @a [{"storage":"global","nbt":"Prefix.ERROR"},{"text": "実行者を指定してください。"}]

# LCD
# アイテムに付いた最終発動時刻を削除
data modify storage api: Argument.Inventory set from entity @s Inventory
data remove storage api: Argument.Inventory[].tag.TSB.LatestUseTick
function api:inventory/set
# プレイヤーのLCD状況データもリセット(何かしらの行動時にしか自動更新してくれないので)
function oh_my_dat:please
data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].LocalCoolDown[].Value set value -15

# TCD
data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].TypeCooldown set value []

#GCD
scoreboard players set $ArtifactSpecialCooldown Global 0
Loading