diff --git a/1.6/1.6/Assemblies/ArachnaeSwarm.dll b/1.6/1.6/Assemblies/ArachnaeSwarm.dll index e63f767..24cac34 100644 Binary files a/1.6/1.6/Assemblies/ArachnaeSwarm.dll and b/1.6/1.6/Assemblies/ArachnaeSwarm.dll differ diff --git a/Source/ArachnaeSwarm/CompPawnFlight.cs b/Source/ArachnaeSwarm/CompPawnFlight.cs index 25adcf6..31e8b76 100644 --- a/Source/ArachnaeSwarm/CompPawnFlight.cs +++ b/Source/ArachnaeSwarm/CompPawnFlight.cs @@ -21,9 +21,14 @@ namespace ArachnaeSwarm private Pawn Pawn => (Pawn)parent; public CompProperties_PawnFlight Props => (CompProperties_PawnFlight)props; - public bool Flying => flightState != FlightState.Grounded; // Public property for Harmony patch + public bool Flying => flightState != FlightState.Grounded; public bool ShouldShowWings => flightState != FlightState.Grounded; + // Hardcoded curves, similar to vanilla Pawn_FlightTracker + private static readonly SimpleCurve TakeoffCurve = new SimpleCurve { new CurvePoint(0f, 0f), new CurvePoint(0.5f, 0.6f), new CurvePoint(1f, 1f) }; + private static readonly SimpleCurve LandingCurve = new SimpleCurve { new CurvePoint(0f, 1f), new CurvePoint(0.5f, 0.4f), new CurvePoint(1f, 0f) }; + + public override void CompTick() { base.CompTick(); diff --git a/Source/ArachnaeSwarm/CompProperties_PawnFlight.cs b/Source/ArachnaeSwarm/CompProperties_PawnFlight.cs index 5d0fd77..fd10f65 100644 --- a/Source/ArachnaeSwarm/CompProperties_PawnFlight.cs +++ b/Source/ArachnaeSwarm/CompProperties_PawnFlight.cs @@ -26,6 +26,9 @@ namespace ArachnaeSwarm public float flightCooldownSeconds = 2f; public float flightStartChanceOnJobStart = 0.5f; + // takeoffCurve and landingCurve are removed as they cannot be loaded directly from XML. + // They will be hardcoded in the CompPawnFlight class. + public CompProperties_PawnFlight() { compClass = typeof(CompPawnFlight);