EP werden im Skillview richtig angezeigt

This commit is contained in:
2025-07-25 21:02:24 +02:00
parent 85529e54d4
commit 74faa59193
3 changed files with 3 additions and 8 deletions
+2 -2
View File
@@ -59,8 +59,8 @@ type Merkmale struct {
type Erfahrungsschatz struct {
models.BamortCharTrait
ES int `json:"value"`
EP int `json:"value"`
ES int `json:"es"` // Erfahrungsschatz
EP int `json:"ep"` // Erfahrungspunkte
}
type Bennies struct {
-5
View File
@@ -24,11 +24,6 @@ func RegisterRoutes(r *gin.RouterGroup) {
charGrp.POST("/lerncost", GetLernCost) // neuer Hauptendpunkt für alle Kostenberechnungen
charGrp.POST("/improve-skill", ImproveSkill) // Fertigkeit verbessern
// Kostenberechnung (konsolidiert)
//charGrp.POST("/:id/skill-cost", GetSkillCost) // Hauptendpunkt für alle Kostenberechnungen
//charGrp.GET("/:id/improve", GetSkillNextLevelCosts) // Legacy - für nächste Stufe
//charGrp.GET("/:id/improve/skill", GetSkillAllLevelCosts) // Legacy - für alle Stufen
// Lernen und Verbessern (mit automatischem Audit-Log)
charGrp.POST("/:id/learn-skill", LearnSkill) // Fertigkeit lernen
charGrp.POST("/:id/learn-spell", LearnSpell) // Zauber lernen
+1 -1
View File
@@ -12,7 +12,7 @@
<div v-if="learningMode" class="resources-display">
<div class="resource-item">
<span class="resource-icon"></span>
<span class="resource-value">{{ character.erfahrungsschatz?.value || 0 }} EP</span>
<span class="resource-value">{{ character.erfahrungsschatz?.ep || 0 }} EP</span>
</div>
<div class="resource-item">
<span class="resource-icon">💰</span>