New Creep Property - orders



  • I've found a need recently to be able to see the orders that a creep has been assigned during this tick. I would use it to see if they have anything assigned so far.

     

    This would be largely helpful for me, as my task allocation is decoupled from my creeps.



  • The way most people implement this sort of thing is to override the prototype methods for the orders and have them save some state when they get called. You can also do things like updating available energy at that time.



  • That's not a bad idea, thanks for the advice!