lighting
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user