aboutsummaryrefslogtreecommitdiff
path: root/go/game/cardImplementations.go
Commit message (Collapse)AuthorAgeFilesLines
* add naive spear implementationFlorian Fischer2025-08-061-0/+13
|
* fix recruiter target descFlorian Fischer2025-08-061-1/+1
|
* update missionaryFlorian Fischer2025-08-061-6/+5
| | | | | | | Limit the range of the missionary's full action but increase its effectivnes. The missionary could only really be used unthreatened over multiple turns. Since any unit can be disbanded during upkeep before it is evangelized, the missionary is only a slow destroy effect. Now it is way more potent controlling cheaper units with the first action but it has to be close to the enemy unit making it more vulnerable.
* add support for flexible attacksFlorian Fischer2025-08-051-2/+9
|
* export tile neutralizingFlorian Fischer2025-07-031-2/+2
|
* add clownfish implementationFlorian Fischer2025-01-271-0/+16
|
* introduce game.State interface abstractionFlorian Fischer2025-01-271-37/+37
| | | | | This allows to not use the internal game state directly from client code.
* pass the PlayAction to the cards onPlay implementationsFlorian Fischer2025-01-271-51/+63
| | | | | This is done to propagate the chosen variadic play cost to the card implementation.
* implement appear!Florian Fischer2025-01-271-0/+18
|
* fix some kraken card implementationsFlorian Fischer2025-01-271-2/+7
| | | | | * Devour the Poor!: Check if a card is buyable * Frost Pylon: Only spawn on free tiles
* add death trigger to flyingDutchmenImplFlorian Fischer2025-01-271-4/+12
|
* add illusionist implementationFlorian Fischer2025-01-271-0/+28
|
* support parsing variadic costsFlorian Fischer2025-01-271-2/+2
| | | | | TODO: * select the variadic components * test the costs type
* cardImplementations: fix use of wrong nested structFlorian Fischer2025-01-271-18/+12
|
* implement equipment with next unit play optionFlorian Fischer2025-01-271-3/+3
| | | | Also make more state methods private.
* implement playTargets for tentacleSlapImpl to fix segfaultFlorian Fischer2025-01-271-0/+2
|
* intermediate commitFlorian Fischer2025-01-271-1/+3
| | | | | | * use names for pile perm choice * fix PocList hover segfault * prevent mysterius autogenerated playTargets segfault
* intermediate commitFlorian Fischer2025-01-271-7/+195
| | | | | | | | | | | * Implement move artifact action * Fix widget update memory leak * update the highlights not during on each frame * do not update the unchanged label of a button * Allow to exit the game by pressing 'q' * Implement some cards from the magic set * Improve permanent formatting * Some tweaks to UnitAI code
* implement target disjunction and fix artifact constraintFlorian Fischer2025-01-271-3/+1
|
* intermeditae commitFlorian Fischer2025-01-271-0/+22
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* implement equip actionFlorian Fischer2025-01-271-2/+14
|
* export less methodsFlorian Fischer2025-01-271-11/+11
|
* fix ai NPE when selecting a unit where to spawn frost pylonFlorian Fischer2025-01-271-1/+2
| | | | | The NPE is caused by any piled permanent with which TilesInRange is called.
* implement the basics of the rest of the base cardsFlorian Fischer2025-01-271-0/+102
| | | | | * Add more TODOs * Implement permanents granting more spawn tiles
* intermediate commitFlorian Fischer2025-01-271-41/+15
| | | | | | | | | | | | * fix a lot of target and action bugs * check target selection before adding it to the prompt * use the store view for stores on the map * fix card highlighting in CardGrid * Only prompt for Upkeep-/DiscardActions if appropriate * Add helper for areaEffects granting new FullActions * Add Target() helper selecting the first target to the Action interface * Fix BuyAction and DiscardAction targets * Remember the stores a player has seen
* intermediate commitFlorian Fischer2025-01-271-4/+7
|
* intermediate commitFlorian Fischer2025-01-271-20/+36
| | | | | | * detect tokens and do not add them to pile of cards * only add spells not already in exile to their owners discard pile * add the played card to onPlay callback
* implement most of nautics cardsFlorian Fischer2025-01-271-13/+108
|
* kraken: implement suprise!Florian Fischer2025-01-271-7/+7
|
* intermediate commitFlorian Fischer2025-01-271-33/+199
| | | | | | * implement most of the kraken cards * unify permanent marks * add state based actions hook for card implementations
* add simple spell supportFlorian Fischer2025-01-271-0/+10
|
* fix some warnings reported by golang-ciFlorian Fischer2025-01-271-2/+2
|
* improve permanent pile supportFlorian Fischer2025-01-271-1/+1
| | | | | | * Fix alot of bugs caused by permanents without tiles * Implement a permanent choice to select the permanents in a pile * Fix how pile hooks are called
* change unit attack representation and implement swordFlorian Fischer2025-01-271-0/+17
|
* intermediate commitFlorian Fischer2025-01-271-4/+29
|
* intermediate commitFlorian Fischer2025-01-271-0/+31