mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-01 20:04:02 +07:00
initial implementation
This commit is contained in:
parent
fda2ed8b41
commit
f9954ea4c7
@ -229,6 +229,8 @@ public class UnitType extends UnlockableContent{
|
||||
if(inst instanceof Payloadc){
|
||||
stats.add(Stat.payloadCapacity, (payloadCapacity / (tilesize * tilesize)), StatUnit.blocksSquared);
|
||||
}
|
||||
|
||||
stats.add(Stat.weapons, new WeaponListValue(this, weapons));
|
||||
}
|
||||
|
||||
@CallSuper
|
||||
|
@ -55,6 +55,10 @@ public enum Stat{
|
||||
linkRange(StatCat.crafting),
|
||||
instructions(StatCat.crafting),
|
||||
|
||||
weapons(StatCat.function),
|
||||
mirrored(StatCat.function),
|
||||
bullet(StatCat.function),
|
||||
|
||||
speedIncrease(StatCat.function),
|
||||
repairTime(StatCat.function),
|
||||
range(StatCat.function),
|
||||
|
@ -10,6 +10,7 @@ import mindustry.content.*;
|
||||
import mindustry.ctype.*;
|
||||
import mindustry.entities.bullet.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.ui.*;
|
||||
import mindustry.world.meta.*;
|
||||
|
||||
@ -28,8 +29,10 @@ public class AmmoListValue<T extends UnlockableContent> implements StatValue{
|
||||
table.row();
|
||||
for(T t : map.keys()){
|
||||
BulletType type = map.get(t);
|
||||
table.image(icon(t)).size(3 * 8).padRight(4).right().top();
|
||||
table.add(t.localizedName).padRight(10).left().top();
|
||||
if(!(t instanceof UnitType)){
|
||||
table.image(icon(t)).size(3 * 8).padRight(4).right().top();
|
||||
table.add(t.localizedName).padRight(10).left().top();
|
||||
}
|
||||
table.table(Tex.underline, bt -> {
|
||||
bt.left().defaults().padRight(3).left();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user