Implemented additional audio for mirror from Maggie; fixed shader flash

on damage from hitting glass shards.
This commit is contained in:
Henry 2026-02-28 16:11:13 +00:00
parent 78472ee95c
commit 004e1063b8
9 changed files with 69 additions and 4 deletions

View file

@ -116,13 +116,13 @@ func _on_gun_cooldown_timeout() -> void:
func _on_area_entered(area):
if area.is_in_group("enemies"):
shield -= int(max_shield / 2)
# damage_taken.emit()
_on_damage_taken()
area.hit_detection()
if area.is_in_group("enemy_bullets") and self.monitoring == true:
damage_taken.emit()
if area.is_in_group("shards"):
shield -= int(max_shield / 2)
#if area.is_in_group("shards"):
# shield -= int(max_shield / 2)
func _on_damage_taken():