Props added in the lobby start hidden
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HJhXuLD2Z6hv3Wqeq9UL9K
This commit is contained in:
@@ -792,7 +792,7 @@ function LobbyView({ id, rules, user }) {
|
|||||||
const addPropToken = (p) => {
|
const addPropToken = (p) => {
|
||||||
const m = mapState.map
|
const m = mapState.map
|
||||||
setPropPick(false)
|
setPropPick(false)
|
||||||
send(`/api/lobbies/${id}/tokens`, 'POST', { name: p.name, prop: p.prop, x: m.w / 2, y: m.h / 2, size: p.w, size_h: p.h, hidden: false }).then((r) => r.json()).then((d) => d.id && setMapSel(d.id)).catch(() => {})
|
send(`/api/lobbies/${id}/tokens`, 'POST', { name: p.name, prop: p.prop, x: m.w / 2, y: m.h / 2, size: p.w, size_h: p.h, hidden: true }).then((r) => r.json()).then((d) => d.id && setMapSel(d.id)).catch(() => {})
|
||||||
}
|
}
|
||||||
const addNpcToken = (n) => {
|
const addNpcToken = (n) => {
|
||||||
const hp = n.hp > 0 ? n.hp : undefined
|
const hp = n.hp > 0 ? n.hp : undefined
|
||||||
|
|||||||
Reference in New Issue
Block a user