@maka/maka-cli 5.0.41 → 5.0.43
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/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/_index.js +1 -1
- package/bundle/obf/src/commands/test/jest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/mocha.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/test.command.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/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.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/cfg/cfg.class.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/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.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
|
-
|
|
1
|
+
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0x1c1))/0x1+-parseInt(f(0x195))/0x2+parseInt(f(0x1ba))/0x3*(-parseInt(f(0x1b8))/0x4)+-parseInt(f(0x1c8))/0x5*(parseInt(f(0x1ab))/0x6)+parseInt(f(0x1b1))/0x7+parseInt(f(0x1b0))/0x8*(parseInt(f(0x19f))/0x9)+parseInt(f(0x1aa))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x28442));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x19a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x1bc)]()['search'](h(0x1a3))['toString']()['constructor'](a38a)[h(0x1b7)](h(0x1a3));});a38a();import{Door}from'../models/door.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x195;let f=c[d];return f;},a38d(a,b);}import{RoomType}from'../types/enums.js';import{Command}from'./command.js';function a38c(){const n=['Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','name','2916690khwOMl','64968urxXbW','You\x20cannot\x20see\x20through','You\x27re\x20not\x20in\x20a\x20valid\x20room.','execute','logger','1048jceJol','1205596higSeo','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','riddle','inventory','isValidDirection','description','search','4UBwDoC','currentLocation','526059ldtAKX','getOtherSide','toString','write','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','\x20inventory.','\x20is\x20looking\x20around\x20the\x20current\x20room.','328778PUlNkn','puzzle',',\x20you\x20see\x20','\x27\x20in\x20current\x20room\x20inventory.','Examine\x20your\x20surroundings','hasItem','verb','120VxBGvs','629486FwsLIx','down','Executing\x20\x27Look\x27\x20command.','actor','getItem','apply','lookOutside','exits','To\x20the\x20','rooms','8397HMFaUC','look','OUTSIDE','inspectItem','(((.+)+)+)+$','Looking\x20at\x20item\x20\x27','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','You\x20cannot\x20see\x20','get'];a38c=function(){return n;};return a38c();}export class LookCommand extends Command{static [a38i(0x1c7)]=a38i(0x1a0);static [a38i(0x1b6)]=a38i(0x1c5);[a38i(0x1ae)](a=[]){const j=a38i;this['logger'][j(0x1bd)](j(0x197));const b=a['join']('\x20');if(b){if(this['actor'][j(0x1b4)][j(0x1c6)](b))return this[j(0x1af)]['write'](j(0x1a4)+b+'\x27\x20in\x20'+this[j(0x198)][j(0x1a9)]+j(0x1bf)),this[j(0x1a2)](b,this[j(0x198)]['inventory']);else{if(this['actor'][j(0x1b9)][j(0x1b4)][j(0x1c6)](b))return this[j(0x1af)][j(0x1bd)](j(0x1a4)+b+j(0x1c4)),this[j(0x1a2)](b,this[j(0x198)]['currentLocation'][j(0x1b4)]);else return this[j(0x1b5)](b)?(this[j(0x1af)][j(0x1bd)]('Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27'+b+'\x27.'),this[j(0x19b)](b)):j(0x1a6)+b;}}else return this[j(0x1af)][j(0x1bd)](this[j(0x198)][j(0x1a9)]+j(0x1c0)),this[j(0x1a0)]();}[a38i(0x1a0)](){const k=a38i,a=this[k(0x198)][k(0x1b9)];if(!a)return this[k(0x1af)]['error'](this[k(0x198)][k(0x1a9)]+k(0x1be)),k(0x1ad);let b=a[k(0x1b6)];return a[k(0x1c2)]&&(b+='\x0a'+a[k(0x1c2)][k(0x1b3)]),b;}[a38i(0x19b)](a){const l=a38i,b=this[l(0x198)]['currentLocation'];if(!b)return this[l(0x1af)]['error'](this['actor'][l(0x1a9)]+l(0x1be)),l(0x1ad);const c=b[l(0x19c)][l(0x1a7)](a);if(!c)return l(0x1b2)+a+'\x22.';let d;if(c instanceof Door)d=c[l(0x1bb)](b);else{if(typeof c==='string'){d=this[l(0x19e)]&&this[l(0x19e)][c];if(!d)return l(0x1a5)+a+'\x22.';}else return l(0x1a8)+a+'\x22.';}if(d['roomType']===RoomType[l(0x1a1)]){if(a==='up')return'Above\x20you,\x20'+d[l(0x1b6)];else return a===l(0x196)?'Below\x20you,\x20'+d[l(0x1b6)]:l(0x19d)+a+l(0x1c3)+d[l(0x1b6)];}else return l(0x1ac);}[a38i(0x1a2)](a,b){const m=a38i,c=b[m(0x199)](a);if(!c)return'You\x20don\x27t\x20see\x20any\x20'+a+'\x20here.';return c[m(0x1b6)]||'It\x27s\x20just\x20a\x20regular\x20'+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a39d(a,b);}const a39i=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=parseInt(g(0x1c9))/0x1+parseInt(g(0x1ba))/0x2+-parseInt(g(0x1be))/0x3*(parseInt(g(0x1b8))/0x4)+parseInt(g(0x1c8))/0x5+parseInt(g(0x1cf))/0x6+parseInt(g(0x1d5))/0x7+-parseInt(g(0x1c3))/0x8*(parseInt(g(0x1c7))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xa7ce7));const a39b=(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;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x1d2)]()[h(0x1bc)](h(0x1cd))['toString']()[h(0x1b9)](a39a)[h(0x1bc)](h(0x1cd));});function a39c(){const l=['What\x20do\x20you\x20want\x20to\x20say?',':\x20\x22','103653QFvIav','788195ZvjKIE','540591Ewecte','\x20says\x20to\x20','An\x20error\x20occurred.','logger','(((.+)+)+)+$','length','5112402KdNqUl','execute','log','toString','verb','say','3483529vyBUPl','context','currentLocation','88dwqNNl','constructor','2301756vyPxsr','allActors','search','name','133599uqTusQ','filter','join','scene','You\x20say:\x20\x22','1064jCpPEc','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.'];a39c=function(){return l;};return a39c();}a39a();import{Command}from'./command.js';export class SayCommand extends Command{static [a39i(0x1d3)]=a39i(0x1d4);static ['description']=a39i(0x1c4);['context'];constructor(a){const j=a39i;super(a),this[j(0x1b6)]=a;}[a39i(0x1d0)](a){const k=a39i;if(a[k(0x1ce)]===0x0)return k(0x1c5);const b=a[k(0x1c0)]('\x20'),c=this['actor'],d=this[k(0x1b6)][k(0x1c1)];if(!d)return this[k(0x1cc)][k(0x1d1)]('Scene\x20is\x20missing\x20from\x20context.'),k(0x1cb);const e=d[k(0x1bb)][k(0x1bf)](f=>f[k(0x1b7)]===c[k(0x1b7)]);for(const f of e){this[k(0x1cc)][k(0x1d1)](c[k(0x1bd)]+k(0x1ca)+f[k(0x1bd)]+k(0x1c6)+b+'\x22'),this['actor'][k(0x1b7)]['say'](f,b);}return k(0x1c2)+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x1f1))/0x1+-parseInt(f(0x1ee))/0x2+-parseInt(f(0x1de))/0x3*(parseInt(f(0x1e0))/0x4)+parseInt(f(0x1db))/0x5+parseInt(f(0x1e9))/0x6*(-parseInt(f(0x1e7))/0x7)+parseInt(f(0x1f2))/0x8+parseInt(f(0x1ea))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x6dae1));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x1ec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x1e8)]()[h(0x1eb)](h(0x1dc))[h(0x1e8)]()[h(0x1e3)](a40a)[h(0x1eb)](h(0x1dc));});function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x1db;let f=c[d];return f;},a40d(a,b);}a40a();import{Command}from'./command.js';function a40c(){const k=['12mwTDzU','actor','177972SXumUX','inventory','You\x20search\x20the\x20area\x20and\x20find:\x20','constructor','\x20found\x20the\x20following\x20items:\x20','join','write','3416HMJajX','toString','7764czrEYB','14559057sbojXm','search','apply','currentLocation','1436556ADEXOV','execute','description','465471nwEEzR','1482336paQFLA','Search\x20for\x20items\x20in\x20your\x20area','length','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','3197385vICvcy','(((.+)+)+)+$','SearchCommand:\x20'];a40c=function(){return k;};return a40c();}export class SearchCommand extends Command{static ['verb']=a40i(0x1eb);static [a40i(0x1f0)]=a40i(0x1f3);[a40i(0x1ef)](){const j=a40i,a=this[j(0x1df)][j(0x1ed)][j(0x1e1)]['listItems']();if(a[j(0x1f4)]===0x0)return this['logger']['write'](j(0x1dd)+this[j(0x1df)]['name']+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),j(0x1f5);const b=a[j(0x1e5)](',\x20');return this['logger'][j(0x1e6)](j(0x1dd)+this['actor']['name']+j(0x1e4)+b),j(0x1e2)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d
|
|
1
|
+
const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x1fc))/0x1+parseInt(f(0x1fe))/0x2*(-parseInt(f(0x200))/0x3)+-parseInt(f(0x1ec))/0x4+parseInt(f(0x1f4))/0x5+parseInt(f(0x1f0))/0x6+parseInt(f(0x20c))/0x7*(parseInt(f(0x1f1))/0x8)+parseInt(f(0x204))/0x9*(-parseInt(f(0x1ff))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xe8413));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x20a)]()[h(0x1f7)]('(((.+)+)+)+$')[h(0x20a)]()[h(0x1f9)](a41a)[h(0x1f7)](h(0x1f6));});a41a();import{Command}from'./command.js';function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a41d(a,b);}export class SolveCommand extends Command{static [a41i(0x202)]='solve';static [a41i(0x205)]=a41i(0x207);[a41i(0x1fa)](a){const j=a41i,b=a[j(0x209)]('\x20')[j(0x20d)](),c=this[j(0x1ed)][j(0x1f2)];if(!c||!c[j(0x1ef)])return this['logger'][j(0x208)](j(0x206)),j(0x1f3);const d=c['puzzle'][j(0x203)](b,this['actor'][j(0x20e)]);return d[j(0x1fd)]&&c[j(0x1ef)][j(0x20b)]&&this[j(0x1ed)]['inventory'][j(0x1f5)](c['puzzle'][j(0x20b)]),this[j(0x201)][j(0x208)](j(0x1ee)+d[j(0x1fb)]),d[j(0x1fb)];}}function a41c(){const k=['126KnufRO','logger','verb','solve','954TFGubw','description','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','Attempt\x20to\x20solve\x20a\x20puzzle.','write','join','toString','rewardItem','7OnNWOi','toLowerCase','inventory','997228FDuNuf','actor','SolveCommand:\x20','puzzle','2820972iotRPj','8360008PNsZnr','currentLocation','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','5085465YTIdoQ','addItem','(((.+)+)+)+$','search','apply','constructor','execute','message','667042rLvqxX','success','17206pktaep','28610FdkWuD'];a41c=function(){return k;};return a41c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0xbb))/0x1+parseInt(f(0xba))/0x2*(-parseInt(f(0xcc))/0x3)+parseInt(f(0xd9))/0x4*(-parseInt(f(0xd1))/0x5)+-parseInt(f(0xdc))/0x6+parseInt(f(0xcf))/0x7*(-parseInt(f(0xbc))/0x8)+-parseInt(f(0xe1))/0x9*(-parseInt(f(0xe3))/0xa)+parseInt(f(0xde))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x8be07));function a42c(){const l=['There\x20is\x20no\x20item\x20\x22','inventory','hasItem','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','actor','description','take','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','The\x20item\x20\x22','Item\x20\x22','toString','apply','224061GyVTee','Pick\x20up\x20an\x20item.','\x22\x20not\x20retrieved\x20from\x20','14qaVLhR','name','229225KzxVci','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','Successfully\x20removed\x20\x22','currentLocation','search','verb','\x22\x20not\x20found\x20in\x20','join','4sIhKLA','message','\x22\x20is\x20too\x20heavy\x20to\x20carry.','4188282YSTJBX','write','27826865IBBGhc','getItem','addInventory','15858mybfhu','(((.+)+)+)+$','3220YYggod','\x22\x20in\x20this\x20room.','22sATLLb','666537YJEKjh','1168632JFjSqQ','logger','execute','Error\x20during\x20\x27Take\x27\x20command:\x20'];a42c=function(){return l;};return a42c();}const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0xca)]()[h(0xd5)]('(((.+)+)+)+$')[h(0xca)]()['constructor'](a42a)['search'](h(0xe2));});a42a();import{Command}from'./command.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xba;let f=c[d];return f;},a42d(a,b);}export class TakeCommand extends Command{static [a42i(0xd6)]=a42i(0xc6);static [a42i(0xc5)]=a42i(0xcd);[a42i(0xbe)](a){const j=a42i;return this[j(0xbd)][j(0xdd)](j(0xc3)+a[j(0xd8)]('\x20')),this[j(0xc6)](a);}['take'](a){const k=a42i,b=a['join']('\x20')['toLowerCase'](),c=this[k(0xc4)][k(0xd4)];if(!c[k(0xc1)][k(0xc2)](b))return this[k(0xbd)][k(0xdd)](k(0xc9)+b+k(0xd7)+c['name']+'\x20during\x20\x27Take\x27\x20command.'),k(0xc0)+b+k(0xe4);const d=c['inventory'][k(0xdf)](b);if(!d)return this[k(0xbd)][k(0xdd)](k(0xc9)+b+k(0xce)+c[k(0xd0)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0xc0)+b+k(0xe4);try{return this[k(0xc4)][k(0xe0)](d),this[k(0xbd)][k(0xdd)]('Successfully\x20added\x20\x22'+b+'\x22\x20to\x20'+this[k(0xc4)]['name']+k(0xd2)),c[k(0xc1)]['removeItem'](b),this[k(0xbd)][k(0xdd)](k(0xd3)+b+'\x22\x20from\x20'+c[k(0xd0)]+k(0xc7)),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this[k(0xbd)][k(0xdd)](k(0xbf)+e[k(0xda)]),k(0xc8)+b+k(0xdb);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0xaf))/0x1+-parseInt(f(0xba))/0x2*(parseInt(f(0xad))/0x3)+parseInt(f(0xb7))/0x4+-parseInt(f(0xbc))/0x5+parseInt(f(0xc1))/0x6+parseInt(f(0xc3))/0x7+parseInt(f(0xbe))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x6e532));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0xb1)]()[h(0xb5)](h(0xb9))['toString']()[h(0xb3)](a43a)[h(0xb5)](h(0xb9));});function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0xad;let f=c[d];return f;},a43d(a,b);}a43a();import{Command}from'./command.js';function a43c(){const k=['toString','join','constructor','execute','search','unqeuip','2171720croNiO','name','(((.+)+)+)+$','4560hqIruD','\x20unqeuiped\x20','3462765pEsjgE','description','8039792vagtyU','write','actor','2389992lohZSR','unequip','4324649IWZdtr','792NZEaFu','UnequipCommand:\x20','817680NDOMyH','apply'];a43c=function(){return k;};return a43c();}export class UnequipCommand extends Command{static ['verb']=a43i(0xb6);static [a43i(0xbd)]='Unequip\x20an\x20item.';[a43i(0xb4)](a){const j=a43i,b=a[j(0xb2)]('\x20')['toLowerCase'](),c=this[j(0xc0)][j(0xc2)](b);return this['logger'][j(0xbf)](j(0xae)+this[j(0xc0)][j(0xb8)]+j(0xbb)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a44c(){const n=['12031380aSFoyT','447777ukntcE','toString','has','61638rtOCzZ','18ZQMsPi','error','inventory','description','currentLocation','155eBqNtA','toLowerCase','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','1030992omZRgC','23854DFNAbn','getItem','unlockItemOrSolution','search','Unlock\x20a\x20door.','unlock','isValidDirection','.\x20Result:\x20','get','There\x27s\x20no\x20door\x20named\x20\x22','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','exits','actor','apply','name','write','hasItem','attemptUnlockExit','4538793ezEooP','length','logger','\x22\x20here.','5218444PgfDck','constructor','124yOySVk','(((.+)+)+)+$','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','UnlockCommand:\x20'];a44c=function(){return n;};return a44c();}const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=parseInt(h(0x1a2))/0x1*(-parseInt(h(0x18a))/0x2)+-parseInt(h(0x1a7))/0x3+parseInt(h(0x1a0))/0x4+-parseInt(h(0x186))/0x5*(-parseInt(h(0x1aa))/0x6)+-parseInt(h(0x19c))/0x7+parseInt(h(0x189))/0x8*(parseInt(h(0x1ab))/0x9)+parseInt(h(0x1a6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xc51ba));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a[j(0x1a8)]()[j(0x18d)](j(0x1a3))[j(0x1a8)]()[j(0x1a1)](a44a)[j(0x18d)](j(0x1a3));});function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x185;let f=c[d];return f;},a44d(a,b);}a44a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static ['verb']=a44k(0x18f);static [a44k(0x1ae)]=a44k(0x18e);['execute'](a){const l=a44k;return this[l(0x18f)](a);}['unlock'](a){const m=a44k;if(a[m(0x19d)]===0x0)return this[m(0x19e)][m(0x1ac)]('UnlockCommand:\x20No\x20target\x20specified.'),m(0x1a4);const b=a[0x0][m(0x187)](),c=this[m(0x196)][m(0x185)];if(this[m(0x190)](b)&&c[m(0x195)][m(0x1a9)](b)){const d=c[m(0x195)][m(0x192)](b);if(d instanceof Door){const e=d[m(0x18c)]?.[m(0x187)]();if(e&&this[m(0x196)][m(0x1ad)][m(0x19a)](e)){const f=this[m(0x196)][m(0x1ad)][m(0x18b)](e);if(f){const g=c[m(0x19b)](b,f[m(0x198)]);return this[m(0x19e)][m(0x199)](m(0x1a5)+this[m(0x196)]['name']+'\x20is\x20attempted\x20to\x20unlock\x20'+b+m(0x191)+g),g;}}return this[m(0x19e)][m(0x199)](m(0x1a5)+this['actor'][m(0x198)]+m(0x188)+b+'.'),'You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.';}else return this[m(0x19e)][m(0x199)](m(0x1a5)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[m(0x198)]+'.'),m(0x193)+b+m(0x19f);}else return this[m(0x19e)]['write']('UnlockCommand:\x20'+b+m(0x194)+c[m(0x198)]+'.'),m(0x193)+b+m(0x19f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0x189))/0x1*(parseInt(f(0x188))/0x2)+-parseInt(f(0x196))/0x3+parseInt(f(0x19e))/0x4*(-parseInt(f(0x1a9))/0x5)+parseInt(f(0x18e))/0x6*(-parseInt(f(0x1aa))/0x7)+parseInt(f(0x1a1))/0x8*(parseInt(f(0x195))/0x9)+parseInt(f(0x18d))/0xa+parseInt(f(0x18b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xcde4f));function a45c(){const k=['3070269GjTyoD','\x20doesn\x27t\x20have\x20a\x20use\x20method.','constructor','verb','\x20to\x20use.','search','UseCommand:\x20',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','40QFgTGM','logger','toLowerCase','48FzzcPj','join','\x20used\x20','actor','description','apply','\x27s\x20inventory.','name','592595oMExHL','217boVHkl','toString','\x20attempted\x20to\x20use\x20','\x20in\x20this\x20way.','execute','462122RyzwZF','1CNgDDe','use','7802982UOpfsH','write','12462630tiRDtJ','51876FHjmjV','(((.+)+)+)+$','function','\x20not\x20retrieved\x20from\x20','getItem','Use\x20an\x20item.','You\x20don\x27t\x20have\x20the\x20','2393127XTTeRU'];a45c=function(){return k;};return a45c();}const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x1ab)]()[h(0x19b)](h(0x18f))[h(0x1ab)]()[h(0x198)](a45a)[h(0x19b)](h(0x18f));});a45a();function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x185;let f=c[d];return f;},a45d(a,b);}import{Command}from'./command.js';export class UseCommand extends Command{static [a45i(0x199)]=a45i(0x18a);static [a45i(0x1a5)]=a45i(0x193);[a45i(0x187)](a){return this['use'](a);}['use'](a){const j=a45i,b=a[j(0x1a2)]('\x20')[j(0x1a0)]();if(!this[j(0x1a4)]['inventory']['hasItem'](b))return this['logger'][j(0x18c)](j(0x19c)+this[j(0x1a4)][j(0x1a8)]+j(0x185)+b+j(0x19d)),j(0x194)+b+j(0x19a);const c=this['actor']['inventory'][j(0x192)](b);if(!c)return this[j(0x19f)][j(0x18c)](j(0x19c)+b+j(0x191)+this[j(0x1a4)][j(0x1a8)]+j(0x1a7)),j(0x194)+b+j(0x19a);if(typeof c[j(0x18a)]===j(0x190)){const d=c['use']();return this[j(0x19f)][j(0x18c)](j(0x19c)+this[j(0x1a4)][j(0x1a8)]+j(0x1a3)+b+'.'),d;}else return this['logger'][j(0x18c)]('UseCommand:\x20'+b+j(0x197)),'You\x20can\x27t\x20use\x20the\x20'+b+j(0x186);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46i=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d=parseInt(f(0x155))/0x1*(-parseInt(f(0x159))/0x2)+parseInt(f(0x153))/0x3*(-parseInt(f(0x15e))/0x4)+parseInt(f(0x15c))/0x5+-parseInt(f(0x160))/0x6*(parseInt(f(0x165))/0x7)+parseInt(f(0x156))/0x8*(parseInt(f(0x15a))/0x9)+parseInt(f(0x15b))/0xa*(-parseInt(f(0x161))/0xb)+parseInt(f(0x15d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xaef0d));const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0x162)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a['toString']()[h(0x164)](h(0x157))[h(0x163)]()['constructor'](a46a)[h(0x164)]('(((.+)+)+)+$');});function a46c(){const l=['381214CvLdQq','3451473jAJMMr','139420CmtKPV','6351005RkUeFx','18246012cpdDti','2208296GQXuIa','commandMap','684TNSXqF','176pvzwMt','apply','toString','search','81256MjEBrq','6jOgEYS','createCommand','1TLTyMq','16KuzFKo','(((.+)+)+)+$','registerCommand'];a46c=function(){return l;};return a46c();}function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0x153;let f=c[d];return f;},a46d(a,b);}a46a();export class CommandFactory{static ['commandMap']={};static[a46i(0x158)](a,b){const j=a46i;this[j(0x15f)][a]=b;}static[a46i(0x154)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){const k=a46i;return this[k(0x15f)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47i=a47d;function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x19a;let f=c[d];return f;},a47d(a,b);}(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x1ad))/0x1*(-parseInt(f(0x1b2))/0x2)+-parseInt(f(0x1a7))/0x3*(-parseInt(f(0x1b4))/0x4)+-parseInt(f(0x1a4))/0x5+-parseInt(f(0x1b3))/0x6+parseInt(f(0x1aa))/0x7+parseInt(f(0x1af))/0x8+-parseInt(f(0x1ac))/0x9*(parseInt(f(0x1ba))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x97ecc));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a['toString']()[h(0x1bd)](h(0x1a2))[h(0x1a6)]()[h(0x1bb)](a47a)[h(0x1bd)](h(0x1a2));});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{[a47i(0x1b1)](a){const j=a47i,b=this['convertToRoomConfig'](a),c=new Room(b);if(a[j(0x1b7)]){const d=new Inventory();a[j(0x1b7)]['forEach'](e=>{d['addItem'](this['createItem'](e));}),c['inventory']=d;}return a[j(0x19e)]&&c[j(0x1b8)](this[j(0x19d)](a['puzzle'])),c;}[a47i(0x1a8)](a){const k=a47i;switch(a['type']){case k(0x1a1):return new Key(a['name'],a[k(0x1a0)]);case'book':return new Book(a[k(0x19a)],a[k(0x1a0)],a[k(0x1ae)]);case k(0x1b9):return new Sword(a['name'],a['description']);case k(0x1bc):return new Rifle(a['name'],a[k(0x1a0)]);case k(0x1a9):return new Helmet(a['name'],a[k(0x1a0)]);case'bodyarmor':return new BodyArmor(a[k(0x19a)],a[k(0x1a0)]);case k(0x1b6):return new LegArmor(a[k(0x19a)],a[k(0x1a0)]);case k(0x1ab):return new Boots(a[k(0x19a)],a['description']);case k(0x1a3):return new Gloves(a[k(0x19a)],a['description']);case k(0x1b5):return new Gauntlets(a[k(0x19a)],a[k(0x1a0)]);default:return new BasicItem(a['name'],a[k(0x1a0)]);}}[a47i(0x19d)](a){const l=a47i,b=this[l(0x1a8)](a[l(0x1be)]);return new Puzzle({...a,'rewardItem':b});}[a47i(0x19b)](a){const m=a47i,b=a[m(0x1a5)]&&RoomType[a[m(0x1a5)][m(0x19f)]()]?RoomType[a[m(0x1a5)][m(0x19f)]()]:RoomType[m(0x1b0)];return{'name':a['name'],'description':a['description'],'isStartRoom':a['isStartRoom'],'roomType':b};}}function a47c(){const n=['gloves','954265KlNcku','roomType','toString','768363LMgaXU','createItem','helmet','3282517PtCLpA','boots','18kwHZBR','331NsTHur','content','9352120UETLui','INSIDE','createRoom','4394VWPcoW','6181800TGxunk','16HEcBol','gauntlets','legarmor','items','setPuzzle','sword','458930SmGWhb','constructor','rifle','search','rewardItem','name','convertToRoomConfig','apply','createPuzzle','puzzle','toUpperCase','description','key','(((.+)+)+)+$'];a47c=function(){return n;};return a47c();}
|
|
@@ -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(0x158))/0x1+-parseInt(h(0x14e))/0x2+-parseInt(h(0x13d))/0x3+parseInt(h(0x154))/0x4+-parseInt(h(0x141))/0x5*(-parseInt(h(0x146))/0x6)+-parseInt(h(0x142))/0x7*(-parseInt(h(0x14a))/0x8)+-parseInt(h(0x15b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x65d7b));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a[j(0x161)]()[j(0x134)](j(0x149))[j(0x161)]()[j(0x162)](a48a)[j(0x134)](j(0x149));});a48a();function a48c(){const s=['drop','getAllRegisteredCommands','3399714MemFHe','initialize','Available\x20Commands:\x0a','trim','solve','name','toString','constructor','-\x20clear:\x20Clear\x20the\x20screen.\x0a','hasOwnProperty','search','registerCommands','quit','apply','unequip','currentRoom','execute','lock','toLowerCase','2360982VfhkZC','registerCommand','instance','handleInput','666605dxDGil','9408QTFySh','getHelpMessage','Welcome,\x20','getWelcomeMessage','18GFoFzo','-\x20quit:\x20Exit\x20the\x20game.\x0a','split','(((.+)+)+)+$','1408AbmvvN','getInstance','maka','look','1269066HseaPv','player','use','determineStartRoom','take','currentLocation','3011316VkOnfa','scene','rooms','createCommand','827084mURsRO'];a48c=function(){return s;};return a48c();}import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';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';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x134;let f=c[d];return f;},a48d(a,b);}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(0x13f)];[a48k(0x155)];['player'];[a48k(0x139)];[a48k(0x156)];constructor(a,b){const l=a48k;this[l(0x14f)]=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this['scene'][l(0x15c)](),this[l(0x14f)][l(0x153)]=this['determineStartRoom'](),this[l(0x135)]();}[a48k(0x135)](){const m=a48k;CommandFactory[m(0x13e)](m(0x14d),LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory['registerCommand'](m(0x152),TakeCommand),CommandFactory[m(0x13e)](m(0x150),UseCommand),CommandFactory[m(0x13e)]('equip',EquipCommand),CommandFactory['registerCommand'](m(0x138),UnequipCommand),CommandFactory[m(0x13e)](m(0x15f),SolveCommand),CommandFactory[m(0x13e)](m(0x159),DropCommand),CommandFactory[m(0x13e)]('unlock',UnlockCommand),CommandFactory['registerCommand'](m(0x13b),LockCommand),CommandFactory['registerCommand'](m(0x134),SearchCommand),CommandFactory['registerCommand']('say',SayCommand);}[a48k(0x151)](){const n=a48k;return this[n(0x155)][n(0x151)]();}[a48k(0x145)](){const o=a48k;return o(0x144)+this[o(0x14f)][o(0x160)];}static[a48k(0x14b)](a,b){const p=a48k;return!Game[p(0x13f)]&&(Game[p(0x13f)]=new Game(a,b)),Game['instance'];}[a48k(0x140)](a){const q=a48k,b=a[q(0x15e)]()[q(0x148)]('\x20'),c=b[0x0][q(0x13c)](),d=b['slice'](0x1);if(c===q(0x136))return null;if(c===q(0x14c))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c==='help')return this[q(0x143)]();if(c==='clear')return'';const e={'actor':this['player'],'rooms':this[q(0x155)]['getRooms'](),'scene':this['scene']},f=CommandFactory[q(0x157)](c,e);if(f){const g=f[q(0x13a)](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}[a48k(0x143)](){const r=a48k,a=CommandFactory[r(0x15a)]();let b=r(0x15d);for(const c in a){if(a[r(0x164)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d['getDescription']()+'\x0a';}}return b+=r(0x163),b+=r(0x147),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a49c(){var i=['630114ycPIfh','793800pzUudq','12pYXSTX','4803810oNxpQa','734188xvsgiJ','apply','(((.+)+)+)+$','search','164857UKhXkM','3597780QSjuak','48rTCaMJ','37398WztzqQ','23EWuyZX','toString','430tiLcsk'];a49c=function(){return i;};return a49c();}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x1cf))/0x1*(-parseInt(f(0x1ce))/0x2)+-parseInt(f(0x1d2))/0x3*(-parseInt(f(0x1d4))/0x4)+-parseInt(f(0x1d5))/0x5+parseInt(f(0x1db))/0x6+parseInt(f(0x1d6))/0x7*(parseInt(f(0x1dc))/0x8)+parseInt(f(0x1d3))/0x9+parseInt(f(0x1d1))/0xa*(-parseInt(f(0x1da))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xbc81a));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1d7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a['toString']()[h(0x1d9)](h(0x1d8))[h(0x1d0)]()['constructor'](a49a)['search'](h(0x1d8));});a49a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1ce;var f=c[d];return f;},a49d(a,b);}export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a50c(){var o=['24EyufAb','roomB','12UGgPEp','8467118CbEpOU','getInstance','1539000WzMhoR','constructor','write','(((.+)+)+)+$','attemptUnlock','Failed\x20to\x20unlock\x20door:\x20','\x20and\x20','unlockItemOrSolution','6165630daGeHI','28nrkehk','apply','logger','isLocked','isLockable','toString','name','1MlcRhU','734580yexIyF','.\x20Used:\x20','Door\x20unlocked:\x20','search','1184990uGebOD','120807VZAEtr','roomA','getOtherSide','1765598RZjdZR'];a50c=function(){return o;};return a50c();}var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=-parseInt(f(0x194))/0x1*(-parseInt(f(0x17e))/0x2)+parseInt(f(0x195))/0x3+parseInt(f(0x181))/0x4*(-parseInt(f(0x17a))/0x5)+-parseInt(f(0x184))/0x6*(parseInt(f(0x18d))/0x7)+-parseInt(f(0x17f))/0x8*(parseInt(f(0x17b))/0x9)+parseInt(f(0x18c))/0xa+parseInt(f(0x182))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xb3db9));var a50b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a50d;if(c){var e=c[g(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){var h=a50d;return a50a['toString']()[h(0x179)](h(0x187))[h(0x192)]()[h(0x185)](a50a)[h(0x179)](h(0x187));});a50a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x178;var f=c[d];return f;},a50d(a,b);}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a50i(0x17c)];[a50i(0x180)];[a50i(0x190)];[a50i(0x18b)];[a50i(0x193)];['logger'];['isLockable'];constructor(a){var j=a50i;super(),this[j(0x17c)]=a[j(0x17c)],this[j(0x180)]=a['roomB'],this['isLocked']=a[j(0x190)]||![],this['unlockItemOrSolution']=a[j(0x18b)],this['name']=a[j(0x193)]?capitalCase(a[j(0x193)]):'To\x20'+a[j(0x180)][j(0x193)],this['logger']=Logger[j(0x183)](),this[j(0x191)]=!!a[j(0x18b)],this[j(0x18f)]['write']('Door\x20created\x20between\x20'+this[j(0x17c)][j(0x193)]+j(0x18a)+this[j(0x180)][j(0x193)]+'.\x20Is\x20Locked:\x20'+this['isLocked']);}[a50i(0x17d)](a){var k=a50i;return this[k(0x17c)]===a?this[k(0x180)]:this[k(0x17c)];}[a50i(0x188)](a){var l=a50i;if(this[l(0x190)]&&this[l(0x18b)]&&this['unlockItemOrSolution']===a)return this['isLocked']=![],this['logger'][l(0x186)](l(0x178)+this['name']+l(0x196)+a),!![];return this[l(0x18f)][l(0x186)](l(0x189)+this['name']+'.\x20Used:\x20'+a),![];}['checkIfLocked'](){var m=a50i;return this[m(0x190)];}['checkIfLockable'](){var n=a50i;return this[n(0x191)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a51c(){const
|
|
1
|
+
const a51i=a51d;function a51c(){const r=['getItem','\x20to\x20inventory.','17684821KLDWdl','set','search','4OCGfLb','248021lQuSNy','2015016DpuIRB','Listed\x20items\x20in\x20inventory:\x20','get','8lOKooH','getAllItems','8758746mJsVaM','(((.+)+)+)+$','has','values','constructor','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','10MFdLzD','weight','\x20from\x20inventory.','getWeight','getInstance','\x20in\x20','write','4793278cygerQ','toString','map','logger','toLowerCase','24OpkIWA','9719128HHdoGV','hasItem','.\x20Exists:\x20','keys','10WgcPzh','Added\x20item:\x20','Checked\x20for\x20item:\x20','3064326nPvjUQ','items','apply','join','Retrieved\x20details\x20for\x20item:\x20','Removed\x20item:\x20','.\x20Item\x20not\x20found.','name','listItems'];a51c=function(){return r;};return a51c();}(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0x120))/0x1*(-parseInt(f(0x124))/0x2)+-parseInt(f(0x111))/0x3*(parseInt(f(0x11f))/0x4)+-parseInt(f(0x12c))/0x5*(parseInt(f(0x121))/0x6)+parseInt(f(0x133))/0x7+-parseInt(f(0x10a))/0x8+parseInt(f(0x126))/0x9*(parseInt(f(0x10e))/0xa)+parseInt(f(0x11c))/0xb*(parseInt(f(0x138))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xed9e1));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0x134)]()['search'](h(0x127))[h(0x134)]()[h(0x12a)](a51a)[h(0x11e)]('(((.+)+)+)+$');});a51a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x10a;let f=c[d];return f;},a51d(a,b);}import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a51i(0x112)];[a51i(0x136)];constructor(){const j=a51i;super(),this['items']=new Map(),this['logger']=Logger[j(0x130)]();}['addItem'](a){const k=a51i;this['items'][k(0x11d)](a[k(0x118)]['toLowerCase'](),a),this[k(0x136)][k(0x132)](k(0x10f)+a[k(0x118)]+k(0x11b));}['removeItem'](a){const l=a51i,b=this[l(0x11a)](a);if(b)return this[l(0x112)]['delete'](a[l(0x137)]()),this[l(0x136)][l(0x132)](l(0x116)+a+l(0x12e)),b;return this['logger'][l(0x132)]('Failed\x20to\x20remove\x20item:\x20'+a+l(0x117)),null;}[a51i(0x10b)](a){const m=a51i,b=this[m(0x112)][m(0x128)](a['toLowerCase']()),c=[...this['items']['keys']()];return this[m(0x136)]['write'](m(0x110)+a+m(0x131)+c[m(0x114)](',\x20')+m(0x10c)+b+'.'),b;}[a51i(0x11a)](a){const n=a51i,b=this[n(0x112)][n(0x123)](a[n(0x137)]())||null;return b?this[n(0x136)][n(0x132)](n(0x115)+a+'.'):this[n(0x136)][n(0x132)](n(0x12b)+a+n(0x117)),b;}[a51i(0x119)](){const o=a51i,a=[...this[o(0x112)][o(0x10d)]()],b=a[o(0x135)](c=>capitalCase(c));return this['logger'][o(0x132)](o(0x122)+b[o(0x114)](',\x20')+'.'),a;}[a51i(0x12f)](){const p=a51i;let a=0x0;for(const b of this[p(0x112)][p(0x129)]()){a+=b[p(0x12d)];}return a;}[a51i(0x125)](){const q=a51i;return[...this[q(0x112)]['values']()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x146;var f=c[d];return f;},a52d(a,b);}var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x14f))/0x1+-parseInt(f(0x146))/0x2+-parseInt(f(0x15f))/0x3*(-parseInt(f(0x160))/0x4)+parseInt(f(0x157))/0x5*(-parseInt(f(0x15b))/0x6)+-parseInt(f(0x150))/0x7*(parseInt(f(0x153))/0x8)+parseInt(f(0x154))/0x9*(-parseInt(f(0x156))/0xa)+-parseInt(f(0x149))/0xb*(-parseInt(f(0x14e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x756f5));var a52b=(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;};}()),a52a=a52b(this,function(){var g=a52d;return a52a[g(0x15d)]()[g(0x148)](g(0x151))[g(0x15d)]()[g(0x15c)](a52a)['search'](g(0x151));});a52a();function a52c(){var k=['5652TvoiRc','constructor','toString','rating','1862769EIJFZo','4dcXVWg','726338NKaqSJ','description','search','20611844suiTan','weight','color','texture','use','12idzdmO','127260nZSNdn','707ahQpfl','(((.+)+)+)+$','size','36160atSiZi','9IQKtnL','name','4489930ybwDHN','4630goqxqv','uuid','shape','category'];a52c=function(){return k;};return a52c();}import{v4 as a52e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a52h(0x158)];['name'];[a52h(0x147)];[a52h(0x152)];['category'];['shape'];['color'];[a52h(0x14c)];['rating'];[a52h(0x14a)];constructor(a){var i=a52h;super(),this[i(0x155)]=a[i(0x155)],this[i(0x147)]=a[i(0x147)],this[i(0x152)]=a[i(0x152)],this[i(0x15a)]=a[i(0x15a)],this[i(0x159)]=a[i(0x159)],this[i(0x14b)]=a[i(0x14b)],this[i(0x14c)]=a[i(0x14c)],this[i(0x15e)]=a[i(0x15e)],this[i(0x14a)]=a['weight'],this['uuid']=a52e();}[a52h(0x14d)](){var j=a52h;return'You\x20use\x20the\x20'+this[j(0x155)]+'.\x20Nothing\x20special\x20happens.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a53h=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0xbf))/0x1*(parseInt(f(0xc0))/0x2)+parseInt(f(0xcf))/0x3+-parseInt(f(0xbd))/0x4*(parseInt(f(0xce))/0x5)+parseInt(f(0xc9))/0x6+parseInt(f(0xd2))/0x7+parseInt(f(0xd1))/0x8+parseInt(f(0xc3))/0x9*(-parseInt(f(0xd0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x8c6fd));function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xba;let f=c[d];return f;},a53d(a,b);}function a53c(){const m=['25307757uddfmR','floor','moveTo','constructor','scene','random','4477008TSbphD','execute','autonomousMove','_dialogue','(((.+)+)+)+$','443425msFPOe','3374088bEwmOj','10OMwCeY','7337264fGWrUd','2688805lRwFZV','name','length','rooms','40qYRNfP','toString','5LPLYjt','440766uitvYG','search','_name'];a53c=function(){return m;};return a53c();}const a53b=(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;};}()),a53a=a53b(this,function(){const g=a53d;return a53a[g(0xbe)]()[g(0xc1)]('(((.+)+)+)+$')['toString']()[g(0xc6)](a53a)[g(0xc1)](g(0xcd));});a53a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a53h(0xc2)];[a53h(0xcc)];[a53h(0xbc)];[a53h(0xc7)];constructor(a,b,c,d){const i=a53h;super(d),this['_name']=a,this[i(0xcc)]=b,this['rooms']=c;}get['name'](){return this['_name'];}['speak'](){const j=a53h;return this['_dialogue'][Math['floor'](Math[j(0xc8)]()*this[j(0xcc)][j(0xbb)])];}[a53h(0xcb)](a){const k=a53h,b=a[Math[k(0xc4)](Math[k(0xc8)]()*a[k(0xbb)])];this[k(0xc5)](b[k(0xba)]);}[a53h(0xc5)](a){const l=a53h,b={'actor':this,'rooms':this['rooms'],'scene':this['scene']},c=new GoCommand(b);c[l(0xca)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54i=a54d;function a54c(){const A=['Added\x20','equipment','includes','Removed\x20','addInventory','legs','59985tMJvWp','values','constructor','_playerName','_inventory','write','equip','toLowerCase','\x20says:\x20\x22','\x20in\x20your\x20inventory.','body\x20armor','inventory','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','inventoryItems','toString','LegArmor','bodyarmor','gloves','420294gyrPYD','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','Boots','removeItem','_equipment','A\x20featureless\x20room','Failed\x20to\x20remove\x20','error','armarmor','determineEquipmentSlot','rightHand','_maxCarryingWeight','BodyArmor','Helmet','1129300aUsAFm','unequip','leftHand','legarmor','Max\x20carrying\x20weight\x20must\x20be\x20positive.','leaveRoom','startLocation','hear','bind','category','logger','You\x20can\x27t\x20equip\x20','currentWeight','enterRoom','removeInventory','log','Shield','unequipBySlot','arms','Hat','getWeight','torso','getInstance','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','(((.+)+)+)+$','boots','leg\x20armor','head','Weapon','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','You\x20equipped\x20','helmet','\x20slot.','\x20is\x20now\x20listening\x20in\x20room\x20','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','speak','205601bZvMuC','2168910creDdG','Invalid\x20category\x20or\x20slot:\x20','name','397989MhYhwJ','8ZwDygx','feet','search','2210SgSDNq','You\x20don\x27t\x20have\x20','currentLocation','initialEquipment','ArmArmor','Gloves','959QoyKjc','playerName','Nexus','shield','hat','arm\x20armor','24544VBZlQE','\x20is\x20no\x20longer\x20listeng\x20in\x20','\x20from\x20player\x27s\x20inventory.','weight','_currentLocation','apply','maxCarryingWeight'];a54c=function(){return A;};return a54c();}(function(a,b){const f=a54d,c=a();while(!![]){try{const d=parseInt(f(0x19c))/0x1+parseInt(f(0x16a))/0x2+-parseInt(f(0x1a0))/0x3*(-parseInt(f(0x1a1))/0x4)+parseInt(f(0x178))/0x5+parseInt(f(0x19d))/0x6+-parseInt(f(0x145))/0x7*(-parseInt(f(0x14b))/0x8)+-parseInt(f(0x158))/0x9*(parseInt(f(0x13f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x34ada));function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x13d;let f=c[d];return f;},a54d(a,b);}const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a54d;if(c){const e=c[g(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const h=a54d;return a54a[h(0x166)]()[h(0x13e)]('(((.+)+)+)+$')[h(0x166)]()[h(0x15a)](a54a)[h(0x13e)](h(0x190));});a54a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';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(0x15b)];[a54i(0x14f)];[a54i(0x15c)];[a54i(0x16e)];[a54i(0x175)]=0x32;[a54i(0x182)];constructor(a){const j=a54i;super(),this['_playerName']=a[j(0x146)],this[j(0x14f)]=a[j(0x17e)]||new Room({'name':j(0x147),'description':j(0x16f)}),this[j(0x15c)]=new Inventory(),this[j(0x182)]=Logger[j(0x18e)]();if(a?.[j(0x165)])for(const b of a[j(0x165)]){this[j(0x15c)]['addItem'](b);}this[j(0x16e)]=a?.[j(0x142)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get['name'](){const k=a54i;return this[k(0x15b)];}get[a54i(0x141)](){const l=a54i;return this[l(0x14f)];}set[a54i(0x141)](a){const m=a54i;this[m(0x14f)]!==a&&(this['leaveRoom'](),this['enterRoom'](a)),this[m(0x14f)]=a;}get[a54i(0x163)](){const n=a54i;return this[n(0x15c)];}get[a54i(0x153)](){return this['_equipment'];}set[a54i(0x153)](a){this['_equipment']=a;}get['maxCarryingWeight'](){return this['_maxCarryingWeight'];}set[a54i(0x151)](a){const o=a54i;a>0x0?this['_maxCarryingWeight']=a:console[o(0x171)](o(0x17c));}get[a54i(0x184)](){const p=a54i;let a=this[p(0x15c)][p(0x18c)]();for(const b in this[p(0x16e)]){const c=this[p(0x16e)][b];c&&(a+=c[p(0x14e)]);}return a;}[a54i(0x156)](a){const q=a54i;if(this[q(0x184)]+a[q(0x14e)]>this[q(0x151)]){this[q(0x182)][q(0x15d)](q(0x164));throw new Error(q(0x19a));}this[q(0x15c)]['addItem'](a),this[q(0x182)][q(0x15d)](q(0x152)+a[q(0x19f)]+'\x20to\x20player\x27s\x20inventory.');}[a54i(0x186)](a){const r=a54i;if(this[r(0x15c)][r(0x16d)](a[r(0x19f)]))return this[r(0x182)]['write'](r(0x155)+a[r(0x19f)]+r(0x14d)),!![];return this['logger'][r(0x15d)](r(0x170)+a[r(0x19f)]+r(0x14d)),![];}[a54i(0x15e)](a){const s=a54i;if(!this[s(0x15c)]['hasItem'](a[s(0x19f)]))return s(0x140)+a[s(0x19f)]+s(0x161);if(!this['canEquip'](a))return s(0x183)+a[s(0x19f)]+'.';const b=this[s(0x173)](a[s(0x181)]);if(!b)return a[s(0x19f)]+s(0x195);if(this[s(0x153)][b])return s(0x18f)+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this['equipment'][b]=a,this['removeInventory'](a),s(0x196)+a['name']+'.';}[a54i(0x179)](a){const t=a54i;let b=a;if(!this[t(0x153)][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return t(0x19e)+a+'.';}return this[t(0x189)](b);}[a54i(0x173)](a){const u=a54i;switch(a[u(0x15f)]()){case Category[u(0x194)][u(0x15f)]():return u(0x174);case Category[u(0x188)]['toLowerCase']():return u(0x17a);case Category[u(0x144)][u(0x15f)]():return u(0x169);case Category[u(0x177)][u(0x15f)]():case Category[u(0x18b)][u(0x15f)]():return u(0x193);case Category[u(0x16c)][u(0x15f)]():return u(0x13d);case Category[u(0x167)][u(0x15f)]():return u(0x157);case Category[u(0x143)][u(0x15f)]():return u(0x18a);case Category[u(0x176)][u(0x15f)]():return u(0x18d);case'weapon':return u(0x174);case u(0x148):return u(0x17a);case u(0x169):return u(0x169);case u(0x197):case u(0x149):return u(0x193);case u(0x191):return u(0x13d);case u(0x192):case u(0x17b):return'legs';case u(0x14a):case u(0x172):return u(0x18a);case u(0x162):case u(0x168):case u(0x18d):return u(0x18d);default:return null;}}['canEquip'](a){const v=a54i;return Object[v(0x159)](Category)[v(0x154)](a[v(0x181)]);}[a54i(0x189)](a){const w=a54i,b=this[w(0x153)][a];if(!b)return w(0x16b)+a+w(0x198);return this['addInventory'](b),this[w(0x153)][a]=null,'You\x20unequipped\x20'+b[w(0x19f)]+'.';}[a54i(0x17f)](a,b){const x=a54i;a!==this&&this[x(0x182)][x(0x187)](a[x(0x19f)]+x(0x160)+b+'\x22');}[a54i(0x185)](a){const y=a54i;this[y(0x14f)]=a,a['on'](y(0x19b),this[y(0x17f)][y(0x180)](this)),this[y(0x182)]['write'](this[y(0x19f)]+y(0x199)+a['name']);}[a54i(0x17d)](){const z=a54i;this[z(0x14f)]&&(this[z(0x14f)]['off'](z(0x19b),this[z(0x17f)]['bind'](this)),this[z(0x182)][z(0x15d)](this[z(0x19f)]+z(0x14c)+this[z(0x14f)][z(0x19f)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x18a))/0x1*(-parseInt(f(0x184))/0x2)+parseInt(f(0x190))/0x3*(-parseInt(f(0x196))/0x4)+parseInt(f(0x199))/0x5*(-parseInt(f(0x19a))/0x6)+-parseInt(f(0x18f))/0x7+-parseInt(f(0x183))/0x8+parseInt(f(0x193))/0x9+parseInt(f(0x198))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xba430));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x18b)]()['search'](h(0x187))[h(0x18b)]()[h(0x181)](a55a)[h(0x192)]('(((.+)+)+)+$');});function a55c(){var n=['15YpOvCX','rewardItem','search','8887554WAqyYL','matchesRequiredPhrase','hasRequiredItem','1154732xsRSoW','apply','36292180eyVRcc','1010YyaOJI','37086FKMTLc','write','successMessage','failureMessage','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','getInstance','riddle','constructor','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','6949552lqrcBT','3026hPXqEj','You\x20have\x20already\x20solved\x20this\x20puzzle.','solve','(((.+)+)+)+$','requiredItem','solved','139ogthcX','toString','Puzzle:\x20Correct\x20solution\x20provided.','logger','requiredPhrase','3524024EJUUsv'];a55c=function(){return n;};return a55c();}a55a();import{Logger}from'../utilities/logger.js';function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x17e;var f=c[d];return f;},a55d(a,b);}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger[a55i(0x17f)]();['solved']=![];['requiredItem'];['requiredPhrase'];[a55i(0x180)];[a55i(0x191)];[a55i(0x19c)];[a55i(0x19d)];constructor(a){var j=a55i;super(),this[j(0x188)]=a[j(0x188)],this[j(0x18e)]=a['requiredPhrase'],this[j(0x180)]=a[j(0x180)],this['rewardItem']=a[j(0x191)],this[j(0x19c)]=a[j(0x19c)]||'You\x20solved\x20the\x20puzzle!',this[j(0x19d)]=a['failureMessage']||j(0x182);}[a55i(0x195)](a){var k=a55i;if(this['requiredItem'])return a['hasItem'](this[k(0x188)]);return![];}[a55i(0x194)](a){var l=a55i;return this[l(0x18e)]===a;}[a55i(0x186)](a,b){var m=a55i;if(this[m(0x189)])return this['logger'][m(0x19b)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':m(0x185)};return this['hasRequiredItem'](b)||this['matchesRequiredPhrase'](a)?(this[m(0x189)]=!![],this['logger'][m(0x19b)](m(0x18c)),{'success':!![],'message':this[m(0x19c)]}):(this[m(0x18d)][m(0x19b)](m(0x17e)),{'success':![],'message':this[m(0x19d)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=-parseInt(f(0x158))/0x1+-parseInt(f(0x194))/0x2*(-parseInt(f(0x193))/0x3)+parseInt(f(0x186))/0x4+-parseInt(f(0x18c))/0x5*(parseInt(f(0x169))/0x6)+-parseInt(f(0x16a))/0x7*(parseInt(f(0x18a))/0x8)+-parseInt(f(0x183))/0x9*(parseInt(f(0x16c))/0xa)+parseInt(f(0x17e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x3ff23));function a56c(){const u=['16FdAxHQ','Fetching\x20exit\x20in\x20direction:\x20','395LyEpaR','No\x20locked\x20exit\x20found\x20in\x20direction\x20','exits','isExitLocked','attemptUnlockExit','apply','\x20remains\x20locked.','507wqZRSw','462PSzRVX','(((.+)+)+)+$','Checking\x20if\x20exit\x20in\x20direction\x20','WEST','183107zQCxRP','west','speak','getExit','addItem','isStartRoom','emit','Invalid\x20direction:\x20','search','logger','\x20is\x20locked.\x20Result:\x20','name','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','.\x20Success:\x20','description','attemptUnlock','write','30372TivVKM','921277botbDJ','DOWN','20jmIhVq','getOppositeDirection','addExit','inventory','EAST','\x20unlocked!','Item\x20added\x20to\x20room\x20','say','SOUTH','The\x20','roomType','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','get','puzzle','getInstance','findExistingDoor','toString','checkIfLocked','13291300npLsfK','removeItem','set','east','roomA','2118609Thtjtq','south','values','1326452cGpLEv','Puzzle\x20set\x20for\x20room\x20','Room\x20created:\x20','down'];a56c=function(){return u;};return a56c();}const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a['toString']()[h(0x160)](h(0x195))[h(0x17c)]()['constructor'](a56a)['search']('(((.+)+)+)+$');});a56a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x157;let f=c[d];return f;},a56d(a,b);}import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a56i(0x161)]=Logger[a56i(0x17a)]();['name'];[a56i(0x166)];[a56i(0x18e)]=new Map();[a56i(0x176)];[a56i(0x15d)];[a56i(0x16f)]=new Inventory();constructor(a){const j=a56i;super(),this['name']=a[j(0x163)],this[j(0x166)]=a[j(0x166)],this[j(0x176)]=a[j(0x176)]||RoomType['INSIDE'],a[j(0x18e)]&&(this[j(0x18e)]=a[j(0x18e)]||new Map()),a[j(0x16f)]&&(this['inventory']=a[j(0x16f)]),a[j(0x179)]&&(this[j(0x179)]=a[j(0x179)]),this[j(0x15d)]=a[j(0x15d)]||![],this['logger']['write'](j(0x188)+this[j(0x163)]);}[a56i(0x173)](a,b){const k=a56i;this[k(0x15e)](k(0x15a),a,b);}[a56i(0x16e)](a,b,c){const l=a56i;let d=this[l(0x17b)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x18e)][l(0x180)](a,d),b[l(0x18e)]['set'](this['getOppositeDirection'](a),d);}[a56i(0x190)](a,b){const m=a56i,c=this[m(0x18e)]['get'](a);if(c instanceof Door){const d=c[m(0x167)](b);return this[m(0x161)][m(0x168)](m(0x177)+a+m(0x165)+d),d?m(0x175)+c['name']+m(0x171):'The\x20'+c[m(0x163)]+m(0x192);}return this[m(0x161)][m(0x168)](m(0x18d)+a),m(0x164);}[a56i(0x15b)](a){const n=a56i;return this[n(0x161)][n(0x168)](n(0x18b)+a),this[n(0x18e)][n(0x178)](a);}[a56i(0x18f)](a){const o=a56i,b=this[o(0x18e)][o(0x178)](a),c=b instanceof Door&&b[o(0x17d)]();return this[o(0x161)][o(0x168)](o(0x196)+a+o(0x162)+c),c;}[a56i(0x15c)](a){const p=a56i;this['inventory'][p(0x15c)](a),this[p(0x161)][p(0x168)](p(0x172)+this['name']+':\x20'+a[p(0x163)]);}[a56i(0x17f)](a){const q=a56i;this[q(0x16f)]['hasItem'](a[q(0x163)])?(this[q(0x16f)][q(0x17f)](a['name']),this['logger'][q(0x168)]('Item\x20removed\x20from\x20room\x20'+this[q(0x163)]+':\x20'+a[q(0x163)])):this[q(0x161)]['write']('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this[q(0x163)]+':\x20'+a['name']);}['setPuzzle'](a){const r=a56i;this[r(0x179)]=a,this[r(0x161)][r(0x168)](r(0x187)+this[r(0x163)]+':\x20'+a['riddle']);}[a56i(0x16d)](a){const s=a56i;switch(a){case'north':return Direction[s(0x174)];case s(0x184):return Direction['NORTH'];case s(0x181):return Direction[s(0x157)];case s(0x159):return Direction[s(0x170)];case'up':return Direction[s(0x16b)];case s(0x189):return Direction['UP'];default:throw new Error(s(0x15f)+a);}}[a56i(0x17b)](a){const t=a56i;for(const b of this['exits'][t(0x185)]()){if(b instanceof Door){if(b['roomA']===this&&b['roomB']===a||b['roomB']===this&&b[t(0x182)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=-parseInt(i(0xed))/0x1+parseInt(i(0xea))/0x2*(-parseInt(i(0x116))/0x3)+-parseInt(i(0x114))/0x4+-parseInt(i(0x101))/0x5+parseInt(i(0x128))/0x6+-parseInt(i(0x124))/0x7*(parseInt(i(0xee))/0x8)+parseInt(i(0xf7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x2e562));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0xeb)]()[k(0xf0)](k(0x118))['toString']()[k(0x11f)](a57a)[k(0xf0)]('(((.+)+)+)+$');});function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0xe6;let f=c[d];return f;},a57d(a,b);}a57a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';function a57c(){const D=['currentLocation','\x20found\x20in\x20the\x20scene.','Failed\x20to\x20set\x20','getPlayer','roomConfiguration','hasOwnProperty','createRoom','removeActor','has','targetRoom','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','1181468HZncGm','actors','3nKIUaj','toUpperCase','(((.+)+)+)+$','characterLocations','\x22\x20does\x20not\x20exist.','Added\x20puzzle\x20to\x20room\x20','keyRequired','get','getInstance','constructor','addRoom','set','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','Scene\x20initialized\x20with\x20rooms:\x20','7CFiOSw','push','direction','name','589032tTkAjL','\x20to\x20room\x20','write','rooms','logger','\x20already\x20exists\x20in\x20the\x20scene.','initialize','connectRooms','\x20not\x20found\x20in\x20scene.','getRooms','addItemToRoom','join','determineStartRoom','695416GlPBAK','toString','apply','317444CaLAVT','2043896gauGnF','addItem','search','values','length','Failed\x20to\x20add\x20item\x20','getActor','addActor','roomFactory','13727106EwrDkk','exits','allActors','getCharacterLocation','keys','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','\x27s\x20location.\x20Room\x20','addExit','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','setCharacterLocation','1088030hpMRET','.\x20Room\x20','player','\x20is\x20now\x20in\x20room\x20','warn','from','createExitsFromConfig','generateRoomsFromConfig'];a57c=function(){return D;};return a57c();}export class Scene extends AbstractScene{[a57l(0x12b)];[a57l(0x103)];[a57l(0x12c)];[a57l(0x115)];[a57l(0x119)]=new Map();['roomFactory'];constructor(a){const m=a57l;super(),this['roomFactory']=new RoomFactory(),this[m(0x103)]=a['player'],this[m(0x12b)]=this[m(0x108)](a[m(0x10d)]),this[m(0x12c)]=Logger[m(0x11e)](),this[m(0x115)]=new Map(),this[m(0x107)](a['roomConfiguration']),this[m(0x12c)][m(0x12a)](m(0x123)+Object[m(0xfb)](this[m(0x12b)])[m(0xe8)](',\x20'));}[a57l(0x12e)](){const n=a57l;this['player'][n(0x109)]=this[n(0xe9)]();}['generateRoomsFromConfig'](a){const o=a57l;if(!this[o(0xf6)])throw new Error(o(0xfc));const b={};for(const c of a){const d=this[o(0xf6)][o(0x10f)](c);b[c[o(0x127)]]=d;}return b;}[a57l(0x107)](a){const p=a57l;for(const b of a){const c=this[p(0x12b)][b[p(0x127)]];if(b['exits'])for(const d of b[p(0xf8)]){const e=d[p(0x126)][p(0x117)](),f=d[p(0x112)],g=d[p(0x11c)],h=this[p(0x12b)][f];h&&c['addExit'](Direction[e],h,g);}}}[a57l(0xf5)](a){const q=a57l;if(this[q(0x115)][q(0x111)](a[q(0x127)]))throw new Error('Actor\x20with\x20name\x20'+a['name']+q(0x12d));this[q(0x115)][q(0x121)](a[q(0x127)],a);}[a57l(0x110)](a){const r=a57l;if(!this[r(0x115)]['has'](a))throw new Error('No\x20actor\x20with\x20name\x20'+a+r(0x10a));this[r(0x115)]['delete'](a);}[a57l(0xf4)](a){const s=a57l;return this[s(0x115)][s(0x11d)](a);}get[a57l(0xf9)](){const t=a57l;return Array[t(0x106)](this['actors'][t(0xf1)]());}[a57l(0x120)](a){const u=a57l;this[u(0x12b)][a[u(0x127)]]=a,this[u(0x12c)][u(0x12a)]('Added\x20room\x20to\x20scene:\x20'+a[u(0x127)]);}['removeRoom'](a){const v=a57l;return this['rooms'][a]?(delete this[v(0x12b)][a],this[v(0x12c)][v(0x12a)]('Removed\x20room\x20from\x20scene:\x20'+a),!![]):(this['logger'][v(0x12a)](v(0xff)+a),![]);}[a57l(0xe7)](a,b){const w=a57l,c=this[w(0x12b)][b];c?(c[w(0xef)](a),this[w(0x12c)][w(0x12a)]('Added\x20item\x20'+a[w(0x127)]+w(0x129)+c[w(0x127)])):this[w(0x12c)][w(0x12a)](w(0xf3)+a[w(0x127)]+w(0x102)+b+w(0x130));}['addPuzzleToRoom'](a,b){const x=a57l,c=this[x(0x12b)][b];c?(c['setPuzzle'](a),this[x(0x12c)]['write'](x(0x11b)+c[x(0x127)])):this[x(0x12c)][x(0x12a)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+x(0x130));}[a57l(0x100)](a,b){const y=a57l,c=this['rooms'][b];c?(this[y(0x119)][y(0x121)](a[y(0x127)],c),this[y(0x12c)][y(0x12a)](a[y(0x127)]+y(0x104)+c[y(0x127)])):this[y(0x12c)]['write'](y(0x10b)+a[y(0x127)]+y(0xfd)+b+'\x20not\x20found\x20in\x20scene.');}[a57l(0xfa)](a){const z=a57l;return this['characterLocations'][z(0x11d)](a[z(0x127)]);}[a57l(0xe9)](){const A=a57l,a=[];for(const c in this['rooms']){if(this['rooms'][A(0x10e)](c)){const d=this[A(0x12b)][c];d['isStartRoom']&&a[A(0x125)](d);}}if(a[A(0xf2)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a[A(0xf2)]===0x1)return a[0x0];const b=Object[A(0xfb)](this['rooms']);if(b['length']===0x0)throw new Error(A(0x122));return console[A(0x105)](A(0x113)),this[A(0x12b)][b[0x0]];}[a57l(0x10c)](){const B=a57l;return this[B(0x103)];}[a57l(0xe6)](){return this['rooms'];}[a57l(0x12f)](a,b,c,d){const C=a57l,e=this[C(0x12b)][a],f=this[C(0x12b)][c];if(!e)throw new Error('Room\x20\x22'+a+C(0x11a));if(!f)throw new Error('Room\x20\x22'+c+C(0x11a));e[C(0xfe)](b,f,d);}}
|