Implement blast modifier support for all applicable constructs, plus misc construct-related cleanup and fixes

This commit is contained in:
Electroblob77
2020-06-28 16:56:18 +01:00
parent 97c21b5057
commit 3a68ba8927
36 changed files with 296 additions and 201 deletions
@@ -19,13 +19,23 @@ import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
public class EntityRadiantTotem extends EntityMagicConstruct {
public class EntityRadiantTotem extends EntityScaledConstruct {
private static final int PERIMETER_PARTICLE_DENSITY = 6;
public EntityRadiantTotem(World world){
super(world);
this.setSize(1, 1);
this.setSize(1, 1); // This entity is different in that its area of effect is kind of 'outside' it
}
@Override
protected boolean shouldScaleWidth(){
return false;
}
@Override
protected boolean shouldScaleHeight(){
return false;
}
@Override
@@ -37,7 +47,7 @@ public class EntityRadiantTotem extends EntityMagicConstruct {
super.onUpdate();
double radius = Spells.radiant_totem.getProperty(Spell.EFFECT_RADIUS).floatValue(); // TODO: Blast modifiers
double radius = Spells.radiant_totem.getProperty(Spell.EFFECT_RADIUS).floatValue() * sizeMultiplier;
if(world.isRemote){