mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-10-26 14:33:48 +00:00
Documented the option to turn off light in the Leggings.
This commit is contained in:
1 parent
f8d0cd759f
commit
0df46d1594
3 files changed
+26
-6
No files matched your search
@@ -14,9 +14,12 @@
|
||||
*/
|
||||
package vazkii.tinkerer.common.item.kami.armor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.EventPriority;
|
||||
import net.minecraftforge.event.ForgeSubscribe;
|
||||
@@ -25,6 +28,7 @@ import net.minecraftforge.event.entity.living.LivingHurtEvent;
|
||||
import org.lwjgl.util.vector.Vector2f;
|
||||
|
||||
import thaumcraft.client.codechicken.core.vec.Vector3;
|
||||
import vazkii.tinkerer.client.core.handler.kami.ToolModeHUDHandler;
|
||||
import vazkii.tinkerer.common.item.ItemBrightNitor;
|
||||
import vazkii.tinkerer.common.item.ModItems;
|
||||
|
||||
@@ -37,10 +41,17 @@ public class ItemGemLegs extends ItemIchorclothArmorAdv {
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
|
||||
int dmg = par1ItemStack.getItemDamage();
|
||||
par1ItemStack.setItemDamage(~dmg & 1);
|
||||
par2World.playSoundAtEntity(par3EntityPlayer, "random.orb", 0.3F, 0.1F);
|
||||
return par1ItemStack;
|
||||
if(par3EntityPlayer.isSneaking()) {
|
||||
int dmg = par1ItemStack.getItemDamage();
|
||||
par1ItemStack.setItemDamage(~dmg & 1);
|
||||
par2World.playSoundAtEntity(par3EntityPlayer, "random.orb", 0.3F, 0.1F);
|
||||
|
||||
ToolModeHUDHandler.setTooltip(StatCollector.translateToLocal("ttmisc.light" + par1ItemStack.getItemDamage()));
|
||||
|
||||
return par1ItemStack;
|
||||
}
|
||||
|
||||
return super.onItemRightClick(par1ItemStack, par2World, par3EntityPlayer);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -85,4 +96,10 @@ public class ItemGemLegs extends ItemIchorclothArmorAdv {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
if(stack.getItemDamage() == 1)
|
||||
list.add(StatCollector.translateToLocal("ttmisc.light1"));
|
||||
}
|
||||
}
|
||||
@@ -194,7 +194,7 @@ public final class ModResearch {
|
||||
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_ICHORCLOTH_CHEST_GEM));
|
||||
|
||||
research = new KamiResearchItem(LibResearch.KEY_ICHORCLOTH_LEGS_GEM, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.FIRE, 2).add(Aspect.HEAL, 1).add(Aspect.GREED, 1).add(Aspect.ENERGY, 1), 14, 6, 5, new ItemStack(ModItems.ichorLegsGem)).setHidden().setParents(LibResearch.KEY_ICHORCLOTH_ARMOR).registerResearchItem();
|
||||
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_ICHORCLOTH_LEGS_GEM));
|
||||
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_ICHORCLOTH_LEGS_GEM), new ResearchPage("1"));
|
||||
|
||||
research = new KamiResearchItem(LibResearch.KEY_ICHORCLOTH_BOOTS_GEM, LibResearch.CATEGORY_ARTIFICE, new AspectList().add(Aspect.EARTH, 2).add(Aspect.TRAVEL, 1).add(Aspect.MINE, 1).add(Aspect.PLANT, 1), 12, 7, 5, new ItemStack(ModItems.ichorBootsGem)).setHidden().setParents(LibResearch.KEY_ICHORCLOTH_ARMOR).registerResearchItem();
|
||||
research.setPages(new ResearchPage("0"), infusionPage(LibResearch.KEY_ICHORCLOTH_BOOTS_GEM));
|
||||
|
||||
@@ -46,7 +46,9 @@ ttmisc.mode.axe.2=Tree Mode
|
||||
ttmisc.mode.sword.0=Single Mode
|
||||
ttmisc.mode.sword.1=Area Mode
|
||||
ttmisc.mode.sword.2=Soul Mode
|
||||
ttmisc.focusXPDrain.tooltip=Experience x %s
|
||||
ttmisc.experience=Experience
|
||||
ttmisc.light0=Light Enabled
|
||||
ttmisc.light1=Light Disabled
|
||||
|
||||
# ITEM NAMES
|
||||
item.ttinkerer:darkQuartz.name=Smokey Quartz
|
||||
@@ -369,6 +371,7 @@ ttresearch.page.ICHORCLOTH_CHEST_GEM.0=You found a way of upgrading the Ichorclo
|
||||
ttresearch.name.ICHORCLOTH_LEGS_GEM=Leggings of the Burning Mantle
|
||||
ttresearch.lore.ICHORCLOTH_LEGS_GEM=A warm feeling
|
||||
ttresearch.page.ICHORCLOTH_LEGS_GEM.0=You found a way of upgrading the Ichorcloth Leggings into a more powerful form.<BR><BR>These leggings are infused with the soul of fire.<BR>For one, they cast a light around the holder, brighter even than that of Hyperenergetic Nitor. This light also expands to where the wearer is looking, akin to a flashlight, and prevales given the creator's existance in a much extended range.<BR>Furthermore, these leggings not only provide fire resistance, but they convert any incoming fire damage into healing.
|
||||
ttresearch.page.ICHORCLOTH_LEGS_GEM.1=Case you find yourself wanting to be in the darkness for whatever reason, Shift-right clicking with these leggings will toggle on or off the light feature.
|
||||
|
||||
# -- BOOTS OF THE HORIZONTAL SHIELD
|
||||
ttresearch.name.ICHORCLOTH_BOOTS_GEM=Boots of the Horizontal Shield
|
||||
|
||||
Reference in new issue
Block a user