mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
Implemented Valiance enchantment
This commit is contained in:
1 parent
86e357af01
commit
33d57499fd
3 files changed
+11
No files matched your search
@@ -101,4 +101,5 @@ public final class LibResources {
|
||||
|
||||
public static final String ENCHANT_FOCUSED_STRIKE = "";
|
||||
public static final String ENCHANT_DISPERSED_STRIKE = "";
|
||||
public static final String ENCHANT_VALIANCE = "";
|
||||
}
|
||||
@@ -51,6 +51,13 @@ public class ModEnchantmentHandler {
|
||||
heldItem.stackTagCompound = new NBTTagCompound();
|
||||
}
|
||||
|
||||
int valiance = EnchantmentHelper.getEnchantmentLevel(LibEnchantIDs.valiance, heldItem);
|
||||
if(valiance > 0){
|
||||
if(attacker.getHealth()/attacker.getMaxHealth()<.5F){
|
||||
event.ammount *= (1 + .1*valiance);
|
||||
}
|
||||
}
|
||||
|
||||
int focusedStrikes = EnchantmentHelper.getEnchantmentLevel(LibEnchantIDs.focusedStrike, heldItem);
|
||||
|
||||
int dispersedStrikes = EnchantmentHelper.getEnchantmentLevel(LibEnchantIDs.dispersedStrikes, heldItem);
|
||||
|
||||
@@ -82,6 +82,9 @@ public final class EnchantmentManager {
|
||||
|
||||
registerExponentialCostData(ModEnchantments.dispersedStrikes, LibResources.ENCHANT_DISPERSED_STRIKE, false, new AspectList().add(Aspect.ENTROPY, 12).add(Aspect.FIRE, 10).add(Aspect.EARTH, 10), LibResearch.KEY_ENCHANT_VAMPIRISM);
|
||||
|
||||
registerExponentialCostData(ModEnchantments.dispersedStrikes, LibResources.ENCHANT_DISPERSED_STRIKE, false, new AspectList().add(Aspect.ENTROPY, 12).add(Aspect.FIRE, 10).add(Aspect.EARTH, 10), LibResearch.KEY_ENCHANT_VAMPIRISM);
|
||||
registerExponentialCostData(ModEnchantments.valiance, LibResources.ENCHANT_VALIANCE, false, new AspectList().add(Aspect.ORDER, 12).add(Aspect.FIRE, 10).add(Aspect.EARTH, 10), LibResearch.KEY_ENCHANT_VAMPIRISM);
|
||||
|
||||
registerCompatibilityRules();
|
||||
registerExtraRules();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user