Skip to content

Commit

Permalink
add(great summoning pedestal custom name color)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvb-uy committed Aug 31, 2024
1 parent ff8f43f commit 05428da
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

import elocindev.eldritch_end.api.CorruptionAPI;
import elocindev.eldritch_end.block.dark_magic.pedestal.GreatSummoningPedestal;
import elocindev.eldritch_end.corruption.CorruptionDisplayTooltip;
import elocindev.eldritch_end.item.relics.base.CorruptionRelic;
import elocindev.eldritch_end.item.relics.base.Relic;
Expand All @@ -38,7 +39,7 @@ public abstract class ItemNameMixin {

NbtCompound nbtCompound = stack.getSubNbt("display");

if (item instanceof CorruptionRelic) gradient = TextAPI.Styles.getGradient(name.setStyle(bold), 1, 0x5c3885, 0xb8731a, 1.0F);
if (item instanceof CorruptionRelic || item instanceof GreatSummoningPedestal) gradient = TextAPI.Styles.getGradient(name.setStyle(bold), 1, 0x5c3885, 0xb8731a, 1.0F);
else if (item instanceof Relic) gradient = TextAPI.Styles.getGradient(name.setStyle(bold), 1, 0x5d378c, 0xa89532, 1.0F);
else gradient = CorruptionAPI.getCMenuTitle();

Expand Down Expand Up @@ -73,7 +74,7 @@ public abstract class ItemNameMixin {

if (nbt != null && nbt.getBoolean("isInfused")) {
String currentInfusion = nbt.getString("currentInfusion");
newTooltip.add(Text.translatable("infusion.eldritch_end." + currentInfusion).formatted(Formatting.GOLD));
newTooltip.add(Text.translatable("infusion.eldritch_end." + currentInfusion).formatted(Formatting.BLUE));
cir.setReturnValue(newTooltip);
}
}
Expand Down

0 comments on commit 05428da

Please sign in to comment.