public void OnNPCRecruited(NPCBase npc) { if (npc == null || npc.Colony == null) { return; } ColonyStatistics stats = GetColonyStats(npc.Colony); stats.NPCProduce(); AddProducerConsumer(npc, npc.Job); }
public void OnNPCLoaded(NPCBase npc, JSONNode json) { if (npc == null || npc.Colony == null) { return; } ColonyStatistics stats = GetColonyStats(npc.Colony); stats.NPCProduce(); AddProducerConsumer(npc, npc.Job); }