feat(phase2): ability revamp DB migration -- add SpiritToken, drop EffectsJson
- Add CardType.SpiritToken enum value (stored as text, no Postgres enum change) - Drop catalog.card_definitions.effects column (migration 20260419170135) with safety-pass to copy any remaining effects -> abilities before drop - Remove CardDefinition.EffectsJson property and CatalogDbContext mapping - Remove CardInstance.EffectsJson snapshot from GameState/GameEngine - Remove EffectsJson from all DTOs: UnitDelta, CardUpdateDto, ContentCardDto - Remove EffectsJson from GameStateDiffer, ContentDtoMapper, CardEditor, CardReport - Simplify AbilitySystem.FireCardEffects to use AbilitiesJson only (no fallback) - Enforce SpiritToken exclusion in CollectionAddCardHandler (deck builds) - Enforce SpiritToken exclusion in BazaarBuyBoosterPackHandler (pack draws) 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:
@@ -15,7 +15,7 @@ public enum AbilityType
|
||||
|
||||
/// <summary>
|
||||
/// The top-level definition of a unit ability or card effect.
|
||||
/// Stored as JSONB in CardDefinition.AbilitiesJson (array) and CardDefinition.EffectsJson.
|
||||
/// Stored as JSONB in CardDefinition.AbilitiesJson (array) for all card types.
|
||||
///
|
||||
/// All four ability types share the Action/Effect/Condition model.
|
||||
/// Type-specific fields are non-null only for the relevant type.
|
||||
|
||||
Reference in New Issue
Block a user