Load bullet part regions (#7663)
* Load bullet part regions * Unnecessary, just use name in the part
This commit is contained in:
@@ -38,6 +38,8 @@ public class BasicBulletType extends BulletType{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
|
super.load();
|
||||||
|
|
||||||
backRegion = Core.atlas.find(backSprite == null ? (sprite + "-back") : backSprite);
|
backRegion = Core.atlas.find(backSprite == null ? (sprite + "-back") : backSprite);
|
||||||
frontRegion = Core.atlas.find(sprite);
|
frontRegion = Core.atlas.find(sprite);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -301,6 +301,14 @@ public class BulletType extends Content implements Cloneable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void load(){
|
||||||
|
for(var part : parts){
|
||||||
|
part.turretShading = false;
|
||||||
|
part.load(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** @return estimated damage per shot. this can be very inaccurate. */
|
/** @return estimated damage per shot. this can be very inaccurate. */
|
||||||
public float estimateDPS(){
|
public float estimateDPS(){
|
||||||
float sum = damage + splashDamage*0.75f;
|
float sum = damage + splashDamage*0.75f;
|
||||||
|
|||||||
Reference in New Issue
Block a user