示例#1
0
        protected override void Finish()
        {
            Owner.Map.RemoveEntityById(Resource.Id);
            var yield = Resource.GetTag("harvestable.yield").SubTags;

            foreach (var y in yield)
            {
                for (var i = y.GetTag("amount").Value.GetDouble(); i > 0; i--)
                {
                    Owner.Map.AddEntity(ResourceMasterList.GetDefaultClone(y.GetTag("name").Value.GetString()), Resource.Pos);
                }
            }

            Completed = true;
        }
示例#2
0
 protected override void Finish()
 {
     Logger.Log("Construct.Finish");
     Owner.Map.AddEntity(ResourceMasterList.GetDefaultClone(Name), Site);
     Completed = true;
 }