protected override void Update(Players.Player player) { if (Build) { Build = false; var builder = new NpcFarmBuilder(player, Origin, Size); builder.Build(); LootSpawner.SetPossibleLootSpots(builder.LootSpots); } else if (BedBlockTracker.GetCount(player) < 1) { KingdomsTracker.SendKingdomNotification($"Farm at {Origin} is dead! Lost all beds"); Kill(); } else { var stockpile = Stockpile.GetStockPile(player); var colony = Colony.Get(player); CheckItemAmount(stockpile, BuiltinBlocks.Bread, 5000); CheckFollower(player, colony); CheckItemAmount(stockpile, BuiltinBlocks.WheatStage1, 100); } }
public NpcKingdom(string kingdomType) { KingdomType = kingdomType; LootSpawner = new LootSpawner(kingdomType); }