From 098d30348443c53b321de879071f6b3541c86d91 Mon Sep 17 00:00:00 2001 From: PhantomMorrigan Date: Fri, 14 Nov 2025 18:12:51 +0100 Subject: [PATCH] The Ghosts have eaten from the Tree of Knowledge, but for their greed they were punished with stealing from each other like the little shits they are. --- src/berries.rs | 23 +++++++++++++++-------- src/main.rs | 36 +++++++++++++++++++++++++++--------- 2 files changed, 42 insertions(+), 17 deletions(-) diff --git a/src/berries.rs b/src/berries.rs index 3ba3107..2425271 100644 --- a/src/berries.rs +++ b/src/berries.rs @@ -6,22 +6,29 @@ use rand::Rng; #[derive(Component)] pub struct Berry; +#[derive(Message)] +pub struct NewBerry(pub Entity); + pub fn spawn_berries( mut commands: Commands, mut timer: Local, time: Res