Пример #1
0
        public bool SpawnSimpleItem(string location, int x, int y, string modItemId, int quality, bool destructive = false)
        {
            Spawnpoint spawn = new Spawnpoint(location, x, y);

            if (!spawn.isClear())
            {
                if (!destructive)
                {
                    return(false);
                }
                spawn.AttemptToClear();
            }
            SimpleObject item = SimpleItemFactory.CreateItem(spawn, modItemId, quality);

            spawn.PlaceItem(item);
            return(true);
        }
Пример #2
0
 public override string getDescription()
 {
     return(SimpleItemFactory.GetDescription(ModItemId));
 }