mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
* Fixed bug #112
* Improved the security checks for ExchangeArtifact and SetArtifact, but have also come to realize that SetArtifact is inherently broken and can be used for cheating. :( * Preliminary work for combination artifacts, it's now possible to identify artifacts that are combined and what they're made up of. * Happy New Year!
This commit is contained in:
@ -3696,10 +3696,11 @@ bool CArtPlace::fitsHere(const CArtifact * art)
|
||||
if(!art)
|
||||
return true;
|
||||
|
||||
// Anything can be placed in the backpack, except War Machines.
|
||||
if (slotID >= 19 && !CGI->arth->isBigArtifact(art->id)
|
||||
|| vstd::contains(art->possibleSlots, slotID))
|
||||
{
|
||||
// Anything can but War Machines can be placed in backpack.
|
||||
if (slotID >= 19) {
|
||||
return !CGI->arth->isBigArtifact(art->id);
|
||||
} else if (vstd::contains(art->possibleSlots, slotID)) {
|
||||
// TODO: Deal with combinational at dest and as src.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user