mejoras en jugabilidad
This commit is contained in:
1 parent
d983bc2e69
commit
ec7e35ddf6
40 files changed
+856
-538
No files matched your search
@@ -70,12 +70,12 @@ func _run() -> void:
|
||||
_close_level()
|
||||
_new_level()
|
||||
var data: CharacterData = _player.get("character_data") as CharacterData
|
||||
_check(data.max_health == 50 and data.basic_attack_damage == 5, "Los datos compartidos no se mutan")
|
||||
_check(int(_player.call("get_max_health")) == 60, "Se aplica vida maxima adicional")
|
||||
_check(data.max_health == 30 and data.basic_attack_damage == 5, "Los datos compartidos no se mutan")
|
||||
_check(int(_player.call("get_max_health")) == 40, "Se aplica vida maxima adicional")
|
||||
_check(int(_player.call("get_basic_attack_damage")) == 6, "Se aplica dano base adicional")
|
||||
_player.set("current_health", 10)
|
||||
_player.call("collect_pickup", load("res://pickups/data/beer.tres"))
|
||||
_check(int(_player.get("current_health")) <= 60, "La cura respeta el maximo efectivo")
|
||||
_check(int(_player.get("current_health")) <= 40, "La cura respeta el maximo efectivo")
|
||||
_close_level()
|
||||
|
||||
# Reabrir el archivo demuestra el contrato de carga, no solo el estado de la misma instancia.
|
||||
|
||||
Reference in new issue
Block a user