static void Postfix(BlueprintAbilityResource __instance, UnitDescriptor unit, ref int __result)
        {
            var min_resource_component = __instance.GetComponent <MinResourceAmount>();

            if (min_resource_component == null)
            {
                return;
            }

            if (__result < min_resource_component.value)
            {
                __result = min_resource_component.value;
            }
        }