mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 22:58:47 +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);
|
ab.init(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
canHeal = weapons.contains(w -> w.bullet.heals());
|
|
||||||
|
|
||||||
//add mirrored weapon variants
|
//add mirrored weapon variants
|
||||||
Seq<Weapon> mapped = new Seq<>();
|
Seq<Weapon> mapped = new Seq<>();
|
||||||
for(Weapon w : weapons){
|
for(Weapon w : weapons){
|
||||||
@ -770,6 +768,8 @@ public class UnitType extends UnlockableContent{
|
|||||||
|
|
||||||
weapons.each(Weapon::init);
|
weapons.each(Weapon::init);
|
||||||
|
|
||||||
|
canHeal = weapons.contains(w -> w.bullet.heals());
|
||||||
|
|
||||||
canAttack = weapons.contains(w -> !w.noAttack);
|
canAttack = weapons.contains(w -> !w.noAttack);
|
||||||
|
|
||||||
//dynamically create ammo capacity based on firing rate
|
//dynamically create ammo capacity based on firing rate
|
||||||
|
@ -839,6 +839,8 @@ public class HudFragment{
|
|||||||
|
|
||||||
table.row();
|
table.row();
|
||||||
|
|
||||||
|
//TODO nobody reads details anyway.
|
||||||
|
/*
|
||||||
table.clicked(() -> {
|
table.clicked(() -> {
|
||||||
if(state.rules.objectives.any()){
|
if(state.rules.objectives.any()){
|
||||||
StringBuilder text = new StringBuilder();
|
StringBuilder text = new StringBuilder();
|
||||||
@ -859,7 +861,7 @@ public class HudFragment{
|
|||||||
//TODO this, as said before, could be much better.
|
//TODO this, as said before, could be much better.
|
||||||
ui.showInfo(text.toString());
|
ui.showInfo(text.toString());
|
||||||
}
|
}
|
||||||
});
|
});*/
|
||||||
|
|
||||||
return table;
|
return table;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user