From 08747b599bdc6b0208c452096ebd188dad4866eb Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Thu, 24 Jul 2014 22:42:20 +0100 Subject: [PATCH] Rainbows for @nemsun. --- .../item/equipment/bauble/ItemFlightTiara.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemFlightTiara.java b/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemFlightTiara.java index 17fba7751..7dd044821 100644 --- a/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemFlightTiara.java +++ b/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemFlightTiara.java @@ -60,9 +60,22 @@ public class ItemFlightTiara extends ItemBauble implements IManaUsingItem { double x = event.entityLiving.posX - 0.5; double y = event.entityLiving.posY - 1.7; double z = event.entityLiving.posZ - 0.5; - float pink = player.getGameProfile().getName().equals("Vazkii") ? (float) Math.random() * 0.75F + 0.25F : 0F; + + String name = player.getGameProfile().getName(); + float r = 1F; + float g = 1F; + float b = 1F; + + if(name.equals("Vazkii")) + g = 1F - ((float) Math.random() * 0.75F + 0.25F); + else if(name.equals("Nemsun")) { + r = (float) Math.random(); + g = (float) Math.random(); + b = (float) Math.random(); + } + for(int i = 0; i < 3; i++) - Botania.proxy.sparkleFX(event.entityLiving.worldObj, x + Math.random() * event.entityLiving.width, y + Math.random() * 0.4, z + Math.random() * event.entityLiving.width, 1F, 1F - pink, 1F, 2F * (float) Math.random(), 20); + Botania.proxy.sparkleFX(event.entityLiving.worldObj, x + Math.random() * event.entityLiving.width, y + Math.random() * 0.4, z + Math.random() * event.entityLiving.width, r, g, b, 2F * (float) Math.random(), 20); } } } else {