public static void Postfix(StatTooltipData __instance) { mechDef = null; if (movement != null) { __instance.dataList.Add("TT Walk MP", movement.MovementPoint.ToString()); movement = null; } }
public static float OverrideMaxSprintDistance(this MovementCapabilitiesDef @this) { try { movement = mechDef?.GetEngineMovement(); if (movement != null) { return(movement.RunSpeed); } } catch (Exception e) { Control.mod.Logger.LogError(e); } return(@this.MaxSprintDistance); }