| 3210 | } |
| 3211 | |
| 3212 | void OperateBookStand(Object &bookStand, bool sendmsg, bool sendLootMsg) |
| 3213 | { |
| 3214 | if (bookStand._oSelFlag == 0) { |
| 3215 | return; |
| 3216 | } |
| 3217 | |
| 3218 | PlaySfxLoc(IS_ISCROL, bookStand.position); |
| 3219 | bookStand._oSelFlag = 0; |
| 3220 | bookStand._oAnimFrame += 2; |
| 3221 | SetRndSeed(bookStand._oRndSeed); |
| 3222 | if (FlipCoin(5)) |
| 3223 | CreateTypeItem(bookStand.position, false, ItemType::Misc, IMISC_BOOK, sendLootMsg, false); |
| 3224 | else |
| 3225 | CreateTypeItem(bookStand.position, false, ItemType::Misc, IMISC_SCROLL, sendLootMsg, false); |
| 3226 | if (sendmsg) |
| 3227 | NetSendCmdLoc(MyPlayerId, false, CMD_OPERATEOBJ, bookStand.position); |
| 3228 | } |
| 3229 | |
| 3230 | void OperateBookcase(Object &bookcase, bool sendmsg, bool sendLootMsg) |
| 3231 | { |
no test coverage detected