public static double SharedGetCurrentRangeMax( ICharacterPublicState characterPublicState) { if (!(characterPublicState.SelectedItemWeaponProto is IProtoItemWeaponRanged protoWeaponRanged)) { return(0); } var damageDescription = WeaponSystem.GetCurrentDamageDescription(characterPublicState.SelectedItem, protoWeaponRanged, out _); return(damageDescription is null ? 0 : damageDescription.RangeMax *protoWeaponRanged.RangeMultiplier); }