Fixed #3884 / Fixed #3881 / Fixed #3880

This commit is contained in:
Anuken
2020-12-09 10:49:26 -05:00
parent 1460a15942
commit c93bc0e457
6 changed files with 21 additions and 13 deletions

View File

@ -28,7 +28,7 @@ public enum SStat{
public void max(int amount){
if(amount > get()){
add(amount - get());
set(amount);
}
}
@ -42,7 +42,7 @@ public enum SStat{
}
public void add(int amount){
set(get() + 1);
set(get() + amount);
}
public void add(){

View File

@ -27,7 +27,6 @@ public class SStats implements SteamUserStatsCallback{
private ObjectSet<String> blocksBuilt = new ObjectSet<>(), unitsBuilt = new ObjectSet<>();
private ObjectSet<UnitType> t5s = new ObjectSet<>();
private ObjectSet<UnitType> tmpSet = new ObjectSet<>();
public SStats(){
stats.requestCurrentStats();
@ -106,7 +105,7 @@ public class SStats implements SteamUserStatsCallback{
}
}
SStat.maxProduction.max(Mathf.round(total));
SStat.maxProduction.max(Math.round(total));
});
Events.run(Trigger.newGame, () -> Core.app.post(() -> {