mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-26 06:50:06 +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;
|
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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user