mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-26 23:03:18 +00:00
-Fixed autoclick of infusion claw for aura core
-Added visualization of aura core creation -Changed vis cost of aura core to depend on the crystal cluster type
This commit is contained in:
1 parent
5c33896dd2
commit
bb848689f1
5 files changed
+81
-4
No files matched your search
@@ -246,7 +246,8 @@ public class TileInfusionClaw extends SynchronizedTileEntity implements IInvento
|
||||
im.setWorld((WorldServer) world);
|
||||
}
|
||||
|
||||
this.im.activateBlockOrUseItem(fakePlayer, world, new ItemStack(WAND_ITEM), x, y, z, ForgeDirection.UP.ordinal(), 0.5F, 0.5F, 0.5F);
|
||||
fakePlayer.setHeldItem(wandStack);
|
||||
this.im.activateBlockOrUseItem(fakePlayer, world, wandStack, x, y, z, ForgeDirection.UP.ordinal(), 0.5F, 0.5F, 0.5F);
|
||||
addInstability(behavior);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,11 +44,12 @@ public class RegisteredRecipes {
|
||||
public static AspectList costsNodeManipulatorMultiblock = new AspectList().add(Aspect.FIRE, 100).add(Aspect.WATER, 100).add(Aspect.EARTH, 100).add(Aspect.AIR, 100).add(Aspect.ORDER, 100).add(Aspect.ENTROPY, 100);
|
||||
public static AspectList costsEldritchPortalCreatorMultiblock = new AspectList().add(Aspect.FIRE, 150).add(Aspect.WATER, 150).add(Aspect.EARTH, 150).add(Aspect.AIR, 150).add(Aspect.ORDER, 150).add(Aspect.ENTROPY, 150);
|
||||
public static AspectList costsAuraPylonMultiblock = new AspectList().add(Aspect.FIRE, 150).add(Aspect.WATER, 150).add(Aspect.EARTH, 150).add(Aspect.AIR, 150).add(Aspect.ORDER, 150).add(Aspect.ENTROPY, 150);
|
||||
public static AspectList costsAuraCoreStart = new AspectList().add(Aspect.FIRE, 70).add(Aspect.WATER, 70).add(Aspect.EARTH, 70).add(Aspect.AIR, 70).add(Aspect.ORDER, 70).add(Aspect.ENTROPY, 70);
|
||||
//public static AspectList costsAuraCoreStart = new AspectList().add(Aspect.FIRE, 70).add(Aspect.WATER, 70).add(Aspect.EARTH, 70).add(Aspect.AIR, 70).add(Aspect.ORDER, 70).add(Aspect.ENTROPY, 70);
|
||||
|
||||
public static List multiblockNodeManipulator;
|
||||
public static List multiblockEldritchPortalCreator;
|
||||
public static List multiblockAuraPylon;
|
||||
public static List[] auraCoreRecipes;
|
||||
|
||||
public static InfusionRecipe recipeGolemSilverwood;
|
||||
public static InfusionRecipe[] recipesGolemRunicShield;
|
||||
@@ -182,6 +183,32 @@ public class RegisteredRecipes {
|
||||
}
|
||||
|
||||
RegisteredRecipes.recipesUndoAuraCore = recipesUndoAuraCore.toArray(new IRecipe[recipesUndoAuraCore.size()]);
|
||||
|
||||
auraCoreRecipes = createAuraCoreRecipes();
|
||||
}
|
||||
|
||||
private static List[] createAuraCoreRecipes() {
|
||||
List[] recipes = new List[7];
|
||||
for(int i = 0; i < 7; i++) {
|
||||
AspectList cost = new AspectList();
|
||||
switch (i) {
|
||||
case 0: cost.add(Aspect.AIR, 84); break;
|
||||
case 1: cost.add(Aspect.FIRE, 84); break;
|
||||
case 2: cost.add(Aspect.WATER, 84); break;
|
||||
case 3: cost.add(Aspect.EARTH, 84); break;
|
||||
case 4: cost.add(Aspect.ORDER, 84); break;
|
||||
case 5: cost.add(Aspect.ENTROPY, 84); break;
|
||||
case 6: cost.add(Aspect.AIR, 14).add(Aspect.FIRE, 14).add(Aspect.WATER, 14)
|
||||
.add(Aspect.EARTH, 14).add(Aspect.ORDER, 14).add(Aspect.ENTROPY, 14);
|
||||
}
|
||||
|
||||
recipes[i] = Arrays.asList(cost, 3, 1, 3,
|
||||
Arrays.asList(
|
||||
null, null, null, null, new ItemStack(ConfigBlocks.blockCrystal, 1, i),
|
||||
new ItemStack(RegisteredItems.itemAuraCore), null, null, null
|
||||
));
|
||||
}
|
||||
return recipes;
|
||||
}
|
||||
|
||||
private static InfusionRecipe[][] createFamiliarAugmentationRecipes() {
|
||||
|
||||
@@ -5,6 +5,7 @@ import makeo.gadomancy.common.aura.AuraResearchManager;
|
||||
import makeo.gadomancy.common.data.ModConfig;
|
||||
import makeo.gadomancy.common.items.ItemAuraCore;
|
||||
import makeo.gadomancy.common.research.AlternatingResearchItem;
|
||||
import makeo.gadomancy.common.research.MultiResearchPage;
|
||||
import makeo.gadomancy.common.research.PseudoResearchItem;
|
||||
import makeo.gadomancy.common.research.SimpleResearchItem;
|
||||
import makeo.gadomancy.common.utils.NBTHelper;
|
||||
@@ -257,7 +258,7 @@ public class RegisteredResearches {
|
||||
.add(Aspect.EARTH, 8).add(Aspect.FIRE, 8).add(Aspect.ORDER, 8).add(Aspect.ENTROPY, 8),
|
||||
cores)
|
||||
.setConcealed().setAutoUnlock()
|
||||
.setPages(new ResearchPage("gadomancy.research_page.AURA_CORE.1")).registerResearchItem();
|
||||
.setPages(new ResearchPage("gadomancy.research_page.AURA_CORE.1"), new MultiResearchPage(RegisteredRecipes.auraCoreRecipes)).registerResearchItem();
|
||||
|
||||
researchCleanAuraCore = new ResearchItem(Gadomancy.MODID.toUpperCase() + ".CLEAN_AURA_CORE", Gadomancy.MODID,
|
||||
new AspectList().add(Aspect.HEAL, 8).add(Aspect.AURA, 6).add(Aspect.MAGIC, 8).add(Aspect.WATER, 10),
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
package makeo.gadomancy.common.research;
|
||||
|
||||
import thaumcraft.api.research.ResearchPage;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
* <p/>
|
||||
* Created by makeo @ 08.12.2015 12:28
|
||||
*/
|
||||
public class MultiResearchPage extends ResearchPage {
|
||||
public MultiResearchPage(List... recipes) {
|
||||
super(recipes[0]);
|
||||
recipe = new OverrideList(recipes);
|
||||
}
|
||||
|
||||
private class OverrideList extends ArrayList<Object> {
|
||||
private int recipeIndex = -1;
|
||||
private List[] recipes;
|
||||
|
||||
public OverrideList(List... recipes) {
|
||||
super(recipes[0]);
|
||||
this.recipes = recipes;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object get(int index) {
|
||||
int calcIndex;
|
||||
if(index == 0 && (calcIndex = calcIndex()) != recipeIndex) {
|
||||
this.clear();
|
||||
for(Object o : recipes[calcIndex]) {
|
||||
this.add(o);
|
||||
}
|
||||
recipeIndex = calcIndex;
|
||||
}
|
||||
return super.get(index);
|
||||
}
|
||||
|
||||
private int calcIndex() {
|
||||
return (int)(System.currentTimeMillis() / 1000L % recipes.length);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -117,7 +117,7 @@ public class WandHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
if(!ThaumcraftApiHelper.consumeVisFromWandCrafting(i, entityPlayer, RegisteredRecipes.costsAuraCoreStart, true))
|
||||
if(!ThaumcraftApiHelper.consumeVisFromWandCrafting(i, entityPlayer, (AspectList)RegisteredRecipes.auraCoreRecipes[meta].get(0), true))
|
||||
return;
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user