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:
committed by
Andrii Danylchenko
parent
37f49f2ac5
commit
f832a8b3cd
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user