Skip to content

🔥 ダメージの最低保証を削除#2282

Open
Lapis-LJA wants to merge 2 commits into
masterfrom
fix/lapis_damage_min
Open

🔥 ダメージの最低保証を削除#2282
Lapis-LJA wants to merge 2 commits into
masterfrom
fix/lapis_damage_min

Conversation

@Lapis-LJA

Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines -50 to -57
# 最低値設定
# $Modifier(e2) = max($Modifier(e2), (0.45 - $Difficulty * 0.10) * e2, 0)
function api:global_vars/get_difficulty
execute store result score $Difficulty Temporary run data get storage api: Return.Difficulty 10
scoreboard players operation $Difficulty Temporary *= $-1 Const
scoreboard players add $Difficulty Temporary 45
scoreboard players operation $Difficulty Temporary > $0 Const
scoreboard players operation $Modifier Temporary > $Difficulty Temporary

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.

MUST

  • 最小値を 0 にする必要はありそう(バランスどうこうではなく、API の実装として)

@Lapis-LJA Lapis-LJA requested a review from haiiro2gou July 2, 2026 12:17

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

このPRは、ダメージ補正計算(api:damage/core/modify_damage.m)に入っていた「難易度に基づく最低保証」ロジックを削除し、補正値が負にならない範囲でのみ下限を適用する形に整理する変更です。

Changes:

  • 難易度(Return.Difficulty)を参照して最低補正値を計算する処理を削除
  • 補正値 $Modifier の下限を 0 にクランプする処理のみに簡略化

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

Comment on lines +50 to +51
# 最低保証を0とする
scoreboard players operation $Modifier Temporary > $0 Const

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

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