• R/O
  • HTTP
  • SSH
  • HTTPS

ChemiCraftNext: Commit


Commit MetaInfo

Revisión07bcc6faa3379a3977adb03f9c9b950c3bc68e35 (tree)
Tiempo2013-03-06 18:09:48
Autorponkotate <ponkotate@user...>
Commiterponkotate

Log Message

修正・変更
・集気ビンの修正
・鉱石の追加

Cambiar Resumen

Diferencia incremental

--- a/common/pcc/chemicraft/ChemiCraft.java
+++ b/common/pcc/chemicraft/ChemiCraft.java
@@ -419,6 +419,10 @@ public class ChemiCraft {
419419 api.addAtomOres("Calcite", new String[]{"Ca", "C", "O"}, new Integer[]{1, 1, 3}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // CaCO3
420420 api.addAtomOresLanguage("Calcite", "方解石", "ja_JP");
421421
422+ // スカンジウム
423+ api.addAtomOres("Thortveitite", new String[]{"Sc", "Y", "Si", "O"}, new Integer[]{2, 2, 2, 7}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // (Sc,Y)2Si2O7
424+ api.addAtomOresLanguage("Thortveitite", "トルトベイト石", "ja_JP");
425+
422426 // api.addAtomOres("元素名(英)", new String[]{"元素"}, new Integer[]{<数>}, this.atomOresID[api.getAtomOresLastIndex()], 5, 1, 50); // 化学式
423427 // api.addAtomOresLanguage("元素名(英)", "元素名(他国語)", "言語");
424428
--- a/common/pcc/chemicraft/item/ItemGasCollectingBottle.java
+++ b/common/pcc/chemicraft/item/ItemGasCollectingBottle.java
@@ -7,6 +7,7 @@ import net.minecraft.item.ItemStack;
77 import net.minecraft.world.World;
88 import pcc.chemicraft.ChemiCraft;
99 import pcc.chemicraft.ChemiCraftAPI;
10+import pcc.chemicraft.ChemiCraftData;
1011 import pcc.chemicraft.util.Auxiliary.Probability;
1112
1213 public class ItemGasCollectingBottle extends ItemAtomInfoContainer
@@ -14,7 +15,8 @@ public class ItemGasCollectingBottle extends ItemAtomInfoContainer
1415
1516 public Probability probability = new Probability();
1617
17- public ItemGasCollectingBottle(int id) {
18+ public ItemGasCollectingBottle(int id)
19+ {
1820 super(id);
1921 this.setMaxStackSize(1);
2022 this.setMaxDamage(2);
@@ -28,30 +30,28 @@ public class ItemGasCollectingBottle extends ItemAtomInfoContainer
2830
2931 this.atomInfo.update(par2World, par3EntityPlayer);
3032
31- int heightValue = par2World.getHeightValue((int) par3EntityPlayer.posX, (int) par3EntityPlayer.posZ);
33+ int heightValue = par2World.getHeightValue((int)par3EntityPlayer.posX, (int)par3EntityPlayer.posZ);
3234
33- int result1 = probability.getProbability(99.0D, 1.0D);
34- int result2 = probability.getProbability(78.0D, 21.0D, 1.0D);
35- int result3 = probability.getProbability(0.032D, 0.0018D, 0.000012D, 0.00052D);
35+ int result = probability.getProbability(78.0D, 21.0D, 1.0D, 0.032D, 0.0018D, 0.000012D, 0.00052D, 0.000114D, 0.000087D);
3636 if (this.atomInfo.isOverY(heightValue)) {
37- if (result1 == 0) {
38- if (result2 == 0) {
39- this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, 6), par3EntityPlayer);
40- } else if (result2 == 1) {
41- this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, 7), par3EntityPlayer);
42- } else {
43- this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, 17), par3EntityPlayer);
44- }
37+ if (result == 0) {
38+ this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, ChemiCraftData.NITROGEN), par3EntityPlayer);
39+ } else if (result == 1) {
40+ this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, ChemiCraftData.OXYGEN), par3EntityPlayer);
41+ } else if (result == 2) {
42+ this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, ChemiCraftData.ARGON), par3EntityPlayer);
43+ } else if (result == 3) {
44+ this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemCompounds, 1, ChemiCraftAPI.instance().getCompound("CarbonDioxide")), par3EntityPlayer);
45+ } else if (result == 4) {
46+ this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, ChemiCraftData.NEON), par3EntityPlayer);
47+ } else if (result == 5) {
48+ this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemCompounds, 1, ChemiCraftAPI.instance().getCompound("CarbonMonoxide")), par3EntityPlayer);
49+ } else if (result == 6) {
50+ this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, ChemiCraftData.LITHIUM), par3EntityPlayer);
51+ } else if (result == 7) {
52+ this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, ChemiCraftData.KRYPTON), par3EntityPlayer);
4553 } else {
46- if (result3 == 0) {
47- this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemCompounds, 1, ChemiCraftAPI.instance().getCompound("CarbonDioxide")), par3EntityPlayer);
48- } else if (result3 == 1) {
49- this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, 9), par3EntityPlayer);
50- } else if (result3 == 2) {
51- this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemCompounds, 1, 1), par3EntityPlayer);
52- } else {
53- this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, 1), par3EntityPlayer);
54- }
54+ this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, ChemiCraftData.XENON), par3EntityPlayer);
5555 }
5656 }
5757
@@ -74,7 +74,7 @@ public class ItemGasCollectingBottle extends ItemAtomInfoContainer
7474 int uniqueBlockID = par3World.getBlockId(par4, par5 + 1, par6);
7575 Block uniqueBlock = Block.blocksList[uniqueBlockID];
7676
77- if (uniqueBlock instanceof BlockFire){
77+ if (uniqueBlock instanceof BlockFire) {
7878 par1ItemStack.damageItem(1, par2EntityPlayer);
7979
8080 int result1 = probability.getProbability(99, 1);
Show on old repository browser