Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.30 KB | None | 0 0
  1. joblist = df.world.job_list.next
  2. count = 0
  3.  
  4. while joblist
  5.     job = joblist.item
  6.     joblist = joblist.next
  7.    
  8.     if job.job_type == :ConstructBuilding
  9.         if (job.flags.suspend)
  10.             item = job.items[0].item
  11.             job.flags.suspend = false
  12.             count += 1
  13.         end
  14.     end
  15. end
  16.  
  17. puts "Unsuspended #{count} job(s)."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement