ORDER thug_name,SUPPLY,hangar_name technical notes.
This is a rough description of the thugs decision making process.
1) Current orders - if yes then finish, if no then continue.
2) In a moth - if yes then continue
3) Got a pod - if no then NEED POD & finish.
4) Target hangar public and player owned, if yes then continue.
4) Located in target hangar? - if not then GO target_hangar & finish.
5) If in target hangar, got stock in pod? If yes can hangar afford to buy it? If yes then SELLALL and finish.
6) If no stock then scan max buys and current stocks - if find an item where current stock is 1/2 max buy then go to 6 - if no items then GO target_hangar (this defaults to a 5 min WAIT order)
7) Check buy price - if OK (12.5% above base) then continue.
8) Check can hangar afford order - if not reduce order.
9) Scan trade centres, factories and other player hangars for enough stock to fulfill order. If it finds one then go to 10, if not reduce order and rescan.
10) Check that thug has enough cash to purchase order, if so give BUY order, other wise reduce order and try again.