Reward organisms for having found a targeted resource + performing logic*/
| 3807 | |
| 3808 | /* Reward organisms for having found a targeted resource + performing logic*/ |
| 3809 | void cTaskLib::Load_ConsumeTargetEqu(const cString& name, const cString& argstr, cEnvReqs&, Feedback& feedback) |
| 3810 | { |
| 3811 | cArgSchema schema; |
| 3812 | |
| 3813 | schema.AddEntry("target_id", 0, 1); |
| 3814 | cArgContainer* args = cArgContainer::Load(argstr, schema, feedback); |
| 3815 | if (args) NewTask(name, "ConsumeTargetEqu", &cTaskLib::Task_ConsumeTargetEqu, 0, args); |
| 3816 | |
| 3817 | // Add this target id to the list in the instructions file. |
| 3818 | m_world->GetEnvironment().AddTargetID(args->GetInt(0)); |
| 3819 | } |
| 3820 | |
| 3821 | void cTaskLib::Load_MoveFT(const cString& name, const cString& argstr, cEnvReqs&, Feedback& feedback) |
| 3822 | { |
nothing calls this directly
no test coverage detected