Woot Power - Ipsis/Woot GitHub Wiki

Power

It costs power to generate the loot from the mob programmed into the factory. Depending on the XP cost of the mob and the upgrades applied it can get very expensive.

baseRF = the RF/tick for the tier of factory
xpLevel = the XP level of the mob
upgradeRFtick = total RF/tick for all the upgrades in the factory

RFt = baseRF * DEF_BASE_RATE_TICK
RFmob = DEF_XP_RF_TICK * xpLevel * DEF_BASE_RATE_TICKS
RFupgrade = upgradeRFtick * DEF_BASE_RATE_TICKS
RFcount = RFmob + ((RFmob * 0.33) * (mobCount - 1))
RFtotal = RFt + RFcount + RFupgrade

RFtick = RFtotal / spawnTime