diff --git a/js/OverworldEvent.js b/js/OverworldEvent.js index 4bcb2c3..3f611bd 100644 --- a/js/OverworldEvent.js +++ b/js/OverworldEvent.js @@ -55,7 +55,6 @@ class OverworldEvent { const obj = this.map.gameObjects[this.event.faceHero]; obj.direction = utils.oppositeDirection(this.map.gameObjects['hero'].direction); } - const message = new TextMessage({ text: this.event.text, onComplete: () => resolve() @@ -76,8 +75,13 @@ class OverworldEvent { } redirectPerson(resolve) { - let link = this.event.link; - let newTab = this.event.newTab || false; // NOT WORKING. Always opening new tab + let link = this.event.link || true; + + if(link === true) { + return ; + } + + let newTab = this.event.newTab; // NOT WORKING. Always opening new tab if(newTab) { window.open(link, '_blank'); } else { diff --git a/js/OverworldMap.js b/js/OverworldMap.js index 2731d75..d98f76d 100644 --- a/js/OverworldMap.js +++ b/js/OverworldMap.js @@ -971,8 +971,10 @@ window.OverworldMaps = { linkedinPerson2: getRoute(38,39,"LinkedIn", "https://www.linkedin.com/company/acmvit/"), facebookPerson1: getRoute(26,42,"Facebook", "https://www.facebook.com/acmvitchapter/"), facebookPerson2: getRoute(25,42,"Facebook", "https://www.facebook.com/acmvitchapter/"), - whatsappPerson1: getRoute(45,32,"Kick Start Learn Program", "https://with.acmvit.in/ksl"), - whatsappPerson2: getRoute(46,32,"Kick Start Learn Program", "https://with.acmvit.in/ksl"), + // whatsappPerson1: getRoute(45,32,"Kick Start Learn Program", "https://with.acmvit.in/ksl"), + // whatsappPerson2: getRoute(46,32,"Kick Start Learn Program", "https://with.acmvit.in/ksl"), + // whatsappPerson1: getRoute(45,32,"", ""), + // whatsappPerson2: getRoute(46,32,"", ""), mailboxPerson1: getRoute(39,27,"Email", "https://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1&source=mailto&to=outreach.acmvit@gmail.com"), mailboxPerson2: getRoute(39,28,"Email", "https://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1&source=mailto&to=outreach.acmvit@gmail.com"), diff --git a/js/walls.js b/js/walls.js index 33ab775..c41c702 100644 --- a/js/walls.js +++ b/js/walls.js @@ -564,4 +564,7 @@ const WALLS = { [utils.asGridCoord(21,45)]: true, [utils.asGridCoord(-4,32)]: true, [utils.asGridCoord(0,30)]: true, + + [utils.asGridCoord(45,32)]: true, + [utils.asGridCoord(46,32)]: true, };