Achievement fixes
This commit is contained in:
@@ -297,9 +297,10 @@ project(":core"){
|
|||||||
def props = loadVersionProps()
|
def props = loadVersionProps()
|
||||||
def androidVersion = props['androidBuildCode'].toInteger() - 2
|
def androidVersion = props['androidBuildCode'].toInteger() - 2
|
||||||
def loglines = file("../changelog").text.split("\n")
|
def loglines = file("../changelog").text.split("\n")
|
||||||
|
def notice = "[This is a truncated changelog, see Github for full notes]"
|
||||||
def maxLength = 460
|
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 = ""
|
def result = ""
|
||||||
androidLogList.forEach{line ->
|
androidLogList.forEach{line ->
|
||||||
if(result.length() + line.length() + 1 < maxLength){
|
if(result.length() + line.length() + 1 < maxLength){
|
||||||
|
|||||||
@@ -316,11 +316,11 @@ public class SStats implements SteamUserStatsCallback{
|
|||||||
captureBackground.complete();
|
captureBackground.complete();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!e.sector.planet.sectors.contains(s -> s.hasBase())){
|
if(!e.sector.planet.sectors.contains(s -> !s.hasBase())){
|
||||||
captureAllSectors.complete();
|
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
|
//TODO dead achievement
|
||||||
|
|||||||
Reference in New Issue
Block a user