mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
[1.7.4] Stack artifact indication on creature icon (#7200)
* Refactor artifact handling methods in CPlayerInterface * Add artifactImage shared pointer to CGarrisonInt * Add artifact image handling in CGarrisonInt * Update CGarrisonInt.cpp * Make Stack Artifacts Indication toogable via mod * Update gameConfig.json * Update CGarrisonInt.cpp * Update AssetGenerator.h * Add small circle background generating for Stack Artifact Indicator * Update CGarrisonInt.h * Update CGarrisonInt.h * Add generated background for Stack Artifact Indicator * Update CGarrisonInt.cpp * Fix Sonar warning * Adjust generated circle color * ReRun CI
This commit is contained in:
@@ -1742,12 +1742,14 @@ void CPlayerInterface::artifactPut(const ArtifactLocation &al)
|
||||
{
|
||||
EVENT_HANDLER_CALLED_BY_CLIENT;
|
||||
adventureInt->onHeroChanged(cb->getHero(al.artHolder));
|
||||
garrisonsChanged(al.artHolder, ObjectInstanceID());
|
||||
}
|
||||
|
||||
void CPlayerInterface::artifactRemoved(const ArtifactLocation &al)
|
||||
{
|
||||
EVENT_HANDLER_CALLED_BY_CLIENT;
|
||||
adventureInt->onHeroChanged(cb->getHero(al.artHolder));
|
||||
garrisonsChanged(al.artHolder, ObjectInstanceID());
|
||||
artifactController->artifactRemoved();
|
||||
}
|
||||
|
||||
@@ -1755,6 +1757,7 @@ void CPlayerInterface::artifactMoved(const ArtifactLocation &src, const Artifact
|
||||
{
|
||||
EVENT_HANDLER_CALLED_BY_CLIENT;
|
||||
adventureInt->onHeroChanged(cb->getHero(dst.artHolder));
|
||||
garrisonsChanged(src.artHolder, dst.artHolder);
|
||||
artifactController->artifactMoved();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user