aboutsummaryrefslogtreecommitdiff
path: root/order.go
diff options
context:
space:
mode:
Diffstat (limited to 'order.go')
-rw-r--r--order.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/order.go b/order.go
index 13c1b09..6836954 100644
--- a/order.go
+++ b/order.go
@@ -1,6 +1,8 @@
package main
-import "golang.org/x/exp/slog"
+import (
+ "golang.org/x/exp/slog"
+)
type Order interface {
Update(e *Entity, g *Game)
@@ -36,7 +38,7 @@ func Patrol(e *Entity, destination Point) Order {
if e.Selection.IsEnabled && e.Position.IsEnabled && e.Move.IsEnabled && e.Order.IsEnabled {
if e.Selection.Value.IsSelected {
origin := e.Position.Value
- slog.Info("patroling between", slog.String("origin", origin.String()), slog.String("destination", destination.String()))
+ slog.Info("patrolling between", slog.String("origin", origin.String()), slog.String("destination", destination.String()))
e.Order.Value = &PatrolOrder{origin: origin, destination: destination}
}
}