mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 23:28:52 +07:00
Minor bugfixes
This commit is contained in:
parent
4fa3f4d8dd
commit
c4d5126ac2
@ -742,8 +742,6 @@ public class UnitType extends UnlockableContent{
|
||||
ab.init(this);
|
||||
}
|
||||
|
||||
canHeal = weapons.contains(w -> w.bullet.heals());
|
||||
|
||||
//add mirrored weapon variants
|
||||
Seq<Weapon> 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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user