From 488f6377e6f6fd3099bb927a986d548fbc1eb63f Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 15 Aug 2025 20:52:55 +0200 Subject: implement mace and add damage dealt events/triggers --- go/game/playerControl_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'go/game/playerControl_test.go') diff --git a/go/game/playerControl_test.go b/go/game/playerControl_test.go index 0182e30b..2727df0b 100644 --- a/go/game/playerControl_test.go +++ b/go/game/playerControl_test.go @@ -7,9 +7,10 @@ import ( type MockPlayerControl struct { p *Player sentNotifications []PlayerNotification + actionToSend Action } -func newMockPlayerControl(p *Player) PlayerControl { +func newMockPlayerControl(p *Player) *MockPlayerControl { return &MockPlayerControl{p: p} } @@ -25,7 +26,7 @@ func (ctrl *MockPlayerControl) SendNotification(n PlayerNotification) error { } func (ctrl *MockPlayerControl) RecvAction() (Action, error) { - return nil, nil + return ctrl.actionToSend, nil } func (ctrl *MockPlayerControl) SendAction(Action) error { return nil } -- cgit v1.2.3