enabled enforced static typing

This commit is contained in:
2024-02-22 06:22:22 +11:00
parent e1a867d2a9
commit a93660f755
1645 changed files with 24730 additions and 2078 deletions

View File

@ -1,10 +1,10 @@
extends TextureRect
@export var segments : Array[LivesBarSegment]
var lives := 120.0
@export var segments: Array[LivesBarSegment]
var lives: float = 120.0
func take_life():
var segment_to_animate = ceil(lives / 6.0) - 1
func take_life() -> void:
var segment_to_animate: int = ceil(lives / 6.0) - 1
lives -= 1
segments[segment_to_animate].take_life(1)