Minor bugfixes

This commit is contained in:
Anuken 2022-07-17 08:48:10 -04:00
parent 4fa3f4d8dd
commit c4d5126ac2
2 changed files with 5 additions and 3 deletions

View File

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

View File

@ -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;
}