Skip to content

Commit

Permalink
feaT: update (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
promiseofcake authored Sep 25, 2024
1 parent 313c678 commit 50fd3e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.5
require (
github.com/hashicorp/go-retryablehttp v0.7.7
github.com/lmittmann/tint v1.0.5
github.com/promiseofcake/artifactsmmo-go-client v1.7.1
github.com/promiseofcake/artifactsmmo-go-client v1.8.0
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.19.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/promiseofcake/artifactsmmo-go-client v1.7.1 h1:lQEJJqRrbK2ebj/OHLXqVUg9iY7UiQ5ydraNhO37stY=
github.com/promiseofcake/artifactsmmo-go-client v1.7.1/go.mod h1:UPeTbBmAMzjX0EtFMxF4KVPdHrejptIwHASP4NxkjxI=
github.com/promiseofcake/artifactsmmo-go-client v1.8.0 h1:EQhuPXFiW9pS8j7mvQltb1mMD5xYjNbze5c4bbCfIW4=
github.com/promiseofcake/artifactsmmo-go-client v1.8.0/go.mod h1:UPeTbBmAMzjX0EtFMxF4KVPdHrejptIwHASP4NxkjxI=
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
Expand Down
6 changes: 3 additions & 3 deletions internal/engine/refine.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ func Refine(ctx context.Context, r *actions.Runner, character string) error {
// skill level, and fetch all items one could make
// with the current given skill level
switch res.Subtype {
case string(client.Woodcutting):
case string(client.ResourceSchemaSkillWoodcutting):
refineLevel = c.WoodcuttingLevel
skillType = string(client.CraftSchemaSkillWoodcutting)
case string(client.Mining):
case string(client.ResourceSchemaSkillMining):
refineLevel = c.MiningLevel
skillType = string(client.CraftSchemaSkillMining)
case string(client.Fishing):
case string(client.ResourceSchemaSkillFishing):
refineLevel = c.CookingLevel
skillType = string(client.CraftSchemaSkillCooking)
}
Expand Down

0 comments on commit 50fd3e8

Please sign in to comment.