ui: remove technical terminology and CLI references from user interface

This commit is contained in:
Tronax 2026-08-16 14:10:51 +02:00
parent 4f8400c480
commit a7fb3efa61
Signed by: Tronax
SSH key fingerprint: SHA256:2pKKXDZucWvaF/GzXNz0FY53EAO1YDLN80bqS+TTz/o
6 changed files with 4 additions and 14 deletions

View file

@ -90,9 +90,6 @@ async function joinRoom(): Promise<void> {
<button class="mp-btn join" @click="joinRoom">Beitreten</button>
</div>
<p v-if="store.mp.status" class="mp-status">{{ store.mp.status }}</p>
<p class="mp-hint">
Benötigt den lokalen Server: <code>npm run server</code> funktioniert im Heimnetzwerk.
</p>
</div>
<div class="help">

View file

@ -37,7 +37,7 @@ function canAct(): boolean {
<div class="stats">
<div class="row"><span>Schaden</span><b>{{ store.selected.damage }}</b></div>
<div class="row"><span>Reichweite</span><b>{{ store.selected.range }} px</b></div>
<div class="row"><span>Reichweite</span><b>{{ store.selected.range }}</b></div>
<div class="row"><span>Feuerrate</span><b>{{ store.selected.rate.toFixed(1) }}/s</b></div>
<div class="row"><span> DPS</span><b>{{ store.selected.dps }}</b></div>
<div v-if="store.selected.special" class="row"><span>Spezial</span><b>{{ store.selected.special }}</b></div>

View file

@ -26,7 +26,7 @@ function pick(kind: typeof TOWER_ORDER[number]): void {
<span class="cost">🪙 {{ TOWERS[kind].cost }}</span>
<span class="hotkey">{{ TOWERS[kind].hotkey }}</span>
<span class="stats">
{{ TOWERS[kind].levels[0].damage }} Schaden · {{ TOWERS[kind].levels[0].range }}px
{{ TOWERS[kind].levels[0].damage }} Schaden · {{ TOWERS[kind].levels[0].range }} Reichweite
<template v-if="!TOWERS[kind].hitsFlying"> · kein Luft</template>
</span>
</button>

View file

@ -1408,7 +1408,7 @@ export class GameEngine {
const parts: string[] = []
if (def.multi && def.multi[L - 1] > 1) parts.push(`${def.multi[L - 1]}× Pfeile`)
if (def.dotDps && def.dotDps[L - 1] > 0) parts.push(t.kind === 'arrow' ? `Gift ${def.dotDps[L - 1]}/s` : `Brand ${def.dotDps[L - 1]}/s`)
if (def.splash) parts.push(`Fläche ${def.splash[L - 1]}px`)
if (def.splash) parts.push(`Flächenradius ${def.splash[L - 1]}`)
if (def.flak?.[L - 1]) parts.push('Flak: trifft Flieger')
if (def.slowFactor) parts.push(`Slow ${Math.round((1 - def.slowFactor[L - 1]) * 100)}%`)
if (def.freezeDuration && def.freezeDuration[L - 1] > 0) parts.push(`Einfrieren ${def.freezeDuration[L - 1]}s (jeder 3. Puls)`)

View file

@ -80,7 +80,7 @@ export class MPClient {
}
ws.onerror = () => {
clearTimeout(timeout)
reject(new Error('Server nicht erreichbar (npm run server).'))
reject(new Error('Spieleserver ist aktuell nicht erreichbar.'))
}
ws.onclose = () => {
if (this.ws === ws) this.ws = null

View file

@ -1,12 +1,5 @@
import { createApp } from 'vue'
import App from './App.vue'
import { store } from '@/game/store'
import { mpgame } from '@/game/mpgame'
import './style.css'
// diagnostic hook (read-only debugging from devtools/automation)
if (typeof window !== 'undefined') {
;(window as unknown as Record<string, unknown>).__trxtd = { store, mpgame }
}
createApp(App).mount('#app')