Add tier, element and spell type to advanced tooltips for spell books and scrolls

This commit is contained in:
Electroblob77
2019-09-03 20:55:41 +01:00
parent 97c72685bb
commit c06105cd00
2 changed files with 29 additions and 3 deletions
@@ -64,10 +64,13 @@ public class ItemSpellBook extends Item {
: "#\u00A79" + SpellGlyphData.getGlyphName(spell, world));
tooltip.add(spell.getTier().getDisplayNameWithFormatting());
// Advanced tooltips display more information, mainly for searching purposes in creative
if(discovered && advanced.isAdvanced()){ // No cheating!
tooltip.add(spell.getElement().getDisplayName());
tooltip.add(spell.getType().getDisplayName());
}
}
/* Removed to streamline the tooltip a bit. Information is now within the book. if(spell.isContinuous){
* tooltip.add("\u00A79Mana Cost: " + spell.cost + " per second"); }else{ tooltip.add("\u00A79Mana Cost: " +
* spell.cost); } */
}
@Override