MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / notifyNoTreasuryAvailable

Method notifyNoTreasuryAvailable

source/game/Player.cpp:509–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509void 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
523void Player::notifyCreatureCannotFindBed(Creature& creature)
524{

Callers 2

handleSearchTileToDigMethod · 0.80
handleDigTileMethod · 0.80

Calls 1

Tested by

no test coverage detected