Skip to content

🚸 MessageLibの神器の使用不可メッセージにクールダウンを設定#2270

Merged
haiiro2gou merged 6 commits into
masterfrom
fix/lapis_lib_message_artifact_cd
May 30, 2026
Merged

🚸 MessageLibの神器の使用不可メッセージにクールダウンを設定#2270
haiiro2gou merged 6 commits into
masterfrom
fix/lapis_lib_message_artifact_cd

Conversation

@Lapis-LJA

Copy link
Copy Markdown
Contributor

トースター作ってて喧しいと思ったため
ずっと前にSina-TK作ってた時にはいいろ氏がやろうとしてた気がする

@EllaCoat EllaCoat left a comment

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.

コード的には大丈夫。
設計判断は任せました、マージ担当者よ。

@haiiro2gou haiiro2gou left a comment

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.

よさそうにみえる

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

神器使用失敗時に表示されるメッセージ(lib:message/artifact/*)が連打されると煩いため、プレイヤー単位で20ティックのクールダウンを設けて抑制する変更です。各メッセージ関数に同型のクールダウン処理を追加し、対応するスコアボードオブジェクティブを core:load_once で登録しています。

Changes:

  • 3つのメッセージ関数 (can_not_use_here / condition_not_met / dont_have_require_items) に storage global Time@s ...LatestLogTick の差分による20tクールダウン判定を追加。
  • 上記で使用する CannotUseHereLatestLogTick / ConditionNotMetLatestLogTick / DontHaveRequiredItemsLatestLogTick の3つの dummy objective を load_once.mcfunction で登録。

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
TheSkyBlessing/data/lib/functions/message/artifact/can_not_use_here.mcfunction tellraw を20tクールダウンでガード。前回ログ時刻を CannotUseHereLatestLogTick に保存。
TheSkyBlessing/data/lib/functions/message/artifact/condition_not_met.mcfunction 同上、ConditionNotMetLatestLogTick を使用。
TheSkyBlessing/data/lib/functions/message/artifact/dont_have_require_items.mcfunction 同上、DontHaveRequiredItemsLatestLogTick を使用。
TheSkyBlessing/data/core/functions/load_once.mcfunction 上記3つの dummy objective を登録。

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@haiiro2gou haiiro2gou merged commit 963b137 into master May 30, 2026
3 checks passed
@haiiro2gou haiiro2gou deleted the fix/lapis_lib_message_artifact_cd branch May 30, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants