Fixed #7033
This commit is contained in:
@@ -1682,6 +1682,8 @@ public class Blocks{
|
|||||||
consumesPower = true;
|
consumesPower = true;
|
||||||
conductivePower = true;
|
conductivePower = true;
|
||||||
|
|
||||||
|
chanceDeflect = 8f;
|
||||||
|
|
||||||
health = 260 * wallHealthMultiplier * 4;
|
health = 260 * wallHealthMultiplier * 4;
|
||||||
armor = 15f;
|
armor = 15f;
|
||||||
size = 2;
|
size = 2;
|
||||||
|
|||||||
@@ -857,8 +857,6 @@ public class UnitType extends UnlockableContent{
|
|||||||
var toOutline = new Seq<TextureRegion>();
|
var toOutline = new Seq<TextureRegion>();
|
||||||
getRegionsToOutline(toOutline);
|
getRegionsToOutline(toOutline);
|
||||||
|
|
||||||
boolean separateOutline = weapons.contains(w -> !w.top);
|
|
||||||
|
|
||||||
for(var region : toOutline){
|
for(var region : toOutline){
|
||||||
if(region instanceof AtlasRegion atlas){
|
if(region instanceof AtlasRegion atlas){
|
||||||
String regionName = atlas.name;
|
String regionName = atlas.name;
|
||||||
@@ -890,9 +888,8 @@ public class UnitType extends UnlockableContent{
|
|||||||
}
|
}
|
||||||
|
|
||||||
for(Weapon weapon : weapons){
|
for(Weapon weapon : weapons){
|
||||||
if(!weapon.name.isEmpty() && (minfo.mod == null || weapon.name.startsWith(minfo.mod.name))){
|
if(!weapon.name.isEmpty() && (minfo.mod == null || weapon.name.startsWith(minfo.mod.name)) && !(!weapon.top && packer.isOutlined(weapon.name))){
|
||||||
//TODO makeNew isn't really necessary here is it
|
makeOutline(PageType.main, packer, weapon.region, !weapon.top, outlineColor, outlineRadius);
|
||||||
makeOutline(PageType.main, packer, weapon.region, separateOutline, outlineColor, outlineRadius);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user