1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Merge pull request #1717 from SoundSSGood/backpack-limit-size

Introducing backpack size limit functionality
This commit is contained in:
Ivan Savenko
2023-03-27 17:17:49 +03:00
committed by GitHub
27 changed files with 438 additions and 314 deletions

View File

@@ -1769,6 +1769,9 @@ void CPlayerInterface::tryDiggging(const CGHeroInstance * h)
case EDiggingStatus::WRONG_TERRAIN:
msgToShow = 60; ////Try looking on land!
break;
case EDiggingStatus::BACKPACK_IS_FULL:
msgToShow = 247; //Searching for the Grail is fruitless...
break;
default:
assert(0);
}
@@ -1894,7 +1897,7 @@ void CPlayerInterface::askToAssembleArtifact(const ArtifactLocation &al)
al.slot.num);
return;
}
CHeroArtPlace::askToAssemble(art, al.slot, hero);
CHeroArtPlace::askToAssemble(hero, al.slot);
}
}