Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

owls-nest-extension

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

owls-nest-extension - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

levels/owls_nest/events/handleSkipPrologue.js

31

levels/owls_nest/events.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc