vcmi
vcmi copied to clipboard
Skeleton Corpse blocks path
You can't step onto the corpse hence you can't access Coliseum.
Already saw such case twice on the same map and rather nearby.
I though I fixed it...
Is it possible to bypass it by visiting? It is like resource BLOCKVIS object but which is not removed? I know one more such object -buoy. Btw there should be a way to understand if the object is removable. AI has a helper method for this I think but it should be a property of the object itself
Is it possible to bypass it by visiting?
no:
You can't step onto the corpse
Maybe one-tile-square around such objects will do its job?
@kambala-decapitator , for rmg issues, please attach client logs or at least map description, containing random seed and parameters used to generate map
sorry, didn't save log of the map generation. Parameters:
another example (and Coliseum again):
one more on the same map:
In order to properly handle that, we should be able to determine whether the object is removed after visit. If it is, there's no problem.
There is no such property in CGObjectInstance
or ObjectTemplate
.
Also, blockVisit
is configured only after object is fully created (CRandomRewardObjectInfo::configureObject
inside CGameState::initMapObjects()
), so this info is not available during object placement.
Good news: Looks like right now, the issue only occurs when there are at least 2 corpses in a treasure pile.