Loading

Paste #pvcvuh3rq

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

Comments