Skip to content

Commit

Permalink
Added a Tooltip to warn of the Warp you get from Void Metal Tools
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoriusT committed Sep 5, 2023
1 parent 0ed8c8f commit be690c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/java/gregapi/GT_API.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ public void onModPreInit2(FMLPreInitializationEvent aEvent) {
MT.FierySteel.setLocal("Fury Style");
MT.Thaumium.setLocal("Thaumanominum");
MT.DarkThaumium.setLocal("Dank Thaumanominum");
MT.VoidMetal.setLocal("Warranty Void Metal");
MT.Coal.setLocal("Cool");
MT.Charcoal.setLocal("Charred Cole");
MT.Lapis.setLocal("Le Piss");
Expand Down Expand Up @@ -454,6 +455,7 @@ public void onModPreInit2(FMLPreInitializationEvent aEvent) {
MT.Bronze.setLocal("Tinkerers Alloy");
MT.ArsenicCopper.setLocal("Arsenine Alloy");
MT.ArsenicBronze.setLocal("Arsenine Tinkerers Alloy");
MT.BismuthBronze.setLocal("Biffmiff Tinkerers Alloy");
MT.BlackBronze.setLocal("Afro Tinkerers Alloy"); // the original Joke got cancelled, but since I got a big ball of Hair on my head as of the time of writing this (thanks pandemic), it is perfectly acceptable.
MT.Constantan.setLocal("Cupronickel");
MT.Ge.setLocal("Platosmium");
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/gregapi/GT_API_Proxy_Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,6 @@ public void onItemTooltip(ItemTooltipEvent aEvent) {
}
if (tToolTip != null) aEvent.toolTip.add(tToolTip.toString());



if (MD.TF.mLoaded && tData.mMaterial.mMaterial.contains(TD.Properties.MAZEBREAKER)) {
aEvent.toolTip.add(LH.Chat.PINK + LH.get(LH.TOOLTIP_TWILIGHT_MAZE_BREAKING));
}
Expand All @@ -418,6 +416,10 @@ public void onItemTooltip(ItemTooltipEvent aEvent) {
if (MD.BTL.mLoaded && tData.mMaterial.mMaterial.contains(TD.Properties.BETWEENLANDS)) {
aEvent.toolTip.add(LH.Chat.GREEN + LH.get(LH.TOOLTIP_BETWEENLANDS_RESISTANCE));
}

if (MD.TC.mLoaded && tData.mMaterial.mMaterial.contains(TD.Properties.WARPING)) {
aEvent.toolTip.add(LH.Chat.RED + LH.get(LH.TOOLTIP_THAUMCRAFT_WARP));
}
}
if (aBlock == NB || !(aBlock instanceof MultiTileEntityBlockInternal || aBlock instanceof IBlockBase)) {
if (tData.mMaterial.mMaterial.contains(TD.Properties.FLAMMABLE)) {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/gregapi/data/LH.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ public class LH {
, TOOLTIP_BLAST_RESISTANCE_DYNAMITE = "gt.lang.blast.resist.dynamite.proof"
, TOOLTIP_BLAST_RESISTANCE_NOT_NUKE = "gt.lang.blast.resist.nuke.not"
, TOOLTIP_ENCHANT_BONUS = "gt.lang.enchantment.bonus"
, TOOLTIP_THAUMCRAFT_WARP = "gt.lang.thaumcraft.warp"
, TOOLTIP_BETWEENLANDS_RESISTANCE = "gt.lang.betweenlands.resist"
, TOOLTIP_TWILIGHT_MAZE_BREAKING = "gt.lang.twilightforest.mazebreaking"
, TOOLTIP_TWILIGHT_MAZE_HEDGE_BREAKING = "gt.lang.twilightforest.mazehedgebreaking"
Expand Down Expand Up @@ -602,6 +603,7 @@ public static final String getToolTipRedstoneFluxAccept(TagData aEnergyType) {
add(TOOLTIP_BLAST_RESISTANCE_DYNAMITE , "(Strong Dynamite Proof)");
add(TOOLTIP_BLAST_RESISTANCE_NOT_NUKE , "(IC2 Nukes can still go through!)");
add(TOOLTIP_ENCHANT_BONUS , "Can influence an Enchanting Table like a Bookshelf");
add(TOOLTIP_THAUMCRAFT_WARP , "Tools made of this cause Warp to the Wielder");
add(TOOLTIP_BETWEENLANDS_RESISTANCE , "Resistant to the rotting Effects of the Betweenlands");
add(TOOLTIP_TWILIGHT_MAZE_BREAKING , "Tools made of this can break Twilight Forest Mazes");
add(TOOLTIP_TWILIGHT_MAZE_HEDGE_BREAKING , "Can easily break Twilight Forest Maze Hedges");
Expand Down

0 comments on commit be690c0

Please sign in to comment.