1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Some preliminary support for object erase. But this will need a major refactor to split basic map data from in-game data.

This commit is contained in:
Tomasz Zieliński
2022-09-06 17:16:34 +02:00
parent b817e6509b
commit 6165bac516
9 changed files with 39 additions and 10 deletions

View File

@ -1425,6 +1425,9 @@ void CGArtifact::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answer)
void CGArtifact::afterAddToMap(CMap * map)
{
//Artifacts from map objects are never removed
//FIXME: This should be revertible in map editor
if(ID == Obj::SPELL_SCROLL && storedArtifact && storedArtifact->id.getNum() < 0)
map->addNewArtifactInstance(storedArtifact);
}