MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / parseMonsterCollectable

Method parseMonsterCollectable

source/game/StarCollectionDatabase.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98Collectable 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
109Collectable CollectionDatabase::parseItemCollectable(String const& name, Json const& config) const {
110 Collectable collectable = parseGenericCollectable(name, config);

Callers

nothing calls this directly

Calls 5

singletonClass · 0.85
monsterDatabaseMethod · 0.80
getStringMethod · 0.80
monsterVariantMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected