mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fixes, logging for Seer Huts
This commit is contained in:
parent
61071c46e1
commit
cf74969603
@ -241,9 +241,6 @@
|
||||
}
|
||||
},
|
||||
|
||||
// subtype: different appearance. That's all?
|
||||
"seerHut" : { "index" :83, "handler": "seerHut" },
|
||||
|
||||
// subtype: level
|
||||
"randomDwellingLvl" : {
|
||||
"index" :217, "handler": "randomDwelling",
|
||||
|
@ -1691,6 +1691,12 @@ void CRmgTemplateZone::placeObject(CMapGenerator* gen, CGObjectInstance* object,
|
||||
gen->setNearestObjectDistance(tile, std::min<float>(d, gen->getNearestObjectDistance(tile)));
|
||||
}
|
||||
}
|
||||
if (object->ID == Obj::SEER_HUT) //debug
|
||||
{
|
||||
CGSeerHut * sh = dynamic_cast<CGSeerHut *>(object);
|
||||
auto artid = sh->quest->m5arts.front();
|
||||
logGlobal->warnStream() << boost::format("Placed Seer Hut at %s, quest artifact %d is %s") % object->pos % artid % VLC->arth->artifacts[artid]->Name();
|
||||
}
|
||||
}
|
||||
|
||||
void CRmgTemplateZone::placeAndGuardObject(CMapGenerator* gen, CGObjectInstance* object, const int3 &pos, si32 str, bool zoneGuard)
|
||||
@ -2253,7 +2259,7 @@ void CRmgTemplateZone::addAllPossibleObjects(CMapGenerator* gen)
|
||||
return obj;
|
||||
};
|
||||
oi.setTemplate(Obj::PANDORAS_BOX, 0, terrainType);
|
||||
oi.value = 3000;
|
||||
oi.value = 30000;
|
||||
oi.probability = 2;
|
||||
possibleObjects.push_back(oi);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user