MCPcopy Create free account
hub / github.com/diasurgical/devilution / OperateInnSignChest

Function OperateInnSignChest

Source/objects.cpp:2609–2637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2607}
2608
2609void OperateInnSignChest(int pnum, int i)
2610{
2611 int x, y;
2612
2613 if (quests[QTYPE_BOL]._qvar1 != 2) {
2614 if (!deltaload && pnum == myplr) {
2615 if (plr[myplr]._pClass == PC_WARRIOR) {
2616 PlaySFX(PS_WARR24);
2617#ifndef SPAWN
2618 } else if (plr[myplr]._pClass == PC_ROGUE) {
2619 PlaySFX(PS_ROGUE24);
2620 } else if (plr[myplr]._pClass == PC_SORCERER) {
2621 PlaySFX(PS_MAGE24);
2622#endif
2623 }
2624 }
2625 } else {
2626 if (object[i]._oSelFlag != 0) {
2627 if (!deltaload)
2628 PlaySfxLoc(IS_CHEST, object[i]._ox, object[i]._oy);
2629 object[i]._oAnimFrame += 2;
2630 object[i]._oSelFlag = 0;
2631 if (!deltaload) {
2632 GetSuperItemLoc(object[i]._ox, object[i]._oy, &x, &y);
2633 SpawnQuestItem(IDI_BANNER, x, y, 0, 0);
2634 }
2635 }
2636 }
2637}
2638
2639void OperateSlainHero(int pnum, int i, BOOL sendmsg)
2640{

Callers 2

OperateObjectFunction · 0.85
SyncOpObjectFunction · 0.85

Calls 4

PlaySFXFunction · 0.85
PlaySfxLocFunction · 0.85
GetSuperItemLocFunction · 0.85
SpawnQuestItemFunction · 0.85

Tested by

no test coverage detected