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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user