Loading

Paste #pds9lk4i3

  1. GSLog.Info("1.3 API compatibility in effect.");
  2.  
  3. GSTown._SetGrowthRate <- GSTown.SetGrowthRate;
  4. GSTown.SetGrowthRate <- function(town_id, days_between_town_growth)
  5. {
  6.         /* Growth rate 0 caused resetting the custom growth rate. While this was undocumented, it was used nevertheless (ofc). */
  7.         if (days_between_town_growth == 0) days_between_town_growth = GSTown.TOWN_GROWTH_NORMAL;
  8.         return GSTown._SetGrowthRate(town_id, days_between_town_growth);
  9. }
  10.  
  11. /* 1.5 adds a game element reference to the news. */
  12. GSNews._Create <- GSNews.Create;
  13. GSNews.Create <- function(type, text, company)
  14. {
  15.     return GSNews._Create(type, text, company, GSNews.NR_NONE, 0);
  16. }

Comments