aboutsummaryrefslogtreecommitdiff
path: root/go/game/permanent.go
Commit message (Collapse)AuthorAgeFilesLines
* switch exp/slices to slices moduleFlorian Fischer2025-09-031-2/+1
|
* use slog and add game log handler callbackFlorian Fischer2025-08-201-2/+2
|
* format permanents without a tileFlorian Fischer2025-08-201-0/+3
| | | | This is relevant during pile drops for example.
* fix armor parsing and effective XEffect calculationFlorian Fischer2025-08-201-5/+13
|
* implement mace and add damage dealt events/triggersFlorian Fischer2025-08-201-16/+10
|
* make fmtFlorian Fischer2025-08-201-1/+0
|
* update missionaryFlorian Fischer2025-08-201-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-201-0/+1
|
* make formatFlorian Fischer2025-08-201-1/+0
|
* support unit state marksFlorian Fischer2025-08-201-5/+2
|
* improve x-effect parsingFlorian Fischer2025-08-201-13/+31
|
* add doc stringFlorian Fischer2025-08-201-0/+1
|
* implement house tile effectFlorian Fischer2025-08-201-1/+18
|
* fix king map preparationFlorian Fischer2025-08-201-0/+3
|
* introduce game.State interface abstractionFlorian Fischer2025-08-201-2/+2
| | | | | This allows to not use the internal game state directly from client code.
* get position from containing permanentFlorian Fischer2025-08-201-3/+3
|
* intermediate commitFlorian Fischer2025-08-201-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-08-201-9/+7
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* export less methodsFlorian Fischer2025-08-201-40/+40
|
* implement unit and artifact switch actionFlorian Fischer2025-08-201-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-08-201-0/+4
|
* replace Fatalf with PanicfFlorian Fischer2025-08-201-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-08-201-0/+9
| | | | | The NPE is caused by any piled permanent with which TilesInRange is called.
* intermediate commitFlorian Fischer2025-08-201-3/+3
|
* clear pile when dropping itFlorian Fischer2025-08-201-1/+1
|
* intermediate commitFlorian Fischer2025-08-201-39/+66
| | | | adding area effects and hooks for permanents entering and leaving tiles
* improve permanent pile supportFlorian Fischer2025-08-201-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-08-201-12/+40
| | | | | | * Introduce new callback for leaving a pile without beeing dropped * Fix equipment contrsuctor * Implement attack inheritance
* add equipments and pile hooksFlorian Fischer2025-08-201-1/+16
|
* intermediate commitFlorian Fischer2025-08-201-0/+131