| 6 | IMPLEMENT(Give_Money); |
| 7 | |
| 8 | bool Give_Money::execute(aithread &thread) const |
| 9 | { |
| 10 | // Minerals |
| 11 | if ( Broodwar->self()->minerals() < 500 ) |
| 12 | for ( int i = 0; i < 2000; i += 500 ) |
| 13 | Broodwar->sendText("whats mine is mine"); |
| 14 | |
| 15 | // Gas |
| 16 | if ( Broodwar->self()->gas() < 500 ) |
| 17 | for ( int i = 0; i < 2000; i += 500 ) |
| 18 | Broodwar->sendText("breathe deep"); |
| 19 | |
| 20 | // Debug |
| 21 | thread.saveDebug(Text::Green, this->getOpcode()); |
| 22 | return true; |
| 23 | } |