Weapons parts for units / No logic on Erekir

This commit is contained in:
Anuken
2022-02-02 20:39:22 -05:00
parent a138b7b9a8
commit eb4d2fc3a3
19 changed files with 390 additions and 168 deletions

View File

@@ -329,11 +329,9 @@ public class Generators{
}
}
if(toOutline != null){
for(TextureRegion region : toOutline){
Pixmap pix = get(region).outline(block.outlineColor, block.outlineRadius);
save(pix, ((GenRegion)region).name + "-outline");
}
for(TextureRegion region : toOutline){
Pixmap pix = get(region).outline(block.outlineColor, block.outlineRadius);
save(pix, ((GenRegion)region).name + "-outline");
}
if(regions.length == 0){
@@ -502,6 +500,14 @@ public class Generators{
}
};
Seq<TextureRegion> toOutline = new Seq<>();
type.getRegionsToOutline(toOutline);
for(TextureRegion region : toOutline){
Pixmap pix = get(region).outline(type.outlineColor, type.outlineRadius);
save(pix, ((GenRegion)region).name + "-outline");
}
Seq<Weapon> weapons = type.weapons;
weapons.each(Weapon::load);
weapons.removeAll(w -> !w.region.found());