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:
@@ -16,6 +16,8 @@ using SOR.Database.Enums;
|
||||
[PolyType(typeof(ModifyMPEffect), "ModifyMP")]
|
||||
[PolyType(typeof(SetMovementTypeEffect), "SetMovementType")]
|
||||
[PolyType(typeof(SetAttackRangeEffect), "SetAttackRange")]
|
||||
[PolyType(typeof(ModifyMinAttackRangeEffect), "ModifyMinAttackRange")]
|
||||
[PolyType(typeof(ModifyMaxAttackRangeEffect), "ModifyMaxAttackRange")]
|
||||
[PolyType(typeof(ModifyCostEffect), "ModifyCost")]
|
||||
[PolyType(typeof(SetAffinityEffect), "SetAffinity")]
|
||||
[PolyType(typeof(GrantAdditionalAttackEffect), "GrantAdditionalAttack")]
|
||||
@@ -102,7 +104,9 @@ public sealed class ModifyDamageEffect : Effect { public ValueExpr Amount { get
|
||||
public sealed class ModifyMPEffect : Effect { public ValueExpr Amount { get; set; } = new(); public StatTarget StatTarget { get; set; } = StatTarget.Current; }
|
||||
|
||||
public sealed class SetMovementTypeEffect : Effect { public MovementType MovementType { get; set; } }
|
||||
public sealed class SetAttackRangeEffect : Effect { public int Min { get; set; } public int Max { get; set; } }
|
||||
public sealed class SetAttackRangeEffect : Effect { public int Min { get; set; } public int Max { get; set; } }
|
||||
public sealed class ModifyMinAttackRangeEffect : Effect { public ValueExpr Amount { get; set; } = new(); }
|
||||
public sealed class ModifyMaxAttackRangeEffect : Effect { public ValueExpr Amount { get; set; } = new(); }
|
||||
public sealed class ModifyCostEffect : Effect { public int? Sp { get; set; } public int? St { get; set; } }
|
||||
public sealed class SetAffinityEffect : Effect { public AffinityExpr Affinity { get; set; } = new(); }
|
||||
public sealed class GrantAdditionalAttackEffect : Effect { public int N { get; set; } = 1; }
|
||||
|
||||
Reference in New Issue
Block a user