diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-24 20:05:27 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-07-28 18:03:10 +0200 |
| commit | d4e04a8736adb91c84323608b67bfa67c28f09cb (patch) | |
| tree | a3159b0a5c89dd754e84658ff59e02e433aaea30 /go/game/artifact.go | |
| parent | 76f79f077dbe3ccc7fe12d803231856396573e3a (diff) | |
| download | muhqs-game-d4e04a8736adb91c84323608b67bfa67c28f09cb.tar.gz muhqs-game-d4e04a8736adb91c84323608b67bfa67c28f09cb.zip | |
support unit state marks
Diffstat (limited to 'go/game/artifact.go')
| -rw-r--r-- | go/game/artifact.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/go/game/artifact.go b/go/game/artifact.go index 6c9cee9d..8c9b74e0 100644 --- a/go/game/artifact.go +++ b/go/game/artifact.go @@ -18,7 +18,13 @@ func NewArtifactFromPath(cardPath string, tile *Tile, owner *Player) *Artifact { func NewArtifact(card *Card, tile *Tile, owner *Player) *Artifact { a := &Artifact{ - permanentBase: permanentBase{card: card, tile: tile, owner: owner, controller: owner}, + permanentBase: permanentBase{ + card: card, + tile: tile, + owner: owner, + controller: owner, + marks: make(map[PermanentMark]int), + }, } effects := card.getEffects() |
