diff --git a/Assets/Scripts/ServerShared/FireControl.cs b/Assets/Scripts/ServerShared/FireControl.cs index 2d9698b5d..214f0bc2d 100644 --- a/Assets/Scripts/ServerShared/FireControl.cs +++ b/Assets/Scripts/ServerShared/FireControl.cs @@ -210,7 +210,7 @@ public static class FireControl var weaponItemData = item.Data as WeaponItemData; var isAirburst = weaponItemData != null && weaponItemData.WeaponModifiers.HasFlag(WeaponModifiers.Airburst); var burstPosition = isAirburst && target != null ? PredictedIntercept(weapon, source, target) : targetPosition; - var burstRadius = isAirburst ? weaponItemData.AirburstRange : 0f; + var burstRadius = isAirburst ? weaponItemData.AirburstRange ?? 0f : 0f; var shot = new PendingShot { diff --git a/Assets/Scripts/ServerShared/ItemData.cs b/Assets/Scripts/ServerShared/ItemData.cs index 384edf728..1cec438cc 100644 --- a/Assets/Scripts/ServerShared/ItemData.cs +++ b/Assets/Scripts/ServerShared/ItemData.cs @@ -495,7 +495,7 @@ public class WeaponItemData : GearData // without the Airburst flag. No authored value exists yet -- the flag is wired and unexercised until Cut // 6a or a later authoring pass sets it. [Inspectable, JsonProperty("airburstRange"), Key(29)] - public float AirburstRange; + public float? AirburstRange; } [CultDocument("aetheria.hulldata", "1"), Inspectable, MessagePackObject, JsonObject(MemberSerialization.OptIn)]