Reward organisms for having found a targeted resource + performing logic*/
| 3755 | |
| 3756 | /* Reward organisms for having found a targeted resource + performing logic*/ |
| 3757 | void cTaskLib::Load_ConsumeTargetOr(const cString& name, const cString& argstr, cEnvReqs&, Feedback& feedback) |
| 3758 | { |
| 3759 | cArgSchema schema; |
| 3760 | |
| 3761 | schema.AddEntry("target_id", 0, 1); |
| 3762 | cArgContainer* args = cArgContainer::Load(argstr, schema, feedback); |
| 3763 | if (args) NewTask(name, "ConsumeTargetOr", &cTaskLib::Task_ConsumeTargetOr, 0, args); |
| 3764 | |
| 3765 | // Add this target id to the list in the instructions file. |
| 3766 | m_world->GetEnvironment().AddTargetID(args->GetInt(0)); |
| 3767 | } |
| 3768 | |
| 3769 | /* Reward organisms for having found a targeted resource + performing logic*/ |
| 3770 | void cTaskLib::Load_ConsumeTargetAndn(const cString& name, const cString& argstr, cEnvReqs&, Feedback& feedback) |
nothing calls this directly
no test coverage detected