private ESItem[] GetItems(ThingDef _ItemType, BiomeDef _biome) { // Variables ESItem[] aESI = new ESItem[0]; string strThingDef = _ItemType.defName; float floBasePrice = _ItemType.BaseMarketValue; int intAmount = 0; switch (strThingDef) { case "HerbalMedicine": intAmount = 3; floBasePrice = floBasePrice * GetPlantPriceInflate(_biome); break; case "Beer": intAmount = 3; floBasePrice = floBasePrice * GetPlantPriceInflate(_biome); break; case "Ambrosia": intAmount = 1; floBasePrice = floBasePrice * GetPlantPriceInflate(_biome); break; default: intAmount = 1; floBasePrice = floBasePrice * GetPlantPriceInflate(_biome); break; } aESI = aESI.Concat(new ESItem[] { new ESItem(_ItemType.defName, intAmount, floBasePrice * intAmount) }).ToArray(); return(aESI); }
private ESItem[] GetWeapons(ThingDef _WeaponType) { // Variables ESItem[] aESI = new ESItem[0]; string strThingDef = _WeaponType.defName; foreach (ThingDef td in aWeaponStuff) { ESItem ESI = GetWeapon(_WeaponType, td); if (ESI != null) { aESI = aESI.Concat(new ESItem[] { ESI }).ToArray(); } } return(aESI); }
private ESItem[] GetItems(ThingDef _ItemType, BiomeDef _biome) { // Variables ESItem[] aESI = new ESItem[0]; string strThingDef = _ItemType.defName; float floBasePrice = _ItemType.BaseMarketValue; int intAmount = 0; switch (strThingDef) { case "WoodLog": intAmount = 10; floBasePrice = floBasePrice * GetPlantPriceInflate(_biome); break; case "RawHops": intAmount = 10; floBasePrice = floBasePrice * GetPlantPriceInflate(_biome); break; case "PsychoidLeaves": intAmount = 10; floBasePrice = floBasePrice * GetPlantPriceInflate(_biome); break; case "SmokeleafLeaves": intAmount = 10; floBasePrice = floBasePrice * GetPlantPriceInflate(_biome); break; default: intAmount = 10; break; } aESI = aESI.Concat(new ESItem[] { new ESItem(_ItemType.defName, intAmount, floBasePrice * intAmount) }).ToArray(); return(aESI); }
private ESItem[] GetItems(ThingDef _ItemType) { // Variables ESItem[] aESI = new ESItem[0]; string strThingDef = _ItemType.defName; float floBasePrice = _ItemType.BaseMarketValue; int intAmount = 0; switch (strThingDef) { case "Wort": intAmount = 5; break; default: intAmount = 1; break; } aESI = aESI.Concat(new ESItem[] { new ESItem(_ItemType.defName, intAmount, floBasePrice * intAmount) }).ToArray(); return(aESI); }
private ESItem[] GetItems(ThingDef _ItemType, BiomeDef _biome) { // Variables ESItem[] aESI = new ESItem[0]; string strThingDef = _ItemType.defName; float floBasePrice = 0; int intAmount = 0; switch (strThingDef) { case "MealSimple": intAmount = 5; floBasePrice = _ItemType.BaseMarketValue * GetAnimalPriceInflate(_biome) * GetPlantPriceInflate(_biome); break; case "MealFine": intAmount = 1; floBasePrice = _ItemType.BaseMarketValue * GetAnimalPriceInflate(_biome) * GetPlantPriceInflate(_biome); break; case "EggChickenUnfertilized": intAmount = 5; floBasePrice = _ItemType.BaseMarketValue * GetAnimalPriceInflate(_biome); break; case "InsectJelly": intAmount = 1; floBasePrice = _ItemType.BaseMarketValue * GetAnimalPriceInflate(_biome); break; case "Pemmican": intAmount = 10; floBasePrice = _ItemType.BaseMarketValue * GetAnimalPriceInflate(_biome) * GetPlantPriceInflate(_biome); break; case "Milk": intAmount = 10; floBasePrice = _ItemType.BaseMarketValue * GetAnimalPriceInflate(_biome); break; case "RawAgave": if (_biome != BiomeDefOf.Desert && _biome != BiomeDefOf.AridShrubland && _biome.defName != "ExtremeDesert") { floBasePrice = _ItemType.BaseMarketValue * GetPlantPriceInflate(_biome) * 3f; } else { floBasePrice = _ItemType.BaseMarketValue * GetPlantPriceInflate(_biome); } intAmount = 10; break; case "RawBerries": if (_biome != BiomeDefOf.Desert && _biome.defName != "ExtremeDesert") { floBasePrice = _ItemType.BaseMarketValue * GetPlantPriceInflate(_biome); } else { floBasePrice = _ItemType.BaseMarketValue * GetPlantPriceInflate(_biome) * 1.5f; } intAmount = 10; break; default: floBasePrice = _ItemType.BaseMarketValue * GetPlantPriceInflate(_biome); intAmount = 10; break; } aESI = aESI.Concat(new ESItem[] { new ESItem(_ItemType.defName, intAmount, floBasePrice * intAmount) }).ToArray(); return(aESI); }