Item price support

This commit is contained in:
2026-03-05 22:45:55 -06:00
parent 4282c2a770
commit d920a1e62d
15 changed files with 834 additions and 26 deletions

View File

@@ -64,12 +64,11 @@ func GameBaseURL() string {
}
// GamePriceBaseURL returns the real-time price API base URL.
// Only valid for OSRS; RS3 uses a separate client (prices.RS3Client).
func GamePriceBaseURL() string {
switch game {
case "osrs":
return "https://prices.runescape.wiki/api/v1/osrs"
case "rs3":
return "https://prices.runescape.wiki/api/v1/rs"
default:
return ""
}