Minor Tweaks
This commit is contained in:
@@ -49,9 +49,13 @@ public class DDLoot {
|
|||||||
addContent(true, items, Item.diamond.itemID, 40, 1, 2);
|
addContent(true, items, Item.diamond.itemID, 40, 1, 2);
|
||||||
addContent(true, items, Item.emerald.itemID, 20, 1, 2);
|
addContent(true, items, Item.emerald.itemID, 20, 1, 2);
|
||||||
addContent(true, items, Item.appleGold.itemID, 10);
|
addContent(true, items, Item.appleGold.itemID, 10);
|
||||||
|
addContent(true, items, Item.nameTag.itemID, 15);
|
||||||
|
addContent(true, items, Item.eyeOfEnder.itemID, 15);
|
||||||
|
addContent(true, items, Item.ghastTear.itemID, 15);
|
||||||
|
|
||||||
addContent(properties.FabricOfRealityLootEnabled, items, mod_pocketDim.blockDimWall.blockID, 80, 4, 16);
|
addContent(properties.FabricOfRealityLootEnabled, items, mod_pocketDim.blockDimWall.blockID, 80, 4, 16);
|
||||||
addContent(properties.WorldThreadLootEnabled, items, mod_pocketDim.itemWorldThread.itemID, 80);
|
addContent(properties.WorldThreadLootEnabled, items, mod_pocketDim.itemWorldThread.itemID, 90, 1,2);
|
||||||
|
|
||||||
|
|
||||||
// Add all the items to our dungeon chest
|
// Add all the items to our dungeon chest
|
||||||
addItemsToContainer(DungeonChestInfo, items);
|
addItemsToContainer(DungeonChestInfo, items);
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ public abstract class BaseDimDoor extends BlockDoor implements IDimDoor, ITileEn
|
|||||||
|
|
||||||
world.playAuxSFXAtEntity(player, 1003, x, y, z, 0);
|
world.playAuxSFXAtEntity(player, 1003, x, y, z, 0);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ public class BlockRift extends Block implements ITileEntityProvider
|
|||||||
private static final int BLOCK_SEARCH_CHANCE = 50;
|
private static final int BLOCK_SEARCH_CHANCE = 50;
|
||||||
private static final int MAX_BLOCK_DESTRUCTION_CHANCE = 100;
|
private static final int MAX_BLOCK_DESTRUCTION_CHANCE = 100;
|
||||||
private static final int BLOCK_DESTRUCTION_CHANCE = 50;
|
private static final int BLOCK_DESTRUCTION_CHANCE = 50;
|
||||||
|
private static final int WORLD_THREAD_PROBABILITY = 10;
|
||||||
|
|
||||||
private final DDProperties properties;
|
private final DDProperties properties;
|
||||||
private final ArrayList<Integer> blocksImmuneToRift;
|
private final ArrayList<Integer> blocksImmuneToRift;
|
||||||
@@ -208,7 +209,7 @@ public class BlockRift extends Block implements ITileEntityProvider
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(worldObj.rand.nextInt(7)==0)
|
if(worldObj.rand.nextInt(100)<this.WORLD_THREAD_PROBABILITY)
|
||||||
{
|
{
|
||||||
|
|
||||||
ItemStack thread = new ItemStack(mod_pocketDim.itemWorldThread,1);
|
ItemStack thread = new ItemStack(mod_pocketDim.itemWorldThread,1);
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ public class DungeonPack
|
|||||||
//for dungeon packs that can extend arbitrarily deep. We should probably set a reasonable limit anyway.
|
//for dungeon packs that can extend arbitrarily deep. We should probably set a reasonable limit anyway.
|
||||||
|
|
||||||
int maxSearchLength = config.allowDuplicatesInChain() ? maxRuleLength : MAX_HISTORY_LENGTH;
|
int maxSearchLength = config.allowDuplicatesInChain() ? maxRuleLength : MAX_HISTORY_LENGTH;
|
||||||
ArrayList<DungeonData> history = DungeonHelper.getDungeonChainHistory(dimension.parent(), this, maxSearchLength);
|
ArrayList<DungeonData> history = DungeonHelper.getDungeonChainHistory(dimension, this, maxSearchLength);
|
||||||
return getNextDungeon(history, random);
|
return getNextDungeon(history, random);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -615,9 +615,12 @@ public class DungeonHelper
|
|||||||
{
|
{
|
||||||
throw new IllegalArgumentException("dimension cannot be null.");
|
throw new IllegalArgumentException("dimension cannot be null.");
|
||||||
}
|
}
|
||||||
|
if(dimension.parent()==null)
|
||||||
|
{
|
||||||
|
return new ArrayList<DungeonData>();
|
||||||
|
}
|
||||||
int count = 0;
|
int count = 0;
|
||||||
NewDimData tail = dimension;
|
NewDimData tail = dimension.parent();
|
||||||
DungeonData dungeon = tail.dungeon();
|
DungeonData dungeon = tail.dungeon();
|
||||||
ArrayList<DungeonData> history = new ArrayList<DungeonData>();
|
ArrayList<DungeonData> history = new ArrayList<DungeonData>();
|
||||||
|
|
||||||
|
|||||||
@@ -73,8 +73,7 @@ public abstract class BaseGateway
|
|||||||
this.generateRandomBits(world, x, y, z);
|
this.generateRandomBits(world, x, y, z);
|
||||||
|
|
||||||
DimLink link = PocketManager.getDimensionData(world).createLink(x, y + 1, z, LinkTypes.DUNGEON, orientation);
|
DimLink link = PocketManager.getDimensionData(world).createLink(x, y + 1, z, LinkTypes.DUNGEON, orientation);
|
||||||
NewDimData data = PocketManager.registerPocket(PocketManager.getDimensionData(world), true);
|
PocketBuilder.generateSelectedDungeonPocket(link, mod_pocketDim.properties, this.getStartingDungeon(PocketManager.getDimensionData(world),world.rand));
|
||||||
PocketBuilder.generateSelectedDungeonPocket(link, mod_pocketDim.properties, this.getStartingDungeon(data,world.rand));
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user