From 458916fb78dcef3ff77cb29b7ba98d9f646819fc Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 19 Jun 2026 02:08:55 -0400 Subject: feat: rough pharmacy skill added --- internal/player/player.go | 7 ++++--- internal/player/store.go | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'internal/player') diff --git a/internal/player/player.go b/internal/player/player.go index edfe5dd..4b26a84 100644 --- a/internal/player/player.go +++ b/internal/player/player.go @@ -21,7 +21,7 @@ const ( Smithing SkillName = "smithing" Crafting SkillName = "crafting" Fletching SkillName = "fletching" - Alchemy SkillName = "alchemy" + Pharmacy SkillName = "pharmacy" Thieving SkillName = "thieving" Agility SkillName = "agility" Construction SkillName = "construction" @@ -34,7 +34,7 @@ const ( var AllSkills = []SkillName{ Attack, Strength, Defense, Hitpoints, Ranged, Science, Technology, Fishing, Cooking, Woodcutting, Firemaking, Mining, Smithing, Crafting, Fletching, - Alchemy, Thieving, Agility, Construction, Scavenging, Hacking, Assassin, Farming, + Pharmacy, Thieving, Agility, Construction, Scavenging, Hacking, Assassin, Farming, } var SkillAbbr = map[SkillName]string{ @@ -53,7 +53,7 @@ var SkillAbbr = map[SkillName]string{ Smithing: "smt", Crafting: "cft", Fletching: "flt", - Alchemy: "alc", + Pharmacy: "pha", Thieving: "thv", Agility: "agl", Construction: "con", @@ -131,6 +131,7 @@ var OptionDefs = []OptionDef{ {"smith_all", OptBool, false, nil, "Auto-start smithing when only one product is possible"}, {"cook_all", OptBool, false, nil, "Auto-start cooking when only one product is possible"}, {"smelt_all", OptBool, false, nil, "Auto-start smelting when only one product is possible"}, + {"mix_all", OptBool, false, nil, "Auto-start mixing when only one product is possible"}, } var optionByName map[string]*OptionDef diff --git a/internal/player/store.go b/internal/player/store.go index 04af594..c05b29d 100644 --- a/internal/player/store.go +++ b/internal/player/store.go @@ -89,6 +89,10 @@ func (s *AccountStore) LoadCharacter(name string) (*Player, error) { if p.Skills == nil { p.Skills = make(map[SkillName]int) } + if xp, ok := p.Skills["alchemy"]; ok { + p.Skills[Pharmacy] = xp + delete(p.Skills, "alchemy") + } if p.Equipment == nil { p.Equipment = make(map[object.EquipSlot]string) } -- cgit v1.2.3