Save boss and player statuses

This commit is contained in:
Felipe M 2021-05-22 23:50:54 +02:00
parent b0c5798328
commit 6ea21b3181
Signed by: fmartingr
GPG key ID: 716BC147715E716F
9 changed files with 43 additions and 3 deletions

View file

@ -11,7 +11,8 @@ func set_door_lock(value):
DoorLock.set_collision_mask_bit(PLAYER_BIT, value)
func _on_Trigger_triggered():
set_door_lock(true)
if not SaverLoader.custom_data.boss_defeated:
set_door_lock(true)
func _on_BossEnemy_died():
set_door_lock(false)