From c4d5126ac27820e712e29750b4f5ceaa4b71fdf7 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 17 Jul 2022 08:48:10 -0400 Subject: [PATCH] Minor bugfixes --- core/src/mindustry/type/UnitType.java | 4 ++-- core/src/mindustry/ui/fragments/HudFragment.java | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index d91d3f422d..7f357a8b74 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -742,8 +742,6 @@ public class UnitType extends UnlockableContent{ ab.init(this); } - canHeal = weapons.contains(w -> w.bullet.heals()); - //add mirrored weapon variants Seq mapped = new Seq<>(); for(Weapon w : weapons){ @@ -770,6 +768,8 @@ public class UnitType extends UnlockableContent{ weapons.each(Weapon::init); + canHeal = weapons.contains(w -> w.bullet.heals()); + canAttack = weapons.contains(w -> !w.noAttack); //dynamically create ammo capacity based on firing rate diff --git a/core/src/mindustry/ui/fragments/HudFragment.java b/core/src/mindustry/ui/fragments/HudFragment.java index 50a6984a84..eb6c32e54c 100644 --- a/core/src/mindustry/ui/fragments/HudFragment.java +++ b/core/src/mindustry/ui/fragments/HudFragment.java @@ -839,6 +839,8 @@ public class HudFragment{ table.row(); + //TODO nobody reads details anyway. + /* table.clicked(() -> { if(state.rules.objectives.any()){ StringBuilder text = new StringBuilder(); @@ -859,7 +861,7 @@ public class HudFragment{ //TODO this, as said before, could be much better. ui.showInfo(text.toString()); } - }); + });*/ return table; }