aboutsummaryrefslogtreecommitdiff
path: root/go/game/permanent.go
Commit message (Collapse)AuthorAgeFilesLines
* update missionaryFlorian Fischer2025-08-061-0/+6
| | | | | | | 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.
* consider houses when determining damage for a tileFlorian Fischer2025-08-061-0/+1
|
* make formatFlorian Fischer2025-07-301-1/+0
|
* support unit state marksFlorian Fischer2025-07-281-5/+2
|
* improve x-effect parsingFlorian Fischer2025-07-241-13/+31
|
* add doc stringFlorian Fischer2025-07-221-0/+1
|
* implement house tile effectFlorian Fischer2025-07-221-1/+18
|
* fix king map preparationFlorian Fischer2025-07-221-0/+3
|
* introduce game.State interface abstractionFlorian Fischer2025-01-271-2/+2
| | | | | This allows to not use the internal game state directly from client code.
* get position from containing permanentFlorian Fischer2025-01-271-3/+3
|
* intermediate commitFlorian Fischer2025-01-271-18/+61
| | | | | | | | | | | * 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
* intermeditae commitFlorian Fischer2025-01-271-9/+7
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* export less methodsFlorian Fischer2025-01-271-40/+40
|
* implement unit and artifact switch actionFlorian Fischer2025-01-271-0/+9
| | | | | | | | | | Simplify the Choice Widget and make it a TextBox variant. Drive-by fixes: * ui.Collection: prioritize newer widgets during active widget selection * game.FullAction: fix incorrect cost function. Full actions cost all available actions. Also fix the cost check
* client: use only the currently available actions in the action choiceFlorian Fischer2025-01-271-0/+4
|
* replace Fatalf with PanicfFlorian Fischer2025-01-271-1/+1
| | | | Panicf includes a stacktrace and causes a debugger to halt.
* fix ai NPE when selecting a unit where to spawn frost pylonFlorian Fischer2025-01-271-0/+9
| | | | | The NPE is caused by any piled permanent with which TilesInRange is called.
* intermediate commitFlorian Fischer2025-01-271-3/+3
| | | | | | | | | | | | * 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
* clear pile when dropping itFlorian Fischer2025-01-271-1/+1
|
* intermediate commitFlorian Fischer2025-01-271-43/+50
| | | | | | * implement most of the kraken cards * unify permanent marks * add state based actions hook for card implementations
* intermediate commitFlorian Fischer2025-01-271-0/+20
| | | | adding area effects and hooks for permanents entering and leaving tiles
* improve permanent pile supportFlorian Fischer2025-01-271-6/+13
| | | | | | * 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
* support crewingFlorian Fischer2025-01-271-12/+40
| | | | | | * Introduce new callback for leaving a pile without beeing dropped * Fix equipment contrsuctor * Implement attack inheritance
* add equipments and pile hooksFlorian Fischer2025-01-271-1/+16
|
* intermediate commitFlorian Fischer2025-01-271-1/+6
|
* intermediate commitFlorian Fischer2025-01-271-34/+80
|
* intermediate commitFlorian Fischer2025-01-271-0/+9
|
* intermediate commitFlorian Fischer2025-01-271-1/+1
| | | | | * Add static analysis and improve Makefile * Implement hints from static code analysis
* reformat using gofmtpFlorian Fischer2025-01-271-0/+5
|
* intermediate commitFlorian Fischer2025-01-271-2/+58
| | | | Implement actions and multiple ui widgets
* implement unit movementFlorian Fischer2025-01-271-4/+6
|
* intermediate commitFlorian Fischer2025-01-271-0/+8