Skip to content

Commit

Permalink
Update strings in fastplay and tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Dec 3, 2023
1 parent 0cbc6c7 commit a52df16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions data/base/script/fastplay/fastdemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ function grantStartTech()
"R-Wpn-MG1Mk1","R-Vehicle-Body01", "R-Sys-Spade1Mk1", "R-Vehicle-Prop-Wheels"
];
const structs = [
"A0CommandCentre", "A0PowerGenerator", "A0ResourceExtractor",
"A0ResearchFacility", "A0LightFactory"
cam_base_structures.commandCenter, cam_base_structures.powerGenerator,
cam_base_structures.derrick, cam_base_structures.researchLab,
cam_base_structures.factory,
];

camCompleteRequiredResearch(tech, CAM_HUMAN_PLAYER);
Expand Down
22 changes: 11 additions & 11 deletions data/base/script/tutorial.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ function enableBuild()
{
setReticuleButton(MIS_BUILD_BUTTON, _("Build (F3)"), "image_build_up.png", "image_build_down.png");
setReticuleFlash(MIS_BUILD_BUTTON, true);
enableStructure("A0PowerGenerator", CAM_HUMAN_PLAYER);
enableStructure(cam_base_structures.powerGenerator, CAM_HUMAN_PLAYER);
}

//show the research button
function enableRes()
{
setReticuleButton(MIS_RESEARCH_BUTTON, _("Research (F2)"), "image_research_up.png", "image_research_down.png");
setReticuleFlash(MIS_RESEARCH_BUTTON, true);
enableStructure("A0ResearchFacility", CAM_HUMAN_PLAYER);
enableStructure(cam_base_structures.researchLab, CAM_HUMAN_PLAYER);
}

//They clicked the button so turn off flash
Expand Down Expand Up @@ -266,7 +266,7 @@ function eventDesignQuit()
{
increaseTutorialState();
setReticuleButton(MIS_DESIGN_BUTTON, _("Design - construct HQ first"), "", "");
enableStructure("A0LightFactory", CAM_HUMAN_PLAYER);
enableStructure(cam_base_structures.factory, CAM_HUMAN_PLAYER);
setReticuleFlash(MIS_CLOSE_BUTTON, false);
setReticuleButton(MIS_BUILD_BUTTON, _("Build (F3)"), "image_build_up.png", "image_build_down.png");
setReticuleFlash(MIS_BUILD_BUTTON, true);
Expand All @@ -279,7 +279,7 @@ function checkForPowGen()
{
if (tutState === 4)
{
if (countStruct("A0PowerGenerator", CAM_HUMAN_PLAYER) > 0)
if (countStruct(cam_base_structures.powerGenerator, CAM_HUMAN_PLAYER) > 0)
{
setReticuleButton(MIS_BUILD_BUTTON, _("Build - manufacture constructor droids first"), "", "");
increaseTutorialState();
Expand Down Expand Up @@ -312,7 +312,7 @@ function checkResFac()
{
if (tutState === 11)
{
if (countStruct("A0ResearchFacility", CAM_HUMAN_PLAYER) > 0)
if (countStruct(cam_base_structures.researchLab, CAM_HUMAN_PLAYER) > 0)
{
setReticuleButton(MIS_BUILD_BUTTON, _("Build - manufacture constructor droids first"), "", "");
}
Expand Down Expand Up @@ -360,7 +360,7 @@ function eventPickup(feature, droid)
increaseTutorialState();
setReticuleButton(MIS_BUILD_BUTTON, _("Build (F3)"), "image_build_up.png", "image_build_down.png");
setReticuleFlash(MIS_BUILD_BUTTON, true);
enableStructure("A0ResearchFacility", CAM_HUMAN_PLAYER);
enableStructure(cam_base_structures.researchLab, CAM_HUMAN_PLAYER);
}
}

Expand Down Expand Up @@ -424,7 +424,7 @@ function eventSelectionChanged(objects)
{
if (tut0)
{
enableStructure("A0ResourceExtractor", CAM_HUMAN_PLAYER);
enableStructure(cam_base_structures.derrick, CAM_HUMAN_PLAYER);
increaseTutorialState();
}
else if (tut5 && obj.id !== firstTruckID)
Expand Down Expand Up @@ -503,10 +503,10 @@ function eventStartLevel()
hackStopIngameAudio();

grantStartTech();
setStructureLimits("A0LightFactory", 1, CAM_HUMAN_PLAYER);
setStructureLimits("A0ResourceExtractor", 1, CAM_HUMAN_PLAYER);
setStructureLimits("A0PowerGenerator", 1, CAM_HUMAN_PLAYER);
setStructureLimits("A0ResearchFacility", 1, CAM_HUMAN_PLAYER);
setStructureLimits(cam_base_structures.factory, 1, CAM_HUMAN_PLAYER);
setStructureLimits(cam_base_structures.derrick, 1, CAM_HUMAN_PLAYER);
setStructureLimits(cam_base_structures.powerGenerator, 1, CAM_HUMAN_PLAYER);
setStructureLimits(cam_base_structures.researchLab, 1, CAM_HUMAN_PLAYER);

camSafeRemoveObject("mgArtifact", false);
addFeature("OilResource", 24, 26);
Expand Down

0 comments on commit a52df16

Please sign in to comment.