| 507 | } |
| 508 | |
| 509 | void Player::notifyNoTreasuryAvailable() |
| 510 | { |
| 511 | if(mNoTreasuryAvailableTime == 0.0f) |
| 512 | { |
| 513 | mNoTreasuryAvailableTime = NO_TREASURY_TIME_COUNT; |
| 514 | |
| 515 | std::string chatMsg = "No treasury available. You should build a bigger one."; |
| 516 | ServerNotification *serverNotification = new ServerNotification( |
| 517 | ServerNotificationType::chatServer, this); |
| 518 | serverNotification->mPacket << chatMsg << EventShortNoticeType::genericGameInfo; |
| 519 | ODServer::getSingleton().queueServerNotification(serverNotification); |
| 520 | } |
| 521 | } |
| 522 | |
| 523 | void Player::notifyCreatureCannotFindBed(Creature& creature) |
| 524 | { |
no test coverage detected