Fix crashes, add ModifyAttackRange effects, ArchSpirit swap in deck editor
- Bazaar Deck tab crash: null-safe float conversion for usdPrice in store_item_row.gd - Leaderboard crash: freed-object guard in _on_leaderboard_ok (is_instance_valid check) - Add ModifyMinAttackRangeEffect / ModifyMaxAttackRangeEffect with clamp-to-0 and correct reversal tracking - AbilityBuilder: add new range effects to Stat Modification group + _amountOnlyTypes - collection.set_arch_spirit: new handler, request record, and service registration - Deck editor: show Tier-1 commander row with Change button + ArchSpirit picker panel Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -1105,8 +1105,9 @@
|
||||
[
|
||||
new("Damage & Healing", ["DealDamage", "Heal", "DealDamageToSelf", "DOT", "HOT"]),
|
||||
new("Stat Modification", ["ModifyHealth", "ModifyDefense", "ModifyDamage", "ModifyMP",
|
||||
"GrantAdditionalAttack", "SetAttackRange", "SetMovementType",
|
||||
"ModifyCost", "SetStatModMultiplier"]),
|
||||
"GrantAdditionalAttack", "SetAttackRange",
|
||||
"ModifyMinAttackRange", "ModifyMaxAttackRange",
|
||||
"SetMovementType", "ModifyCost", "SetStatModMultiplier"]),
|
||||
new("Player Resources", ["ModifySP", "ModifyST", "ModifyCardsDrawnPerTurn", "ModifySPAccumulation"]),
|
||||
new("Unit Flags", ["SetCanMove", "SetCanAttack", "SetCanDefend", "SetCanBeAttacked",
|
||||
"SetCanBeBlocked", "SetCanBeObstructed", "SetCanUseAbility", "SetCanBeSacrificed"]),
|
||||
@@ -1142,7 +1143,8 @@
|
||||
// ── Effect type categories for rendering ─────────────────────────────────────
|
||||
|
||||
private static readonly HashSet<string> _amountBypassTypes = ["DealDamage", "DealDamageToSelf"];
|
||||
private static readonly HashSet<string> _amountOnlyTypes = ["Heal", "ModifyDamage", "ModifySP", "ModifyST", "ModifyCardsDrawnPerTurn", "ModifySPAccumulation"];
|
||||
private static readonly HashSet<string> _amountOnlyTypes = ["Heal", "ModifyDamage", "ModifySP", "ModifyST", "ModifyCardsDrawnPerTurn", "ModifySPAccumulation",
|
||||
"ModifyMinAttackRange", "ModifyMaxAttackRange"];
|
||||
private static readonly HashSet<string> _amountStatTypes = ["ModifyHealth", "ModifyDefense", "ModifyMP"];
|
||||
private static readonly HashSet<string> _valueTypes = [
|
||||
"SetCanMove", "SetCanAttack", "SetCanDefend", "SetCanBeAttacked",
|
||||
|
||||
Reference in New Issue
Block a user