idk
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
~ no_exit
|
~ no_exit
|
||||||
Altar: This is the text that shows when you try to leave
|
Altar: There exists only one way forward.
|
||||||
=> END
|
=> END
|
||||||
@@ -35,45 +35,45 @@ public partial class BossRoomA : Node3D, IBossRoom, IDungeonFloor
|
|||||||
|
|
||||||
public void OnReady()
|
public void OnReady()
|
||||||
{
|
{
|
||||||
ActivateTrap.BodyEntered += ActivateTrap_BodyEntered;
|
ActivateTrap.BodyEntered += ActivateTrap_BodyEntered;
|
||||||
_exit.AreaEntered += Exit_AreaEntered;
|
_exit.AreaEntered += Exit_AreaEntered;
|
||||||
OxFace.HealthComponent.HealthReachedZero += CheckForBossFightEnd;
|
OxFace.HealthComponent.HealthReachedZero += CheckForBossFightEnd;
|
||||||
//HorseFace.HealthComponent.HealthReachedZero += CheckForBossFightEnd;
|
//HorseFace.HealthComponent.HealthReachedZero += CheckForBossFightEnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ActivateTrap_BodyEntered(Node3D body)
|
private void ActivateTrap_BodyEntered(Node3D body)
|
||||||
{
|
{
|
||||||
ActivateTrap.BodyEntered -= ActivateTrap_BodyEntered;
|
ActivateTrap.BodyEntered -= ActivateTrap_BodyEntered;
|
||||||
StartBossFight();
|
StartBossFight();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void StartBossFight()
|
public void StartBossFight()
|
||||||
{
|
{
|
||||||
OxFaceStatue.Hide();
|
OxFaceStatue.Hide();
|
||||||
//HorseHeadStatue.Hide();
|
//HorseHeadStatue.Hide();
|
||||||
OxFace.StartFight();
|
OxFace.StartFight();
|
||||||
//HorseFace.StartFight();
|
//HorseFace.StartFight();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CheckForBossFightEnd()
|
private void CheckForBossFightEnd()
|
||||||
{
|
{
|
||||||
if (OxFace.HealthComponent.CurrentHP.Value <= 0) //&& HorseFace.HealthComponent.CurrentHP.Value <= 0)
|
if (OxFace.HealthComponent.CurrentHP.Value <= 0) //&& HorseFace.HealthComponent.CurrentHP.Value <= 0)
|
||||||
OnBossFightEnded();
|
OnBossFightEnded();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnBossFightEnded()
|
public void OnBossFightEnded()
|
||||||
{
|
{
|
||||||
GateCollision.CallDeferred(MethodName.QueueFree);
|
GateCollision.CallDeferred(MethodName.QueueFree);
|
||||||
LOCKEDGATE.Hide();
|
LOCKEDGATE.Hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ExitReached()
|
public void ExitReached()
|
||||||
=> Game.FloorExitReached();
|
=> Game.FloorExitReached();
|
||||||
|
|
||||||
private void Exit_AreaEntered(Area3D area)
|
private void Exit_AreaEntered(Area3D area)
|
||||||
{
|
{
|
||||||
if (area.GetOwner() is IPlayer)
|
if (area.GetOwner() is IPlayer)
|
||||||
ExitReached();
|
ExitReached();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void InitializeDungeon()
|
public void InitializeDungeon()
|
||||||
|
|||||||
Reference in New Issue
Block a user