Skip to content

👽️ [Artifact 3, 7] 信仰の判定を is_believe の predicate から本体の API に置き換える - #2225

Merged
EllaCoat merged 3 commits into
masterfrom
fix/ella_believe-tag
Nov 3, 2026
Merged

EllaCoat merged 3 commits into
masterfrom
fix/ella_believe-tag

Conversation

@EllaCoat

@EllaCoat EllaCoat commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

概要

ProjectTSB/TheSkyBlessing#2330 で信仰の predicate player_manager:is_believe/* を消すのに合わせ、神器 0003・0007 の信仰判定を本体の API api:entity/player/is_believe/* に置き換えた。

主な変更

信仰を見る 2 つの神器の判定を、execute if function で API を呼んで行うようにした。

  • 人間性(0003)が Nyaptov 信者かを見る所と、窒素固定器(0007)が信仰神で渡すアイテムを決める所を API で判定するようにした
  • この 2 か所では DevPrivilege を持つ人も実際の信仰どおりに判定するようにした
  • 前は DevPrivilege を持つと全柱の信者扱いで、0003 は信仰に関係なく死に、0007 は必ず骨粉を渡していた

動作確認

実サーバーで変更前(master)と比べ、DevPrivilege を持たない人はすべての信仰で同じ結果だった。

  • 0003 が Nyaptov の処理に入るか、0007 が火薬と骨粉のどちらを渡すかを、6 通りの信仰で確かめた
  • DevPrivilege を持つ人では、0003 は Nyaptov 信者だけが Nyaptov の処理に入り、0007 は信仰どおりのアイテムを渡した

未対応・注意

ProjectTSB/TheSkyBlessing#2330 を先に merge し、declares が作り直されたら、この PR の CI をやり直してから merge する。

  • 今の declares に新しい API が無いので、lint は解決できない関数 7 件で落ちている
  • declares.d は bot が作り直すので、この PR では触っていない
  • 🍱 [Artifact 1287] 叛神の剣を作成 #1301(叛神の剣)も is_believe/null を使っていて、api:entity/player/is_believe/none への書き換えが要る

@EllaCoat
EllaCoat marked this pull request as ready for review November 2, 2026 11:12
Copilot AI balanced review requested due to automatic review settings November 2, 2026 11:12

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@tatuharu tatuharu 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.

このレビューはハルがAI自動レビューの動作テストのためにOpus5.5 Extra Highを使用してレビューを行なったものです。鵜呑みにせず、指摘を採用するかはお任せします。

指摘はありません。

@EllaCoat
EllaCoat enabled auto-merge (squash) November 2, 2026 11:29
@EllaCoat EllaCoat changed the title 👽️ [Artifact 3, 7] 信仰の判定を is_believe の predicate から tag の絞り込みに置き換える 👽️ [Artifact 3, 7] 信仰の判定を is_believe の predicate から本体の API に置き換える Nov 3, 2026
@EllaCoat
EllaCoat merged commit 61eed2b into master Nov 3, 2026
3 checks passed
@EllaCoat
EllaCoat deleted the fix/ella_believe-tag branch November 3, 2026 10: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