Update all the tint colours!

This commit is contained in:
Sollace 2019-02-13 22:46:06 +02:00
parent 4ba567d5e5
commit f7dc68b4bd
8 changed files with 20 additions and 11 deletions

View file

@ -26,7 +26,7 @@ public class SpellAwkward extends AbstractSpell {
@Override
public int getTint() {
return 0x248712;
return 0xE1239C;
}
@Override

View file

@ -37,7 +37,7 @@ public class SpellCharge extends AbstractSpell {
@Override
public int getTint() {
return 0x0000AA;
return 0x7272B7;
}
@Override
@ -70,7 +70,10 @@ public class SpellCharge extends AbstractSpell {
protected EntitySpell getTarget(ICaster<?> source) {
if (targettedEntity == null && targettedEntityId != null) {
source.getWorld().getEntities(EntitySpell.class, e -> e.getUniqueID().equals(targettedEntityId)).stream().findFirst().ifPresent(this::setTarget);
source.getWorld().getEntities(EntitySpell.class, e -> e.getUniqueID().equals(targettedEntityId))
.stream()
.findFirst()
.ifPresent(this::setTarget);
}
if (targettedEntity != null && targettedEntity.isDead) {
@ -89,9 +92,9 @@ public class SpellCharge extends AbstractSpell {
BlockPos origin = source.getOrigin();
List<Entity> list = source.getWorld().getEntitiesInAABBexcluding(source.getEntity(),
searchArea.offset(origin), this::canTargetEntity).stream().sorted((a, b) -> {
return (int)(a.getDistanceSq(origin) - b.getDistanceSq(origin));
}).collect(Collectors.toList());
searchArea.offset(origin), this::canTargetEntity).stream().sorted((a, b) ->
(int)(a.getDistanceSq(origin) - b.getDistanceSq(origin))
).collect(Collectors.toList());
if (list.size() > 0) {
setTarget((EntitySpell)list.get(0));

View file

@ -80,7 +80,7 @@ public class SpellFire extends AbstractSpell.RangedAreaSpell implements IUseActi
@Override
public int getTint() {
return 0xFF0000;
return 0xFF5D00;
}
@Override

View file

@ -68,7 +68,7 @@ public class SpellIce extends AbstractSpell.RangedAreaSpell implements IUseActio
@Override
public int getTint() {
return 0xADD8E6;
return 0xBDBDF9;
}
@Override

View file

@ -58,7 +58,7 @@ public class SpellInferno extends SpellFire {
@Override
public int getTint() {
return 0xFF8C00;
return 0xF00F00;
}
@Override

View file

@ -40,7 +40,7 @@ public class SpellNecromancy extends AbstractSpell.RangedAreaSpell {
@Override
public int getTint() {
return 0;
return 0x3A3A3A;
}
@Override

View file

@ -42,7 +42,8 @@ public class SpellRegistry {
registerSpell(SpellAwkward::new);
registerSpell(SpellInferno::new);
registerSpell(SpellDrake::new);
registerSpell(GenericSpell.factory("light", 0xf0ff0f, SpellAffinity.GOOD));
registerSpell(SpellReveal::new);
registerSpell(GenericSpell.factory("light", 0xF7FACB, SpellAffinity.GOOD));
}
@Nullable

View file

@ -17,6 +17,11 @@ public class SpellVortex extends SpellShield {
return "vortex";
}
@Override
public int getTint() {
return 0x4CDEE7;
}
@Override
public SpellAffinity getAffinity() {
return SpellAffinity.NEUTRAL;