From 36e912bcb086fec8334e1218ad15f93621e9143c Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 29 Aug 2023 22:18:43 +0100 Subject: [PATCH] nothing should get killed from overlapping the hero --- .../the-dungeon-puzzlers-lament/src/game/simulation/entity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs b/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs index 3aa263ac..71317592 100644 --- a/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs +++ b/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs @@ -490,7 +490,7 @@ fn resolve_overlap(me: &Entity, other: &Entity) -> OverlapResolution { (EntityType::MovableBlock, EntityType::Spikes(_)) => OverlapResolution::CoExist, (_, EntityType::Spikes(switch)) => resolve_spikes(switch), (_, EntityType::Switch(switch)) => OverlapResolution::ToggleSystem(switch.system), - (_, EntityType::Enemy(_) | EntityType::Hero(_)) => OverlapResolution::Die, + (_, EntityType::Enemy(_)) => OverlapResolution::Die, (_, EntityType::Ice) => OverlapResolution::MoveAgain, (_, EntityType::Teleporter) => OverlapResolution::Teleport,