Exemple #1
0
        private void PrepareBase()
        {
            WriteLog("Preparing Base at " + NPC.Position);
            //Implement stacking of blocks to build a temporary base
            AIColony colony = StartColony();

            FlattenArea(NPC.Position);
            createPlatformUnder(NPC.Position, BuiltinBlocks.GrassTemperate);
            createPlatformUnder(new Vector3Int(NPC.Position.x, NPC.Position.y - 1, NPC.Position.z), BuiltinBlocks.GrassTemperate);
        }
Exemple #2
0
        private AIColony StartColony()
        {
            AIColony colony = ColonyTracker.AddColony(new Banner(NPC.Position, AIPlayer.GenerateNewAIPlayer(Owner)));

            return(colony);
        }