Armor Multiplier Display Adjustments (#11710)
* Made Armor Weakness a number rather than a % for display. * Renamed to ArmorPiercing to PartialArmorPierce * ArmorMult doesn't display if Pierce Armor is On renamed the bundle to "% armor pierce" * Just In Case
This commit is contained in:
@@ -733,11 +733,11 @@ public class StatValues{
|
||||
sep(bt, "@bullet.armorpierce");
|
||||
}
|
||||
|
||||
if(type.armorMultiplier != 1f){
|
||||
if(type.armorMultiplier != 1f && !type.pierceArmor){
|
||||
if(type.armorMultiplier > 1f){
|
||||
sep(bt, Core.bundle.format("bullet.armorweakness", (int)(type.armorMultiplier * 100)));
|
||||
sep(bt, Core.bundle.format("bullet.armorweakness", (type.armorMultiplier)));
|
||||
}else if(Mathf.sign(type.armorMultiplier) == 1){
|
||||
sep(bt, Core.bundle.format("bullet.armorpiercing", (int)((1 - type.armorMultiplier) * 100)));
|
||||
sep(bt, Core.bundle.format("bullet.partialarmorpierce", (int)((1 - type.armorMultiplier) * 100)));
|
||||
}else{
|
||||
sep(bt, Core.bundle.format("bullet.antiarmor", (-type.armorMultiplier)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user