mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-28 11:50:53 +00:00
Changed: #1304: Message concerning the number of times a mission needs to be completed
This commit is contained in:
parent
20cf2ab08c
commit
4f18078b20
1 changed files with 20 additions and 1 deletions
|
@ -1203,7 +1203,26 @@ class CMissionStepDoMissions : public IMissionStepTemplate
|
|||
|
||||
virtual void getTextParams( uint & nbSubSteps,const std::string* & textPtr,TVectorParamCheck& retParams, const std::vector<uint32>& subStepStates)
|
||||
{
|
||||
static const std::string stepText = "ERROR_UNSPECIFIED_MISSION_TEXT";
|
||||
/*static const std::string stepText = "ERROR_UNSPECIFIED_MISSION_TEXT";
|
||||
textPtr = &stepText;*/
|
||||
|
||||
// Because we can specify the number of times we want a mission to be completed, we specify the parameters
|
||||
static const std::string stepText = "MIS_DO_MISSION_";
|
||||
nlassert( _Missions.size() == subStepStates.size() );
|
||||
for ( uint i = 0; i < subStepStates.size(); i++ )
|
||||
{
|
||||
if( subStepStates[i] != 0 )
|
||||
{
|
||||
nbSubSteps++;
|
||||
retParams.push_back(STRING_MANAGER::TParam());
|
||||
retParams.back().Type = STRING_MANAGER::integer;
|
||||
retParams.back().Int = subStepStates[i];
|
||||
|
||||
retParams.push_back(STRING_MANAGER::TParam());
|
||||
retParams.back().Type = STRING_MANAGER::literal;
|
||||
retParams.back().Literal = _Missions[i].Mission;
|
||||
}
|
||||
}
|
||||
textPtr = &stepText;
|
||||
}
|
||||
bool checkTextConsistency()
|
||||
|
|
Loading…
Reference in a new issue