Lernkosten Zauber

This commit is contained in:
2025-08-07 09:41:51 +02:00
parent 60b95a9a7a
commit c8ab5616de
13 changed files with 72 additions and 24 deletions
View File
+1 -1
View File
@@ -5,7 +5,7 @@
<!-- <link rel="icon" href="/favicon.ico">-->
<link rel="icon" href="/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<title>Bamort</title>
</head>
<body>
<div id="app"></div>
+3 -3
View File
@@ -8,7 +8,7 @@
<div class="stat-box">
<div class="stat-item">
<span class="stat-label">{{ $t('experience.available_ep') }}:</span>
<span class="stat-value">{{ character.erfahrungsschatz?.value || 0 }} EP</span>
<span class="stat-value">{{ character.erfahrungsschatz?.ep || 0 }} EP</span>
</div>
<div class="control-row">
<div class="input-group">
@@ -285,7 +285,7 @@ export default {
this.isLoading = true;
try {
const currentEP = this.character.erfahrungsschatz?.value || 0;
const currentEP = this.character.erfahrungsschatz?.ep || 0;
const newEP = currentEP + this.experienceAmount;
await this.updateExperience(newEP);
@@ -302,7 +302,7 @@ export default {
this.isLoading = true;
try {
const currentEP = this.character.erfahrungsschatz?.value || 0;
const currentEP = this.character.erfahrungsschatz?.ep || 0;
const newEP = Math.max(0, currentEP - this.experienceAmount);
await this.updateExperience(newEP);