1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Nullkiller: calibration and small behavior fixes

This commit is contained in:
Andrii Danylchenko
2021-05-16 14:45:48 +03:00
committed by Andrii Danylchenko
parent 37f49f2ac5
commit f832a8b3cd
6 changed files with 34 additions and 15 deletions

View File

@@ -310,10 +310,10 @@ float getStrategicalValue(const CGObjectInstance * target)
switch(target->ID)
{
case Obj::MINE:
return target->subID == Res::GOLD ? 0.5f : 0.05f * getTotalResourceRequirementStrength(target->subID) + 0.05f * getResourceRequirementStrength(target->subID);
return target->subID == Res::GOLD ? 0.5f : 0.02f * getTotalResourceRequirementStrength(target->subID) + 0.02f * getResourceRequirementStrength(target->subID);
case Obj::RESOURCE:
return target->subID == Res::GOLD ? 0 : 0.3f * getResourceRequirementStrength(target->subID);
return target->subID == Res::GOLD ? 0 : 0.1f * getResourceRequirementStrength(target->subID);
case Obj::TOWN:
return dynamic_cast<const CGTownInstance *>(target)->hasFort()