mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-16 00:44:50 +00:00
🐛 fix health display
This commit is contained in:
parent
81c4212c2e
commit
c26b281b96
5 changed files with 13 additions and 12 deletions
|
|
@ -17,7 +17,7 @@ class_name ExplosiveDamageComponent extends Area3D
|
|||
## Emitted when the scale tween is finished
|
||||
signal finished
|
||||
|
||||
@export var damage : int = 35
|
||||
@export var damage : float = .35
|
||||
@export var impulse_force : int = 1000
|
||||
var damage_dealer : MatchParticipantComponent
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
class_name HealthComponent extends Area3D
|
||||
|
||||
@export var max_health : float = 100.0
|
||||
@export var health : float = 100.0:
|
||||
@export var max_health : float = 1.
|
||||
@export var health : float = 1.:
|
||||
set(value):
|
||||
health = value
|
||||
health_changed.emit(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue