OSDN Git Service

素材制作台修正
[chemicraft/chemicraft.git] / common / pcc / chemicraft / base / ChemiCraftRegisterChemicalRecipe.java
index 86b5ad7..c5a5e01 100644 (file)
@@ -1,7 +1,8 @@
 package pcc.chemicraft.base;
 
-import pcc.chemicraft.ChemiCraftData;
 import pcc.chemicraft.base.gen.EnumOreSpawnFrequency;
+import pcc.chemicraft.core.ChemiCraftCore;
+import pcc.chemicraft.util.AtomInfo;
 import pcc.chemicraft.util.Formula;
 
 public class ChemiCraftRegisterChemicalRecipe extends ChemiCraftBaseRegister
@@ -17,29 +18,37 @@ public class ChemiCraftRegisterChemicalRecipe extends ChemiCraftBaseRegister
        {
                // 元素入手手段
 
-               // 水素
-               // 水を分解。
-
-               // ヘリウム
-               // 未定。
+               // 鉱石群
+               for (int i = 0; i < this.mod.chemicalData.ATOMSLIST.length; i++)
+               {
+                       if (AtomInfo.isSolid(i + 1) && !AtomInfo.isLanthanoid(i + 1) && !AtomInfo.isActinoid(i + 1))
+                       {
+                               this.mod.apiBase.addAtomOres(
+                                               ChemiCraftCore.ATOMSNAME[i],
+                                               new Formula(this.mod.chemicalData.ATOMSLIST[i]),
+                                               this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
+                                               EnumOreSpawnFrequency.NORMAL);
+                               this.mod.apiBase.addAtomOresLanguage(ChemiCraftCore.ATOMSNAME[i], ChemiCraftCore.ATOMSNAMEJP[i] + "鉱石", "ja_JP");
+                       }
+               }
 
                // ランタノイド鉱石
                this.mod.apiBase.addAtomOres(
-                               "LanthanoidOre",
+                               "Lanthanoid",
                                new Formula("LaCePrNdPmSmEuGdTbDyHoErTmYbLu"),
                                this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
                                EnumOreSpawnFrequency.RARE);
                // LaCePrNdPmSmEuGdTbDyHoErTmYbLu
-               this.mod.apiBase.addAtomOresLanguage("LanthanoidOre", "ランタノイド鉱石", "ja_JP");
+               this.mod.apiBase.addAtomOresLanguage("Lanthanoid", "ランタノイド鉱石", "ja_JP");
 
                // アクチノイド鉱石
                this.mod.apiBase.addAtomOres(
-                               "ActinoidOre",
+                               "Actinoid",
                                new Formula("AcThPaUNpPuAmCmBkCfEsFmMdNoLr"),
                                this.mod.atomOresID[this.mod.apiBase.getAtomOresLastIndex()],
                                EnumOreSpawnFrequency.RARE);
                // AcThPaUNpPuAmCmBkCfEsFmMdNoLr
-               this.mod.apiBase.addAtomOresLanguage("ActinoidOre", "アクチノイド鉱石", "ja_JP");
+               this.mod.apiBase.addAtomOresLanguage("Actinoid", "アクチノイド鉱石", "ja_JP");
 
        }