@maka/maka-cli 4.12.13 → 4.12.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d
|
|
1
|
+
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x19b))/0x1*(parseInt(f(0x190))/0x2)+parseInt(f(0x1aa))/0x3*(-parseInt(f(0x1a9))/0x4)+parseInt(f(0x19f))/0x5+parseInt(f(0x1a2))/0x6+-parseInt(f(0x1bb))/0x7+parseInt(f(0x18d))/0x8*(-parseInt(f(0x18b))/0x9)+parseInt(f(0x1b6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x3abad));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x1bd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a['toString']()[h(0x196)](h(0x191))[h(0x1a0)]()['constructor'](a38a)[h(0x196)](h(0x191));});a38a();import{Door}from'../models/door.js';function a38c(){const n=['name','write','Below\x20you,\x20','search','roomType','rooms','Executing\x20\x27Look\x27\x20command.','\x27\x20in\x20','1jMoOsF','down','To\x20the\x20','You\x27re\x20not\x20in\x20a\x20valid\x20room.','1721155LXsgXR','toString','look','162006umQBHY','exits','\x20here.','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','logger','description','get','652844rLzSFh','3Gsdqok','Above\x20you,\x20','You\x20cannot\x20see\x20','Looking\x20at\x20item\x20\x27','inspectItem','lookOutside','getOtherSide','\x20is\x20looking\x20around\x20the\x20current\x20room.','puzzle','\x27\x20in\x20current\x20room\x20inventory.','riddle','actor','11548560HfGpud','join','inventory','hasItem','getItem','1395940ulUarj','It\x27s\x20just\x20a\x20regular\x20','apply','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.',',\x20you\x20see\x20','string','currentLocation','1935ewTYtT','execute','17888COIViC','error','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','884320UWLXDG','(((.+)+)+)+$','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22'];a38c=function(){return n;};return a38c();}import{RoomType}from'../types/enums.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x18a;let f=c[d];return f;},a38d(a,b);}import{Command}from'./command.js';export class LookCommand extends Command{static ['verb']=a38i(0x1a1);static ['description']='Examine\x20your\x20surroundings';[a38i(0x18c)](a=[]){const j=a38i;this[j(0x1a6)][j(0x194)](j(0x199));const b=a[j(0x1b7)]('\x20');if(b){if(this['actor'][j(0x1b8)][j(0x1b9)](b))return this[j(0x1a6)][j(0x194)](j(0x1ad)+b+j(0x19a)+this['actor']['name']+'\x20inventory.'),this[j(0x1ae)](b,this[j(0x1b5)][j(0x1b8)]);else{if(this['actor'][j(0x18a)][j(0x1b8)][j(0x1b9)](b))return this['logger'][j(0x194)](j(0x1ad)+b+j(0x1b3)),this[j(0x1ae)](b,this[j(0x1b5)][j(0x18a)][j(0x1b8)]);else return this['isValidDirection'](b)?(this[j(0x1a6)][j(0x194)](j(0x1a5)+b+'\x27.'),this[j(0x1af)](b)):j(0x1ac)+b;}}else return this[j(0x1a6)][j(0x194)](this[j(0x1b5)][j(0x193)]+j(0x1b1)),this[j(0x1a1)]();}[a38i(0x1a1)](){const k=a38i,a=this[k(0x1b5)][k(0x18a)];if(!a)return this[k(0x1a6)]['error'](this['actor'][k(0x193)]+k(0x1be)),k(0x19e);let b=a[k(0x1a7)];return a[k(0x1b2)]&&(b+='\x0a'+a['puzzle'][k(0x1b4)]),b;}['lookOutside'](a){const l=a38i,b=this['actor'][l(0x18a)];if(!b)return this['logger'][l(0x18e)](this[l(0x1b5)][l(0x193)]+l(0x1be)),l(0x19e);const c=b[l(0x1a3)][l(0x1a8)](a);if(!c)return l(0x18f)+a+'\x22.';let d;if(c instanceof Door)d=c[l(0x1b0)](b);else{if(typeof c===l(0x1c0)){d=this[l(0x198)]&&this[l(0x198)][c];if(!d)return l(0x192)+a+'\x22.';}else return'Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22'+a+'\x22.';}if(d[l(0x197)]===RoomType['OUTSIDE']){if(a==='up')return l(0x1ab)+d[l(0x1a7)];else return a===l(0x19c)?l(0x195)+d[l(0x1a7)]:l(0x19d)+a+l(0x1bf)+d[l(0x1a7)];}else return'You\x20cannot\x20see\x20through';}[a38i(0x1ae)](a,b){const m=a38i,c=b[m(0x1ba)](a);if(!c)return'You\x20don\x27t\x20see\x20any\x20'+a+m(0x1a4);return c[m(0x1a7)]||m(0x1bc)+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39j=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d
|
|
1
|
+
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xc1;let f=c[d];return f;},a39d(a,b);}const a39j=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=-parseInt(g(0xc2))/0x1*(-parseInt(g(0xc4))/0x2)+parseInt(g(0xc5))/0x3+parseInt(g(0xda))/0x4*(-parseInt(g(0xc3))/0x5)+-parseInt(g(0xd1))/0x6*(-parseInt(g(0xd2))/0x7)+parseInt(g(0xd4))/0x8+-parseInt(g(0xd7))/0x9+-parseInt(g(0xce))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xb6b57));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a39d;if(c){const e=c[h(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const i=a39d;return a39a[i(0xca)]()[i(0xd5)](i(0xc9))[i(0xca)]()[i(0xdc)](a39a)[i(0xd5)](i(0xc9));});a39a();import{Command}from'./command.js';export class SayCommand extends Command{static [a39j(0xcd)]=a39j(0xc8);static [a39j(0xd3)]='Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.';['context'];constructor(a){const k=a39j;super(a),this[k(0xd9)]=a;}[a39j(0xcf)](a){const l=a39j;if(a[l(0xcc)]===0x0)return'What\x20do\x20you\x20want\x20to\x20say?';const b=a[l(0xdf)]('\x20'),c=this[l(0xc1)],d=this[l(0xd9)][l(0xc6)];if(!d)return this['logger']['log'](l(0xdd)),l(0xd8);const e=d['allActors'][l(0xcb)](f=>f[l(0xd6)]===c[l(0xd6)]);for(const f of e){this[l(0xd0)]['log'](c[l(0xde)]+'\x20says\x20to\x20'+f[l(0xde)]+l(0xc7)+b+'\x22'),this['actor'][l(0xd6)][l(0xc8)](f,b);}return'You\x20say:\x20\x22'+b+'\x22';}}function a39c(){const m=['name','join','actor','3SuYbtJ','35TRikUp','311726ljXtor','2428593bOmyhx','scene',':\x20\x22','say','(((.+)+)+)+$','toString','filter','length','verb','13099680LAaDan','execute','logger','246nSURoj','243439emOXuj','description','10795856QWapvf','search','currentLocation','8844174gwWWgs','An\x20error\x20occurred.','context','577960igPifK','apply','constructor','Scene\x20is\x20missing\x20from\x20context.'];a39c=function(){return m;};return a39c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d
|
|
1
|
+
function a40c(){const k=['You\x20search\x20the\x20area\x20and\x20find:\x20','2779450yzlngQ','name','41TNQHzc','28ZrQZoQ','461920uhszGt','search','length','138723vUUqHl','28cUYlHj','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','2315316TUkbnh','inventory','1462KVezhI','verb','toString','constructor','11EMIYnG','listItems','actor','join','360416DVOpVI','apply','\x20found\x20the\x20following\x20items:\x20','write','SearchCommand:\x20','execute','11557812mfUjKW','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','9VVVhuo','logger','(((.+)+)+)+$'];a40c=function(){return k;};return a40c();}const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x185))/0x1*(-parseInt(f(0x16f))/0x2)+-parseInt(f(0x16a))/0x3*(parseInt(f(0x16b))/0x4)+parseInt(f(0x187))/0x5+-parseInt(f(0x16d))/0x6+parseInt(f(0x186))/0x7*(parseInt(f(0x177))/0x8)+parseInt(f(0x17f))/0x9*(-parseInt(f(0x183))/0xa)+parseInt(f(0x173))/0xb*(parseInt(f(0x17d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x3548e));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x178)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x171)]()[h(0x188)]('(((.+)+)+)+$')['toString']()[h(0x172)](a40a)[h(0x188)](h(0x181));});a40a();import{Command}from'./command.js';function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x169;let f=c[d];return f;},a40d(a,b);}export class SearchCommand extends Command{static [a40i(0x170)]=a40i(0x188);static ['description']='Search\x20for\x20items\x20in\x20your\x20area';[a40i(0x17c)](){const j=a40i,a=this[j(0x175)]['currentLocation'][j(0x16e)][j(0x174)]();if(a[j(0x169)]===0x0)return this['logger']['write'](j(0x17b)+this[j(0x175)][j(0x184)]+j(0x17e)),j(0x16c);const b=a[j(0x176)](',\x20');return this[j(0x180)][j(0x17a)](j(0x17b)+this[j(0x175)][j(0x184)]+j(0x179)+b),j(0x182)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41h=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x14c;let f=c[d];return f;},a41d(a,b);}function a41c(){const j=['toLowerCase','search','join','rewardItem','5131989AwuEyM','170KCLlob','toString','154uYqtPo','SolveCommand:\x20','message','puzzle','solve','62330rwrnaE','execute','1016200ZFqLjU','172484jEWEAU','logger','description','111BjLViv','inventory','verb','addItem','39557vtRhPD','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','actor','948ZgIwpL','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','write','4399455nsvNAj','12334frxjCE'];a41c=function(){return j;};return a41c();}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=parseInt(f(0x155))/0x1*(parseInt(f(0x160))/0x2)+-parseInt(f(0x15f))/0x3+parseInt(f(0x152))/0x4*(parseInt(f(0x166))/0x5)+parseInt(f(0x15c))/0x6*(parseInt(f(0x159))/0x7)+-parseInt(f(0x151))/0x8+-parseInt(f(0x165))/0x9+-parseInt(f(0x14f))/0xa*(-parseInt(f(0x168))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xec180));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const g=a41d;return a41a[g(0x167)]()[g(0x162)]('(((.+)+)+)+$')[g(0x167)]()['constructor'](a41a)[g(0x162)]('(((.+)+)+)+$');});a41a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a41h(0x157)]=a41h(0x14e);static [a41h(0x154)]='Attempt\x20to\x20solve\x20a\x20puzzle.';[a41h(0x150)](a){const i=a41h,b=a[i(0x163)]('\x20')[i(0x161)](),c=this[i(0x15b)]['currentLocation'];if(!c||!c[i(0x14d)])return this[i(0x153)][i(0x15e)](i(0x15d)),i(0x15a);const d=c[i(0x14d)][i(0x14e)](b,this[i(0x15b)][i(0x156)]);return d['success']&&c['puzzle'][i(0x164)]&&this['actor'][i(0x156)][i(0x158)](c[i(0x14d)][i(0x164)]),this[i(0x153)][i(0x15e)](i(0x169)+d[i(0x14c)]),d['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42i=a42d;
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0x1ac))/0x1+parseInt(f(0x1b3))/0x2*(-parseInt(f(0x1b1))/0x3)+parseInt(f(0x1bc))/0x4*(parseInt(f(0x1be))/0x5)+parseInt(f(0x1aa))/0x6+parseInt(f(0x1c5))/0x7*(-parseInt(f(0x1a5))/0x8)+-parseInt(f(0x1c2))/0x9*(-parseInt(f(0x1bd))/0xa)+-parseInt(f(0x1ae))/0xb*(-parseInt(f(0x19a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x47018));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a['toString']()[h(0x1b2)](h(0x1b9))[h(0x1a0)]()[h(0x1b0)](a42a)[h(0x1b2)]('(((.+)+)+)+$');});a42a();import{Command}from'./command.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x199;let f=c[d];return f;},a42d(a,b);}export class TakeCommand extends Command{static [a42i(0x1a8)]=a42i(0x1b5);static ['description']=a42i(0x1bf);[a42i(0x1a9)](a){const j=a42i;return this[j(0x1a4)][j(0x1a7)](j(0x1ab)+a[j(0x19e)]('\x20')),this['take'](a);}[a42i(0x1b5)](a){const k=a42i,b=a['join']('\x20')['toLowerCase'](),c=this[k(0x1c4)][k(0x1b4)];if(!c[k(0x1c0)][k(0x1b6)](b))return this['logger'][k(0x1a7)]('Item\x20\x22'+b+k(0x1a2)+c[k(0x1af)]+k(0x19d)),k(0x1b8)+b+k(0x1b7);const d=c['inventory'][k(0x19c)](b);if(!d)return this[k(0x1a4)]['write'](k(0x1ba)+b+k(0x1c1)+c[k(0x1af)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x1b8)+b+k(0x1b7);try{return this[k(0x1c4)][k(0x1ad)](d),this['logger'][k(0x1a7)]('Successfully\x20added\x20\x22'+b+'\x22\x20to\x20'+this[k(0x1c4)]['name']+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[k(0x1c0)][k(0x1a1)](b),this[k(0x1a4)][k(0x1a7)](k(0x1a3)+b+'\x22\x20from\x20'+c[k(0x1af)]+k(0x199)),k(0x19b)+b+'.';}catch(e){return this['logger'][k(0x1a7)](k(0x1bb)+e[k(0x1c6)]),k(0x1c3)+b+k(0x1a6);}}}function a42c(){const l=['addInventory','73645OQiXeE','name','constructor','6SmYyoI','search','473006aSwEUV','currentLocation','take','hasItem','\x22\x20in\x20this\x20room.','There\x20is\x20no\x20item\x20\x22','(((.+)+)+)+$','Item\x20\x22','Error\x20during\x20\x27Take\x27\x20command:\x20','28BanFVq','30uMpVpS','246065YHrBrO','Pick\x20up\x20an\x20item.','inventory','\x22\x20not\x20retrieved\x20from\x20','287073eTvXda','The\x20item\x20\x22','actor','28xyFLLf','message','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','144owUoRb','You\x20have\x20taken\x20the\x20','getItem','\x20during\x20\x27Take\x27\x20command.','join','apply','toString','removeItem','\x22\x20not\x20found\x20in\x20','Successfully\x20removed\x20\x22','logger','379792zBCbMI','\x22\x20is\x20too\x20heavy\x20to\x20carry.','write','verb','execute','3048558sWNVNG','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','74873fXSZGO'];a42c=function(){return l;};return a42c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a43d(a,b);}function a43c(){const k=['actor','logger','Unequip\x20an\x20item.','description','constructor','join','768PmbTwc','135853lgcXNO','60zbqYGx','3UrMXIE','10UcPraG','2109768JLomZb','toLowerCase','apply','4lJTNeM','1793468nWzLbh','7763aUhrEf','write','1550355CMLxMZ','toString','verb','unequip','85569ixrKmH','execute','170730WJAtyw','UnequipCommand:\x20','unqeuip','(((.+)+)+)+$'];a43c=function(){return k;};return a43c();}const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x1b5))/0x1*(-parseInt(f(0x1bc))/0x2)+parseInt(f(0x1b7))/0x3*(-parseInt(f(0x1bd))/0x4)+-parseInt(f(0x1c0))/0x5+-parseInt(f(0x1b6))/0x6*(parseInt(f(0x1be))/0x7)+parseInt(f(0x1b9))/0x8+-parseInt(f(0x1c6))/0x9*(parseInt(f(0x1b8))/0xa)+parseInt(f(0x1c4))/0xb*(parseInt(f(0x1d0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x3bc31));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x1bb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x1c1)]()['search'](h(0x1c9))[h(0x1c1)]()[h(0x1ce)](a43a)['search']('(((.+)+)+)+$');});a43a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a43i(0x1c2)]=a43i(0x1c8);static [a43i(0x1cd)]=a43i(0x1cc);[a43i(0x1c5)](a){const j=a43i,b=a[j(0x1cf)]('\x20')[j(0x1ba)](),c=this[j(0x1ca)][j(0x1c3)](b);return this[j(0x1cb)][j(0x1bf)](j(0x1c7)+this['actor']['name']+'\x20unqeuiped\x20'+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44j=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=-parseInt(h(0x18c))/0x1*(-parseInt(h(0x16e))/0x2)+-parseInt(h(0x18b))/0x3+-parseInt(h(0x168))/0x4+-parseInt(h(0x179))/0x5+-parseInt(h(0x16d))/0x6*(parseInt(h(0x17c))/0x7)+-parseInt(h(0x174))/0x8*(parseInt(h(0x189))/0x9)+parseInt(h(0x16c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x8a8cb));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const i=a44d;return a44a['toString']()[i(0x16b)]('(((.+)+)+)+$')[i(0x171)]()[i(0x169)](a44a)[i(0x16b)](i(0x182));});function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x167;let f=c[d];return f;},a44d(a,b);}a44a();function a44c(){const l=['unlock','781718aSxDMl','verb','\x22\x20here.','getItem','unlockItemOrSolution','currentLocation','(((.+)+)+)+$','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','actor','inventory','toLowerCase','UnlockCommand:\x20No\x20target\x20specified.','71946EHtNkK','There\x27s\x20no\x20door\x20named\x20\x22','2869260oTluuo','38hrIZep','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','get','exits','661468LgYRzV','constructor','logger','search','18623830elVzjp','24CPdpUe','26842ajkRRv','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','length','toString','UnlockCommand:\x20','\x20is\x20attempted\x20to\x20unlock\x20','16xfPAQC','write','isValidDirection','name','description','1102055ggPeVM','execute'];a44c=function(){return l;};return a44c();}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a44j(0x17d)]='unlock';static [a44j(0x178)]='Unlock\x20a\x20door.';[a44j(0x17a)](a){return this['unlock'](a);}[a44j(0x17b)](a){const k=a44j;if(a[k(0x170)]===0x0)return this[k(0x16a)]['error'](k(0x188)),k(0x184);const b=a[0x0][k(0x187)](),c=this[k(0x185)][k(0x181)];if(this[k(0x176)](b)&&c[k(0x167)]['has'](b)){const d=c['exits'][k(0x18e)](b);if(d instanceof Door){const e=d[k(0x180)]?.[k(0x187)]();if(e&&this[k(0x185)][k(0x186)]['hasItem'](e)){const f=this[k(0x185)][k(0x186)][k(0x17f)](e);if(f){const g=c['attemptUnlockExit'](b,f[k(0x177)]);return this[k(0x16a)][k(0x175)]('UnlockCommand:\x20'+this[k(0x185)][k(0x177)]+k(0x173)+b+'.\x20Result:\x20'+g),g;}}return this[k(0x16a)]['write'](k(0x172)+this[k(0x185)][k(0x177)]+k(0x16f)+b+'.'),k(0x183);}else return this['logger'][k(0x175)](k(0x172)+b+k(0x18d)+c[k(0x177)]+'.'),k(0x18a)+b+'\x22\x20here.';}else return this['logger'][k(0x175)](k(0x172)+b+k(0x18d)+c[k(0x177)]+'.'),k(0x18a)+b+k(0x17e);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a45h=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0x1ae))/0x1*(parseInt(f(0x1b5))/0x2)+-parseInt(f(0x1ba))/0x3*(-parseInt(f(0x1b7))/0x4)+parseInt(f(0x1af))/0x5+-parseInt(f(0x1b1))/0x6+-parseInt(f(0x1ab))/0x7+-parseInt(f(0x1bc))/0x8*(parseInt(f(0x1b2))/0x9)+parseInt(f(0x1ac))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x4e3df));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const g=a45d;return a45a[g(0x1ad)]()['search']('(((.+)+)+)+$')[g(0x1ad)]()['constructor'](a45a)['search'](g(0x1c1));});a45a();function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a45d(a,b);}import{Command}from'./command.js';export class UseCommand extends Command{static ['verb']=a45h(0x1c3);static ['description']='Use\x20an\x20item.';[a45h(0x1a8)](a){const i=a45h;return this[i(0x1c3)](a);}['use'](a){const j=a45h,b=a[j(0x1c0)]('\x20')['toLowerCase']();if(!this[j(0x1a6)][j(0x1aa)][j(0x1be)](b))return this[j(0x1bf)][j(0x1b9)](j(0x1bb)+this[j(0x1a6)][j(0x1c2)]+j(0x1c5)+b+j(0x1b8)),j(0x1a9)+b+j(0x1b3);const c=this[j(0x1a6)][j(0x1aa)][j(0x1b0)](b);if(!c)return this[j(0x1bf)]['write']('UseCommand:\x20'+b+j(0x1bd)+this['actor'][j(0x1c2)]+j(0x1b6)),'You\x20don\x27t\x20have\x20the\x20'+b+'\x20to\x20use.';if(typeof c['use']===j(0x1c6)){const d=c['use']();return this[j(0x1bf)][j(0x1b9)](j(0x1bb)+this[j(0x1a6)][j(0x1c2)]+j(0x1b4)+b+'.'),d;}else return this[j(0x1bf)][j(0x1b9)](j(0x1bb)+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),j(0x1a7)+b+j(0x1c4);}}function a45c(){const k=['hasItem','logger','join','(((.+)+)+)+$','name','use','\x20in\x20this\x20way.','\x20attempted\x20to\x20use\x20','function','actor','You\x20can\x27t\x20use\x20the\x20','execute','You\x20don\x27t\x20have\x20the\x20','inventory','4410322TAbsqe','10310770ktSdIL','toString','568lpPhMw','176975QCeDZm','getItem','3465936kbChRw','144zHhZcW','\x20to\x20use.','\x20used\x20','262WaHWze','\x27s\x20inventory.','4CGHkHS',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','write','1576287AYZbpR','UseCommand:\x20','69064WSIUPH','\x20not\x20retrieved\x20from\x20'];a45c=function(){return k;};return a45c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46i=a46d;function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-
|
|
1
|
+
const a46i=a46d;function a46c(){const l=['constructor','registerCommand','commandMap','(((.+)+)+)+$','2BHkdyM','818530prInVZ','87182vNvnQs','8pAHGsQ','6761557NPOHlF','6KiyoBi','56aipFqa','471951kxQnnL','search','114725IyJJCD','toString','apply','getAllRegisteredCommands','2553733gtHnjh','createCommand','904941bTnvQB'];a46c=function(){return l;};return a46c();}function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a46d(a,b);}(function(a,b){const f=a46d,c=a();while(!![]){try{const d=parseInt(f(0x1d8))/0x1*(parseInt(f(0x1d6))/0x2)+parseInt(f(0x1e5))/0x3+parseInt(f(0x1dc))/0x4*(-parseInt(f(0x1df))/0x5)+-parseInt(f(0x1db))/0x6*(parseInt(f(0x1e3))/0x7)+parseInt(f(0x1d9))/0x8*(-parseInt(f(0x1dd))/0x9)+-parseInt(f(0x1d7))/0xa+parseInt(f(0x1da))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x2cb87));const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a[h(0x1e0)]()[h(0x1de)](h(0x1e9))['toString']()[h(0x1e6)](a46a)[h(0x1de)](h(0x1e9));});a46a();export class CommandFactory{static [a46i(0x1e8)]={};static[a46i(0x1e7)](a,b){this['commandMap'][a]=b;}static[a46i(0x1e4)](a,b){const j=a46i,c=this[j(0x1e8)][a];if(c)return new c(b);return null;}static[a46i(0x1e2)](){const k=a46i;return this[k(0x1e8)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47k=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x1de))/0x1*(parseInt(f(0x1e2))/0x2)+-parseInt(f(0x1e5))/0x3*(-parseInt(f(0x1eb))/0x4)+parseInt(f(0x1d4))/0x5+-parseInt(f(0x1ce))/0x6*(-parseInt(f(0x1cc))/0x7)+parseInt(f(0x1c4))/0x8+parseInt(f(0x1d6))/0x9*(parseInt(f(0x1c7))/0xa)+-parseInt(f(0x1c9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x38033));function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a47d(a,b);}function a47c(){const o=['24HkjLba','1438576FGNTAL','createPuzzle','apply','60ZyHepp','gauntlets','11803176xeDNiy','createItem','bodyarmor','564123vpiWhB','toUpperCase','12utDjve','inventory','boots','gloves','sword','rifle','556540MeGBQT','items','271629cXrGjF','roomType','rewardItem','helmet','INSIDE','toString','description','content','434053SbmKkv','convertToRoomConfig','legarmor','puzzle','2NtkFSP','search','type','117498RVXVSn','(((.+)+)+)+$','setPuzzle','book','name','key'];a47c=function(){return o;};return a47c();}const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x1db)]()[h(0x1e3)](h(0x1e6))[h(0x1db)]()['constructor'](a47a)[h(0x1e3)](h(0x1e6));});a47a();import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{['createRoom'](a){const i=a47d,b=this[i(0x1df)](a),c=new Room(b);if(a[i(0x1d5)]){const d=new Inventory();a[i(0x1d5)]['forEach'](e=>{const j=i;d['addItem'](this[j(0x1ca)](e));}),c[i(0x1cf)]=d;}return a['puzzle']&&c[i(0x1e7)](this[i(0x1c5)](a[i(0x1e1)])),c;}[a47k(0x1ca)](a){const l=a47k;switch(a[l(0x1e4)]){case l(0x1ea):return new Key(a[l(0x1e9)],a['description']);case l(0x1e8):return new Book(a[l(0x1e9)],a[l(0x1dc)],a[l(0x1dd)]);case l(0x1d2):return new Sword(a['name'],a[l(0x1dc)]);case l(0x1d3):return new Rifle(a['name'],a[l(0x1dc)]);case l(0x1d9):return new Helmet(a[l(0x1e9)],a['description']);case l(0x1cb):return new BodyArmor(a[l(0x1e9)],a[l(0x1dc)]);case l(0x1e0):return new LegArmor(a[l(0x1e9)],a[l(0x1dc)]);case l(0x1d0):return new Boots(a['name'],a[l(0x1dc)]);case l(0x1d1):return new Gloves(a[l(0x1e9)],a[l(0x1dc)]);case l(0x1c8):return new Gauntlets(a['name'],a[l(0x1dc)]);default:return new BasicItem(a['name'],a['description']);}}[a47k(0x1c5)](a){const m=a47k,b=this['createItem'](a[m(0x1d8)]);return new Puzzle({...a,'rewardItem':b});}[a47k(0x1df)](a){const n=a47k,b=a[n(0x1d7)]&&RoomType[a['roomType'][n(0x1cd)]()]?RoomType[a[n(0x1d7)][n(0x1cd)]()]:RoomType[n(0x1da)];return{'name':a['name'],'description':a['description'],'isStartRoom':a['isStartRoom'],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d
|
|
1
|
+
const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=parseInt(h(0x1a3))/0x1+parseInt(h(0x191))/0x2+-parseInt(h(0x194))/0x3*(-parseInt(h(0x1a4))/0x4)+-parseInt(h(0x1aa))/0x5+-parseInt(h(0x1a8))/0x6*(parseInt(h(0x1ab))/0x7)+-parseInt(h(0x18e))/0x8*(-parseInt(h(0x199))/0x9)+-parseInt(h(0x18c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xcaa06));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x187)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a[j(0x183)]()['search'](j(0x1a6))['toString']()['constructor'](a48a)[j(0x19d)](j(0x1a6));});a48a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x182;let f=c[d];return f;},a48d(a,b);}function a48c(){const s=['maka','344zKLkmr','registerCommands','getDescription','2050360XbolRB','Available\x20Commands:\x0a','equip','63tqsPCP','drop','execute','slice','handleInput','77481eyXOaS','look','currentLocation','-\x20clear:\x20Clear\x20the\x20screen.\x0a','search','player','instance','say','name','split','1239956GTFCsw','101628zGFcBB','unlock','(((.+)+)+)+$','registerCommand','30cCtAoC','rooms','1638235MncBin','690284ODKuGU','createCommand','toString','scene','solve','determineStartRoom','apply','initialize','trim','getRooms','Welcome,\x20','15182050rhODLF'];a48c=function(){return s;};return a48c();}import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a48k(0x19f)];['scene'];['player'];['currentRoom'];[a48k(0x1a9)];constructor(a,b){const l=a48k;this[l(0x19e)]=a,this[l(0x184)]=new Scene({'player':a,'roomConfiguration':b}),this['scene'][l(0x188)](),this['player'][l(0x19b)]=this['determineStartRoom'](),this['registerCommands']();}[a48k(0x18f)](){const m=a48k;CommandFactory[m(0x1a7)](m(0x19a),LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory[m(0x1a7)]('take',TakeCommand),CommandFactory['registerCommand']('use',UseCommand),CommandFactory[m(0x1a7)](m(0x193),EquipCommand),CommandFactory[m(0x1a7)]('unequip',UnequipCommand),CommandFactory['registerCommand'](m(0x185),SolveCommand),CommandFactory[m(0x1a7)](m(0x195),DropCommand),CommandFactory['registerCommand'](m(0x1a5),UnlockCommand),CommandFactory[m(0x1a7)]('lock',LockCommand),CommandFactory[m(0x1a7)](m(0x19d),SearchCommand),CommandFactory[m(0x1a7)](m(0x1a0),SayCommand);}['determineStartRoom'](){const n=a48k;return this[n(0x184)][n(0x186)]();}['getWelcomeMessage'](){const o=a48k;return o(0x18b)+this[o(0x19e)][o(0x1a1)];}static['getInstance'](a,b){const p=a48k;return!Game[p(0x19f)]&&(Game[p(0x19f)]=new Game(a,b)),Game[p(0x19f)];}[a48k(0x198)](a){const q=a48k,b=a[q(0x189)]()[q(0x1a2)]('\x20'),c=b[0x0]['toLowerCase'](),d=b[q(0x197)](0x1);if(c==='quit')return null;if(c===q(0x18d))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c==='help')return this['getHelpMessage']();if(c==='clear')return'';const e={'actor':this[q(0x19e)],'rooms':this[q(0x184)][q(0x18a)](),'scene':this[q(0x184)]},f=CommandFactory[q(0x182)](c,e);if(f){const g=f[q(0x196)](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}['getHelpMessage'](){const r=a48k,a=CommandFactory['getAllRegisteredCommands']();let b=r(0x192);for(const c in a){if(a['hasOwnProperty'](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x190)]()+'\x0a';}}return b+=r(0x19c),b+='-\x20quit:\x20Exit\x20the\x20game.\x0a',b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x1ce))/0x1+-parseInt(f(0x1c5))/0x2*(-parseInt(f(0x1c6))/0x3)+parseInt(f(0x1cd))/0x4+parseInt(f(0x1d1))/0x5+parseInt(f(0x1c8))/0x6+parseInt(f(0x1ca))/0x7*(-parseInt(f(0x1cf))/0x8)+-parseInt(f(0x1d2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x39279));function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1c5;var f=c[d];return f;},a49d(a,b);}var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1c7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x1cb)]()[h(0x1c9)](h(0x1d0))['toString']()[h(0x1cc)](a49a)['search'](h(0x1d0));});a49a();export*from'./door.js';export*from'./inventory.js';function a49c(){var i=['395398zOteWH','36664CaWkFX','(((.+)+)+)+$','575985tQybJV','2566881JsebwC','8xQfMVS','248679YPXPpj','apply','2106144TNCmFY','search','357dhdgGv','toString','constructor','1402608ZQrGMN'];a49c=function(){return i;};return a49c();}export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=parseInt(f(0x1dc))/0x1+parseInt(f(0x1c5))/0x2*(-parseInt(f(0x1d7))/0x3)+parseInt(f(0x1d2))/0x4*(parseInt(f(0x1d9))/0x5)+-parseInt(f(0x1d3))/0x6*(parseInt(f(0x1da))/0x7)+parseInt(f(0x1ca))/0x8+parseInt(f(0x1c7))/0x9+parseInt(f(0x1d4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xd0ef8));function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x1c1;var f=c[d];return f;},a50d(a,b);}var a50b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a50d;if(c){var e=c[g(0x1c3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){var h=a50d;return a50a['toString']()[h(0x1d5)](h(0x1c6))[h(0x1d0)]()[h(0x1cd)](a50a)['search'](h(0x1c6));});function a50c(){var n=['roomA','8426144ELVAnb','roomB','To\x20','constructor','name','isLockable','toString','unlockItemOrSolution','184ByhCAg','1689042dztjkp','381990toqdyj','search','Door\x20created\x20between\x20','3VmERar','write','62505sQzYem','21EDHrGR','checkIfLockable','934079vygZkx','\x20and\x20','logger','getInstance','Failed\x20to\x20unlock\x20door:\x20','apply','.\x20Is\x20Locked:\x20','3217010iMNhOw','(((.+)+)+)+$','6374106FHqqHO','isLocked'];a50c=function(){return n;};return a50c();}a50a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];[a50i(0x1cb)];[a50i(0x1c8)];[a50i(0x1d1)];['name'];[a50i(0x1de)];[a50i(0x1cf)];constructor(a){var j=a50i;super(),this[j(0x1c9)]=a[j(0x1c9)],this[j(0x1cb)]=a[j(0x1cb)],this[j(0x1c8)]=a[j(0x1c8)]||![],this[j(0x1d1)]=a[j(0x1d1)],this['name']=a[j(0x1ce)]?capitalCase(a[j(0x1ce)]):j(0x1cc)+a[j(0x1cb)][j(0x1ce)],this[j(0x1de)]=Logger[j(0x1c1)](),this['isLockable']=!!a[j(0x1d1)],this[j(0x1de)][j(0x1d8)](j(0x1d6)+this[j(0x1c9)][j(0x1ce)]+j(0x1dd)+this[j(0x1cb)][j(0x1ce)]+j(0x1c4)+this[j(0x1c8)]);}['getOtherSide'](a){var k=a50i;return this[k(0x1c9)]===a?this['roomB']:this[k(0x1c9)];}['attemptUnlock'](a){var l=a50i;if(this[l(0x1c8)]&&this[l(0x1d1)]&&this['unlockItemOrSolution']===a)return this[l(0x1c8)]=![],this[l(0x1de)][l(0x1d8)]('Door\x20unlocked:\x20'+this[l(0x1ce)]+'.\x20Used:\x20'+a),!![];return this['logger'][l(0x1d8)](l(0x1c2)+this['name']+'.\x20Used:\x20'+a),![];}['checkIfLocked'](){return this['isLocked'];}[a50i(0x1db)](){var m=a50i;return this[m(0x1cf)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d
|
|
1
|
+
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0x108))/0x1*(parseInt(f(0x100))/0x2)+-parseInt(f(0x10e))/0x3+-parseInt(f(0x10a))/0x4+-parseInt(f(0x10c))/0x5+parseInt(f(0x112))/0x6*(parseInt(f(0x105))/0x7)+parseInt(f(0xf6))/0x8*(-parseInt(f(0xf7))/0x9)+parseInt(f(0x110))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x76804));function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0xf0;let f=c[d];return f;},a51d(a,b);}const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0x118)]()[h(0x107)](h(0x10b))[h(0x118)]()[h(0x117)](a51a)['search'](h(0x10b));});a51a();function a51c(){const r=['set','5702874UlidmC','hasItem','.\x20Exists:\x20','weight','Checked\x20for\x20item:\x20','constructor','toString','Failed\x20to\x20remove\x20item:\x20','\x20to\x20inventory.','logger','write','getInstance','Removed\x20item:\x20','23208fqxAMT','333JLKmTi','removeItem','join','Listed\x20items\x20in\x20inventory:\x20','items','Retrieved\x20details\x20for\x20item:\x20','addItem','name','apply','386TuWmck','map','toLowerCase','get','values','7BSVEQQ','.\x20Item\x20not\x20found.','search','2709EaPnDb','keys','1776744NxMbuQ','(((.+)+)+)+$','780750SNCSTv','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','2197758MXBUYr','delete','4523230ITVOqE'];a51c=function(){return r;};return a51c();}import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a51i(0xfb)];[a51i(0xf2)];constructor(){const j=a51i;super(),this[j(0xfb)]=new Map(),this[j(0xf2)]=Logger[j(0xf4)]();}[a51i(0xfd)](a){const k=a51i;this[k(0xfb)][k(0x111)](a[k(0xfe)][k(0x102)](),a),this['logger'][k(0xf3)]('Added\x20item:\x20'+a['name']+k(0xf1));}[a51i(0xf8)](a){const l=a51i,b=this['getItem'](a);if(b)return this[l(0xfb)][l(0x10f)](a[l(0x102)]()),this[l(0xf2)][l(0xf3)](l(0xf5)+a+'\x20from\x20inventory.'),b;return this[l(0xf2)]['write'](l(0xf0)+a+'.\x20Item\x20not\x20found.'),null;}[a51i(0x113)](a){const m=a51i,b=this['items']['has'](a[m(0x102)]()),c=[...this[m(0xfb)]['keys']()];return this[m(0xf2)][m(0xf3)](m(0x116)+a+'\x20in\x20'+c['join'](',\x20')+m(0x114)+b+'.'),b;}['getItem'](a){const n=a51i,b=this[n(0xfb)][n(0x103)](a[n(0x102)]())||null;return b?this[n(0xf2)][n(0xf3)](n(0xfc)+a+'.'):this[n(0xf2)][n(0xf3)](n(0x10d)+a+n(0x106)),b;}['listItems'](){const o=a51i,a=[...this[o(0xfb)][o(0x109)]()],b=a[o(0x101)](c=>capitalCase(c));return this[o(0xf2)][o(0xf3)](o(0xfa)+b[o(0xf9)](',\x20')+'.'),a;}['getWeight'](){const p=a51i;let a=0x0;for(const b of this[p(0xfb)]['values']()){a+=b[p(0x115)];}return a;}['getAllItems'](){const q=a51i;return[...this[q(0xfb)][q(0x104)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a52c(){var l=['7875864KjEfOU','10PfbVTd','rating','name','category','uuid','3obtuyD','toString','2176452WzLCwp','weight','description','.\x20Nothing\x20special\x20happens.','search','40210hNHfom','9mroiBC','8078060obRORL','1651396lgAIji','3219384mxWyFw','use','color','10271100KFTuYf','apply','size','(((.+)+)+)+$','shape'];a52c=function(){return l;};return a52c();}var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0xd0))/0x1*(-parseInt(f(0xd7))/0x2)+-parseInt(f(0xdb))/0x3+parseInt(f(0xda))/0x4*(parseInt(f(0xcb))/0x5)+-parseInt(f(0xd2))/0x6+parseInt(f(0xde))/0x7+-parseInt(f(0xca))/0x8*(parseInt(f(0xd8))/0x9)+parseInt(f(0xd9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xb4d9e));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0xd1)]()[h(0xd6)](h(0xe1))['toString']()['constructor'](a52a)['search']('(((.+)+)+)+$');});a52a();import{v4 as a52e}from'uuid';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xc9;var f=c[d];return f;},a52d(a,b);}import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{['uuid'];[a52i(0xcd)];[a52i(0xd4)];[a52i(0xe0)];[a52i(0xce)];[a52i(0xc9)];['color'];['texture'];[a52i(0xcc)];['weight'];constructor(a){var j=a52i;super(),this[j(0xcd)]=a[j(0xcd)],this[j(0xd4)]=a[j(0xd4)],this[j(0xe0)]=a['size'],this['category']=a[j(0xce)],this[j(0xc9)]=a['shape'],this[j(0xdd)]=a['color'],this['texture']=a['texture'],this[j(0xcc)]=a[j(0xcc)],this['weight']=a[j(0xd3)],this[j(0xcf)]=a52e();}[a52i(0xdc)](){var k=a52i;return'You\x20use\x20the\x20'+this[k(0xcd)]+k(0xd5);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x12f))/0x1*(parseInt(f(0x135))/0x2)+parseInt(f(0x137))/0x3+parseInt(f(0x129))/0x4*(-parseInt(f(0x133))/0x5)+parseInt(f(0x13d))/0x6+parseInt(f(0x124))/0x7+-parseInt(f(0x136))/0x8+parseInt(f(0x13a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xdfa79));function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x124;let f=c[d];return f;},a53d(a,b);}const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0x130)]()[h(0x12e)](h(0x139))[h(0x130)]()[h(0x138)](a53a)[h(0x12e)](h(0x139));});a53a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a53i(0x128)];[a53i(0x125)];[a53i(0x126)];[a53i(0x12d)];constructor(a,b,c,d){const j=a53i;super(d),this[j(0x128)]=a,this[j(0x125)]=b,this[j(0x126)]=c;}get[a53i(0x12c)](){const k=a53i;return this[k(0x128)];}[a53i(0x132)](){const l=a53i;return this[l(0x125)][Math[l(0x12a)](Math[l(0x134)]()*this[l(0x125)][l(0x131)])];}[a53i(0x13c)](a){const m=a53i,b=a[Math['floor'](Math[m(0x134)]()*a[m(0x131)])];this[m(0x12b)](b[m(0x12c)]);}[a53i(0x12b)](a){const n=a53i,b={'actor':this,'rooms':this[n(0x126)],'scene':this[n(0x12d)]},c=new GoCommand(b);c[n(0x13b)]([a]);}}function a53c(){const o=['constructor','(((.+)+)+)+$','7944039xieXys','execute','autonomousMove','7892352pNAHlU','7310205CtfcSa','_dialogue','rooms','apply','_name','199816OfyoSK','floor','moveTo','name','scene','search','1hIDBXQ','toString','length','speak','70WoHKsI','random','2079698tmrXup','8560848hNoswW','1449066JYkdYX'];a53c=function(){return o;};return a53c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54i=a54d;function
|
|
1
|
+
const a54i=a54d;function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0xe2;let f=c[d];return f;},a54d(a,b);}(function(a,b){const f=a54d,c=a();while(!![]){try{const d=-parseInt(f(0xf2))/0x1+parseInt(f(0x13e))/0x2+-parseInt(f(0xfe))/0x3*(parseInt(f(0xe7))/0x4)+parseInt(f(0x107))/0x5*(-parseInt(f(0xe5))/0x6)+parseInt(f(0xff))/0x7+-parseInt(f(0xf5))/0x8*(-parseInt(f(0x13a))/0x9)+parseInt(f(0xf9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x55890));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a54d;if(c){const e=c[g(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const h=a54d;return a54a[h(0x12d)]()[h(0xed)](h(0xf6))[h(0x12d)]()[h(0x13c)](a54a)[h(0xed)]('(((.+)+)+)+$');});a54a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';function a54c(){const C=['torso','Removed\x20','toLowerCase','leg\x20armor','search','startLocation','currentWeight','Gloves','speak','98905GVUeKc','leftHand','inventoryItems','509232dlmPLI','(((.+)+)+)+$','maxCarryingWeight','\x20is\x20no\x20longer\x20listeng\x20in\x20','1278030AnCLcV','write','arm\x20armor','_playerName','equipment','127431wQIGUu','1213387NtAHug','determineEquipmentSlot','legs','weapon','error','gloves','rightHand','shield','15hqKvtF','Helmet','playerName','Shield','You\x20equipped\x20','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','You\x20unequipped\x20','bind','_currentLocation','addInventory','\x20from\x20player\x27s\x20inventory.','A\x20featureless\x20room','apply','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','\x20in\x20your\x20inventory.','name','hasItem','values','Nexus','arms','logger','BodyArmor','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','head','category','leaveRoom','canEquip','off','feet','You\x20don\x27t\x20have\x20','\x20slot.','ArmArmor','.\x20You\x20must\x20unequip\x20it\x20first.','Boots','_maxCarryingWeight','helmet','You\x20can\x27t\x20equip\x20','includes','toString','bodyarmor','weight','body\x20armor','addItem','getWeight','inventory','hear','removeInventory','Added\x20','_inventory','Invalid\x20category\x20or\x20slot:\x20','Max\x20carrying\x20weight\x20must\x20be\x20positive.','45PWWiGc','Failed\x20to\x20remove\x20','constructor','LegArmor','421374GWlAdd','removeItem','\x20says:\x20\x22','currentLocation','enterRoom','unequipBySlot','unequip','251964Bbmmhu','_equipment','24iSPXNe','legarmor'];a54c=function(){return C;};return a54c();}import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a54i(0xfc)];[a54i(0x10f)];[a54i(0x137)];[a54i(0xe6)];[a54i(0x129)]=0x32;[a54i(0x11b)];constructor(a){const j=a54i;super(),this[j(0xfc)]=a[j(0x109)],this[j(0x10f)]=a[j(0xee)]||new Room({'name':j(0x119),'description':j(0x112)}),this[j(0x137)]=new Inventory(),this[j(0x11b)]=Logger['getInstance']();if(a?.[j(0xf4)])for(const b of a[j(0xf4)]){this['_inventory']['addItem'](b);}this['_equipment']=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54i(0x116)](){const k=a54i;return this[k(0xfc)];}get[a54i(0x141)](){const l=a54i;return this[l(0x10f)];}set['currentLocation'](a){const m=a54i;this[m(0x10f)]!==a&&(this[m(0x120)](),this[m(0xe2)](a)),this['_currentLocation']=a;}get[a54i(0x133)](){return this['_inventory'];}get['equipment'](){const n=a54i;return this[n(0xe6)];}set['equipment'](a){const o=a54i;this[o(0xe6)]=a;}get[a54i(0xf7)](){const p=a54i;return this[p(0x129)];}set[a54i(0xf7)](a){const q=a54i;a>0x0?this[q(0x129)]=a:console[q(0x103)](q(0x139));}get[a54i(0xef)](){const r=a54i;let a=this[r(0x137)][r(0x132)]();for(const b in this[r(0xe6)]){const c=this[r(0xe6)][b];c&&(a+=c[r(0x12f)]);}return a;}[a54i(0x110)](a){const s=a54i;if(this['currentWeight']+a[s(0x12f)]>this[s(0xf7)]){this['logger'][s(0xfa)](s(0x114));throw new Error(s(0x11d));}this[s(0x137)][s(0x131)](a),this[s(0x11b)][s(0xfa)](s(0x136)+a['name']+'\x20to\x20player\x27s\x20inventory.');}[a54i(0x135)](a){const t=a54i;if(this['_inventory'][t(0x13f)](a[t(0x116)]))return this[t(0x11b)]['write'](t(0xea)+a[t(0x116)]+t(0x111)),!![];return this['logger'][t(0xfa)](t(0x13b)+a['name']+t(0x111)),![];}['equip'](a){const u=a54i;if(!this[u(0x137)][u(0x117)](a[u(0x116)]))return u(0x124)+a[u(0x116)]+u(0x115);if(!this[u(0x121)](a))return u(0x12b)+a[u(0x116)]+'.';const b=this[u(0x100)](a[u(0x11f)]);if(!b)return a[u(0x116)]+'\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.';if(this[u(0xfd)][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+u(0x127);return this[u(0xfd)][b]=a,this[u(0x135)](a),u(0x10b)+a[u(0x116)]+'.';}[a54i(0xe4)](a){const v=a54i;let b=a;if(!this['equipment'][camelCase(b)]){b=this[v(0x100)](a);if(!b)return v(0x138)+a+'.';}return this['unequipBySlot'](b);}['determineEquipmentSlot'](a){const w=a54i;switch(a[w(0xeb)]()){case Category['Weapon']['toLowerCase']():return w(0x105);case Category[w(0x10a)][w(0xeb)]():return w(0xf3);case Category[w(0xf0)]['toLowerCase']():return w(0x104);case Category[w(0x108)][w(0xeb)]():case Category['Hat']['toLowerCase']():return w(0x11e);case Category[w(0x128)][w(0xeb)]():return w(0x123);case Category[w(0x13d)][w(0xeb)]():return w(0x101);case Category[w(0x126)]['toLowerCase']():return w(0x11a);case Category[w(0x11c)][w(0xeb)]():return'torso';case w(0x102):return'rightHand';case w(0x106):return'leftHand';case'gloves':return w(0x104);case w(0x12a):case'hat':return'head';case'boots':return w(0x123);case w(0xec):case w(0xe8):return w(0x101);case w(0xfb):case'armarmor':return w(0x11a);case w(0x130):case w(0x12e):case w(0xe9):return w(0xe9);default:return null;}}[a54i(0x121)](a){const x=a54i;return Object[x(0x118)](Category)[x(0x12c)](a[x(0x11f)]);}[a54i(0xe3)](a){const y=a54i,b=this['equipment'][a];if(!b)return y(0x10c)+a+y(0x125);return this[y(0x110)](b),this['equipment'][a]=null,y(0x10d)+b[y(0x116)]+'.';}[a54i(0x134)](a,b){const z=a54i;a!==this&&this['logger']['log'](a[z(0x116)]+z(0x140)+b+'\x22');}[a54i(0xe2)](a){const A=a54i;this[A(0x10f)]=a,a['on'](A(0xf1),this[A(0x134)][A(0x10e)](this)),this[A(0x11b)][A(0xfa)](this[A(0x116)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[A(0x116)]);}[a54i(0x120)](){const B=a54i;this['_currentLocation']&&(this['_currentLocation'][B(0x122)](B(0xf1),this[B(0x134)][B(0x10e)](this)),this['logger'][B(0xfa)](this[B(0x116)]+B(0xf8)+this[B(0x10f)][B(0x116)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x98;var f=c[d];return f;},a55d(a,b);}var a55h=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0xab))/0x1+parseInt(f(0xae))/0x2+-parseInt(f(0xb7))/0x3*(-parseInt(f(0xa2))/0x4)+parseInt(f(0x9a))/0x5*(parseInt(f(0x9c))/0x6)+-parseInt(f(0xaa))/0x7+-parseInt(f(0xb2))/0x8*(-parseInt(f(0xa8))/0x9)+parseInt(f(0xa7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x856c6));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var g=a55d;return a55a[g(0xac)]()[g(0x9f)](g(0xaf))['toString']()[g(0xa5)](a55a)[g(0x9f)](g(0xaf));});a55a();function a55c(){var l=['You\x20have\x20already\x20solved\x20this\x20puzzle.','5956489wFLaYz','1022538IVLcKG','toString','requiredPhrase','1678556svCHjN','(((.+)+)+)+$','getInstance','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','144BZoCHJ','write','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','solved','57CJisIg','Puzzle:\x20Correct\x20solution\x20provided.','failureMessage','2225525tatGKK','requiredItem','12hvOQxq','hasRequiredItem','logger','search','successMessage','solve','1516Uploii','matchesRequiredPhrase','riddle','constructor','hasItem','4694920UMIXQv','106893HzuQlW'];a55c=function(){return l;};return a55c();}import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a55h(0x9e)]=Logger[a55h(0xb0)]();['solved']=![];[a55h(0x9b)];[a55h(0xad)];['riddle'];['rewardItem'];[a55h(0xa0)];[a55h(0x99)];constructor(a){var i=a55h;super(),this[i(0x9b)]=a[i(0x9b)],this[i(0xad)]=a[i(0xad)],this[i(0xa4)]=a['riddle'],this['rewardItem']=a['rewardItem'],this['successMessage']=a[i(0xa0)]||'You\x20solved\x20the\x20puzzle!',this[i(0x99)]=a[i(0x99)]||i(0xb5);}[a55h(0x9d)](a){var j=a55h;if(this[j(0x9b)])return a[j(0xa6)](this[j(0x9b)]);return![];}[a55h(0xa3)](a){return this['requiredPhrase']===a;}[a55h(0xa1)](a,b){var k=a55h;if(this[k(0xb6)])return this[k(0x9e)][k(0xb3)](k(0xb4)),{'success':![],'message':k(0xa9)};return this[k(0x9d)](b)||this[k(0xa3)](a)?(this[k(0xb6)]=!![],this['logger'][k(0xb3)](k(0x98)),{'success':!![],'message':this[k(0xa0)]}):(this[k(0x9e)][k(0xb3)](k(0xb1)),{'success':![],'message':this[k(0x99)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56i=a56d;function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x114;let f=c[d];return f;},a56d(a,b);}(function(a,b){const f=a56d,c=a();while(!![]){try{const d=parseInt(f(0x146))/0x1*(-parseInt(f(0x143))/0x2)+parseInt(f(0x14f))/0x3+parseInt(f(0x12e))/0x4*(parseInt(f(0x11d))/0x5)+parseInt(f(0x129))/0x6+parseInt(f(0x13a))/0x7*(parseInt(f(0x140))/0x8)+parseInt(f(0x14b))/0x9+parseInt(f(0x132))/0xa*(-parseInt(f(0x119))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0xbb8c6));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a[h(0x144)]()[h(0x150)](h(0x153))[h(0x144)]()[h(0x12f)](a56a)[h(0x150)]('(((.+)+)+)+$');});a56a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';function a56c(){const u=['getOppositeDirection','\x20remains\x20locked.','11NTqouZ','set','get','attemptUnlock','115AZaLoE','description','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','apply','.\x20Success:\x20','name','roomB','attemptUnlockExit','addItem','EAST','addExit','findExistingDoor','1429998yuvxhK','north','getInstance','Item\x20added\x20to\x20room\x20','speak','161816IYjvuc','constructor','logger','Fetching\x20exit\x20in\x20direction:\x20','18201160cFymjr','isExitLocked','values','The\x20','INSIDE','\x20is\x20locked.\x20Result:\x20','roomA','getExit','266Zuncyy','south','exits','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','Room\x20created:\x20','puzzle','149024EslRQP','Item\x20removed\x20from\x20room\x20','write','141648KQAGjB','toString','roomType','12SVWzEW','inventory','east','removeItem','SOUTH','7254495dpNMGp','checkIfLocked','isStartRoom','\x20unlocked!','2266524jmSWMP','search','hasItem','WEST','(((.+)+)+)+$','riddle','NORTH','No\x20locked\x20exit\x20found\x20in\x20direction\x20'];a56c=function(){return u;};return a56c();}import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a56i(0x130)]=Logger[a56i(0x12b)]();[a56i(0x122)];['description'];[a56i(0x13c)]=new Map();[a56i(0x145)];['isStartRoom'];[a56i(0x147)]=new Inventory();constructor(a){const j=a56i;super(),this[j(0x122)]=a['name'],this['description']=a[j(0x11e)],this[j(0x145)]=a[j(0x145)]||RoomType[j(0x136)],a[j(0x13c)]&&(this[j(0x13c)]=a['exits']||new Map()),a[j(0x147)]&&(this[j(0x147)]=a[j(0x147)]),a[j(0x13f)]&&(this[j(0x13f)]=a[j(0x13f)]),this[j(0x14d)]=a[j(0x14d)]||![],this['logger'][j(0x142)](j(0x13e)+this[j(0x122)]);}['say'](a,b){const k=a56i;this['emit'](k(0x12d),a,b);}[a56i(0x127)](a,b,c){const l=a56i;let d=this[l(0x128)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits'][l(0x11a)](a,d),b[l(0x13c)][l(0x11a)](this[l(0x117)](a),d);}[a56i(0x124)](a,b){const m=a56i,c=this['exits'][m(0x11b)](a);if(c instanceof Door){const d=c[m(0x11c)](b);return this[m(0x130)][m(0x142)](m(0x13d)+a+m(0x121)+d),d?m(0x135)+c[m(0x122)]+m(0x14e):'The\x20'+c[m(0x122)]+m(0x118);}return this[m(0x130)]['write'](m(0x116)+a),m(0x11f);}[a56i(0x139)](a){const n=a56i;return this[n(0x130)][n(0x142)](n(0x131)+a),this[n(0x13c)][n(0x11b)](a);}[a56i(0x133)](a){const o=a56i,b=this[o(0x13c)][o(0x11b)](a),c=b instanceof Door&&b[o(0x14c)]();return this['logger'][o(0x142)]('Checking\x20if\x20exit\x20in\x20direction\x20'+a+o(0x137)+c),c;}[a56i(0x125)](a){const p=a56i;this[p(0x147)][p(0x125)](a),this[p(0x130)]['write'](p(0x12c)+this[p(0x122)]+':\x20'+a['name']);}['removeItem'](a){const q=a56i;this[q(0x147)][q(0x151)](a[q(0x122)])?(this[q(0x147)][q(0x149)](a[q(0x122)]),this[q(0x130)][q(0x142)](q(0x141)+this['name']+':\x20'+a[q(0x122)])):this[q(0x130)][q(0x142)]('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this[q(0x122)]+':\x20'+a[q(0x122)]);}['setPuzzle'](a){const r=a56i;this['puzzle']=a,this[r(0x130)][r(0x142)]('Puzzle\x20set\x20for\x20room\x20'+this['name']+':\x20'+a[r(0x114)]);}['getOppositeDirection'](a){const s=a56i;switch(a){case s(0x12a):return Direction[s(0x14a)];case s(0x13b):return Direction[s(0x115)];case s(0x148):return Direction[s(0x152)];case'west':return Direction[s(0x126)];case'up':return Direction['DOWN'];case'down':return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}[a56i(0x128)](a){const t=a56i;for(const b of this['exits'][t(0x134)]()){if(b instanceof Door){if(b[t(0x138)]===this&&b[t(0x123)]===a||b[t(0x123)]===this&&b[t(0x138)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=-parseInt(i(
|
|
1
|
+
function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a57d(a,b);}const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=-parseInt(i(0x206))/0x1+parseInt(i(0x207))/0x2+parseInt(i(0x202))/0x3+parseInt(i(0x224))/0x4+-parseInt(i(0x209))/0x5+parseInt(i(0x213))/0x6+-parseInt(i(0x211))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x59add));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0x215)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0x226)]()[k(0x221)]('(((.+)+)+)+$')[k(0x226)]()['constructor'](a57a)[k(0x221)]('(((.+)+)+)+$');});a57a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';function a57c(){const E=['direction','\x20found\x20in\x20the\x20scene.','rooms','\x27s\x20location.\x20Room\x20','Room\x20\x22','roomConfiguration','warn','getCharacterLocation','delete','roomFactory','allActors','name','Removed\x20room\x20from\x20scene:\x20','\x20is\x20now\x20in\x20room\x20','player','actors','1397292hbSnKQ','length','Added\x20puzzle\x20to\x20room\x20','join','206961hvdRUl','1386670rCZOzG','logger','927770jZERIU','createRoom','targetRoom','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','\x20not\x20found\x20in\x20scene.','getInstance','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','addExit','7677362SeOFom','generateRoomsFromConfig','2850726SiJRTV','setPuzzle','apply','keyRequired','addActor','removeRoom','getActor','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','.\x20Room\x20','addItemToRoom','from','set','Failed\x20to\x20set\x20','Failed\x20to\x20add\x20item\x20','search','initialize','keys','889544TxRoFC','Added\x20room\x20to\x20scene:\x20','toString','values','characterLocations','exits','write','getRooms','Added\x20item\x20','connectRooms','determineStartRoom'];a57c=function(){return E;};return a57c();}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a57l(0x1f4)];[a57l(0x200)];[a57l(0x208)];[a57l(0x201)];[a57l(0x228)]=new Map();[a57l(0x1fb)];constructor(a){const m=a57l;super(),this[m(0x1fb)]=new RoomFactory(),this[m(0x200)]=a[m(0x200)],this['rooms']=this['generateRoomsFromConfig'](a[m(0x1f7)]),this[m(0x208)]=Logger[m(0x20e)](),this[m(0x201)]=new Map(),this['createExitsFromConfig'](a[m(0x1f7)]),this[m(0x208)][m(0x22a)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[m(0x223)](this[m(0x1f4)])[m(0x205)](',\x20'));}[a57l(0x222)](){const n=a57l;this[n(0x200)]['currentLocation']=this[n(0x1f1)]();}[a57l(0x212)](a){const o=a57l;if(!this['roomFactory'])throw new Error(o(0x20c));const b={};for(const c of a){const d=this[o(0x1fb)][o(0x20a)](c);b[c[o(0x1fd)]]=d;}return b;}['createExitsFromConfig'](a){const p=a57l;for(const b of a){const c=this[p(0x1f4)][b[p(0x1fd)]];if(b[p(0x229)])for(const d of b[p(0x229)]){const e=d[p(0x1f2)]['toUpperCase'](),f=d[p(0x20b)],g=d[p(0x216)],h=this[p(0x1f4)][f];h&&c[p(0x210)](Direction[e],h,g);}}}[a57l(0x217)](a){const q=a57l;if(this['actors']['has'](a[q(0x1fd)]))throw new Error('Actor\x20with\x20name\x20'+a[q(0x1fd)]+'\x20already\x20exists\x20in\x20the\x20scene.');this[q(0x201)]['set'](a[q(0x1fd)],a);}['removeActor'](a){const r=a57l;if(!this[r(0x201)]['has'](a))throw new Error('No\x20actor\x20with\x20name\x20'+a+r(0x1f3));this[r(0x201)][r(0x1fa)](a);}[a57l(0x219)](a){const s=a57l;return this[s(0x201)]['get'](a);}get[a57l(0x1fc)](){const t=a57l;return Array[t(0x21d)](this[t(0x201)][t(0x227)]());}['addRoom'](a){const u=a57l;this['rooms'][a[u(0x1fd)]]=a,this[u(0x208)][u(0x22a)](u(0x225)+a['name']);}[a57l(0x218)](a){const v=a57l;return this[v(0x1f4)][a]?(delete this[v(0x1f4)][a],this['logger'][v(0x22a)](v(0x1fe)+a),!![]):(this[v(0x208)]['write'](v(0x21a)+a),![]);}[a57l(0x21c)](a,b){const w=a57l,c=this[w(0x1f4)][b];c?(c['addItem'](a),this[w(0x208)][w(0x22a)](w(0x22c)+a[w(0x1fd)]+'\x20to\x20room\x20'+c[w(0x1fd)])):this[w(0x208)][w(0x22a)](w(0x220)+a[w(0x1fd)]+w(0x21b)+b+w(0x20d));}['addPuzzleToRoom'](a,b){const x=a57l,c=this[x(0x1f4)][b];c?(c[x(0x214)](a),this[x(0x208)][x(0x22a)](x(0x204)+c['name'])):this[x(0x208)]['write']('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}['setCharacterLocation'](a,b){const y=a57l,c=this[y(0x1f4)][b];c?(this[y(0x228)][y(0x21e)](a[y(0x1fd)],c),this[y(0x208)]['write'](a[y(0x1fd)]+y(0x1ff)+c[y(0x1fd)])):this[y(0x208)][y(0x22a)](y(0x21f)+a[y(0x1fd)]+y(0x1f5)+b+y(0x20d));}[a57l(0x1f9)](a){const z=a57l;return this[z(0x228)]['get'](a[z(0x1fd)]);}[a57l(0x1f1)](){const A=a57l,a=[];for(const c in this['rooms']){if(this[A(0x1f4)]['hasOwnProperty'](c)){const d=this[A(0x1f4)][c];d['isStartRoom']&&a['push'](d);}}if(a[A(0x203)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a[A(0x203)]===0x1)return a[0x0];const b=Object[A(0x223)](this[A(0x1f4)]);if(b['length']===0x0)throw new Error(A(0x20f));return console[A(0x1f8)]('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this['rooms'][b[0x0]];}['getPlayer'](){const B=a57l;return this[B(0x200)];}[a57l(0x22b)](){const C=a57l;return this[C(0x1f4)];}[a57l(0x1f0)](a,b,c,d){const D=a57l,e=this['rooms'][a],f=this[D(0x1f4)][c];if(!e)throw new Error(D(0x1f6)+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(D(0x1f6)+c+'\x22\x20does\x20not\x20exist.');e['addExit'](b,f,d);}}
|