Loading

Paste #ptzf2awna

  1. add parameters:
  2.   param_boost_lots:  25 = "+10%", 51 = "+20%", ... , 256 = "+100%", .... 512 = "+200%"
  3.   param_boost_few:   25 = "+10%", 51 = "+20%", ... , 256 = "+100%", .... 512 = "+200%"
  4.  
  5.  
  6.  
  7. produce(THIS_ID(production_256), 0, 0, 0, (LOAD_TEMP(9) * production_rate_1) >> 8, (LOAD_TEMP(9) * production_rate_2) >> 8, 0);
  8.  
  9. switch(FEAT_INDUSTRIES, SELF, THIS_ID(produce_256_ticks),
  10.         [STORE_TEMP(
  11.             LOAD_PERM(var_num_supplies_delivered) +
  12.             LOAD_PERM(var_num_supplies_delivered_last) +
  13.             LOAD_PERM(var_num_supplies_delivered_bef_last),
  14.         8),
  15.         STORE_TEMP((LOAD_TEMP(8) >= SUPPLY_BOOST_QUADRUPLE) ? param_boost_lots : ((LOAD_TEMP(8) >= SUPPLY_BOOST_DOUBLE) ? param_boost_few : 0), 9),
  16.         STORE_PERM(LOAD_TEMP(9), var_current_supplies_prod_factor)
  17.         ]) {
  18.     THIS_ID(production_256);
  19. }

Comments