This commit is contained in:
2026-07-11 14:47:08 -05:00
parent 6dccf5fc23
commit 03185c9c68
17 changed files with 408 additions and 105 deletions
+3
View File
@@ -319,6 +319,7 @@ impl TryFrom<MapFile> for Board {
solid: t.solid,
opaque: t.opaque,
pushable: t.pushable,
light: t.light,
// Hand-placed objects are never grab targets; only expanded
// grab archetypes (e.g. gems) set this (see expand_builtin_archetypes).
grab: false,
@@ -357,6 +358,7 @@ impl TryFrom<MapFile> for Board {
solid: false,
opaque: false,
pushable: false,
light: 0,
grab: false,
script_name: Some(t.script_name),
builtin_script: None,
@@ -564,6 +566,7 @@ fn grid_to_data(board: &Board) -> GridData {
solid: Some(o.solid),
opaque: Some(o.opaque),
pushable: Some(o.pushable),
light: (o.light > 0).then_some(o.light),
script_name: o.script_name.clone(),
tags: (!tags.is_empty()).then_some(tags),
name: o.name.clone(),