Skip to content

Commit

Permalink
Enhanced shield compatibility for flood
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Dec 11, 2023
1 parent 1eafbeb commit b6ab13a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions core/src/mindustry/ui/dialogs/TraceDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ public void show(Player player, TraceInfo info, boolean offline){
buttons.clear();
addCloseButton();

buttons.button("JS Ban (Requires /js)", () -> {
buttons.button("JS Ban (Requires /js)", () -> ui.showConfirm("@confirm", Core.bundle.format("confirmban", player.name()), () -> {
Call.sendChatMessage("/js Vars.netServer.admins.banPlayerID(" + info.uuid + ")");
Call.sendChatMessage("/js Vars.netServer.admins.banPlayerIP(" + info.ip + ")");
}).width(420);
if(!offline){
buttons.button("Ban (Won't work if they leave before pressed)", () -> Call.adminRequest(player, Packets.AdminAction.ban, null)).width(420);
}
})).width(420);
if(!offline) buttons.button("Ban (Won't work if they leave before pressed)", () -> ui.showConfirm("@confirm", Core.bundle.format("confirmban", player.name()), () -> Call.adminRequest(player, Packets.AdminAction.ban, null))).width(420);

Table table = new Table(Tex.clear);
table.margin(14);
Expand Down
3 changes: 2 additions & 1 deletion core/src/mindustry/world/blocks/defense/ForceProjector.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import arc.util.*;
import arc.util.io.*;
import mindustry.annotations.Annotations.*;
import mindustry.client.utils.*;
import mindustry.content.*;
import mindustry.entities.*;
import mindustry.game.EventType.*;
Expand Down Expand Up @@ -169,7 +170,7 @@ public void updateTile(){

warmup = Mathf.lerpDelta(warmup, efficiency, 0.1f);

if(buildup > 0){
if(buildup > 0 && !CustomMode.flood.b()){
float scale = !broken ? cooldownNormal : cooldownBrokenBase;

//TODO I hate this system
Expand Down

0 comments on commit b6ab13a

Please sign in to comment.