mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-04 22:40:05 +00:00
Support the /batteryN and /batteryW commands.
Also up the PVP damage to 700.
This commit is contained in:
parent
efb3df7133
commit
4079806436
@ -670,11 +670,11 @@ void MobManager::pcAttackChars(CNSocket *sock, CNPacketData *data) {
|
||||
return;
|
||||
}
|
||||
|
||||
target->HP -= 100;
|
||||
target->HP -= 700;
|
||||
|
||||
respdata[i].eCT = pktdata[i*2+1];
|
||||
respdata[i].iID = target->iID;
|
||||
respdata[i].iDamage = 100;
|
||||
respdata[i].iDamage = 700;
|
||||
respdata[i].iHP = target->HP;
|
||||
respdata[i].iHitFlag = 2; // hitscan, not a rocket or a grenade
|
||||
} else { // eCT == 4; attack mob
|
||||
|
@ -674,10 +674,10 @@ void PlayerManager::setSpecialPlayer(CNSocket* sock, CNPacketData* data) {
|
||||
plr->HP = setData->iSetValue;
|
||||
break;
|
||||
case 2:
|
||||
// TODO: batteryW
|
||||
plr->batteryW = setData->iSetValue;
|
||||
break;
|
||||
case 3:
|
||||
// TODO: batteryN nanopotion
|
||||
plr->batteryN = setData->iSetValue;
|
||||
break;
|
||||
case 4:
|
||||
plr->fusionmatter = setData->iSetValue;
|
||||
|
Loading…
Reference in New Issue
Block a user