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

@@ -347,7 +347,7 @@ public class Teams{
}
for(var build : builds){
if(build.within(x, y, range) && !cores.contains(c -> c.within(x, y, range))){
if(build.within(x, y, range) && !cores.contains(c -> c.within(build, range))){
//TODO GPU driver bugs?
build.kill();
//Time.run(Mathf.random(0f, 60f * 6f), build::kill);

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 -> {