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); }
public override string getDescription() { return(SimpleItemFactory.GetDescription(ModItemId)); }