diff options
Diffstat (limited to 'Scenes/Entities/Bombs/Bomb.gd')
-rw-r--r-- | Scenes/Entities/Bombs/Bomb.gd | 8 |
1 files changed, 7 insertions, 1 deletions
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 |