made visual updates
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
class_name Hitbox extends CollisionShape3D
|
||||
|
||||
@export var critical_zone: bool = false
|
||||
|
||||
signal took_damage(amount: int)
|
||||
|
||||
|
||||
func damage(amount: int) -> void:
|
||||
took_damage.emit(amount)
|
||||
took_damage.emit(amount * 1.5 if critical_zone else amount)
|
||||
|
Reference in New Issue
Block a user