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)])); }
internal static void tryFind(int oreTileType) { foreach (var altCobalt in AltCobalts) { if (altCobalt.oreTileType != oreTileType) { continue; } ChosenAltCobalt = altCobalt; break; } }
internal static void Add(AltCobalt alt) { AltCobalts.Add(alt); }
internal static void UnchooseAltCobalt() { ChosenAltCobalt = null; }