Clearer sector capture notification
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 -> {
|
||||
|
||||
Reference in New Issue
Block a user