aboutsummaryrefslogtreecommitdiff
path: root/server/src/interaction.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-07 21:17:21 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-07 21:17:21 +0200
commit1406127825e30514dc13909c583895fd682c7107 (patch)
tree483ccbfd98eb7ef47d7684562f0adbbee51a67e6 /server/src/interaction.rs
parentf88a296aac8840f713031b5b716b8d9fa3e18b8c (diff)
downloadhurrycurry-1406127825e30514dc13909c583895fd682c7107.tar
hurrycurry-1406127825e30514dc13909c583895fd682c7107.tar.bz2
hurrycurry-1406127825e30514dc13909c583895fd682c7107.tar.zst
add bus map and tile entities
Diffstat (limited to 'server/src/interaction.rs')
-rw-r--r--server/src/interaction.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/src/interaction.rs b/server/src/interaction.rs
index 85df9925..bca480f5 100644
--- a/server/src/interaction.rs
+++ b/server/src/interaction.rs
@@ -122,10 +122,12 @@ pub fn interact(
this: &mut Option<Item>,
other: &mut Option<Item>,
points: &mut i64,
+ automated: bool,
) -> Option<InteractEffect> {
- let interactable = tile
- .map(|tile| data.is_tile_interactable(tile))
- .unwrap_or(true);
+ let interactable = automated
+ || tile
+ .map(|tile| data.is_tile_interactable(tile))
+ .unwrap_or(true);
if interactable && other.is_none() {
if let Some(item) = this {
if let Some(active) = &mut item.active {