1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Corrected guard calculation to match OH3.

This commit is contained in:
DjWarmonger 2014-06-02 11:15:31 +02:00
parent 252e78acc2
commit 2aa53e9568
2 changed files with 7 additions and 7 deletions

View File

@ -70,12 +70,12 @@
},
"connections" :
[
{ "a" : "1", "b" : "3", "guard" : 1000 },
{ "a" : "1", "b" : "5", "guard" : 4000 },
{ "a" : "2", "b" : "4", "guard" : 1000 },
{ "a" : "2", "b" : "5", "guard" : 4000 },
{ "a" : "3", "b" : "5", "guard" : 2000 },
{ "a" : "4", "b" : "5", "guard" : 2000 }
{ "a" : "1", "b" : "3", "guard" : 2000 },
{ "a" : "1", "b" : "5", "guard" : 8000 },
{ "a" : "2", "b" : "4", "guard" : 2000 },
{ "a" : "2", "b" : "5", "guard" : 8000 },
{ "a" : "3", "b" : "5", "guard" : 4000 },
{ "a" : "4", "b" : "5", "guard" : 4000 }
]
},
"Golden Ring" :

View File

@ -409,7 +409,7 @@ void CRmgTemplateZone::addMonster(CMapGenerator* gen, int3 &pos, si32 strength)
{
creId = VLC->creh->pickRandomMonster(gen->rand);
auto cre = VLC->creh->creatures[creId];
amount = strength / cre->AIValue;
amount = std::ceil((float)strength / cre->fightValue);
if (amount >= cre->ammMin && amount <= 100)
break;
}