Support the /batteryN and /batteryW commands.

Also up the PVP damage to 700.
This commit is contained in:
dongresource 2020-09-28 18:53:16 +02:00
parent efb3df7133
commit 4079806436
2 changed files with 4 additions and 4 deletions

View File

@ -670,11 +670,11 @@ void MobManager::pcAttackChars(CNSocket *sock, CNPacketData *data) {
return; return;
} }
target->HP -= 100; target->HP -= 700;
respdata[i].eCT = pktdata[i*2+1]; respdata[i].eCT = pktdata[i*2+1];
respdata[i].iID = target->iID; respdata[i].iID = target->iID;
respdata[i].iDamage = 100; respdata[i].iDamage = 700;
respdata[i].iHP = target->HP; respdata[i].iHP = target->HP;
respdata[i].iHitFlag = 2; // hitscan, not a rocket or a grenade respdata[i].iHitFlag = 2; // hitscan, not a rocket or a grenade
} else { // eCT == 4; attack mob } else { // eCT == 4; attack mob

View File

@ -674,10 +674,10 @@ void PlayerManager::setSpecialPlayer(CNSocket* sock, CNPacketData* data) {
plr->HP = setData->iSetValue; plr->HP = setData->iSetValue;
break; break;
case 2: case 2:
// TODO: batteryW plr->batteryW = setData->iSetValue;
break; break;
case 3: case 3:
// TODO: batteryN nanopotion plr->batteryN = setData->iSetValue;
break; break;
case 4: case 4:
plr->fusionmatter = setData->iSetValue; plr->fusionmatter = setData->iSetValue;