ui: remove technical terminology and CLI references from user interface
This commit is contained in:
parent
4f8400c480
commit
a7fb3efa61
6 changed files with 4 additions and 14 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)`)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue