| 3477 | } |
| 3478 | |
| 3479 | void OperateArmorStand(int pnum, int i, BOOL sendmsg) |
| 3480 | { |
| 3481 | BOOL uniqueRnd; |
| 3482 | |
| 3483 | if (object[i]._oSelFlag != 0) { |
| 3484 | object[i]._oAnimFrame++; |
| 3485 | object[i]._oSelFlag = 0; |
| 3486 | if (!deltaload) { |
| 3487 | SetRndSeed(object[i]._oRndSeed); |
| 3488 | uniqueRnd = random_(0, 2); |
| 3489 | if (currlevel <= 5) { |
| 3490 | CreateTypeItem(object[i]._ox, object[i]._oy, TRUE, ITYPE_LARMOR, IMISC_NONE, sendmsg, FALSE); |
| 3491 | } else if (currlevel >= 6 && currlevel <= 9) { |
| 3492 | CreateTypeItem(object[i]._ox, object[i]._oy, uniqueRnd, ITYPE_MARMOR, IMISC_NONE, sendmsg, FALSE); |
| 3493 | } else if (currlevel >= 10 && currlevel <= 12) { |
| 3494 | CreateTypeItem(object[i]._ox, object[i]._oy, FALSE, ITYPE_HARMOR, IMISC_NONE, sendmsg, FALSE); |
| 3495 | } else if (currlevel >= 13 && currlevel <= 16) { |
| 3496 | CreateTypeItem(object[i]._ox, object[i]._oy, TRUE, ITYPE_HARMOR, IMISC_NONE, sendmsg, FALSE); |
| 3497 | } |
| 3498 | if (pnum == myplr) |
| 3499 | NetSendCmdParam1(FALSE, CMD_OPERATEOBJ, i); |
| 3500 | return; |
| 3501 | } |
| 3502 | } |
| 3503 | } |
| 3504 | |
| 3505 | int FindValidShrine(int i) |
| 3506 | { |
no test coverage detected