monsters added

This commit is contained in:
2024-04-06 14:06:11 +02:00
parent 029f2ac94a
commit c5e0616c81
144 changed files with 20567 additions and 1 deletions

View File

@ -118,11 +118,16 @@ public class NPC_Behavior : MonoBehaviour
return _effect != null;
}
public bool GenerateNeed()
public bool GenerateNeed(string needName = null)
{
List<string> needs = new List<string>() { "coffee", "mate", "toilet", "money" };
string need = needs[UnityEngine.Random.Range(0, needs.Count)];
if (needName != null)
{
need = needName;
}
_currentNeed = _developerNeeds.spawnNeed(need);
HasNeed = true;
_lastTenNeeds.Add(need);