1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Backpack limit. Amount of fixes.

This commit is contained in:
SoundSSGood
2023-03-21 20:02:58 +02:00
parent f0f9eecf97
commit 19096f39f0
7 changed files with 35 additions and 41 deletions

View File

@@ -1124,7 +1124,8 @@ EDiggingStatus CGHeroInstance::diggingStatus() const
{
if(static_cast<int>(movement) < maxMovePoints(true))
return EDiggingStatus::LACK_OF_MOVEMENT;
if(!VLC->arth->objects[ArtifactID::GRAIL]->canBePutAt(this))
return EDiggingStatus::BACKPACK_IS_FULL;
return cb->getTileDigStatus(visitablePos());
}