| 1388 | } |
| 1389 | |
| 1390 | bool Player::addCollectable(String const& collectionName, String const& collectableName) { |
| 1391 | if (m_log->addCollectable(collectionName, collectableName)) { |
| 1392 | auto collectionDatabase = Root::singleton().collectionDatabase(); |
| 1393 | |
| 1394 | auto collection = collectionDatabase->collection(collectionName); |
| 1395 | auto collectable = collectionDatabase->collectable(collectionName, collectableName); |
| 1396 | queueUIMessage(Root::singleton().assets()->json("/player.config:collectableUnlock").toString().replace("<collectable>", collectable.title).replace("<collection>", collection.title)); |
| 1397 | return true; |
| 1398 | } else { |
| 1399 | return false; |
| 1400 | } |
| 1401 | } |
| 1402 | |
| 1403 | PlayerUniverseMapPtr Player::universeMap() const { |
| 1404 | return m_universeMap; |
no test coverage detected