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

Method hp_debuff

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

Source from the content-addressed store, hash-verified

155}
156
157void Fish::hp_debuff(int dec){
158 // hp = int(hp * rate);
159 hp = (hp >= dec ? hp - dec : 0);
160 //if (hp <= 0) state = DEAD;
161 //在行动结束后再处理DEAD!
162}
163
164/*
165 * not used

Callers 1

read_jsonMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected