WIP campaign complete dialog

This commit is contained in:
Anuken
2022-10-31 00:09:46 -04:00
parent b11344e59e
commit 8ddf0bbd02
2 changed files with 5 additions and 2 deletions

View File

@@ -4458,7 +4458,7 @@ public class Blocks{
//TODO is this a good idea to begin with?
unitSort = UnitSorts.strongest;
consumeLiquid(Liquids.nitrogen, 5f / 60f);
consumeLiquid(Liquids.nitrogen, 6f / 60f);
}};
scathe = new ItemTurret("scathe"){{

View File

@@ -1,6 +1,7 @@
package mindustry.ui.dialogs;
import mindustry.*;
import mindustry.core.*;
import mindustry.gen.*;
import mindustry.type.*;
@@ -25,10 +26,12 @@ public class CampaignCompleteDialog extends BaseDialog{
//TODO obviously needs different text.
cont.clear();
cont.add("[accent]Congrations. You done it.[]\n\nThe enemy on " + planet.localizedName + " has been defeated.");
cont.add("[accent]Congratulations.\nThe enemy on " + planet.localizedName + " has been defeated.\n\nThe final sector has been conquered.").row();
float playtime = planet.sectors.sumf(s -> s.hasSave() ? s.save.meta.timePlayed : 0) / 1000f;
//TODO needs more info
cont.add("Total Playtime: " + UI.formatTime(playtime)).left().row();
show();
}