Noch mehr Namensanpassungen

This commit is contained in:
2025-08-01 07:19:02 +02:00
parent d40eb44af5
commit 2897e25fe5
12 changed files with 42 additions and 39 deletions
+3 -3
View File
@@ -541,8 +541,8 @@ func contains(slice []string, item string) bool {
//### End of Helper functions ###
// GetSpellInfoNew returns the school and level of a spell from the database
func GetSpellInfoNew(spellName string) (string, int, error) {
// GetSpellInfoNewSystem returns the school and level of a spell from the database
func GetSpellInfoNewSystem(spellName string) (string, int, error) {
// Create a Spell instance to search in the database
var spell models.Spell
@@ -780,7 +780,7 @@ func CalcSpellLernCostOld(costResult *SkillCostResultNew, reward *string) error
// Für Zauber verwenden wir eine ähnliche Logik wie für Skills
// TODO: Implementiere spezifische Zauber-Kostenlogik wenn verfügbar
classKey := costResult.CharacterClass
spellCategory, spellLevel, err := GetSpellInfoNew(costResult.SkillName)
spellCategory, spellLevel, err := GetSpellInfoNewSystem(costResult.SkillName)
if err != nil {
return fmt.Errorf("failed to get spell info: %w", err)
}