diff options
| author | historia <[not public]> | 2026-06-19 18:20:26 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-19 18:20:26 -0400 |
| commit | 0ea4eec5dd2122c6704216971eb1249276297867 (patch) | |
| tree | 430fbbef04e837820f1d031c190f52ecd6112e25 /internal/player | |
| parent | 3a58125d14bb307f861b38c6c5b0a63babde7e08 (diff) | |
| download | thehouseoficarus-0ea4eec5dd2122c6704216971eb1249276297867.tar.gz | |
shop fixes, 'toggle' completely removed, movement speed increased
Diffstat (limited to 'internal/player')
| -rw-r--r-- | internal/player/player.go | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/internal/player/player.go b/internal/player/player.go index 88cf7f8..3842348 100644 --- a/internal/player/player.go +++ b/internal/player/player.go @@ -49,15 +49,15 @@ var SkillAbbr = map[SkillName]string{ Ranged: "rng", Science: "sci", Technology: "tec", - Fishing: "fis", + Fishing: "fsh", Cooking: "cok", - Woodcutting: "wct", + Woodcutting: "wdc", Firemaking: "fmk", Mining: "min", Smithing: "smt", Crafting: "cft", Fletching: "flt", - Pharmacy: "pha", + Pharmacy: "phr", Thieving: "thv", Agility: "agl", Construction: "con", @@ -179,7 +179,7 @@ type Player struct { MoveDirection string `yaml:"-"` MoveTarget int `yaml:"-"` VisualTickCurrent int `yaml:"-"` - AutocastMod string `yaml:"-"` + AutotriggerMod string `yaml:"-"` Battery float64 `yaml:"battery"` ActiveTechs map[string]bool `yaml:"-"` QuickTech string `yaml:"quick_tech,omitempty"` @@ -262,6 +262,12 @@ func (p *Player) OptionInt(name string) int { return def.Default.(int) } +func (p *Player) EnsureFlags() { + if p.Flags == nil { + p.Flags = make(map[string]any) + } +} + func (p *Player) InvSlot(i int) *InventorySlot { if p.Inventory == nil { return nil @@ -353,9 +359,11 @@ func (p *Player) MaxHP() int { return p.Level(Hitpoints) } +const RegenTickInterval = 100 + func (p *Player) StartRegen() { if p.RegenerateTick == 0 { - p.RegenerateTick = 100 + p.RegenerateTick = RegenTickInterval } } |
