mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-30 22:49:06 +07:00
Achievement fixes
This commit is contained in:
@ -297,9 +297,10 @@ project(":core"){
|
||||
def props = loadVersionProps()
|
||||
def androidVersion = props['androidBuildCode'].toInteger() - 2
|
||||
def loglines = file("../changelog").text.split("\n")
|
||||
def notice = "[This is a truncated changelog, see Github for full notes]"
|
||||
def maxLength = 460
|
||||
|
||||
def androidLogList = loglines.findAll{ line -> !line.endsWith("]") || line.endsWith("[Mobile]") || line.endsWith("[Android]")}
|
||||
def androidLogList = [notice] + loglines.findAll{ line -> !line.endsWith("]") || line.endsWith("[Mobile]") || line.endsWith("[Android]")}
|
||||
def result = ""
|
||||
androidLogList.forEach{line ->
|
||||
if(result.length() + line.length() + 1 < maxLength){
|
||||
|
@ -316,11 +316,11 @@ public class SStats implements SteamUserStatsCallback{
|
||||
captureBackground.complete();
|
||||
}
|
||||
|
||||
if(!e.sector.planet.sectors.contains(s -> s.hasBase())){
|
||||
if(!e.sector.planet.sectors.contains(s -> !s.hasBase())){
|
||||
captureAllSectors.complete();
|
||||
}
|
||||
|
||||
SStat.sectorsControlled.set(e.sector.planet.sectors.count(s -> s.hasBase()));
|
||||
SStat.sectorsControlled.set(e.sector.planet.sectors.count(Sector::hasBase));
|
||||
});
|
||||
|
||||
//TODO dead achievement
|
||||
|
Reference in New Issue
Block a user