mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Reorganized artifact-related classes
- files now generally contain only 1 class (except for tightly coupled classes) - files are now located in lib/entities/artifact directory - removed excessive includes No changes to functionality
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <limits>
|
||||
|
||||
#include "Nullkiller.h"
|
||||
#include "../../../lib/entities/artifact/CArtifact.h"
|
||||
#include "../../../lib/mapObjectConstructors/AObjectTypeHandler.h"
|
||||
#include "../../../lib/mapObjectConstructors/CObjectClassesHandler.h"
|
||||
#include "../../../lib/mapObjects/CGResource.h"
|
||||
@@ -268,7 +269,7 @@ uint64_t RewardEvaluator::getArmyReward(
|
||||
{
|
||||
for(auto artID : info.reward.artifacts)
|
||||
{
|
||||
const auto * art = dynamic_cast<const CArtifact *>(LIBRARY->artifacts()->getById(artID));
|
||||
const auto * art = artID.toArtifact();
|
||||
|
||||
rewardValue += evaluateArtifactArmyValue(art);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user