Skip to content

Add new Red/Green card and power models with Chinese (zhs) localization#1

Open
rayinls wants to merge 1 commit intomainfrom
codex/modify-neutronaegis-for-non-declining-armor
Open

Add new Red/Green card and power models with Chinese (zhs) localization#1
rayinls wants to merge 1 commit intomainfrom
codex/modify-neutronaegis-for-non-declining-armor

Conversation

@rayinls
Copy link
Owner

@rayinls rayinls commented Mar 14, 2026

Motivation

  • Add a set of Red and Green card and power implementations to expand playable cards and corresponding behaviors.
  • Provide Chinese (zhs) localization for all newly added cards and powers so the UI displays correct titles and descriptions.

Description

  • Added card model implementations for multiple Red cards including RedBattleTrance, RedBloodForBlood, RedCleave, RedClothesline, RedCombust, RedFireBreathing, RedHeavyBlade, RedMetallicize, RedPummel, RedSearingBlow, and RedShockwave, implementing their damage, power application, draw, multi-hit, exhaust, scaling, and upgrade behaviors.
  • Added Green card GreenCorpseExplosion which applies PoisonPower and a GreenCorpseExplosionPower that triggers an explosion on death dealing damage equal to the dead creature's max HP to enemies.
  • Implemented power model classes GreenCorpseExplosionPower, RedCombustPower, RedFireBreathingPower, and RedMetallicizePower to handle end-of-turn and trigger-based effects such as self-damage + AOE damage, damage on status/cursed draw, and grant block at end of turn.
  • Added Chinese localization files Localization/zhs/cards_green_custom.json, Localization/zhs/cards_red_custom.json, Localization/zhs/powers_green_custom.json, and Localization/zhs/powers_red_custom.json with titles and descriptions for the new cards and powers.

Testing

  • Performed a solution build using dotnet build to verify compilation of new classes and localization resources and the build completed successfully.
  • Executed the existing automated unit test suite with dotnet test and all tests passed.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant