Allow sparks to have different color networks like corporea. For now, show by coloring the upgrade icon, and displaying the corporea star if there is no upgrade

This commit is contained in:
Vincent Lee committed 2019-10-07 19:40:34 -05:00
1 parent be6d7f610e
commit d798e44e8c
10 files changed
+136 -105

No files matched your search

@@ -24,7 +24,9 @@ public class RenderSpark extends RenderSparkBase<EntitySpark> {
@Override
public TextureAtlasSprite getSpinningIcon(EntitySpark entity) {
int upgrade = entity.getUpgrade().ordinal() - 1;
return upgrade >= 0 && upgrade < MiscellaneousIcons.INSTANCE.sparkUpgradeIcons.length ? MiscellaneousIcons.INSTANCE.sparkUpgradeIcons[upgrade] : null;
return upgrade >= 0 && upgrade < MiscellaneousIcons.INSTANCE.sparkUpgradeIcons.length
? MiscellaneousIcons.INSTANCE.sparkUpgradeIcons[upgrade]
: super.getSpinningIcon(entity);
}
}