Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Add random weapons to more chestloot like pyramids. Also re-enable bows!
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Aug 26, 2014
1 parent 6576a2f commit 9f4b187
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -14,8 +14,12 @@ public void init(FMLInitializationEvent event)
{
// add some a starting weapon to bonus chests!
ChestGenHooks.addItem(ChestGenHooks.BONUS_CHEST, new RandomWeaponChestContent(0,1, 10, 0,0, HarvestLevels._1_flint, 3));

// awesome dungeon loot!
ChestGenHooks.addItem(ChestGenHooks.DUNGEON_CHEST, new RandomWeaponChestContent(0,1, 2, 1,2, HarvestLevels._5_diamond, 4));
ChestGenHooks.addItem(ChestGenHooks.MINESHAFT_CORRIDOR, new RandomWeaponChestContent(0,1, 2, 0,0, HarvestLevels._2_copper, 2));
ChestGenHooks.addItem(ChestGenHooks.PYRAMID_DESERT_CHEST, new RandomWeaponChestContent(0,1, 2, 0,2, HarvestLevels._5_diamond, 3));
ChestGenHooks.addItem(ChestGenHooks.PYRAMID_JUNGLE_CHEST, new RandomWeaponChestContent(0,1, 2, 1,1, HarvestLevels._5_diamond, 3));
ChestGenHooks.addItem(ChestGenHooks.STRONGHOLD_LIBRARY, new RandomWeaponChestContent(0,1, 2, 2,2, HarvestLevels._5_diamond, 4));
}
}
Expand Up @@ -42,7 +42,7 @@ public RandomWeaponChestContent(int minCount, int maxCount, int weight, int minM
weapons = new ArrayList<ToolRecipe>();
for(ToolRecipe recipe : ToolBuilder.instance.combos) {
ToolCore type = recipe.getType();
if (type instanceof Weapon || type instanceof Battleaxe) // || type instanceof BowBase) //todo: re-enable bow once IToolPart PR is merged
if (type instanceof Weapon || type instanceof Battleaxe || type instanceof BowBase) //todo: re-enable bow once IToolPart PR is merged
weapons.add(recipe);
}
}
Expand Down

0 comments on commit 9f4b187

Please sign in to comment.