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,23 @@
using Unity.VisualScripting;
using UnityEngine;
public class GetTreated : AI_Action
{
public override bool PrePerform()
{
target = inventory.FindItemWithTag("Bed");
if(target == null)
return false;
return true;
}
public override bool PostPerform()
{
AI_World.Instance.GetWorld().ModifyState("Treated", 1);
agentWorldStates.ModifyState("IsCured", 1);
inventory.RemoveItem(target);
return true;
}
}