!--get the research multiplier-->

        <BinaryModifier TargetProperty="SystemProfitability" Operation="Force" Left="$(SystemMoneyOutput)" BinaryOperation="Division"  Right="250" Path="ClassStarSystem"/>


        <!--patronage check-->

        <Modifier TargetProperty="SystemProfitability" Operation="Multiplication" Value="Patronage" Path="ClassStarSystem"/>


        <!--multiply research-->

        <BinaryModifier TargetProperty="SystemResearch" Operation="Force" Left="$(SystemResearch)" BinaryOperation="Multiplication" Right="$(SystemProfitability)"/>

        

        <!--net research calculations-->

        <BinaryModifier TargetProperty="NetSystemResearch"          Operation="Addition"    Left="$(SystemResearch)"          BinaryOperation="Subtraction"    Right="$(SystemResearchUpkeep)"      TooltipHidden="true"    />


Here Im calculating a multiplier to apply to the systems research ONLY if a certain trait is enabled. Here I chose patronage to be like a boolean in this case. How tf do i do this if theres no logic moddin this game?