| 2607 | } |
| 2608 | |
| 2609 | void 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 | |
| 2639 | void OperateSlainHero(int pnum, int i, BOOL sendmsg) |
| 2640 | { |
no test coverage detected