Open
Conversation
|
現実的な数値のダメージ、魔法防御力での数値テストを行い、想定されたダメージが正常に与えられていることを確認しました ただし、今後実装が考えられる魔法ダメージ(スキルダメージ)に極端に強いボスを想定してのテストでは演算誤差が見られました MagicDefenseが1000程度であれば正常にダメージを計算できることを確認したため、実際の運用時にMagicDefenseを極端に大きくしないように仕様を決めておくのが良いと思われます 予想としては仕様上でDamageReductionRatioと表記される値が限りなく0に近づくことで精度が落ちていると予想されますが、これを仕様としておくことで魔法ダメージ完全無効のモブを実装することも出来そうです |
Tito5e
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
チケット URL
GH-996
対応内容・対応背景・妥協点
魔法ダメージをコマンドで軽減する処理を追加
やったこと
→ コマンドでdamageコマンドの値を変える必要がある
やってないこと
テスト
entity:damage/apply/core/get_magic_defenseの4行目に以下のコマンドを追加してプレイヤーの魔法防御力を調整してくださいチェックリスト (ガイドライン)