mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
7 days without castle loss condition. Minor fixes.
This commit is contained in:
@ -217,6 +217,9 @@ void MetaString::getLocalString(const std::pair<ui8,ui32> &txt, std::string &dst
|
||||
case SEC_SKILL_NAME:
|
||||
vec = &VLC->generaltexth->skillName;
|
||||
break;
|
||||
case COLOR:
|
||||
vec = &VLC->generaltexth->capColors;
|
||||
break;
|
||||
}
|
||||
dst = (*vec)[ser];
|
||||
}
|
||||
@ -3224,6 +3227,9 @@ int CGameState::lossCheck( ui8 player ) const
|
||||
}
|
||||
}
|
||||
|
||||
if(!p->towns.size() && p->daysWithoutCastle >= 7)
|
||||
return 2;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user