2023-04-03 06:24:47 +00:00
|
|
|
package koboldsim
|
|
|
|
|
|
|
|
import "git.chromaticdragon.app/kistaro/CardSimEngine/cardsim"
|
|
|
|
|
|
|
|
func InitPlayer() *Player {
|
|
|
|
p := cardsim.InitPlayer(NewKoboldMine())
|
|
|
|
p.Name = RandomKoboldName()
|
|
|
|
initDeck(p.Deck)
|
|
|
|
initRules(p.Rules)
|
|
|
|
p.HandLimit = 3
|
|
|
|
p.InfoPanels = []InfoPanel{
|
|
|
|
&cardsim.BasicStatsPanel[*KoboldMine]{
|
|
|
|
Name: cardsim.MsgStr("All Stats"),
|
|
|
|
Intro: cardsim.MsgStr("All available statistics."),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
p.Prompt = &cardsim.BasicStatsPanel[*KoboldMine]{
|
|
|
|
Name: cardsim.MsgStr("The Kobold Mine"),
|
|
|
|
Intro: cardsim.MsgStr("We await your command, Overlord."),
|
|
|
|
Filter: cardsim.VisibleOrDebugStatsNamed[*KoboldMine](
|
|
|
|
"Kobolds",
|
2023-04-03 23:18:26 +00:00
|
|
|
"Total Sector Income",
|
|
|
|
"Total Government Expense",
|
2023-04-03 06:24:47 +00:00
|
|
|
),
|
|
|
|
}
|
|
|
|
p.State = cardsim.GameActive
|
|
|
|
p.DebugLevel = 5
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func initRules(*cardsim.RuleCollection[*KoboldMine]) {
|
|
|
|
// TODO: move to rules.go, add rules
|
|
|
|
}
|