Refactor, new menu, issue feature update
It's now possible to make issue options enabled or disabled conditional upon having taken other actions with that issue before.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
package koboldsim
|
||||
|
||||
import "git.chromaticdragon.app/kistaro/CardSimEngine/cardsim"
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"git.chromaticdragon.app/kistaro/CardSimEngine/cardsim"
|
||||
)
|
||||
|
||||
func InitPlayer() *Player {
|
||||
p := cardsim.InitPlayer(NewKoboldMine())
|
||||
@@ -13,6 +17,16 @@ func InitPlayer() *Player {
|
||||
Name: cardsim.MsgStr("All Stats"),
|
||||
Intro: cardsim.MsgStr("All available statistics."),
|
||||
},
|
||||
&cardsim.BasicStatsPanel[*KoboldMine]{
|
||||
Name: cardsim.MsgStr("Per Capita Economic"),
|
||||
Intro: cardsim.MsgStr("Yield and Investment per Capita"),
|
||||
Filter: cardsim.All(
|
||||
cardsim.VisibleOrDebug[*KoboldMine],
|
||||
func(p *Player, s cardsim.Stat) bool {
|
||||
return strings.Contains(s.StatName(), "Productivity") || strings.Contains(s.StatName(), "Investment")
|
||||
},
|
||||
),
|
||||
},
|
||||
}
|
||||
p.Prompt = &cardsim.BasicStatsPanel[*KoboldMine]{
|
||||
Name: cardsim.MsgStr("The Kobold Mine"),
|
||||
@@ -21,6 +35,7 @@ func InitPlayer() *Player {
|
||||
"Kobolds",
|
||||
"Total Sector Income",
|
||||
"Total Government Expense",
|
||||
"Tax Rate",
|
||||
),
|
||||
}
|
||||
p.State = cardsim.GameActive
|
||||
|
Reference in New Issue
Block a user