From c8a316e4b8987dad963656a34665fa0e23dedcb1 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 22 Apr 2024 16:34:25 +0200 Subject: update --- Scenes/Entities/Bombs/Bomb.gd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Scenes/Entities/Bombs/Bomb.gd') diff --git a/Scenes/Entities/Bombs/Bomb.gd b/Scenes/Entities/Bombs/Bomb.gd index 3981122..4256fc5 100644 --- a/Scenes/Entities/Bombs/Bomb.gd +++ b/Scenes/Entities/Bombs/Bomb.gd @@ -84,9 +84,11 @@ func explode(): collision_type = self._on_collide_group_bombs() elif collider.is_in_group("breakables"): collision_type = self._on_collide_group_breakables() + elif collider.is_in_group("hitables"): + collision_type = self._on_collide_group_hitables() else: collision_type = self._on_collide_group_else() - + # progress loop based on collision type if collision_type == EXPLOSION_COLLISION_TYPE.STOP: break @@ -178,5 +180,9 @@ func _on_collide_group_breakables(): return EXPLOSION_COLLISION_TYPE.HIT_STOP +func _on_collide_group_hitables(): + return EXPLOSION_COLLISION_TYPE.HIT_CONTINUE + + func _on_collide_group_else(): return EXPLOSION_COLLISION_TYPE.STOP -- cgit v1.2.3