Loading

Paste #pdct3fzq9

  1. *Industry Satisfaction CB*
  2.  
  3. Called by town when evaluating whether to grow.
  4.  
  5. Called for every industry in the town catchment that handles the callback.
  6.  
  7. Industry returns a value
  8. * bool?
  9. * range (including negative)?
  10.  
  11. If sum of all returned values > some threshold, grow.
  12. Otherwise not.
  13.  
  14. Explaining the industry conditions is the job of each industry.
  15.  
  16. The town might show a general level of industry satisfaction.
  17.  
  18. Optional ideas
  19.  
  20. * pass the reason the callback was called, so that other reasons might be added later
  21. * include a specific cargo as a parameter, intended for use by GS (I am less convinced by this as my intent with the cb is to entirely decouple specific town cargos from growth - surely cargo delivery can already just be measured directly if needed?)

Comments