Skip to content

Commit

Permalink
Add another tutorial mark.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-n committed Dec 27, 2015
1 parent ec4895d commit 210d3e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ bool Renderer::init(int x, int y)
_messageStrings[SM_Objectives] = "Hack all computer terminals and go to the exit to end the level.";
_messageStrings[SM_Elevators] = "Enemies cannot see you while you are in an elevator.";
_messageStrings[SM_Optional] = "You can disable these tutorial messages in the Options menu.";
_messageStrings[SM_Circuits] = "You can't rewire the objects here directly. You need to find their circuit box.\
\nBypass the circuit box upstairs to hack them in Crosslink.";
_messageStrings[SM_ObjectivesIncomplete] = "Objectives not completed.";

handleSettingsChange();
Expand Down
1 change: 1 addition & 0 deletions global.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ enum StringMessage
SM_Objectives,
SM_Elevators,
SM_Optional,
SM_Circuits,
SM_ObjectivesIncomplete,
NUMBER_OF_STRING_MESSAGES
};
Expand Down
4 changes: 4 additions & 0 deletions map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,10 @@ void Map::parseEntity(TiXmlElement* element, bool savegame)
{
sm = SM_Optional;
}
if (!strcmp(element->Attribute("type"), "tut_11"))
{
sm = SM_Circuits;
}
if (sm < NUMBER_OF_STRING_MESSAGES)
{
_tutorials.push_back(new TutorialMark(x, y - ENTDIM, sm));
Expand Down

0 comments on commit 210d3e3

Please sign in to comment.