internal static int GetItemType(this NoFace.Offer offer) { switch (offer) { default: case NoFace.Offer.FakeGoldOre: return(ItemType <FakeGoldOre>()); case NoFace.Offer.RealGoldOre: return(ItemID.GoldOre); case NoFace.Offer.FakeSilverOre: return(ItemType <FakeSilverOre>()); case NoFace.Offer.RealSilverOre: return(ItemID.SilverOre); case NoFace.Offer.FakePlatinumOre: return(ItemType <FakePlatinumOre>()); case NoFace.Offer.RealPlatinumOre: return(ItemID.PlatinumOre); case NoFace.Offer.FakeTitaniumOre: return(ItemType <FakeTitaniumOre>()); case NoFace.Offer.RealTitaniumOre: return(ItemID.TitaniumOre); } }
internal static string GetOfferName(this NoFace.Offer offer) { switch (offer) { default: case NoFace.Offer.FakeGoldOre: case NoFace.Offer.RealGoldOre: return("gold"); case NoFace.Offer.FakeSilverOre: case NoFace.Offer.RealSilverOre: return("silver"); case NoFace.Offer.FakePlatinumOre: case NoFace.Offer.RealPlatinumOre: return("platinum"); case NoFace.Offer.FakeTitaniumOre: case NoFace.Offer.RealTitaniumOre: return("titanium"); } }