Clearer sector capture notification

This commit is contained in:
Anuken
2024-01-05 08:22:12 -05:00
parent c1fabfd4a4
commit 61945e5ce7
4 changed files with 9 additions and 5 deletions

View File

@@ -71,7 +71,11 @@ public class HudFragment{
});
Events.on(SectorCaptureEvent.class, e -> {
showToast(Core.bundle.format("sector.captured", e.sector.isBeingPlayed() ? "" : e.sector.name() + " "));
if(e.sector.isBeingPlayed()){
ui.announce(Core.bundle.format("sector.capture", ""), 5f);
}else{
showToast(Core.bundle.format("sector.capture", e.sector.name() + " "));
}
});
Events.on(SectorLoseEvent.class, e -> {