Guest User

Untitled

a guest
Jun 24th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. //** Below makes list of all industries and then only keeps coal mines;
  2.  
  3. local industrylist = GSIndustryList();
  4. industrylist.Valuate(GSIndustry.GetIndustryType);
  5. industrylist.KeepValue(5);
  6.  
  7. //** Basicly the idea is to get the highest producing industry at the top of the list. But
  8. * it seems that it sorts the list by industry ID's. Industrylist_a = output for testing purpose
  9. //**
  10.  
  11. industrylist.Sort(GSList.SORT_BY_VALUE, false);
  12. local industrylist_a = industrylist.Begin();
Advertisement
Add Comment
Please, Sign In to add comment