| 131 | } |
| 132 | |
| 133 | bool RoomArena::hasOpenCreatureSpot(Creature* c) |
| 134 | { |
| 135 | // We allow up to number central active spots creatures fighting |
| 136 | if(mCreaturesFighting.size() >= mCentralActiveSpotTiles.size()) |
| 137 | return false; |
| 138 | |
| 139 | // We allow using arena only if level is not too high |
| 140 | if (c->getLevel() >= ConfigManager::getSingleton().getRoomConfigUInt32("ArenaMaxTrainingLevel")) |
| 141 | return false; |
| 142 | |
| 143 | return true; |
| 144 | } |
| 145 | |
| 146 | bool RoomArena::addCreatureUsingRoom(Creature* creature) |
| 147 | { |
nothing calls this directly
no test coverage detected