Games::Lacuna::Client::Governor::Astronomer - A rudimentary plugin for Governor that will automate the targetting of probes.
Add 'astronomer' to the Governor configuration priorities list.
This module examines each colony and the probes currently available (as well as in transit) to determine what stars the available probes should be sent to. It is a fast-and-dirty first-fit algorithm, intended merely do expand the observatory's scan in an every increasing radius.
This module looks for the build_probes colony-level configuration key in the governor config. If it's a positive number, and there are fewer than that number of probes currently in any state at the SpacePort of the given body, then it will attempt to build probes to make up the difference.
NOTE: Having ships auto-build can cause ship loss if it happens when you don't expect it, and you push ships to a location where a probe build is later initiated. Be careful!
Depends on internet access to download the static stars listing. If this is not available, some modification of this code will be necessary. See the "stars" subroutine for details on how this information is used.
Games::Lacuna::Client, by Steffen Mueller on which this module is dependent.
Games::Lacuna::Client::Governor, by Adam Bellaire of which this module is a plugin.
Of course also, the Lacuna Expanse API docs themselves at http://us1.lacunaexpanse.com/api.
Daniel Kimsey, <email@example.com>
Copyright (C) 2010 by Steffen Mueller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.