Lernkosten multi level scheinen zu funktionieren

This commit is contained in:
2025-07-25 06:59:48 +02:00
parent c517fd48d3
commit 1fab7ee519
3 changed files with 54 additions and 24 deletions
+4
View File
@@ -715,6 +715,10 @@ func CalcSkillImproveCost(costResult *SkillCostResultNew, currentLevel int, rewa
//classKey := getClassAbbreviation(costResult.CharacterClass)
classKey := costResult.CharacterClass
if costResult.TargetLevel > 0 {
currentLevel = costResult.TargetLevel - 1 // Wenn ein Ziellevel angegeben ist, verwende dieses
}
// Wenn Kategorie und Schwierigkeit noch nicht gesetzt sind, finde die beste Option
if costResult.Category == "" || costResult.Difficulty == "" {
bestCategory, bestDifficulty, err := findBestCategoryForSkillImprovement(costResult.SkillName, classKey, currentLevel+1)