Skip to content

Commit

Permalink
Revert "Different projectile def for CIWS-targets"
Browse files Browse the repository at this point in the history
This reverts commit 898c4a9.
  • Loading branch information
MaxDorob committed Nov 6, 2024
1 parent 96e7fcc commit 70e129e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/CombatExtended/CombatExtended/Defs/AmmoLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@ public class AmmoLink
{
public AmmoDef ammo;
public ThingDef projectile;
private ThingDef projectileCIWS;

public AmmoLink() { }

public AmmoLink(AmmoDef ammo, ThingDef projectile, ThingDef CIWSProjectile = null)
public AmmoLink(AmmoDef ammo, ThingDef projectile)
{
this.ammo = ammo;
this.projectile = projectile;
this.projectileCIWS = CIWSProjectile;
}

public ThingDef CIWSProjectile => projectileCIWS ?? projectile;
public void LoadDataFromXmlCustom(XmlNode xmlRoot)
{
if (xmlRoot.ChildNodes.Count != 1)
Expand Down

0 comments on commit 70e129e

Please sign in to comment.