mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Implemented basic version of configurable Witch Hut
This commit is contained in:
@@ -93,7 +93,8 @@ void DwellingInstanceConstructor::randomizeObject(CGDwelling * object, CRandomGe
|
||||
}
|
||||
else if(guards.getType() == JsonNode::JsonType::DATA_VECTOR) //custom guards (eg. Elemental Conflux)
|
||||
{
|
||||
for(auto & stack : JsonRandom::loadCreatures(guards, rng))
|
||||
JsonRandom::Variables emptyVariables;
|
||||
for(auto & stack : JsonRandom::loadCreatures(guards, rng, emptyVariables))
|
||||
{
|
||||
dwelling->putStack(SlotID(dwelling->stacksCount()), new CStackInstance(stack.type->getId(), stack.count));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user