1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Several minor fixes/features

- moved all traslatable strings into one json file, removed threats.txt file
- implemented "spellbook animation" option
- fixed missing central tower when attacking fort
This commit is contained in:
Ivan Savenko
2013-10-27 13:05:01 +00:00
parent 9237e6d97d
commit 6cb3cb006d
10 changed files with 112 additions and 67 deletions

View File

@ -289,6 +289,8 @@ CGeneralTextHandler::CGeneralTextHandler()
readToVector("DATA/SKILLLEV.TXT", levels);
readToVector("DATA/OBJNAMES.TXT", names);
localizedTexts = JsonNode(ResourceID("config/translate.json", EResType::TEXT));
{
CLegacyConfigParser parser("DATA/GENRLTXT.TXT");
parser.endLine();
@ -433,13 +435,4 @@ CGeneralTextHandler::CGeneralTextHandler()
}
while (parser.endLine());
}
std::string buffer;
std::ifstream ifs(*CResourceHandler::get()->getResourceName(ResourceID("config/threatlevel.txt")), std::ios::binary);
getline(ifs, buffer); //skip 1st line
for (int i = 0; i < 13; ++i)
{
getline(ifs, buffer);
threat.push_back(buffer);
}
}