mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
Redid stack artifacts. Broken save compatibility. Added serializer support for boost::variant and sending CStackInstace* over network by implicitly passing IDs. Moved seeds and checksum to StartInfo. Various minor changes.
This commit is contained in:
@ -1473,7 +1473,7 @@ std::string CGHeroInstance::nodeName() const
|
||||
void CGHeroInstance::putArtifact(ui16 pos, CArtifactInstance *art)
|
||||
{
|
||||
assert(!getArt(pos));
|
||||
art->putAt(this, pos);
|
||||
art->putAt(ArtifactLocation(this, pos));
|
||||
}
|
||||
|
||||
void CGHeroInstance::putInBackpack(CArtifactInstance *art)
|
||||
@ -1488,11 +1488,7 @@ bool CGHeroInstance::hasSpellbook() const
|
||||
|
||||
void CGHeroInstance::deserializationFix()
|
||||
{
|
||||
for(bmap<ui16, ArtSlotInfo>::iterator i = artifactsWorn.begin(); i != artifactsWorn.end(); i++)
|
||||
if(i->second.artifact && !i->second.locked)
|
||||
attachTo(i->second.artifact);
|
||||
|
||||
//attachTo(&speciality);
|
||||
artDeserializationFix(this);
|
||||
}
|
||||
|
||||
CBonusSystemNode * CGHeroInstance::whereShouldBeAttached(CGameState *gs)
|
||||
@ -1535,6 +1531,11 @@ CGHeroInstance::ECanDig CGHeroInstance::diggingStatus() const
|
||||
}
|
||||
}
|
||||
|
||||
ui8 CGHeroInstance::bearerType() const
|
||||
{
|
||||
return ArtBearer::HERO;
|
||||
}
|
||||
|
||||
void CGDwelling::initObj()
|
||||
{
|
||||
switch(ID)
|
||||
|
Reference in New Issue
Block a user