1
This commit is contained in:
parent
000d929992
commit
249738f184
@ -1075,15 +1075,19 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
|
|||||||
TEXT("battle_server_killer_gas", "毒圈"),
|
TEXT("battle_server_killer_gas", "毒圈"),
|
||||||
dmg_out);
|
dmg_out);
|
||||||
} else if (cmd == "dec_hp") {
|
} else if (cmd == "dec_hp") {
|
||||||
|
if (cmds.size() > 1) {
|
||||||
float dmg_out = 0;
|
float dmg_out = 0;
|
||||||
float dmg = a8::XValue(cmds[1]).GetDouble();
|
float dmg = a8::XValue(cmds[1]).GetDouble();
|
||||||
DecHP(dmg, VP_Gas, TEXT("battle_server_killer_gas", "毒圈"), VW_Gas,
|
DecHP(dmg, VP_Gas, TEXT("battle_server_killer_gas", "毒圈"), VW_Gas,
|
||||||
VP_Gas,
|
VP_Gas,
|
||||||
TEXT("battle_server_killer_gas", "毒圈"),
|
TEXT("battle_server_killer_gas", "毒圈"),
|
||||||
dmg_out);
|
dmg_out);
|
||||||
|
}
|
||||||
} else if (cmd == "add_shield") {
|
} else if (cmd == "add_shield") {
|
||||||
|
if (cmds.size() > 1) {
|
||||||
float hp = a8::XValue(cmds[1]).GetDouble();
|
float hp = a8::XValue(cmds[1]).GetDouble();
|
||||||
AddEnergyShield(hp);
|
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]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user