fix cuffs
This commit is contained in:
parent
c6edf2a92c
commit
e2bdf3e23b
@ -11,7 +11,6 @@ package game
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"log/slog"
|
|
||||||
|
|
||||||
"git.sunturtle.xyz/studio/shotgun/player"
|
"git.sunturtle.xyz/studio/shotgun/player"
|
||||||
"git.sunturtle.xyz/studio/shotgun/serve"
|
"git.sunturtle.xyz/studio/shotgun/serve"
|
||||||
@ -95,7 +94,6 @@ func (g *Match) NextTurn() {
|
|||||||
g.reveal = false
|
g.reveal = false
|
||||||
cur := g.CurrentPlayer()
|
cur := g.CurrentPlayer()
|
||||||
skip := cur.cuffs == CuffedSkip
|
skip := cur.cuffs == CuffedSkip
|
||||||
slog.Info("next turn", "skip", skip, "cuffs", cur.cuffs)
|
|
||||||
cur.cuffs = cur.cuffs.NextState()
|
cur.cuffs = cur.cuffs.NextState()
|
||||||
if skip {
|
if skip {
|
||||||
g.NextTurn()
|
g.NextTurn()
|
||||||
|
@ -46,7 +46,7 @@ func (i Item) Apply(g *Match) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
g.action = actCuff
|
g.action = actCuff
|
||||||
opp.cuffs = Cuffed
|
opp.cuffs = CuffedSkip
|
||||||
return true
|
return true
|
||||||
case ItemKnife:
|
case ItemKnife:
|
||||||
if g.damage != 1 {
|
if g.damage != 1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user