owls-nest-extension
Advanced tools
Comparing version 1.0.7 to 2.0.0-translations.beta.1
@@ -13,3 +13,3 @@ const SKIP_BUTTON_PROLOGUE_ID = "skip-prologue-button"; | ||
skipPrologueButton.textContent = "Skip prologue..."; | ||
skipPrologueButton.textContent = world.getTranslatedString('owls_nest.handleSkipPrologue.skip'); | ||
skipPrologueButton.id = SKIP_BUTTON_PROLOGUE_ID; | ||
@@ -19,5 +19,3 @@ | ||
if ( | ||
window.confirm( | ||
`Are you sure you want to skip the rest of the prologue and be warped straight to the Fog Owl?` | ||
) | ||
window.confirm(world.getTranslatedString('owls_nest.handleSkipPrologue.confirm')) | ||
) { | ||
@@ -24,0 +22,0 @@ worldState.shouldSkipPrologue = true; |
const LEVEL = 'owls_nest'; | ||
const TITLE = `Leaving the Owl's Nest`; | ||
// Based on the current level state, determine what | ||
function updateQuestStatus(event, world, worldState) { | ||
let description = ` | ||
Use WASD or arrow keys to move, spacebar to interact. Flip the blue switch! | ||
`; | ||
let description = world.getTranslatedString('owls_nest.updateQuestStatus.description'); | ||
let complete = false; | ||
if (worldState.movementSwitch) { | ||
description = ` | ||
Get the hacking tool from the pedestal and use it to bypass the security | ||
terminal. | ||
`; | ||
description = world.getTranslatedString('owls_nest.updateQuestStatus.movementSwitch'); | ||
} | ||
if (worldState.firstObjectiveHacked) { | ||
description = ` | ||
Talk to Kevin and Cedric, then take command of the Fog Owl! | ||
`; | ||
description = world.getTranslatedString('owls_nest.updateQuestStatus.firstObjectiveHacked'); | ||
} | ||
if (worldState.fredricThreatReceived) { | ||
description = ` | ||
Get the self-destruct override codes from Ryan! You'll need a fire | ||
extinguisher. | ||
`; | ||
description = world.getTranslatedString('owls_nest.updateQuestStatus.fredricThreatReceived'); | ||
} | ||
if (worldState.ryanSaved) { | ||
description = ` | ||
Use the override codes to abort the Fog Owl's self-destruct sequence! | ||
`; | ||
description = world.getTranslatedString('owls_nest.updateQuestStatus.ryanSaved'); | ||
} | ||
if (worldState.missionComplete) { | ||
description = ` | ||
Board the Fog Owl and begin your adventure! | ||
`; | ||
description = world.getTranslatedString('owls_nest.updateQuestStatus.missionComplete'); | ||
complete = true; | ||
} | ||
world.updateQuestStatus(LEVEL, TITLE, description, complete); | ||
world.updateQuestStatus(LEVEL, world.getTranslatedString('owls_nest.updateQuestStatus.title'), | ||
description, complete, event.name === 'languageRefresh'); | ||
} | ||
module.exports = updateQuestStatus |
@@ -6,7 +6,3 @@ module.exports = async function (helper) { | ||
) { | ||
return helper.fail(` | ||
The first answer is incorrect. Software installed on your computer | ||
often has privileged access to your data and personal files. You should | ||
be careful what you download and install on your computer! | ||
`); | ||
return helper.fail(helper.world.getTranslatedString('owls_nest.fire_extinguisher_objective.first')); | ||
} | ||
@@ -18,7 +14,3 @@ | ||
) { | ||
return helper.fail(` | ||
The second answer is incorrect. Code that you copy and paste from the | ||
Internet can be helpful, but make sure you know what it does before you | ||
run it! | ||
`); | ||
return helper.fail(helper.world.getTranslatedString('owls_nest.fire_extinguisher_objective.second')); | ||
} | ||
@@ -30,16 +22,6 @@ | ||
) { | ||
return helper.fail(` | ||
The third answer is incorrect. It's risky to keep personal data like | ||
email addresses or passwords in a code file. You might accidentally | ||
share the code with someone else, which would violate your privacy, or | ||
the privacy of others. Be careful with personal data! Make sure you know | ||
how it will be stored, and that your code doesn't enable another person | ||
to see it without good reason. | ||
`); | ||
return helper.fail(helper.world.getTranslatedString('owls_nest.fire_extinguisher_objective.third')); | ||
} | ||
helper.success(` | ||
You did it! After confirming your knowledge of computer safety, the chest | ||
pops open and you retrieve the fire extinguisher you will need to save Ryan. | ||
`); | ||
helper.success(helper.world.getTranslatedString('owls_nest.fire_extinguisher_objective.success')); | ||
}; |
@@ -7,18 +7,11 @@ module.exports = async function (helper) { | ||
if (!worldState.hackingToolAcquired) { | ||
return helper.fail(` | ||
Bypassing this system requires the <strong>hacking tool</strong>. | ||
Get the hacking tool by walking to the pedestal in this room and pressing | ||
the spacebar. | ||
`); | ||
return helper.fail(helper.world.getTranslatedString('owls_nest.hacking_tool_objective.hackingToolAcquired')); | ||
} | ||
if (!passcode) { | ||
return helper.fail('BZZZT! Laser override passcode is required.'); | ||
return helper.fail(helper.world.getTranslatedString('owls_nest.hacking_tool_objective.passcode')); | ||
} | ||
if (passcode !== 'level up') { | ||
return helper.fail(` | ||
Passcode not recognized. Please read the "Objective" section of the | ||
hack interface to reveal the correct passcode. | ||
`); | ||
return helper.fail(helper.world.getTranslatedString('owls_nest.hacking_tool_objective.levelUp')); | ||
} | ||
@@ -28,6 +21,3 @@ | ||
// the end, we know the user got all the answers right! | ||
helper.success(` | ||
You enter the passcode needed to bypass the lasers. Soon after, the lasers | ||
retract and clear your path forward to the Fog Owl! | ||
`); | ||
helper.success(helper.world.getTranslatedString('owls_nest.hacking_tool_objective.success')); | ||
}; |
{ | ||
"name": "owls-nest-extension", | ||
"description": "This extension contains the prologue level for TwilioQuest.", | ||
"version": "1.0.7", | ||
"version": "2.0.0-translations.beta.1", | ||
"engines": { | ||
@@ -6,0 +6,0 @@ "twilioquest": "3.2.x" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
477125
62
4476
2
1