1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Partially functional artifact screen.

[TBD compound artifacts, backpack arranging, "live" modifying values, many details]
This commit is contained in:
Michał W. Urbańczyk
2011-01-06 20:00:19 +00:00
parent ebb9c84da9
commit 401b364ad7
16 changed files with 388 additions and 225 deletions

View File

@@ -958,7 +958,8 @@ void CArtifactInstance::putAt(CGHeroInstance *h, ui16 slot)
asi.artifact = this;
asi.locked = false;
h->attachTo(this);
if(slot < Arts::BACKPACK_START)
h->attachTo(this);
}
void CArtifactInstance::removeFrom(CGHeroInstance *h, ui16 slot)