This commit is contained in:
aozhiwei 2023-03-21 14:28:58 +08:00
parent 076323856a
commit 000d929992

View File

@ -1074,6 +1074,16 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
VP_Gas, VP_Gas,
TEXT("battle_server_killer_gas", "毒圈"), TEXT("battle_server_killer_gas", "毒圈"),
dmg_out); dmg_out);
} else if (cmd == "dec_hp") {
float dmg_out = 0;
float dmg = a8::XValue(cmds[1]).GetDouble();
DecHP(dmg, VP_Gas, TEXT("battle_server_killer_gas", "毒圈"), VW_Gas,
VP_Gas,
TEXT("battle_server_killer_gas", "毒圈"),
dmg_out);
} else if (cmd == "add_shield") {
float hp = a8::XValue(cmds[1]).GetDouble();
AddEnergyShield(hp);
} else if (cmd == "shuaguai" && cmds.size() >= 3) { } else if (cmd == "shuaguai" && cmds.size() >= 3) {
int hero_id = a8::XValue(cmds[1]); int hero_id = a8::XValue(cmds[1]);
int hero_num = a8::XValue(cmds[2]); int hero_num = a8::XValue(cmds[2]);