Add most of research

This commit is contained in:
Bram verhulst
2025-05-31 15:54:23 +02:00
commit 70f128f092
270 changed files with 80847 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
public class GoToBed : AI_Action
{
public override bool PrePerform()
{
target = inventory.FindItemWithTag("Bed");
if(target == null)
return false;
AI_World.Instance.GetWorld().ModifyState("TreatingPatient", 1);
return true;
}
public override bool PostPerform()
{
AI_World.Instance.GetWorld().ModifyState("TreatingPatient", -1);
AI_World.Instance.AddTreatmentBed(target);
inventory.RemoveItem(target);
// AI_World.Instance.GetWorld().ModifyState("FreeBeds", 1);
return true;
}
}