MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / special

Method special

AgentBench.old/src/tasks/card_game/logic/src/fish.cpp:330–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328// }
329
330opt Spray::special(Fish* self, std::vector<Fish*> target_list) {
331 J json;
332 for (auto enemy : target_list)
333 {
334 add_json(json, self->hostile->on_damaged(self, enemy, 70).value());
335 }
336 return json;
337}
338
339opt Spray::skill(std::vector<Fish*> my_list, std::vector<Fish*> enemy_list) {
340 if(!Fish::skill_valid(my_list, enemy_list)) return nullopt;

Callers

nothing calls this directly

Calls 6

add_jsonFunction · 0.85
valueMethod · 0.80
on_damagedMethod · 0.80
take_damageMethod · 0.80
add_buffMethod · 0.80
JFunction · 0.50

Tested by

no test coverage detected