Add class data and more menu detection

This commit is contained in:
Héctor Giménez
2023-05-12 21:44:42 +09:00
parent 26120205c9
commit 70d92d3df5
3 changed files with 20 additions and 1 deletions

View File

@@ -104,7 +104,17 @@ type Level struct {
CanInteract bool
}
type Class string
type Class uint
const (
Amazon Class = iota
Sorceress
Necromancer
Paladin
Barbarian
Druid
Assassin
)
type Corpse struct {
Found bool
@@ -124,6 +134,7 @@ type PlayerUnit struct {
Stats map[stat.ID]int
Skills map[skill.Skill]int
States state.States
Class Class
}
func (pu PlayerUnit) MaxGold() int {
@@ -205,4 +216,6 @@ type OpenMenus struct {
Stash bool
Waypoint bool
MapShown bool
SkillTree bool
Character bool
}