aboutsummaryrefslogtreecommitdiff
path: root/go/game/permanent.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-08-17 15:16:01 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:57:39 +0200
commit9463ec4cb063f0bde03d0e1b2a650f5887ad29ff (patch)
tree035af855f260b7a9d4e63d0b5ad67000ad6e8ea1 /go/game/permanent.go
parent5f97fb7a1606908e99be97d67e5871d55067dac7 (diff)
downloadmuhqs-game-9463ec4cb063f0bde03d0e1b2a650f5887ad29ff.tar.gz
muhqs-game-9463ec4cb063f0bde03d0e1b2a650f5887ad29ff.zip
use slog and add game log handler callback
Diffstat (limited to 'go/game/permanent.go')
-rw-r--r--go/game/permanent.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/game/permanent.go b/go/game/permanent.go
index 5c105724..5e42973a 100644
--- a/go/game/permanent.go
+++ b/go/game/permanent.go
@@ -2,11 +2,11 @@ package game
import (
"fmt"
- "log"
"strings"
"golang.org/x/exp/slices"
+ "muhq.space/muhqs-game/go/log"
"muhq.space/muhqs-game/go/utils"
)
@@ -187,7 +187,7 @@ func (p *permanentBase) XEffect(effect string) (int, error) {
}
for _, e := range p.tmpEffects {
- log.Println(effect, e)
+ log.Debug("tmp xEffect", "effect", effect, "tmpEffect", e)
if !strings.Contains(e, effect) {
continue
}