| 96 | } |
| 97 | |
| 98 | Collectable CollectionDatabase::parseMonsterCollectable(String const& name, Json const& config) const { |
| 99 | Collectable collectable = parseGenericCollectable(name, config); |
| 100 | auto seed = 0; // use a static seed to utilize caching |
| 101 | auto variant = Root::singleton().monsterDatabase()->monsterVariant(config.getString("monsterType"), seed); |
| 102 | |
| 103 | collectable.title = variant.shortDescription.value(""); |
| 104 | collectable.description = variant.description.value(""); |
| 105 | |
| 106 | return collectable; |
| 107 | } |
| 108 | |
| 109 | Collectable CollectionDatabase::parseItemCollectable(String const& name, Json const& config) const { |
| 110 | Collectable collectable = parseGenericCollectable(name, config); |
nothing calls this directly
no test coverage detected