owls-nest-extension
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -1,9 +0,10 @@ | ||
const handleMovementTutorial = require('./events/handleMovementTutorial'); | ||
const handleHackingTutorial = require('./events/handleHackingTutorial'); | ||
const handleFredric = require('./events/handleFredric'); | ||
const handleOverride = require('./events/handleOverride'); | ||
const updateQuestStatus = require('./events/updateQuestStatus'); | ||
const handleMovementTutorial = require("./events/handleMovementTutorial"); | ||
const handleHackingTutorial = require("./events/handleHackingTutorial"); | ||
const handleFredric = require("./events/handleFredric"); | ||
const handleOverride = require("./events/handleOverride"); | ||
const updateQuestStatus = require("./events/updateQuestStatus"); | ||
const handleSkipPrologue = require("./events/handleSkipPrologue"); | ||
// Set up level state | ||
const STATE_KEY = 'com.twilioquest.owls_nest'; | ||
const STATE_KEY = "com.twilioquest.owls_nest"; | ||
const DEFAULT_STATE = { | ||
@@ -18,5 +19,7 @@ // Movement tutorial state | ||
margaretInitialGreeting: false, | ||
shouldSkipPrologue: false, | ||
}; | ||
module.exports = function(event, world) { | ||
module.exports = function (event, world) { | ||
// Load world state | ||
@@ -40,9 +43,11 @@ let worldState = world.getState(STATE_KEY) || DEFAULT_STATE; | ||
handleSkipPrologue(event, world, worldState); | ||
// Go to victory map if necessary | ||
if ( | ||
event.name === 'mapDidLoad' && | ||
event.name === "mapDidLoad" && | ||
worldState.missionComplete && | ||
event.mapName !== 'victory' | ||
event.mapName !== "victory" | ||
) { | ||
window.warp('owls_nest', 'player_entry1', 'victory'); | ||
window.warp("owls_nest", "player_entry1", "victory"); | ||
} | ||
@@ -52,7 +57,7 @@ | ||
if ( | ||
event.name === 'mapDidLoad' && | ||
event.name === "mapDidLoad" && | ||
worldState.missionComplete && | ||
event.mapName === 'victory' | ||
event.mapName === "victory" | ||
) { | ||
world.startConversation('kevinVictoryInitial', 'kevinNeutral.png', 500); | ||
world.startConversation("kevinVictoryInitial", "kevinNeutral.png", 500); | ||
} | ||
@@ -59,0 +64,0 @@ |
{ | ||
"name": "owls-nest-extension", | ||
"description": "This extension contains the prologue level for TwilioQuest.", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"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
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
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
428534
52
3892
0