Skip to content
Snippets Groups Projects
Forked from pregmodfan / fc-pregmod
Source project has a limited visibility.
  • svornost's avatar
    0d825cae
    Rework saGetMilked. · 0d825cae
    svornost authored
    1. Accept the facility multiplier as a parameter instead of using $servantMilkersMultiplier.
    2. Return a results object containing all the necessary information instead of using $milk, $milkSale, $cum, $cumSale, $fluid, and $fluidSale.  This also means we have an invariant return type between preview and execution modes, which things much easier from a type-safety perspective (i.e. we don't have to jump through as many hoops to make TS happy).
    3. Merge logic between text and calculation.  Reduce the structural impact of preview mode; it's OK to generate and return text that we're not going to use.
    0d825cae
    History
    Rework saGetMilked.
    svornost authored
    1. Accept the facility multiplier as a parameter instead of using $servantMilkersMultiplier.
    2. Return a results object containing all the necessary information instead of using $milk, $milkSale, $cum, $cumSale, $fluid, and $fluidSale.  This also means we have an invariant return type between preview and execution modes, which things much easier from a type-safety perspective (i.e. we don't have to jump through as many hoops to make TS happy).
    3. Merge logic between text and calculation.  Reduce the structural impact of preview mode; it's OK to generate and return text that we're not going to use.