mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
- removed multiple unused files
- config folder with all json files is used via new FS API - fixed campaigns loading. Replaced "detect h3m starts" heuristics with CCompessedStream::getNextBlock()
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#include "CSpellHandler.h"
|
||||
|
||||
#include "Filesystem/CResourceLoader.h"
|
||||
#include "CLodHandler.h"
|
||||
#include "../lib/VCMI_Lib.h"
|
||||
#include "../lib/JsonNode.h"
|
||||
#include <cctype>
|
||||
@@ -350,7 +349,7 @@ void CSpellHandler::loadSpells()
|
||||
boost::replace_first (spells[47]->attributes, "2", ""); // disrupting ray will now affect single creature
|
||||
|
||||
//loading of additional spell traits
|
||||
const JsonNode config(GameConstants::DATA_DIR + "/config/spell_info.json");
|
||||
const JsonNode config(ResourceID("config/spell_info.json"));
|
||||
|
||||
BOOST_FOREACH(const JsonNode &spell, config["spells"].Vector())
|
||||
{
|
||||
|
Reference in New Issue
Block a user