Fixed some things
This commit is contained in:
@@ -69,7 +69,8 @@ android{
|
||||
}
|
||||
|
||||
defaultConfig{
|
||||
Integer vcode = new Properties().with{p -> p.load(new FileInputStream(file('../core/assets/version.properties'))); return p }['androidBuildCode']?.toInteger() ?: 1
|
||||
Properties props = new Properties().with{p -> p.load(file('../core/assets/version.properties').newReader()); return p }
|
||||
Integer vcode = props['androidBuildCode']?.toInteger() ?: 1
|
||||
def versionNameResult = "$versionNumber-$versionType-${getBuildVersion().replace(" ", "-")}"
|
||||
|
||||
applicationId "io.anuke.mindustry"
|
||||
@@ -78,6 +79,9 @@ android{
|
||||
|
||||
versionName versionNameResult
|
||||
versionCode vcode
|
||||
|
||||
props['androidBuildCode'] = (vcode + 1).toString()
|
||||
props.store(file('../core/assets/version.properties').newWriter(), null)
|
||||
}
|
||||
|
||||
compileOptions{
|
||||
|
||||
@@ -28,12 +28,13 @@ public class Statuses implements Saveable{
|
||||
private float damageMultiplier;
|
||||
private float armorMultiplier;
|
||||
|
||||
public void handleApply(io.anuke.mindustry.entities.type.Unit unit, StatusEffect effect, float duration){
|
||||
public void handleApply(Unit unit, StatusEffect effect, float duration){
|
||||
if(effect == StatusEffects.none || unit.isImmune(effect)) return; //don't apply empty or immune effects
|
||||
|
||||
if(statuses.size > 0){
|
||||
//check for opposite effects
|
||||
for(StatusEntry entry : statuses){
|
||||
if(entry.effect == null) continue;
|
||||
//extend effect
|
||||
if(entry.effect == effect){
|
||||
entry.time = Math.max(entry.time, duration);
|
||||
|
||||
@@ -25,7 +25,7 @@ public class MinimapDialog extends FloatingDialog{
|
||||
}
|
||||
|
||||
void setup(){
|
||||
cont.clearChildren();
|
||||
cont.clear();
|
||||
|
||||
cont.table(Tex.pane,t -> {
|
||||
t.addRect((x, y, width, height) -> {
|
||||
|
||||
Reference in New Issue
Block a user