|
@@ -957,6 +957,7 @@ void CCreatureHandler::loadCreatureJson(CCreature * creature, const JsonNode & c
|
|
|
}
|
|
|
|
|
|
creature->special = config["special"].Bool() || config["disabled"].Bool();
|
|
|
+ creature->excludeFromRandomization = config["excludeFromRandomization"].Bool();
|
|
|
|
|
|
const JsonNode & sounds = config["sound"];
|
|
|
creature->sounds.attack = AudioPath::fromJson(sounds["attack"]);
|
|
@@ -1357,6 +1358,9 @@ CreatureID CCreatureHandler::pickRandomMonster(CRandomGenerator & rand, int tier
|
|
|
if(creature->special)
|
|
|
continue;
|
|
|
|
|
|
+ if(creature->excludeFromRandomization)
|
|
|
+ continue;
|
|
|
+
|
|
|
if (creature->level == tier || tier == -1)
|
|
|
allowed.push_back(creature->getId());
|
|
|
}
|