Implementing Spawned Shareware version

This commit is contained in:
Anders Jenbo
2019-08-12 16:04:20 +02:00
parent 905ad6efcd
commit 68d51e7d27
39 changed files with 1659 additions and 953 deletions
+14
View File
@@ -837,6 +837,7 @@ void InitObjects()
}
}
#ifndef SPAWN
void SetMapObjects(BYTE *pMap, int startx, int starty)
{
int rw, rh;
@@ -896,6 +897,7 @@ void SetMapObjects(BYTE *pMap, int startx, int starty)
}
InitObjFlag = FALSE;
}
#endif
void DeleteObject_(int oi, int i)
{
@@ -1705,10 +1707,12 @@ void Obj_BCrossDamage(int i)
} else {
if (plr[myplr]._pClass == PC_WARRIOR) {
PlaySfxLoc(PS_WARR68, plr[myplr].WorldX, plr[myplr].WorldY);
#ifndef SPAWN
} else if (plr[myplr]._pClass == PC_ROGUE) {
PlaySfxLoc(PS_ROGUE68, plr[myplr].WorldX, plr[myplr].WorldY);
} else if (plr[myplr]._pClass == PC_SORCERER) {
PlaySfxLoc(PS_MAGE68, plr[myplr].WorldX, plr[myplr].WorldY);
#endif
}
}
drawhpflag = TRUE;
@@ -2621,10 +2625,12 @@ void OperateMushPatch(int pnum, int i)
if (!deltaload && pnum == myplr) {
if (plr[myplr]._pClass == PC_WARRIOR) {
PlaySFX(PS_WARR13);
#ifndef SPAWN
} else if (plr[myplr]._pClass == PC_ROGUE) {
PlaySFX(PS_ROGUE13);
} else if (plr[myplr]._pClass == PC_SORCERER) {
PlaySFX(PS_MAGE13);
#endif
}
}
} else {
@@ -2650,10 +2656,12 @@ void OperateInnSignChest(int pnum, int i)
if (!deltaload && pnum == myplr) {
if (plr[myplr]._pClass == PC_WARRIOR) {
PlaySFX(PS_WARR24);
#ifndef SPAWN
} else if (plr[myplr]._pClass == PC_ROGUE) {
PlaySFX(PS_ROGUE24);
} else if (plr[myplr]._pClass == PC_SORCERER) {
PlaySFX(PS_MAGE24);
#endif
}
}
} else {
@@ -2677,13 +2685,19 @@ void OperateSlainHero(int pnum, int i, BOOL sendmsg)
if (!deltaload) {
if (plr[pnum]._pClass == PC_WARRIOR) {
CreateMagicArmor(object[i]._ox, object[i]._oy, 9, ICURS_BREAST_PLATE, 0, 1);
#ifndef SPAWN
PlaySfxLoc(PS_WARR9, plr[myplr].WorldX, plr[myplr].WorldY);
#endif
} else if (plr[pnum]._pClass == PC_ROGUE) {
CreateMagicWeapon(object[i]._ox, object[i]._oy, 3, ICURS_LONG_WAR_BOW, 0, 1);
#ifndef SPAWN
PlaySfxLoc(PS_ROGUE9, plr[myplr].WorldX, plr[myplr].WorldY);
#endif
} else if (plr[pnum]._pClass == PC_SORCERER) {
CreateSpellBook(object[i]._ox, object[i]._oy, 3, 0, 1);
#ifndef SPAWN
PlaySfxLoc(PS_MAGE9, plr[myplr].WorldX, plr[myplr].WorldY);
#endif
}
if (pnum == myplr)
NetSendCmdParam1(FALSE, CMD_OPERATEOBJ, i);