Files
7d2dXG/Mods/0A-KFCommonUtilityLib/Scripts/Requirements/RoundsInMagazineBase.cs
Nathaniel Cosford 062dfab2cd Patched
2025-05-30 01:04:40 +09:30

22 lines
471 B
C#

using System.Xml.Linq;
public class RoundsInMagazineBase : RoundsInMagazine
{
protected bool roundsBeforeShot = false;
public override bool ParseXAttribute(XAttribute _attribute)
{
if (base.ParseXAttribute(_attribute))
return true;
if (_attribute.Name.LocalName == "rounds_before_shot")
{
roundsBeforeShot = bool.Parse(_attribute.Value);
return true;
}
return false;
}
}