Example #1
0
 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)]));
 }
Example #2
0
 internal static void tryFind(int oreTileType)
 {
     foreach (var altMythril in AltMythrils)
     {
         if (altMythril.oreTileType != oreTileType)
         {
             continue;
         }
         ChosenAltMythril = altMythril;
         break;
     }
 }
Example #3
0
 internal static void Add(AltMythril alt)
 {
     AltMythrils.Add(alt);
 }
Example #4
0
 internal static void UnchooseAltMythril()
 {
     ChosenAltMythril = null;
 }