Weapon display fixes

This commit is contained in:
Anuken
2022-04-10 09:40:41 -04:00
parent a5d974198b
commit 61a11c9f5b
4 changed files with 14 additions and 11 deletions
@@ -275,12 +275,12 @@ public class StatValues{
for(int i = 0; i < weapons.size;i ++){
Weapon weapon = weapons.get(i);
if(weapon.flipSprite){
if(weapon.flipSprite || !weapon.hasStats(unit)){
//flipped weapons are not given stats
continue;
}
TextureRegion region = !weapon.name.equals("") && weapon.outlineRegion.found() ? weapon.outlineRegion : unit.fullIcon;
TextureRegion region = !weapon.name.equals("") && weapon.region.found() ? weapon.region : Core.atlas.find("clear");
table.image(region).size(60).scaling(Scaling.bounded).right().top();