public static AltMythril GetAltMythril() { if (!vanillaAltsAdded) { WorldGen.AddAlt(new AltCobalt(TileID.Mythril, Lang.misc[13].Value)); WorldGen.AddAlt(new AltCobalt(TileID.Orichalcum, Lang.misc[22].Value, 0.9f)); } return(ChosenAltMythril ?? (ChosenAltMythril = AltMythrils[WorldGen.genRand.Next(AltMythrils.Count)])); }
public static AltCobalt GetAltCobalt() { if (!vanillaAltsAdded) { WorldGen.AddAlt(new AltCobalt(TileID.Cobalt, Lang.misc[12].Value)); WorldGen.AddAlt(new AltCobalt(TileID.Palladium, Lang.misc[21].Value, 0.9f)); } return(ChosenAltCobalt ?? (ChosenAltCobalt = AltCobalts[WorldGen.genRand.Next(AltCobalts.Count)])); }
public static AltAdamantite GetAltAdamantite() { if (!vanillaAltsAdded) { WorldGen.AddAlt(new AltCobalt(TileID.Adamantite, Lang.misc[14].Value)); WorldGen.AddAlt(new AltCobalt(TileID.Titanium, Lang.misc[23].Value, 0.9f)); } return(ChosenAltAdamantite ?? (ChosenAltAdamantite = AltAdamantites[WorldGen.genRand.Next(AltAdamantites.Count)])); }