mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-05 16:37:38 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e4fe0c24c1
@ -316,7 +316,8 @@ public class Vars implements Loadable{
|
||||
logicVars = new GlobalVars();
|
||||
javaPath =
|
||||
new Fi(OS.prop("java.home")).child("bin/java").exists() ? new Fi(OS.prop("java.home")).child("bin/java").absolutePath() :
|
||||
Core.files.local("jre/bin/java").exists() ? Core.files.local("jre/bin/java").absolutePath() :
|
||||
Core.files.local("jre/bin/java").exists() ? Core.files.local("jre/bin/java").absolutePath() : // Unix
|
||||
Core.files.local("jre/bin/java.exe").exists() ? Core.files.local("jre/bin/java.exe").absolutePath() : // Windows
|
||||
"java";
|
||||
|
||||
state = new GameState();
|
||||
|
@ -31,6 +31,8 @@ public class Weapon implements Cloneable{
|
||||
public BulletType bullet = Bullets.placeholder;
|
||||
/** shell ejection effect */
|
||||
public Effect ejectEffect = Fx.none;
|
||||
/** whether weapon should appear in the stats of a unit with this weapon */
|
||||
public boolean display = true;
|
||||
/** whether to consume ammo when ammo is enabled in rules */
|
||||
public boolean useAmmo = true;
|
||||
/** whether to create a flipped copy of this weapon upon initialization. default: true */
|
||||
@ -147,7 +149,7 @@ public class Weapon implements Cloneable{
|
||||
}
|
||||
|
||||
public boolean hasStats(UnitType u){
|
||||
return true;
|
||||
return display;
|
||||
}
|
||||
|
||||
public void addStats(UnitType u, Table t){
|
||||
|
@ -22,14 +22,10 @@ public class BuildWeapon extends Weapon{
|
||||
rotate = true;
|
||||
noAttack = true;
|
||||
predictTarget = false;
|
||||
display = false;
|
||||
bullet = new BulletType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasStats(UnitType u){
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(Unit unit, WeaponMount mount){
|
||||
mount.shoot = false;
|
||||
|
@ -110,7 +110,7 @@
|
||||
},
|
||||
{
|
||||
"name": "Eradicationdustry",
|
||||
"address": ["n1.yeet.ml:6577", "n1.yeet.ml:6576", "n1.yeet.ml:6602", "n1.yeet.ml:6669", "eradicationmindustry.yeet.ml:9547"]
|
||||
"address": ["n1.yeet.ml:6577", "n1.yeet.ml:6576", "n1.yeet.ml:6602", "n1.yeet.ml:6669", "eradicationmindustry.yeet.ml:9547", "n1.yeet.ml:6593"]
|
||||
},
|
||||
{
|
||||
"name": "AlternightBrasil",
|
||||
@ -122,6 +122,6 @@
|
||||
},
|
||||
{
|
||||
"name": "LightDustry",
|
||||
"address": ["lightdustry.ddns.net:28583", "lightdustry.ddns.net:6567", "lightdustry.ddns.net:6568"]
|
||||
"address": ["lightdustry.ddns.net:28583", "lightdusy.ddns.net:6567", "lightdusy.ddns.net:6568"]
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user