Fixed #2895
This commit is contained in:
@@ -355,6 +355,7 @@ public class Bullets implements ContentList{
|
|||||||
height = 23f;
|
height = 23f;
|
||||||
shootEffect = Fx.shootBig;
|
shootEffect = Fx.shootBig;
|
||||||
pierceCap = 2;
|
pierceCap = 2;
|
||||||
|
pierceBuilding = true;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
standardIncendiaryBig = new BasicBulletType(7f, 60, "bullet"){{
|
standardIncendiaryBig = new BasicBulletType(7f, 60, "bullet"){{
|
||||||
@@ -365,6 +366,7 @@ public class Bullets implements ContentList{
|
|||||||
status = StatusEffects.burning;
|
status = StatusEffects.burning;
|
||||||
shootEffect = Fx.shootBig;
|
shootEffect = Fx.shootBig;
|
||||||
pierceCap = 2;
|
pierceCap = 2;
|
||||||
|
pierceBuilding = true;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
damageLightning = new BulletType(0.0001f, 0f){{
|
damageLightning = new BulletType(0.0001f, 0f){{
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ public class UnitTypes implements ContentList{
|
|||||||
y = 1f;
|
y = 1f;
|
||||||
x = 16f;
|
x = 16f;
|
||||||
shootY = 8f;
|
shootY = 8f;
|
||||||
reload = 50f;
|
reload = 45f;
|
||||||
recoil = 5f;
|
recoil = 5f;
|
||||||
shake = 2f;
|
shake = 2f;
|
||||||
ejectEffect = Fx.shellEjectBig;
|
ejectEffect = Fx.shellEjectBig;
|
||||||
@@ -173,7 +173,7 @@ public class UnitTypes implements ContentList{
|
|||||||
inaccuracy = 3f;
|
inaccuracy = 3f;
|
||||||
shotDelay = 4f;
|
shotDelay = 4f;
|
||||||
|
|
||||||
bullet = new BasicBulletType(7f, 45){{
|
bullet = new BasicBulletType(7f, 50){{
|
||||||
width = 11f;
|
width = 11f;
|
||||||
height = 20f;
|
height = 20f;
|
||||||
lifetime = 25f;
|
lifetime = 25f;
|
||||||
@@ -182,7 +182,7 @@ public class UnitTypes implements ContentList{
|
|||||||
lightningLength = 6;
|
lightningLength = 6;
|
||||||
lightningColor = Pal.surge;
|
lightningColor = Pal.surge;
|
||||||
//standard bullet damage is far too much for lightning
|
//standard bullet damage is far too much for lightning
|
||||||
lightningDamage = 25;
|
lightningDamage = 30;
|
||||||
}};
|
}};
|
||||||
}},
|
}},
|
||||||
|
|
||||||
@@ -230,8 +230,9 @@ public class UnitTypes implements ContentList{
|
|||||||
ejectEffect = Fx.shellEjectBig;
|
ejectEffect = Fx.shellEjectBig;
|
||||||
shootSound = Sounds.artillery;
|
shootSound = Sounds.artillery;
|
||||||
|
|
||||||
bullet = new BasicBulletType(13f, 55){{
|
bullet = new BasicBulletType(13f, 60){{
|
||||||
pierce = true;
|
pierce = true;
|
||||||
|
pierceCap = 10;
|
||||||
width = 14f;
|
width = 14f;
|
||||||
height = 33f;
|
height = 33f;
|
||||||
lifetime = 15f;
|
lifetime = 15f;
|
||||||
@@ -250,6 +251,8 @@ public class UnitTypes implements ContentList{
|
|||||||
width = 10f;
|
width = 10f;
|
||||||
height = 10f;
|
height = 10f;
|
||||||
pierce = true;
|
pierce = true;
|
||||||
|
pierceBuilding = true;
|
||||||
|
pierceCap = 3;
|
||||||
|
|
||||||
lifetime = 20f;
|
lifetime = 20f;
|
||||||
hitEffect = Fx.flakExplosion;
|
hitEffect = Fx.flakExplosion;
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ public abstract class BulletType extends Content{
|
|||||||
public void init(Bullet b){
|
public void init(Bullet b){
|
||||||
if(pierceCap >= 1) {
|
if(pierceCap >= 1) {
|
||||||
pierce = true;
|
pierce = true;
|
||||||
pierceBuilding = true;
|
//pierceBuilding is not enabled by default, because a bullet may want to *not* pierce buildings
|
||||||
}
|
}
|
||||||
|
|
||||||
if(killShooter && b.owner() instanceof Healthc){
|
if(killShooter && b.owner() instanceof Healthc){
|
||||||
|
|||||||
@@ -107,11 +107,13 @@ public class ModsDialog extends BaseDialog{
|
|||||||
Core.settings.put("lastmod", text);
|
Core.settings.put("lastmod", text);
|
||||||
|
|
||||||
ui.loadfrag.show();
|
ui.loadfrag.show();
|
||||||
// Try to download the 6.0 branch first, but if it doesnt exist try master.
|
//Try to download the 6.0 branch first, but if it doesn't exist try master.
|
||||||
githubImport("6.0", text, e1 -> {
|
githubImport("6.0", text, e1 -> {
|
||||||
githubImport("master", text, e2 -> {
|
githubImport("master", text, e2 -> {
|
||||||
ui.showErrorMessage(Core.bundle.format("connectfail", e2));
|
githubImport("main", text, e3 -> {
|
||||||
ui.loadfrag.hide();
|
ui.showErrorMessage(Core.bundle.format("connectfail", e2));
|
||||||
|
ui.loadfrag.hide();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user