From 04e46e9bfc7fed7b9954735284c09a4eb8a90952 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 8 Jul 2024 23:00:56 +0200 Subject: prevent all interactions between clients and customers --- server/src/game.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/src') diff --git a/server/src/game.rs b/server/src/game.rs index 6ad2316c..178a0ebd 100644 --- a/server/src/game.rs +++ b/server/src/game.rs @@ -361,6 +361,11 @@ impl Game { .players .get_many_mut([&pid, &base_pid]) .ok_or(anyhow!("interacting with yourself. this is impossible"))?; + + if this.character < 0 || other.character < 0 { + bail!("You shall not interact with customers.") + } + interact_effect( &self.data, edge, -- cgit v1.2.3-70-g09d2