|
@@ -199,6 +199,11 @@ std::string CCreature::getNameTextID() const
|
|
|
return getNameSingularTextID();
|
|
|
}
|
|
|
|
|
|
+std::string CCreature::getBiographyTranslated() const
|
|
|
+{
|
|
|
+ return VLC->generaltexth->translate(getBiographyTextID());
|
|
|
+}
|
|
|
+
|
|
|
std::string CCreature::getNamePluralTextID() const
|
|
|
{
|
|
|
return TextIdentifier("creatures", modScope, identifier, "name", "plural" ).get();
|
|
@@ -209,6 +214,11 @@ std::string CCreature::getNameSingularTextID() const
|
|
|
return TextIdentifier("creatures", modScope, identifier, "name", "singular" ).get();
|
|
|
}
|
|
|
|
|
|
+std::string CCreature::getBiographyTextID() const
|
|
|
+{
|
|
|
+ return TextIdentifier("creatures", modScope, identifier, "biography").get();
|
|
|
+}
|
|
|
+
|
|
|
CCreature::CreatureQuantityId CCreature::getQuantityID(const int & quantity)
|
|
|
{
|
|
|
if (quantity<5)
|
|
@@ -600,6 +610,7 @@ CCreature * CCreatureHandler::loadFromJson(const std::string & scope, const Json
|
|
|
|
|
|
VLC->generaltexth->registerString(scope, cre->getNameSingularTextID(), node["name"]["singular"].String());
|
|
|
VLC->generaltexth->registerString(scope, cre->getNamePluralTextID(), node["name"]["plural"].String());
|
|
|
+ VLC->generaltexth->registerString(scope, cre->getBiographyTextID(), node["biography"].String());
|
|
|
|
|
|
cre->addBonus(node["hitPoints"].Integer(), BonusType::STACK_HEALTH);
|
|
|
cre->addBonus(node["speed"].Integer(), BonusType::STACKS_SPEED);
|