Skip to content

✨ Killトリガーで超過ダメージを取得できるように#2173

Open
Lapis-LJA wants to merge 1 commit into
masterfrom
dev/lapis_lapis_over_damage
Open

✨ Killトリガーで超過ダメージを取得できるように#2173
Lapis-LJA wants to merge 1 commit into
masterfrom
dev/lapis_lapis_over_damage

Conversation

@Lapis-LJA
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Member

@haiiro2gou haiiro2gou left a comment

Choose a reason for hiding this comment

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

まあよさそう
隕石を落とさなくてよければ楽なんだけどな~~~

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Kill トリガーで「超過ダメージ(オーバーキル分)」を取得できるようにするため、Kill イベントのダメージ格納形式を拡張し、Health 減算時のクランプ処理を調整する変更です。

Changes:

  • Kill イベントの AmountBase/Over に分割して storage に格納
  • Mob への HP 減算処理で「Damage を Health にクランプする」処理を無効化し、超過分が Health に反映されるように変更

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
TheSkyBlessing/data/api/functions/damage/core/trigger_events/non-player/kill_and_death/kill.mcfunction Killed イベントに Amount.BaseAmount.Over を格納するように変更
TheSkyBlessing/data/api/functions/damage/core/health_subtract/non-player/.mcfunction overkill を発生させるため $Damage < $Health クランプをコメントアウト

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

Comment on lines +11 to +12
execute store result storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].ArtifactEvents.Killed[-1].Amount.Base double 0.01 run scoreboard players get $Damage Temporary
execute store result storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].ArtifactEvents.Killed[-1].Amount.Over double -0.01 run scoreboard players get $Health Temporary
data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].ArtifactEvents.Killed append value {Type: "api",IsVanilla:false}
execute store result storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].ArtifactEvents.Killed[-1].To int 1 run scoreboard players get $DamagerUUID Temporary
execute store result storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].ArtifactEvents.Killed[-1].Amount double 0.01 run scoreboard players get $Damage Temporary
execute store result storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].ArtifactEvents.Killed[-1].Amount.Base double 0.01 run scoreboard players get $Damage Temporary

# MobのHealthよりダメージが高い場合Healthに設定
scoreboard players operation $Damage Temporary < $Health Temporary
# scoreboard players operation $Damage Temporary < $Health Temporary
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.

3 participants