SupaLidlGame/Characters/Doc.cs

38 lines
697 B
C#
Raw Normal View History

2023-07-13 23:46:58 -07:00
using Godot;
namespace SupaLidlGame.Characters;
public partial class Doc : Enemy
{
[Export]
public State.NPC.NPCStateMachine BossStateMachine { get; set; }
2023-07-17 09:30:49 -07:00
2023-07-18 00:57:28 -07:00
public int Intensity
{
get
{
switch (Health)
{
case < 250:
return 3;
case < 500:
return 2;
default:
return 1;
}
}
}
2023-07-17 09:30:49 -07:00
public override void _Ready()
{
GD.Print(Health);
base._Ready();
}
2023-07-13 23:46:58 -07:00
public override void _Process(double delta)
{
BossStateMachine.Process(delta);
base._Process(delta);
}
}