mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-04 23:17:41 +02:00
Update CCreatureSet.cpp
Use getMarketValue instead of getCost.
This commit is contained in:
parent
d9fe8d7fa0
commit
7c42e43fe5
@ -370,7 +370,7 @@ ui64 CCreatureSet::getArmyCost() const
|
|||||||
{
|
{
|
||||||
ui64 ret = 0;
|
ui64 ret = 0;
|
||||||
for (const auto& elem : stacks)
|
for (const auto& elem : stacks)
|
||||||
ret += elem.second->getCost();
|
ret += elem.second->getMarketValue();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -866,7 +866,7 @@ ui64 CStackInstance::getPower() const
|
|||||||
return type->getAIValue() * count;
|
return type->getAIValue() * count;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui64 CStackInstance::getCost() const
|
ui64 CStackInstance::getMarketValue() const
|
||||||
{
|
{
|
||||||
assert(type);
|
assert(type);
|
||||||
return type->getFullRecruitCost().marketValue() * count;
|
return type->getFullRecruitCost().marketValue() * count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user