Skip to content

Commit

Permalink
fix elements arr
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Nov 30, 2024
1 parent 56f10a1 commit c936029
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

var (
DoduapiMajor = 1 // Major version also used for prefixing API routes.
DoduapiVersion = fmt.Sprintf("v%d.0.0-rc.5", DoduapiMajor) // change with every release
DoduapiVersion = fmt.Sprintf("v%d.0.0-rc.6", DoduapiMajor) // change with every release
DoduapiShort = "doduapi - Open Dofus Encyclopedia API"
DoduapiLong = ""
DoduapiVersionHelp = DoduapiShort + "\n" + DoduapiVersion + "\nhttps://github.com/dofusdude/doduapi"
Expand Down
9 changes: 7 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,13 @@ func ReadEnvs() {
}
log.SetLevel(parsedLevel)

ElementsUrl = fmt.Sprintf("https://raw.githubusercontent.com/dofusdude/doduda/main/persistent/elements.%s.json", betaStr)
TypesUrl = fmt.Sprintf("https://raw.githubusercontent.com/dofusdude/doduda/main/persistent/item_types.%s.json", betaStr)
dofus3Prefix := ""
if strings.HasPrefix(DofusVersion, "3") {
dofus3Prefix = ".dofus3"
}

ElementsUrl = fmt.Sprintf("https://raw.githubusercontent.com/dofusdude/doduda/main/persistent/elements%s.%s.json", dofus3Prefix, betaStr)
TypesUrl = fmt.Sprintf("https://raw.githubusercontent.com/dofusdude/doduda/main/persistent/item_types%s.%s.json", dofus3Prefix, betaStr)
ReleaseUrl = fmt.Sprintf("https://github.com/dofusdude/dofus3-%s/releases/download/%s", betaStr, DofusVersion)

ApiScheme = viper.GetString("API_SCHEME")
Expand Down

0 comments on commit c936029

Please sign in to comment.