SupaLidlGame/Characters/Doc.cs

38 lines
697 B
C#

using Godot;
namespace SupaLidlGame.Characters;
public partial class Doc : Enemy
{
[Export]
public State.NPC.NPCStateMachine BossStateMachine { get; set; }
public int Intensity
{
get
{
switch (Health)
{
case < 250:
return 3;
case < 500:
return 2;
default:
return 1;
}
}
}
public override void _Ready()
{
GD.Print(Health);
base._Ready();
}
public override void _Process(double delta)
{
BossStateMachine.Process(delta);
base._Process(delta);
}
}