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

Method generateNpcVariant

source/game/StarNpcDatabase.cpp:38–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38NpcVariant NpcDatabase::generateNpcVariant(String const& species, String const& typeName, float level) const {
39 return generateNpcVariant(species, typeName, level, Random::randu64(), {});
40}
41
42NpcVariant NpcDatabase::generateNpcVariant(
43 String const& species, String const& typeName, float level, uint64_t seed, Json const& overrides) const {

Callers 5

spawnNpcMethod · 0.80
spawnNpcMethod · 0.80
npcPortraitMethod · 0.80
npcVariantMethod · 0.80
spawnNpcMethod · 0.80

Calls 15

randu64Function · 0.85
jsonToVec2FFunction · 0.85
jsonToStringListFunction · 0.85
singletonClass · 0.85
parsePersonalityArrayFunction · 0.85
HumanoidIdentityClass · 0.85
ItemDescriptorClass · 0.85
jsonToVec3BFunction · 0.85
EntitySplashConfigClass · 0.85
getArrayMethod · 0.80
randfMethod · 0.80
getUIntMethod · 0.80

Tested by

no test coverage detected