Menu de inicio, nuevo nivel y ajustes en objetos
This commit is contained in:
1 parent
cd9f31c8c1
commit
827e16cf50
61 files changed
+2685
-3553
No files matched your search
@@ -35,7 +35,7 @@ func _ready() -> void:
|
||||
_on_health_changed(int(player_ref.get("current_health")), int(data.get("max_health")))
|
||||
|
||||
|
||||
## Actualiza los tiempos restantes de las mejoras temporales.
|
||||
## Muestra segundos solo para efectos temporales; dano indica hasta recibir un golpe.
|
||||
func _process(delta: float) -> void:
|
||||
if not is_instance_valid(player_ref):
|
||||
return
|
||||
@@ -54,8 +54,6 @@ func _process(delta: float) -> void:
|
||||
active.append("VEL +%d%% | %d px/s | %ds" % [bonus_percent, speed, ceili(speed_seconds)])
|
||||
|
||||
for effect in [
|
||||
["DANO", "_damage_boost_timer"],
|
||||
["GOLPE AEREO", "_air_damage_boost_timer"],
|
||||
["DEFENSA", "_damage_reduction_timer"],
|
||||
["SALTO", "_jump_boost_timer"],
|
||||
]:
|
||||
@@ -63,6 +61,14 @@ func _process(delta: float) -> void:
|
||||
if seconds > 0.0:
|
||||
active.append("%s: %ds" % [effect[0], ceili(seconds)])
|
||||
|
||||
for effect in [
|
||||
["DANO", "_damage_boost_multiplier"],
|
||||
["AEREO", "_air_damage_boost_multiplier"],
|
||||
]:
|
||||
var bonus: float = float(player_ref.get(effect[1]))
|
||||
if bonus > 0.0:
|
||||
active.append("%s +%d%% | HASTA GOLPE" % [effect[0], roundi(bonus * 100.0)])
|
||||
|
||||
var shield_hits: int = int(player_ref.get("_shield_hits"))
|
||||
if shield_hits > 0:
|
||||
active.append("ESCUDO: %d golpe(s)" % shield_hits)
|
||||
|
||||
Reference in new issue
Block a user