diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 05e827d090..de9a945104 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -59,6 +59,7 @@ stat.built = Buildings Built:[accent] {0} stat.destroyed = Buildings Destroyed:[accent] {0} stat.deconstructed = Buildings Deconstructed:[accent] {0} stat.delivered = Resources Launched: +stat.playtime = Time Played:[accent] {0} stat.rank = Final Rank: [accent]{0} launcheditems = [accent]Launched Items diff --git a/core/src/mindustry/ui/dialogs/GameOverDialog.java b/core/src/mindustry/ui/dialogs/GameOverDialog.java index bb9b4fcc8d..f5a9605a82 100644 --- a/core/src/mindustry/ui/dialogs/GameOverDialog.java +++ b/core/src/mindustry/ui/dialogs/GameOverDialog.java @@ -62,6 +62,10 @@ public class GameOverDialog extends FloatingDialog{ t.row(); t.add(Core.bundle.format("stat.deconstructed", state.stats.buildingsDeconstructed)); t.row(); + if(control.saves.getCurrent() != null){ + t.add(Core.bundle.format("stat.playtime", control.saves.getCurrent().getPlayTime())); + t.row(); + } if(world.isZone() && !state.stats.itemsDelivered.isEmpty()){ t.add("$stat.delivered"); t.row();