public TribeJob(JobTasks task, Thing.Thing_Types type, Tribe tribe) { this.tribe = tribe; this.task = task; this.targetType = type; actions = JobAction.GetActionsForTask(task, this); currentAction = 0; }
public int GetAmountOfThingOwned(Thing.Thing_Types type) { Thing[] owned = GetThingsOwnedByTribe(); int numberOwned = 0; foreach (Thing thing in owned) { if (thing.thingType == type) { numberOwned++; } } return(numberOwned); }