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

Some work on artifact assembly.

This commit is contained in:
OnionKnight
2010-02-16 14:39:56 +00:00
parent a6aa36c5a9
commit ab75f4b1f8
10 changed files with 190 additions and 4 deletions

View File

@@ -98,6 +98,12 @@ bool ExchangeArtifacts::applyGh( CGameHandler *gh )
return gh->swapArtifacts(hid1,hid2,slot1,slot2);
}
bool AssembleArtifacts::applyGh( CGameHandler *gh )
{
ERROR_IF_NOT_OWNS(heroID);
return gh->assembleArtifacts(heroID, artifactSlot, assemble, assembleTo);
}
bool BuyArtifact::applyGh( CGameHandler *gh )
{
ERROR_IF_NOT_OWNS(hid);