fix broadcasting added points

This commit is contained in:
ducklet 2021-02-02 21:41:22 +01:00
parent 9e7000054b
commit 2f87ea925e
2 changed files with 4 additions and 4 deletions

View file

@ -44,18 +44,18 @@
<span class="name">player name</span>
<div class="admin-only">
(<span class="points">points</span> pts) (<span class="tokens">tokens</span> tks)
<button data-eval="send('control', {target: client.id, action: 'monitor'})">
<button data-eval="conn.send('control', {target: client.id, action: 'monitor'})">
monitor
</button>
<button
data-eval="client.points += named.points.valueAsNumber;
send('points', {id: client.id, points: client.points})"
conn.send('points', {id: client.id, points: client.points})"
>
add points
</button>
<button
data-eval="client.tokens += named.tokens.valueAsNumber;
send('tokens', {id: client.id, tokens: client.tokens})"
conn.send('tokens', {id: client.id, tokens: client.tokens})"
>
add tokens
</button>