| 6 | IMPLEMENT(Set_Attacks); |
| 7 | |
| 8 | bool Set_Attacks::execute(aithread &thread) const |
| 9 | { |
| 10 | // Parameters |
| 11 | BYTE bAttacks; |
| 12 | thread.readTuple( std::tie(bAttacks) ); |
| 13 | |
| 14 | // Perform actions |
| 15 | MainController.bAttacks = bAttacks; |
| 16 | |
| 17 | // Debug |
| 18 | thread.saveDebug(Text::Green, this->getOpcode(), "%u", bAttacks ); |
| 19 | return true; |
| 20 | } |