summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/worldGen/village/JCTrades.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-02-08 03:03:22 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-02-08 03:03:22 +0200
commit4d0e0e8de72bda8543a888082a93b1e56f13856b (patch)
treeb17c62ab7119ce485d49f163e4c10dfd05ae0d57 /common/darkknight/jewelrycraft/worldGen/village/JCTrades.java
parent9075a22c3e303699db18062ebfc0159cace27c29 (diff)
Added a new block and implemented an on/off "switch" for the rings that give buffs, also working on balancing the rings
Diffstat (limited to 'common/darkknight/jewelrycraft/worldGen/village/JCTrades.java')
-rw-r--r--common/darkknight/jewelrycraft/worldGen/village/JCTrades.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/darkknight/jewelrycraft/worldGen/village/JCTrades.java b/common/darkknight/jewelrycraft/worldGen/village/JCTrades.java
index 4e1022d..a60696b 100644
--- a/common/darkknight/jewelrycraft/worldGen/village/JCTrades.java
+++ b/common/darkknight/jewelrycraft/worldGen/village/JCTrades.java
@@ -131,6 +131,9 @@ public class JCTrades implements IVillageTradeHandler
JewelryNBT.addMetal(result, JewelrycraftUtil.metal.get(random.nextInt(JewelrycraftUtil.metal.size())));
JewelryNBT.addModifier(result, JewelrycraftUtil.modifiers.get(random.nextInt(JewelrycraftUtil.modifiers.size())));
JewelryNBT.addJewel(result, JewelrycraftUtil.jewel.get(random.nextInt(JewelrycraftUtil.jewel.size())));
+ if(JewelryNBT.isModifierEffectType(result)) JewelryNBT.addMode(result, "Activated");
+ if(JewelryNBT.isJewelX(result, new ItemStack(Item.netherStar)) && JewelryNBT.isModifierX(result, new ItemStack(Item.book)))
+ JewelryNBT.addMode(result, "Disenchant");
ingredient = new ItemStack(Item.emerald, 16 + random.nextInt(20));
ingredient2 = new ItemStack(Block.blockEmerald, 5 + random.nextInt(5));
}