monsters added
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user