Add action counter spoofer.
This commit is contained in:
parent
8d1aa0141f
commit
2b788f517c
@ -178,6 +178,51 @@ func InitPlayer[C StatsCollection](stats C) *Player[C] {
|
|||||||
DebugActions: []Card[C]{
|
DebugActions: []Card[C]{
|
||||||
&DeckDebugger[C]{},
|
&DeckDebugger[C]{},
|
||||||
&PanelCard[C]{Panel: RuleDumper[C]{}},
|
&PanelCard[C]{Panel: RuleDumper[C]{}},
|
||||||
|
&BasicCard[C]{
|
||||||
|
CardTitle: MsgStr("Adjust Action Counter"),
|
||||||
|
CardText: MsgStr("Change the number of actions you have available this turn."),
|
||||||
|
CardOptions: []CardOption[C]{
|
||||||
|
&BasicOption[C]{
|
||||||
|
Text: MsgStr("Get an extra action."),
|
||||||
|
Effect: func(p *Player[C]) error {
|
||||||
|
p.ActionsRemaining += 2 // counteract the one this costs
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
Output: MsgStr("Gotten."),
|
||||||
|
},
|
||||||
|
&BasicOption[C]{
|
||||||
|
Text: MsgStr("Waste an action."),
|
||||||
|
Effect: func(p *Player[C]) error {
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
Output: MsgStr("Wasted."),
|
||||||
|
},
|
||||||
|
&BasicOption[C]{
|
||||||
|
Text: MsgStr("Get a thousand actions."),
|
||||||
|
Effect: func(p *Player[C]) error {
|
||||||
|
p.ActionsRemaining = 1000
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
Output: MsgStr("ActionsRemaining set to 1000."),
|
||||||
|
},
|
||||||
|
&BasicOption[C]{
|
||||||
|
Text: MsgStr("Go to exactly 1 action remaining."),
|
||||||
|
Effect: func(p *Player[C]) error {
|
||||||
|
p.ActionsRemaining = 1
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
Output: MsgStr("ActionsRemaining set to 1."),
|
||||||
|
},
|
||||||
|
&BasicOption[C]{
|
||||||
|
Text: MsgStr("End the turn. (Set actions to 0.)"),
|
||||||
|
Effect: func(p *Player[C]) error {
|
||||||
|
p.ActionsRemaining = 0
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
Output: MsgStr("ActionsRemaining zeroed out."),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user