Exemplo n.º 1
0
 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)]));
 }
Exemplo n.º 2
0
 internal static void tryFind(int oreTileType)
 {
     foreach (var altAdamantite in AltAdamantites)
     {
         if (altAdamantite.oreTileType != oreTileType)
         {
             continue;
         }
         ChosenAltAdamantite = altAdamantite;
         break;
     }
 }
Exemplo n.º 3
0
 internal static void Add(AltAdamantite alt)
 {
     AltAdamantites.Add(alt);
 }
Exemplo n.º 4
0
 internal static void UnchooseAltAdamantite()
 {
     ChosenAltAdamantite = null;
 }