diff options
Diffstat (limited to 'server/data/src')
| -rw-r--r-- | server/data/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/data/src/lib.rs b/server/data/src/lib.rs index 09a1bd43..a677bffd 100644 --- a/server/data/src/lib.rs +++ b/server/data/src/lib.rs @@ -100,6 +100,8 @@ struct TileArgs { item: Option<String>, #[clap(long)] conveyor: Option<String>, + #[clap(long)] + demand_sink: bool, } #[derive(Debug, Clone, Serialize, Deserialize)] @@ -184,6 +186,9 @@ fn build_data( entities.push(EntityDecl::Book { pos }); tile_interactable_empty.insert(tile); // if it doesnt have a dedicated tile all of its kind will be interactable } + if tile_spec.demand_sink { + entities.push(EntityDecl::DemandSink { pos }); + } if let Some(off) = &tile_spec.conveyor { let (x, y) = off .split_once(",") |