From 0ea4eec5dd2122c6704216971eb1249276297867 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 19 Jun 2026 18:20:26 -0400 Subject: shop fixes, 'toggle' completely removed, movement speed increased --- internal/player/player.go | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'internal/player/player.go') 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 } } -- cgit v1.2.3