shadowm

Untitled

Jan 16th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.57 KB | None | 0 0
  1. #
  2. # Disallow a unit (slave) from moving when it gets away from another unit's
  3. # (master) movement range.
  4. #
  5. # * We set the slave's remaining MP to 0 on each turn refresh unless it is
  6. #   within range of its master.
  7. #
  8. # * We set the slave's remaining MP to 0 on moveto whenever it leaves its
  9. #   master's range. We don't care how far away from its master's range it can
  10. #   move.
  11. #
  12. # * On each case above, we store the slave's previous remaining MP in a unit
  13. #   variable so we can restore them once the master moves so that the slave
  14. #   is within his movement range again.
  15. #
Advertisement
Add Comment
Please, Sign In to add comment