mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Saving costume
This commit is contained in:
@@ -179,6 +179,14 @@ void ApplyGhNetPackVisitor::visitManageBackpackArtifacts(ManageBackpackArtifacts
|
||||
}
|
||||
}
|
||||
|
||||
void ApplyGhNetPackVisitor::visitManageEquippedArtifacts(ManageEquippedArtifacts & pack)
|
||||
{
|
||||
gh.throwIfWrongOwner(&pack, pack.artHolder);
|
||||
if(pack.saveCostume)
|
||||
gh.saveArtifactsCostume(pack.player, pack.artHolder, pack.costumeIdx);
|
||||
result = true;
|
||||
}
|
||||
|
||||
void ApplyGhNetPackVisitor::visitAssembleArtifacts(AssembleArtifacts & pack)
|
||||
{
|
||||
gh.throwIfWrongOwner(&pack, pack.heroID);
|
||||
|
||||
Reference in New Issue
Block a user