@maka/maka-cli 5.1.0 → 5.1.1
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 +6 -2
- 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 +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d
|
|
1
|
+
function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x1d3;let f=c[d];return f;},a37d(a,b);}const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x1fa))/0x1+parseInt(f(0x1d6))/0x2*(-parseInt(f(0x1ee))/0x3)+parseInt(f(0x1e3))/0x4+-parseInt(f(0x1df))/0x5*(parseInt(f(0x1f5))/0x6)+-parseInt(f(0x1f7))/0x7+parseInt(f(0x1f1))/0x8*(-parseInt(f(0x1d8))/0x9)+-parseInt(f(0x1eb))/0xa*(-parseInt(f(0x1fe))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xd2672));function a37c(){const l=['You\x20don\x27t\x20have\x20the\x20key\x20to\x20lock\x20this\x20door.','LockCommand:\x20','isLocked','write','20NOebSD','constructor','unlockItemOrSolution','get','6223780xXKIMy','\x20door.','currentLocation','logger','length','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','execute','hasItem','20207790caVAsL','name','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20this\x20room.','3BtgWnF','actor','toLowerCase','17992LjEqko','(((.+)+)+)+$','error','description','1786800zOUqLo','LockCommand:\x20No\x20target\x20specified.','4506705WosEOb','exits','search','1171504sMdShN','lock','toString','inventory','11RLZvUj','apply','The\x20door\x20named\x20\x22','\x20Locked\x20the\x20','3207704XanEnC','\x22\x20is\x20already\x20locked.','1791GCWKtc','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20lock.','\x22\x20here.'];a37c=function(){return l;};return a37c();}const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x1d3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x1fc)]()['search'](h(0x1f2))[h(0x1fc)]()[h(0x1e0)](a37a)[h(0x1f9)]('(((.+)+)+)+$');});a37a();import{Command}from'./command.js';export class LockCommand extends Command{static ['verb']='lock';static [a37i(0x1f4)]='Lock\x20a\x20door.';[a37i(0x1e9)](a){const j=a37i;return this[j(0x1fb)](a);}[a37i(0x1fb)](a){const k=a37i;if(a[k(0x1e7)]===0x0)return this[k(0x1e6)][k(0x1f3)](k(0x1f6)),k(0x1d9);const b=a[0x0]['toLowerCase'](),c=this[k(0x1ef)][k(0x1e5)];if(this['isValidDirection'](b)&&c[k(0x1f8)]['has'](b)){const d=c[k(0x1f8)][k(0x1e2)](b);if(d[k(0x1dd)])return k(0x1d4)+b+k(0x1d7);const e=d[k(0x1e1)]?.[k(0x1f0)]();return e&&this[k(0x1ef)][k(0x1fd)][k(0x1ea)](e)?(d[k(0x1dd)]=!![],this[k(0x1e6)][k(0x1de)](k(0x1dc)+this['actor'][k(0x1ec)]+k(0x1d5)+b+k(0x1e4)),'You\x20locked\x20the\x20door\x20named\x20\x22'+b+'\x22.'):(this['logger'][k(0x1de)](k(0x1dc)+this[k(0x1ef)]['name']+k(0x1e8)+b+'.'),k(0x1db));}else return this['logger'][k(0x1de)]('LockCommand:\x20'+b+k(0x1ed)),'There\x27s\x20no\x20door\x20named\x20\x22'+b+k(0x1da);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a38c(){const n=['\x20is\x20looking\x20around\x20the\x20current\x20room.','verb','\x27\x20in\x20','You\x20don\x27t\x20see\x20any\x20','6ptkymg','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','getOtherSide','Executing\x20\x27Look\x27\x20command.','924612cPiLGf',',\x20you\x20see\x20','5bUUNYT','\x20here.','Above\x20you,\x20','description','You\x20cannot\x20see\x20through','currentLocation','184MADXDF','lookOutside','puzzle','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','Examine\x20your\x20surroundings','5671127lTlmZg','error','152960CNPjaS','5321620miPMjU','1878777DxUiPJ','roomType','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','To\x20the\x20','string','logger','Looking\x20at\x20item\x20\x27','60MCpAQx','hasItem','You\x27re\x20not\x20in\x20a\x20valid\x20room.','apply','4998071uNBzzr','You\x20cannot\x20see\x20','(((.+)+)+)+$','get','actor','toString','\x27\x20in\x20current\x20room\x20inventory.','write','Below\x20you,\x20','getItem','constructor','369cbweKU','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','11LWObSp','inventory','rooms','inspectItem','down','look','562uVEbRj','name','search'];a38c=function(){return n;};return a38c();}const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0xdb))/0x1*(-parseInt(f(0xc8))/0x2)+-parseInt(f(0xe4))/0x3+-parseInt(f(0xd3))/0x4*(parseInt(f(0xd5))/0x5)+parseInt(f(0xcf))/0x6*(-parseInt(f(0xe0))/0x7)+parseInt(f(0xe2))/0x8*(parseInt(f(0xc0))/0x9)+-parseInt(f(0xe3))/0xa*(parseInt(f(0xc2))/0xb)+parseInt(f(0xb1))/0xc*(parseInt(f(0xb5))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x6f0a0));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0xba)]()[h(0xca)](h(0xb7))[h(0xba)]()[h(0xbf)](a38a)[h(0xca)](h(0xb7));});a38a();import{Door}from'../models/door.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xad;let f=c[d];return f;},a38d(a,b);}import{RoomType}from'../types/enums.js';import{Command}from'./command.js';export class LookCommand extends Command{static [a38i(0xcc)]=a38i(0xc7);static [a38i(0xd8)]=a38i(0xdf);['execute'](a=[]){const j=a38i;this[j(0xaf)][j(0xbc)](j(0xd2));const b=a['join']('\x20');if(b){if(this[j(0xb9)][j(0xc3)][j(0xb2)](b))return this[j(0xaf)][j(0xbc)](j(0xb0)+b+j(0xcd)+this[j(0xb9)][j(0xc9)]+'\x20inventory.'),this[j(0xc5)](b,this[j(0xb9)][j(0xc3)]);else{if(this[j(0xb9)][j(0xda)]['inventory'][j(0xb2)](b))return this[j(0xaf)]['write'](j(0xb0)+b+j(0xbb)),this[j(0xc5)](b,this[j(0xb9)]['currentLocation'][j(0xc3)]);else return this['isValidDirection'](b)?(this['logger'][j(0xbc)](j(0xd0)+b+'\x27.'),this['lookOutside'](b)):j(0xb6)+b;}}else return this['logger'][j(0xbc)](this['actor'][j(0xc9)]+j(0xcb)),this[j(0xc7)]();}[a38i(0xc7)](){const k=a38i,a=this[k(0xb9)][k(0xda)];if(!a)return this[k(0xaf)][k(0xe1)](this['actor']['name']+k(0xe7)),'You\x27re\x20not\x20in\x20a\x20valid\x20room.';let b=a[k(0xd8)];return a[k(0xdd)]&&(b+='\x0a'+a[k(0xdd)]['riddle']),b;}[a38i(0xdc)](a){const l=a38i,b=this['actor']['currentLocation'];if(!b)return this['logger'][l(0xe1)](this[l(0xb9)][l(0xc9)]+l(0xe7)),l(0xb3);const c=b['exits'][l(0xb8)](a);if(!c)return l(0xc1)+a+'\x22.';let d;if(c instanceof Door)d=c[l(0xd1)](b);else{if(typeof c===l(0xae)){d=this['rooms']&&this[l(0xc4)][c];if(!d)return l(0xde)+a+'\x22.';}else return l(0xe6)+a+'\x22.';}if(d[l(0xe5)]===RoomType['OUTSIDE']){if(a==='up')return l(0xd7)+d[l(0xd8)];else return a===l(0xc6)?l(0xbd)+d[l(0xd8)]:l(0xad)+a+l(0xd4)+d['description'];}else return l(0xd9);}[a38i(0xc5)](a,b){const m=a38i,c=b[m(0xbe)](a);if(!c)return m(0xce)+a+m(0xd6);return c[m(0xd8)]||'It\x27s\x20just\x20a\x20regular\x20'+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39i=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d
|
|
1
|
+
const a39i=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=-parseInt(g(0x80))/0x1+-parseInt(g(0x6d))/0x2+-parseInt(g(0x69))/0x3+parseInt(g(0x7c))/0x4*(parseInt(g(0x7e))/0x5)+parseInt(g(0x73))/0x6+-parseInt(g(0x74))/0x7+-parseInt(g(0x7d))/0x8*(-parseInt(g(0x68))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x347bd));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(0x6a)]()[h(0x78)]('(((.+)+)+)+$')[h(0x6a)]()[h(0x70)](a39a)[h(0x78)](h(0x6f));});function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x65;let f=c[d];return f;},a39d(a,b);}function a39c(){const k=['535365uKIcBW','say','327055fUMPRr','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','actor','context','join','An\x20error\x20occurred.','3438pkCkeq','991467SOshNs','toString','What\x20do\x20you\x20want\x20to\x20say?','scene','51944Tdqemu','allActors','(((.+)+)+)+$','constructor','currentLocation','logger','177828PolEbS','2864946wSgPSJ','\x20says\x20to\x20','execute','name','search','verb','filter','log','12WsXshB','20040YoBEmH'];a39c=function(){return k;};return a39c();}a39a();import{Command}from'./command.js';export class SayCommand extends Command{static [a39i(0x79)]=a39i(0x7f);static ['description']=a39i(0x81);[a39i(0x65)];constructor(a){super(a),this['context']=a;}[a39i(0x76)](a){const j=a39i;if(a['length']===0x0)return j(0x6b);const b=a[j(0x66)]('\x20'),c=this['actor'],d=this[j(0x65)][j(0x6c)];if(!d)return this['logger'][j(0x7b)]('Scene\x20is\x20missing\x20from\x20context.'),j(0x67);const e=d[j(0x6e)][j(0x7a)](f=>f[j(0x71)]===c[j(0x71)]);for(const f of e){this[j(0x72)]['log'](c['name']+j(0x75)+f[j(0x77)]+':\x20\x22'+b+'\x22'),this[j(0x82)][j(0x71)][j(0x7f)](f,b);}return'You\x20say:\x20\x22'+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x8a))/0x1+-parseInt(f(0x77))/0x2+-parseInt(f(0x8c))/0x3+parseInt(f(0x7e))/0x4*(parseInt(f(0x87))/0x5)+parseInt(f(0x8d))/0x6+-parseInt(f(0x88))/0x7*(-parseInt(f(0x7d))/0x8)+parseInt(f(0x78))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xb0a23));function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x76;let f=c[d];return f;},a40d(a,b);}function a40c(){const k=['join','464753ugLJIM','length','1887513bFJuGL','463962vYFPpB','toString','write','2324098SEnVcQ','10570788pLzQcY','verb','apply','listItems','logger','10568SqZOnb','1571464utAQyN','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','actor','execute','description','SearchCommand:\x20','name','constructor','search','10uurtbv','4991DMpOSI'];a40c=function(){return k;};return a40c();}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x7a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a['toString']()[h(0x86)]('(((.+)+)+)+$')[h(0x8e)]()[h(0x85)](a40a)[h(0x86)]('(((.+)+)+)+$');});a40a();import{Command}from'./command.js';export class SearchCommand extends Command{static [a40i(0x79)]=a40i(0x86);static [a40i(0x82)]='Search\x20for\x20items\x20in\x20your\x20area';[a40i(0x81)](){const j=a40i,a=this[j(0x80)]['currentLocation']['inventory'][j(0x7b)]();if(a[j(0x8b)]===0x0)return this[j(0x7c)][j(0x76)](j(0x83)+this[j(0x80)][j(0x84)]+j(0x7f)),'You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.';const b=a[j(0x89)](',\x20');return this[j(0x7c)][j(0x76)](j(0x83)+this[j(0x80)][j(0x84)]+'\x20found\x20the\x20following\x20items:\x20'+b),'You\x20search\x20the\x20area\x20and\x20find:\x20'+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x146))/0x1+-parseInt(f(0x14b))/0x2*(parseInt(f(0x142))/0x3)+parseInt(f(0x13f))/0x4+parseInt(f(0x152))/0x5+-parseInt(f(0x156))/0x6+-parseInt(f(0x140))/0x7*(parseInt(f(0x144))/0x8)+parseInt(f(0x150))/0x9*(parseInt(f(0x13d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x70676));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x147)]()[h(0x14f)](h(0x13e))[h(0x147)]()['constructor'](a41a)[h(0x14f)](h(0x13e));});function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x13a;let f=c[d];return f;},a41d(a,b);}function a41c(){const k=['solve','inventory','2012550CclNiv','(((.+)+)+)+$','1949040NeNBYS','105847FhMUWp','currentLocation','11229RVibVk','logger','8CWjinf','puzzle','397068yFbwpW','toString','message','join','verb','412MdHNBF','write','rewardItem','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','search','36FKrKEf','toLowerCase','2438640oViEUx','actor','SolveCommand:\x20','success','818130tNRtDC','apply','execute','addItem'];a41c=function(){return k;};return a41c();}a41a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a41i(0x14a)]=a41i(0x13b);static ['description']='Attempt\x20to\x20solve\x20a\x20puzzle.';[a41i(0x158)](a){const j=a41i,b=a[j(0x149)]('\x20')[j(0x151)](),c=this[j(0x153)][j(0x141)];if(!c||!c['puzzle'])return this[j(0x143)][j(0x14c)]('SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.'),j(0x14e);const d=c[j(0x145)][j(0x13b)](b,this[j(0x153)][j(0x13c)]);return d[j(0x155)]&&c[j(0x145)][j(0x14d)]&&this['actor'][j(0x13c)][j(0x13a)](c[j(0x145)][j(0x14d)]),this[j(0x143)][j(0x14c)](j(0x154)+d[j(0x148)]),d[j(0x148)];}}
|
|
@@ -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(0x194))/0x2*(-parseInt(f(0x191))/0x3)+parseInt(f(0x195))/0x4+-parseInt(f(0x199))/0x5*(parseInt(f(0x1a7))/0x6)+parseInt(f(0x183))/0x7*(parseInt(f(0x1aa))/0x8)+parseInt(f(0x1ab))/0x9*(parseInt(f(0x18a))/0xa)+-parseInt(f(0x189))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xa4485));function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x183;let f=c[d];return f;},a42d(a,b);}const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x192)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x1a2)]()[h(0x18c)]('(((.+)+)+)+$')[h(0x1a2)]()[h(0x19e)](a42a)[h(0x18c)](h(0x1a0));});a42a();import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']=a42i(0x190);static [a42i(0x187)]=a42i(0x1ad);[a42i(0x1a4)](a){const j=a42i;return this['logger']['write'](j(0x18d)+a['join']('\x20')),this['take'](a);}[a42i(0x190)](a){const k=a42i,b=a['join']('\x20')[k(0x197)](),c=this['actor'][k(0x198)];if(!c[k(0x18e)][k(0x19c)](b))return this[k(0x18b)][k(0x186)](k(0x19d)+b+k(0x19b)+c['name']+k(0x1a8)),k(0x1a6)+b+k(0x19a);const d=c[k(0x18e)][k(0x196)](b);if(!d)return this['logger'][k(0x186)](k(0x19d)+b+k(0x193)+c[k(0x185)]+k(0x1ae)),k(0x1a6)+b+k(0x19a);try{return this['actor'][k(0x1a5)](d),this['logger'][k(0x186)](k(0x1a3)+b+k(0x188)+this[k(0x19f)][k(0x185)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c['inventory'][k(0x18f)](b),this[k(0x18b)][k(0x186)]('Successfully\x20removed\x20\x22'+b+k(0x184)+c[k(0x185)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this['logger'][k(0x186)](k(0x1a9)+e[k(0x1a1)]),'The\x20item\x20\x22'+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}function a42c(){const l=['actor','(((.+)+)+)+$','message','toString','Successfully\x20added\x20\x22','execute','addInventory','There\x20is\x20no\x20item\x20\x22','7745448HzOfvH','\x20during\x20\x27Take\x27\x20command.','Error\x20during\x20\x27Take\x27\x20command:\x20','664ABxgzg','3311604DUyEuc','1154112mbwAve','Pick\x20up\x20an\x20item.','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','31969IyegEU','\x22\x20from\x20','name','write','description','\x22\x20to\x20','11135212UVOEKA','20RAQGmz','logger','search','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','inventory','removeItem','take','12114THsBDO','apply','\x22\x20not\x20retrieved\x20from\x20','302TdPYkZ','5267016CPkudV','getItem','toLowerCase','currentLocation','5NRtPwn','\x22\x20in\x20this\x20room.','\x22\x20not\x20found\x20in\x20','hasItem','Item\x20\x22','constructor'];a42c=function(){return l;};return a42c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a43c(){const j=['verb','description','361858nSOlBa','name','271655SBTlbA','24blKHKe','12858RQeneb','logger','join','Unequip\x20an\x20item.','(((.+)+)+)+$','125lyUyPQ','10928dnbaIo','toString','toLowerCase','unqeuip','search','write','8sWmwtN','1493316bZtztH','\x20unqeuiped\x20','656670aFcqwB','constructor','execute','unequip','684271wcRaIg'];a43c=function(){return j;};return a43c();}const a43h=a43d;function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0xc5;let f=c[d];return f;},a43d(a,b);}(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0xd0))/0x1+-parseInt(f(0xce))/0x2+-parseInt(f(0xd1))/0x3*(parseInt(f(0xd8))/0x4)+-parseInt(f(0xd7))/0x5*(parseInt(f(0xd2))/0x6)+parseInt(f(0xcb))/0x7*(parseInt(f(0xde))/0x8)+parseInt(f(0xc5))/0x9+-parseInt(f(0xc7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x34139));const a43b=(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;};}()),a43a=a43b(this,function(){const g=a43d;return a43a[g(0xd9)]()[g(0xdc)](g(0xd6))['toString']()[g(0xc8)](a43a)[g(0xdc)](g(0xd6));});a43a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a43h(0xcc)]=a43h(0xdb);static [a43h(0xcd)]=a43h(0xd5);[a43h(0xc9)](a){const i=a43h,b=a[i(0xd4)]('\x20')[i(0xda)](),c=this['actor'][i(0xca)](b);return this[i(0xd3)][i(0xdd)]('UnequipCommand:\x20'+this['actor'][i(0xcf)]+i(0xc6)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=-parseInt(h(0x108))/0x1+-parseInt(h(0xf3))/0x2+-parseInt(h(0xf5))/0x3*(parseInt(h(0x107))/0x4)+-parseInt(h(0xfa))/0x5*(parseInt(h(0x114))/0x6)+parseInt(h(0x118))/0x7*(-parseInt(h(0x105))/0x8)+parseInt(h(0x100))/0x9*(-parseInt(h(0xf4))/0xa)+parseInt(h(0x116))/0xb*(parseInt(h(0xfb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xcac18));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x11a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a['toString']()['search'](j(0x106))['toString']()[j(0xf2)](a44a)[j(0xff)](j(0x106));});a44a();import{Door}from'../models/door.js';import{Command}from'./command.js';function a44c(){const n=['10YYAasQ','4832736FesiHM','Unlock\x20a\x20door.','write','actor','search','576lxhVql','length','description','getItem','\x22\x20here.','368rpTBtA','(((.+)+)+)+$','1039628rzNnDX','751869YXoVLG','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','inventory','.\x20Result:\x20','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','logger','UnlockCommand:\x20No\x20target\x20specified.','unlockItemOrSolution','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','execute','has','toLowerCase','2524182iOvqhG','exits','209kStklY','name','252455TWUqxr','UnlockCommand:\x20','apply','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','get','constructor','2520674lyzIvW','117080SbFjUK','18YWnTuE','currentLocation','isValidDirection','unlock','There\x27s\x20no\x20door\x20named\x20\x22'];a44c=function(){return n;};return a44c();}function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xf1;let f=c[d];return f;},a44d(a,b);}export class UnlockCommand extends Command{static ['verb']=a44k(0xf8);static [a44k(0x102)]=a44k(0xfc);[a44k(0x111)](a){const l=a44k;return this[l(0xf8)](a);}[a44k(0xf8)](a){const m=a44k;if(a[m(0x101)]===0x0)return this[m(0x10d)]['error'](m(0x10e)),m(0x10c);const b=a[0x0][m(0x113)](),c=this[m(0xfe)][m(0xf6)];if(this[m(0xf7)](b)&&c['exits'][m(0x112)](b)){const d=c[m(0x115)][m(0xf1)](b);if(d instanceof Door){const e=d[m(0x10f)]?.['toLowerCase']();if(e&&this[m(0xfe)]['inventory']['hasItem'](e)){const f=this[m(0xfe)][m(0x10a)][m(0x103)](e);if(f){const g=c['attemptUnlockExit'](b,f[m(0x117)]);return this[m(0x10d)][m(0xfd)](m(0x119)+this[m(0xfe)][m(0x117)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+m(0x10b)+g),g;}}return this['logger']['write'](m(0x119)+this[m(0xfe)]['name']+m(0x109)+b+'.'),m(0x11b);}else return this[m(0x10d)][m(0xfd)](m(0x119)+b+m(0x110)+c[m(0x117)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+m(0x104);}else return this[m(0x10d)][m(0xfd)](m(0x119)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[m(0x117)]+'.'),m(0xf9)+b+m(0x104);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45i=a45d;
|
|
1
|
+
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0x190))/0x1*(parseInt(f(0x1a6))/0x2)+-parseInt(f(0x1aa))/0x3*(parseInt(f(0x193))/0x4)+parseInt(f(0x19c))/0x5*(parseInt(f(0x1a2))/0x6)+parseInt(f(0x1a9))/0x7+parseInt(f(0x18e))/0x8*(-parseInt(f(0x1a5))/0x9)+-parseInt(f(0x19a))/0xa+parseInt(f(0x1ad))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xa5234));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x196)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x1a8)]()[h(0x1ac)](h(0x19b))[h(0x1a8)]()[h(0x1ab)](a45a)[h(0x1ac)](h(0x19b));});a45a();function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x18a;let f=c[d];return f;},a45d(a,b);}import{Command}from'./command.js';function a45c(){const l=['toString','1502452mGVHRs','24FGvWoM','constructor','search','17075949tOOvUN','write','\x20doesn\x27t\x20have\x20a\x20use\x20method.','join','Use\x20an\x20item.','execute','name','8615960VLoIDo','logger','307OTyZAA','\x20to\x20use.','function','567712WUrNGl','actor','use','apply','UseCommand:\x20','\x27s\x20inventory.','verb','8812620fEKgKo','(((.+)+)+)+$','5AGSoSW','inventory','hasItem','\x20attempted\x20to\x20use\x20',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','You\x20don\x27t\x20have\x20the\x20','7437486WPXHDJ','\x20not\x20retrieved\x20from\x20','You\x20can\x27t\x20use\x20the\x20','9xQxrih','4974HEGpWJ','\x20used\x20'];a45c=function(){return l;};return a45c();}export class UseCommand extends Command{static [a45i(0x199)]=a45i(0x195);static ['description']=a45i(0x18b);[a45i(0x18c)](a){const j=a45i;return this[j(0x195)](a);}['use'](a){const k=a45i,b=a[k(0x18a)]('\x20')['toLowerCase']();if(!this[k(0x194)]['inventory'][k(0x19e)](b))return this['logger'][k(0x1ae)](k(0x197)+this['actor'][k(0x18d)]+k(0x19f)+b+k(0x1a0)),k(0x1a1)+b+k(0x191);const c=this[k(0x194)][k(0x19d)]['getItem'](b);if(!c)return this[k(0x18f)][k(0x1ae)](k(0x197)+b+k(0x1a3)+this[k(0x194)]['name']+k(0x198)),k(0x1a1)+b+k(0x191);if(typeof c[k(0x195)]===k(0x192)){const d=c[k(0x195)]();return this[k(0x18f)][k(0x1ae)]('UseCommand:\x20'+this[k(0x194)][k(0x18d)]+k(0x1a7)+b+'.'),d;}else return this[k(0x18f)]['write']('UseCommand:\x20'+b+k(0x1af)),k(0x1a4)+b+'\x20in\x20this\x20way.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46h=a46d;function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0xf5;let f=c[d];return f;},a46d(a,b);}(function(a,b){const f=a46d,c=a();while(!![]){try{const d=parseInt(f(0x100))/0x1*(-parseInt(f(0xfc))/0x2)+parseInt(f(0xfa))/0x3+parseInt(f(0x106))/0x4+-parseInt(f(0xff))/0x5+parseInt(f(0x101))/0x6*(parseInt(f(0x104))/0x7)+parseInt(f(0xf8))/0x8*(parseInt(f(0xfe))/0x9)+parseInt(f(0xfb))/0xa*(-parseInt(f(0x105))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x2a613));const a46b=(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;};}()),a46a=a46b(this,function(){const g=a46d;return a46a['toString']()[g(0xf5)](g(0xf6))[g(0x102)]()[g(0x103)](a46a)[g(0xf5)](g(0xf6));});function a46c(){const k=['271275hQVXCg','1CTCssD','6HwidYu','toString','constructor','1872073kippQt','11jHGVZO','1305428GyIXKT','search','(((.+)+)+)+$','commandMap','9544iIugRs','createCommand','875382QTIAgf','6102260uiVhbu','493506iebNHi','getAllRegisteredCommands','1503UXvymm'];a46c=function(){return k;};return a46c();}a46a();export class CommandFactory{static [a46h(0xf7)]={};static['registerCommand'](a,b){const i=a46h;this[i(0xf7)][a]=b;}static[a46h(0xf9)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static[a46h(0xfd)](){const j=a46h;return this[j(0xf7)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47j=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x183))/0x1+-parseInt(f(0x182))/0x2+-parseInt(f(0x184))/0x3+parseInt(f(0x188))/0x4*(parseInt(f(0x177))/0x5)+-parseInt(f(0x176))/0x6*(-parseInt(f(0x173))/0x7)+-parseInt(f(0x17c))/0x8*(-parseInt(f(0x185))/0x9)+-parseInt(f(0x16d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x59f2d));const a47b=(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;};}()),a47a=a47b(this,function(){const g=a47d;return a47a[g(0x17f)]()[g(0x178)](g(0x186))[g(0x17f)]()['constructor'](a47a)[g(0x178)](g(0x186));});a47a();import{Room,Puzzle,Inventory}from'../models/_index.js';function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x16c;let f=c[d];return f;},a47d(a,b);}function a47c(){const m=['toUpperCase','items','toString','addItem','isStartRoom','411814WehWlQ','446845OVXhRr','1838670NBhanh','5776902GwGFLw','(((.+)+)+)+$','roomType','8CsZuoM','inventory','convertToRoomConfig','description','puzzle','2784770PhTBtg','rifle','name','setPuzzle','createPuzzle','book','1313347VTYuDd','boots','createItem','12hceikT','4345PemIdA','search','content','type','gloves','8LiuSnm'];a47c=function(){return m;};return a47c();}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 h=a47d,b=this[h(0x18a)](a),c=new Room(b);if(a[h(0x17e)]){const d=new Inventory();a[h(0x17e)]['forEach'](e=>{const i=h;d[i(0x180)](this[i(0x175)](e));}),c[h(0x189)]=d;}return a[h(0x16c)]&&c[h(0x170)](this[h(0x171)](a['puzzle'])),c;}[a47j(0x175)](a){const k=a47j;switch(a[k(0x17a)]){case'key':return new Key(a[k(0x16f)],a[k(0x18b)]);case k(0x172):return new Book(a[k(0x16f)],a[k(0x18b)],a[k(0x179)]);case'sword':return new Sword(a[k(0x16f)],a[k(0x18b)]);case k(0x16e):return new Rifle(a[k(0x16f)],a[k(0x18b)]);case'helmet':return new Helmet(a['name'],a[k(0x18b)]);case'bodyarmor':return new BodyArmor(a['name'],a['description']);case'legarmor':return new LegArmor(a[k(0x16f)],a[k(0x18b)]);case k(0x174):return new Boots(a['name'],a[k(0x18b)]);case k(0x17b):return new Gloves(a['name'],a['description']);case'gauntlets':return new Gauntlets(a['name'],a['description']);default:return new BasicItem(a[k(0x16f)],a[k(0x18b)]);}}['createPuzzle'](a){const b=this['createItem'](a['rewardItem']);return new Puzzle({...a,'rewardItem':b});}[a47j(0x18a)](a){const l=a47j,b=a[l(0x187)]&&RoomType[a['roomType'][l(0x17d)]()]?RoomType[a[l(0x187)]['toUpperCase']()]:RoomType['INSIDE'];return{'name':a['name'],'description':a[l(0x18b)],'isStartRoom':a[l(0x181)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d
|
|
1
|
+
function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x170;let f=c[d];return f;},a48d(a,b);}const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=parseInt(h(0x180))/0x1*(parseInt(h(0x172))/0x2)+-parseInt(h(0x19b))/0x3*(-parseInt(h(0x195))/0x4)+-parseInt(h(0x1a1))/0x5+-parseInt(h(0x176))/0x6*(-parseInt(h(0x194))/0x7)+parseInt(h(0x17d))/0x8+-parseInt(h(0x18a))/0x9*(-parseInt(h(0x175))/0xa)+parseInt(h(0x186))/0xb*(-parseInt(h(0x17b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x3068d));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a[j(0x18c)]()[j(0x199)](j(0x181))[j(0x18c)]()[j(0x197)](a48a)[j(0x199)](j(0x181));});a48a();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';function a48c(){const s=['4lZidfN','registerCommands','constructor','getDescription','search','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','363861cnztxc','clear','lock','Available\x20Commands:\x0a','getRooms','createCommand','791280IRFHsi','scene','determineStartRoom','instance','getInstance','currentLocation','rooms','82cKrRBj','trim','-\x20quit:\x20Exit\x20the\x20game.\x0a','10sXDPoL','240690uplarY','unlock','drop','slice','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','684MXWMor','use','3025176zyNGRl','equip','handleInput','1198xmNhqa','(((.+)+)+)+$','currentRoom','getWelcomeMessage','split','initialize','54725VFTCzr','player','hasOwnProperty','solve','463041VDjJda','take','toString','look','registerCommand','apply','getHelpMessage','say','quit','execute','7oDncPG'];a48c=function(){return s;};return a48c();}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(0x1a4)];[a48k(0x1a2)];['player'];[a48k(0x182)];[a48k(0x171)];constructor(a,b){const l=a48k;this[l(0x187)]=a,this[l(0x1a2)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x1a2)][l(0x185)](),this['player'][l(0x170)]=this[l(0x1a3)](),this[l(0x196)]();}[a48k(0x196)](){const m=a48k;CommandFactory[m(0x18e)](m(0x18d),LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory[m(0x18e)](m(0x18b),TakeCommand),CommandFactory['registerCommand'](m(0x17c),UseCommand),CommandFactory['registerCommand'](m(0x17e),EquipCommand),CommandFactory[m(0x18e)]('unequip',UnequipCommand),CommandFactory['registerCommand'](m(0x189),SolveCommand),CommandFactory[m(0x18e)](m(0x178),DropCommand),CommandFactory[m(0x18e)](m(0x177),UnlockCommand),CommandFactory['registerCommand'](m(0x19d),LockCommand),CommandFactory[m(0x18e)](m(0x199),SearchCommand),CommandFactory['registerCommand'](m(0x191),SayCommand);}[a48k(0x1a3)](){const n=a48k;return this[n(0x1a2)]['determineStartRoom']();}[a48k(0x183)](){const o=a48k;return'Welcome,\x20'+this[o(0x187)]['name'];}static[a48k(0x1a5)](a,b){const p=a48k;return!Game[p(0x1a4)]&&(Game[p(0x1a4)]=new Game(a,b)),Game[p(0x1a4)];}[a48k(0x17f)](a){const q=a48k,b=a[q(0x173)]()[q(0x184)]('\x20'),c=b[0x0]['toLowerCase'](),d=b[q(0x179)](0x1);if(c===q(0x192))return null;if(c==='maka')return q(0x19a);if(c==='help')return this['getHelpMessage']();if(c===q(0x19c))return'';const e={'actor':this[q(0x187)],'rooms':this[q(0x1a2)][q(0x19f)](),'scene':this[q(0x1a2)]},f=CommandFactory[q(0x1a0)](c,e);if(f){const g=f[q(0x193)](d);return g;}return q(0x17a)+c+'\x22.';}[a48k(0x190)](){const r=a48k,a=CommandFactory['getAllRegisteredCommands']();let b=r(0x19e);for(const c in a){if(a[r(0x188)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x198)]()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+=r(0x174),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(0x1c3))/0x1+-parseInt(f(0x1ba))/0x2+-parseInt(f(0x1b7))/0x3+parseInt(f(0x1bd))/0x4+parseInt(f(0x1b9))/0x5*(parseInt(f(0x1c2))/0x6)+parseInt(f(0x1be))/0x7*(-parseInt(f(0x1bc))/0x8)+parseInt(f(0x1bb))/0x9*(parseInt(f(0x1c0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xd3079));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1c1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x1b6)]()['search'](h(0x1b8))[h(0x1b6)]()['constructor'](a49a)[h(0x1bf)](h(0x1b8));});a49a();export*from'./door.js';export*from'./inventory.js';function a49c(){var i=['6085764qpKVgy','37870ZQDWMl','search','20YByGdx','apply','6GWjTXn','658225EFwodM','toString','4119975LGTtir','(((.+)+)+)+$','2767815fonASd','2606962GvIvns','5851188nDUFqr','728azPjrl'];a49c=function(){return i;};return a49c();}export*from'./item.js';export*from'./npc.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1b6;var f=c[d];return f;},a49d(a,b);}export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a50c(){var n=['5zqhnnX','12468ypvnDt','1vjPpox','1138461QQVkeT','write','checkIfLockable','isLockable','.\x20Used:\x20','roomB','roomA','358092uWTIuI','Failed\x20to\x20unlock\x20door:\x20','name','.\x20Is\x20Locked:\x20','isLocked','logger','Door\x20created\x20between\x20','unlockItemOrSolution','29557LtWeht','constructor','4747660qShrFH','To\x20','getOtherSide','\x20and\x20','Door\x20unlocked:\x20','search','4711362kbePju','checkIfLocked','(((.+)+)+)+$','128ZLffXS','toString','1195674PXPOQN','getInstance','12eOreOU','1291766xzmfpQ'];a50c=function(){return n;};return a50c();}var a50h=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=-parseInt(f(0x1a0))/0x1*(-parseInt(f(0x19a))/0x2)+parseInt(f(0x1a1))/0x3*(parseInt(f(0x19c))/0x4)+parseInt(f(0x19e))/0x5*(parseInt(f(0x195))/0x6)+-parseInt(f(0x19d))/0x7+-parseInt(f(0x198))/0x8*(-parseInt(f(0x1a8))/0x9)+parseInt(f(0x18f))/0xa+parseInt(f(0x18d))/0xb*(-parseInt(f(0x19f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xa04b8));function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x186;var f=c[d];return f;},a50d(a,b);}var a50b=(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;};}()),a50a=a50b(this,function(){var g=a50d;return a50a[g(0x199)]()['search'](g(0x197))['toString']()[g(0x18e)](a50a)[g(0x194)](g(0x197));});a50a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a50h(0x1a7)];[a50h(0x1a6)];['isLocked'];[a50h(0x18c)];[a50h(0x187)];['logger'];['isLockable'];constructor(a){var i=a50h;super(),this[i(0x1a7)]=a['roomA'],this[i(0x1a6)]=a[i(0x1a6)],this[i(0x189)]=a[i(0x189)]||![],this[i(0x18c)]=a[i(0x18c)],this[i(0x187)]=a[i(0x187)]?capitalCase(a[i(0x187)]):i(0x190)+a[i(0x1a6)]['name'],this['logger']=Logger[i(0x19b)](),this['isLockable']=!!a[i(0x18c)],this[i(0x18a)][i(0x1a2)](i(0x18b)+this[i(0x1a7)]['name']+i(0x192)+this['roomB'][i(0x187)]+i(0x188)+this[i(0x189)]);}[a50h(0x191)](a){var j=a50h;return this[j(0x1a7)]===a?this[j(0x1a6)]:this['roomA'];}['attemptUnlock'](a){var k=a50h;if(this[k(0x189)]&&this[k(0x18c)]&&this[k(0x18c)]===a)return this[k(0x189)]=![],this['logger'][k(0x1a2)](k(0x193)+this['name']+k(0x1a5)+a),!![];return this[k(0x18a)][k(0x1a2)](k(0x186)+this[k(0x187)]+k(0x1a5)+a),![];}[a50h(0x196)](){var l=a50h;return this[l(0x189)];}[a50h(0x1a3)](){var m=a50h;return this[m(0x1a4)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51h=a51d;function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a51d(a,b);}(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x1d0))/0x1+-parseInt(f(0x1d1))/0x2*(parseInt(f(0x1d7))/0x3)+parseInt(f(0x1e4))/0x4*(-parseInt(f(0x1cf))/0x5)+parseInt(f(0x1e7))/0x6*(-parseInt(f(0x1e8))/0x7)+-parseInt(f(0x1e9))/0x8+-parseInt(f(0x1ce))/0x9*(-parseInt(f(0x1ec))/0xa)+parseInt(f(0x1ca))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xda613));const a51b=(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;};}()),a51a=a51b(this,function(){const g=a51d;return a51a[g(0x1d9)]()[g(0x1eb)](g(0x1cb))[g(0x1d9)]()[g(0x1e2)](a51a)[g(0x1eb)](g(0x1cb));});a51a();import{capitalCase}from'change-case';function a51c(){const q=['121252FENZgP','Failed\x20to\x20remove\x20item:\x20','join','2543334KLeyKY','21bdLKDF','11447544RCkGwc','values','search','46150yqbVLg','weight','keys','getItem','Checked\x20for\x20item:\x20','set','items','64484343ToxnAr','(((.+)+)+)+$','get','.\x20Item\x20not\x20found.','81AakFZS','135IJZelg','658189ClEYft','87370fKwYuB','\x20from\x20inventory.','Listed\x20items\x20in\x20inventory:\x20','getWeight','\x20in\x20','map','57Raogic','removeItem','toString','logger','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','write','getAllItems','Retrieved\x20details\x20for\x20item:\x20','toLowerCase','name','has','constructor','getInstance'];a51c=function(){return q;};return a51c();}import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a51h(0x1c9)];['logger'];constructor(){const i=a51h;super(),this[i(0x1c9)]=new Map(),this['logger']=Logger[i(0x1e3)]();}['addItem'](a){const j=a51h;this[j(0x1c9)][j(0x1c8)](a[j(0x1e0)]['toLowerCase'](),a),this['logger'][j(0x1dc)]('Added\x20item:\x20'+a[j(0x1e0)]+'\x20to\x20inventory.');}[a51h(0x1d8)](a){const k=a51h,b=this['getItem'](a);if(b)return this[k(0x1c9)]['delete'](a['toLowerCase']()),this[k(0x1da)][k(0x1dc)]('Removed\x20item:\x20'+a+k(0x1d2)),b;return this[k(0x1da)][k(0x1dc)](k(0x1e5)+a+k(0x1cd)),null;}['hasItem'](a){const l=a51h,b=this['items'][l(0x1e1)](a[l(0x1df)]()),c=[...this[l(0x1c9)][l(0x1c5)]()];return this[l(0x1da)][l(0x1dc)](l(0x1c7)+a+l(0x1d5)+c[l(0x1e6)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}[a51h(0x1c6)](a){const m=a51h,b=this['items'][m(0x1cc)](a['toLowerCase']())||null;return b?this[m(0x1da)][m(0x1dc)](m(0x1de)+a+'.'):this[m(0x1da)]['write'](m(0x1db)+a+m(0x1cd)),b;}['listItems'](){const n=a51h,a=[...this[n(0x1c9)][n(0x1c5)]()],b=a[n(0x1d6)](c=>capitalCase(c));return this['logger'][n(0x1dc)](n(0x1d3)+b[n(0x1e6)](',\x20')+'.'),a;}[a51h(0x1d4)](){const o=a51h;let a=0x0;for(const b of this['items'][o(0x1ea)]()){a+=b[o(0x1c4)];}return a;}[a51h(0x1dd)](){const p=a51h;return[...this[p(0x1c9)][p(0x1ea)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a52c(){var k=['282205cyOsSp','3YPGJmX','description','(((.+)+)+)+$','47107990uuzjXB','category','uuid','size','3485242KDWOmL','78BZpPuI','texture','You\x20use\x20the\x20','name','rating','weight','toString','constructor','2279336CCwiqG','search','21EqliuL','color','shape','11FHIERd','2400456wWHloL','13160916BBTCWB','1346420vLJSlK'];a52c=function(){return k;};return a52c();}var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x1f1))/0x1+-parseInt(f(0x1e0))/0x2+-parseInt(f(0x1f3))/0x3*(-parseInt(f(0x1ef))/0x4)+-parseInt(f(0x1f2))/0x5*(parseInt(f(0x1e1))/0x6)+parseInt(f(0x1eb))/0x7*(parseInt(f(0x1e9))/0x8)+-parseInt(f(0x1f0))/0x9+parseInt(f(0x1f6))/0xa*(parseInt(f(0x1ee))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xd6fb6));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(0x1e7)]()['search'](g(0x1f5))['toString']()[g(0x1e8)](a52a)[g(0x1ea)](g(0x1f5));});function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x1de;var f=c[d];return f;},a52d(a,b);}a52a();import{v4 as a52e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{['uuid'];[a52h(0x1e4)];[a52h(0x1f4)];[a52h(0x1df)];['category'];[a52h(0x1ed)];['color'];[a52h(0x1e2)];[a52h(0x1e5)];[a52h(0x1e6)];constructor(a){var i=a52h;super(),this['name']=a[i(0x1e4)],this[i(0x1f4)]=a[i(0x1f4)],this[i(0x1df)]=a[i(0x1df)],this[i(0x1f7)]=a[i(0x1f7)],this[i(0x1ed)]=a['shape'],this['color']=a[i(0x1ec)],this['texture']=a['texture'],this[i(0x1e5)]=a[i(0x1e5)],this[i(0x1e6)]=a['weight'],this[i(0x1de)]=a52e();}['use'](){var j=a52h;return j(0x1e3)+this[j(0x1e4)]+'.\x20Nothing\x20special\x20happens.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x1e3))/0x1+parseInt(f(0x1e8))/0x2+parseInt(f(0x1f2))/0x3+parseInt(f(0x1f6))/0x4+parseInt(f(0x1f1))/0x5+-parseInt(f(0x1eb))/0x6+-parseInt(f(0x1ec))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x31481));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a['toString']()[h(0x1f5)](h(0x1ed))[h(0x1ef)]()[h(0x1e2)](a53a)['search'](h(0x1ed));});a53a();function a53c(){const n=['apply','_name','constructor','355420gkcASD','length','_dialogue','name','moveTo','446734TXgqDZ','floor','random','1113516NJErXr','2323062LjVbLS','(((.+)+)+)+$','execute','toString','autonomousMove','581570AqBndM','1146066YbQDwu','rooms','speak','search','1412104RkSFKj'];a53c=function(){return n;};return a53c();}import{Player}from'./player.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a53d(a,b);}import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a53i(0x1e1)];[a53i(0x1e5)];[a53i(0x1f3)];['scene'];constructor(a,b,c,d){const j=a53i;super(d),this[j(0x1e1)]=a,this[j(0x1e5)]=b,this['rooms']=c;}get['name'](){return this['_name'];}[a53i(0x1f4)](){const k=a53i;return this[k(0x1e5)][Math[k(0x1e9)](Math[k(0x1ea)]()*this[k(0x1e5)]['length'])];}[a53i(0x1f0)](a){const l=a53i,b=a[Math[l(0x1e9)](Math[l(0x1ea)]()*a[l(0x1e4)])];this[l(0x1e7)](b[l(0x1e6)]);}[a53i(0x1e7)](a){const m=a53i,b={'actor':this,'rooms':this[m(0x1f3)],'scene':this['scene']},c=new GoCommand(b);c[m(0x1ee)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54h=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a54d(a,b);}const a54h=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d=parseInt(f(0x20d))/0x1+-parseInt(f(0x203))/0x2*(-parseInt(f(0x1f0))/0x3)+-parseInt(f(0x214))/0x4*(parseInt(f(0x1e3))/0x5)+-parseInt(f(0x239))/0x6+-parseInt(f(0x1e4))/0x7*(parseInt(f(0x223))/0x8)+parseInt(f(0x236))/0x9*(parseInt(f(0x1e6))/0xa)+parseInt(f(0x1f1))/0xb*(parseInt(f(0x1f5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x2d88b));const a54b=(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;};}()),a54a=a54b(this,function(){const g=a54d;return a54a['toString']()[g(0x235)](g(0x22c))[g(0x204)]()[g(0x241)](a54a)[g(0x235)](g(0x22c));});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';function a54c(){const B=['torso','currentLocation','hasItem','_currentLocation','leaveRoom','currentWeight','category','BodyArmor','speak','unequipBySlot','2xuDEwp','toString','You\x20don\x27t\x20have\x20','hear','Removed\x20','leftHand','Failed\x20to\x20remove\x20','Boots','ArmArmor','determineEquipmentSlot','189717cCiAtp','name','_playerName','removeItem','leg\x20armor','Helmet','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','627652wPLzex','feet','addInventory','equipment','LegArmor','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','shield','Invalid\x20category\x20or\x20slot:\x20','values','You\x20can\x27t\x20equip\x20','You\x20unequipped\x20','removeInventory','armarmor','write','equip','1096nyCSpi','_maxCarryingWeight','startLocation','bind','arms','canEquip','_inventory','Max\x20carrying\x20weight\x20must\x20be\x20positive.','gloves','(((.+)+)+)+$','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','\x20slot.','getWeight','Hat','_equipment','rightHand','weight','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','search','27ijIZgR','A\x20featureless\x20room','.\x20You\x20must\x20unequip\x20it\x20first.','1653438jnlwTr','\x20says:\x20\x22','arm\x20armor','Gloves','enterRoom','log','\x20from\x20player\x27s\x20inventory.','legs','constructor','10JhBvXP','11949jMTRVs','initialEquipment','626150ZeaEBd','helmet','addItem','inventoryItems','playerName','unequip','toLowerCase','head','bodyarmor','maxCarryingWeight','632943voKIFj','11DVjnJt','hat','legarmor','logger','5054664oMbzBi','Added\x20','error','\x20is\x20no\x20longer\x20listeng\x20in\x20'];a54c=function(){return B;};return a54c();}export class Player extends AbstractPlayer{['_playerName'];[a54h(0x1fc)];['_inventory'];[a54h(0x231)];[a54h(0x224)]=0x32;['logger'];constructor(a){const i=a54h;super(),this[i(0x20f)]=a[i(0x1ea)],this[i(0x1fc)]=a[i(0x225)]||new Room({'name':'Nexus','description':i(0x237)}),this[i(0x229)]=new Inventory(),this[i(0x1f4)]=Logger['getInstance']();if(a?.['inventoryItems'])for(const b of a[i(0x1e9)]){this[i(0x229)][i(0x1e8)](b);}this[i(0x231)]=a?.[i(0x1e5)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54h(0x20e)](){const j=a54h;return this[j(0x20f)];}get[a54h(0x1fa)](){const k=a54h;return this[k(0x1fc)];}set[a54h(0x1fa)](a){const l=a54h;this['_currentLocation']!==a&&(this[l(0x1fd)](),this[l(0x23d)](a)),this[l(0x1fc)]=a;}get['inventory'](){return this['_inventory'];}get[a54h(0x217)](){const m=a54h;return this[m(0x231)];}set[a54h(0x217)](a){const n=a54h;this[n(0x231)]=a;}get[a54h(0x1ef)](){const o=a54h;return this[o(0x224)];}set[a54h(0x1ef)](a){const p=a54h;a>0x0?this[p(0x224)]=a:console[p(0x1f7)](p(0x22a));}get[a54h(0x1fe)](){const q=a54h;let a=this[q(0x229)][q(0x22f)]();for(const b in this[q(0x231)]){const c=this[q(0x231)][b];c&&(a+=c[q(0x233)]);}return a;}[a54h(0x216)](a){const r=a54h;if(this[r(0x1fe)]+a[r(0x233)]>this['maxCarryingWeight']){this[r(0x1f4)]['write'](r(0x213));throw new Error(r(0x22d));}this[r(0x229)][r(0x1e8)](a),this[r(0x1f4)][r(0x221)](r(0x1f6)+a[r(0x20e)]+'\x20to\x20player\x27s\x20inventory.');}[a54h(0x21f)](a){const s=a54h;if(this[s(0x229)][s(0x210)](a['name']))return this[s(0x1f4)][s(0x221)](s(0x207)+a[s(0x20e)]+s(0x23f)),!![];return this[s(0x1f4)][s(0x221)](s(0x209)+a[s(0x20e)]+s(0x23f)),![];}[a54h(0x222)](a){const t=a54h;if(!this['_inventory'][t(0x1fb)](a['name']))return t(0x205)+a['name']+'\x20in\x20your\x20inventory.';if(!this[t(0x228)](a))return t(0x21d)+a[t(0x20e)]+'.';const b=this['determineEquipmentSlot'](a[t(0x1ff)]);if(!b)return a['name']+'\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.';if(this['equipment'][b])return t(0x219)+b+t(0x238);return this[t(0x217)][b]=a,this[t(0x21f)](a),'You\x20equipped\x20'+a[t(0x20e)]+'.';}[a54h(0x1eb)](a){const u=a54h;let b=a;if(!this[u(0x217)][camelCase(b)]){b=this[u(0x20c)](a);if(!b)return u(0x21b)+a+'.';}return this[u(0x202)](b);}['determineEquipmentSlot'](a){const v=a54h;switch(a[v(0x1ec)]()){case Category['Weapon'][v(0x1ec)]():return v(0x232);case Category['Shield'][v(0x1ec)]():return v(0x208);case Category[v(0x23c)]['toLowerCase']():return v(0x22b);case Category[v(0x212)][v(0x1ec)]():case Category[v(0x230)][v(0x1ec)]():return v(0x1ed);case Category[v(0x20a)]['toLowerCase']():return v(0x215);case Category[v(0x218)][v(0x1ec)]():return'legs';case Category[v(0x20b)][v(0x1ec)]():return v(0x227);case Category[v(0x200)][v(0x1ec)]():return v(0x1f9);case'weapon':return v(0x232);case v(0x21a):return'leftHand';case'gloves':return v(0x22b);case v(0x1e7):case v(0x1f2):return'head';case'boots':return v(0x215);case v(0x211):case v(0x1f3):return v(0x240);case v(0x23b):case v(0x220):return'arms';case'body\x20armor':case v(0x1ee):case v(0x1f9):return v(0x1f9);default:return null;}}['canEquip'](a){const w=a54h;return Object[w(0x21c)](Category)['includes'](a[w(0x1ff)]);}[a54h(0x202)](a){const x=a54h,b=this[x(0x217)][a];if(!b)return x(0x234)+a+x(0x22e);return this[x(0x216)](b),this[x(0x217)][a]=null,x(0x21e)+b[x(0x20e)]+'.';}[a54h(0x206)](a,b){const y=a54h;a!==this&&this[y(0x1f4)][y(0x23e)](a['name']+y(0x23a)+b+'\x22');}[a54h(0x23d)](a){const z=a54h;this[z(0x1fc)]=a,a['on']('speak',this[z(0x206)][z(0x226)](this)),this[z(0x1f4)][z(0x221)](this[z(0x20e)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[z(0x20e)]);}['leaveRoom'](){const A=a54h;this[A(0x1fc)]&&(this[A(0x1fc)]['off'](A(0x201),this[A(0x206)][A(0x226)](this)),this[A(0x1f4)]['write'](this[A(0x20e)]+A(0x1f8)+this[A(0x1fc)][A(0x20e)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d
|
|
1
|
+
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x14e))/0x1+-parseInt(f(0x135))/0x2*(-parseInt(f(0x144))/0x3)+-parseInt(f(0x134))/0x4*(-parseInt(f(0x13e))/0x5)+parseInt(f(0x142))/0x6*(parseInt(f(0x139))/0x7)+parseInt(f(0x141))/0x8*(parseInt(f(0x14c))/0x9)+-parseInt(f(0x152))/0xa*(-parseInt(f(0x13a))/0xb)+parseInt(f(0x13c))/0xc*(-parseInt(f(0x14a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x2c7a8));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x13b)]()[h(0x14f)](h(0x155))[h(0x13b)]()[h(0x149)](a55a)['search']('(((.+)+)+)+$');});a55a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';function a55c(){var n=['2499145JxuXaA','toString','12FxmhZm','getInstance','5qBqakf','hasRequiredItem','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','640688iErHWb','18822VdYuFs','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','3pcksNa','logger','requiredPhrase','hasItem','failureMessage','constructor','4065477aFltWe','successMessage','18SNheRG','Puzzle:\x20Correct\x20solution\x20provided.','245124kJRyAK','search','rewardItem','write','10EJmUPh','matchesRequiredPhrase','apply','(((.+)+)+)+$','359084hZfmuk','130536EkRydV','solved','riddle','requiredItem','441mifEJd'];a55c=function(){return n;};return a55c();}function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x134;var f=c[d];return f;},a55d(a,b);}export class Puzzle extends AbstractPuzzle{[a55i(0x145)]=Logger[a55i(0x13d)]();['solved']=![];[a55i(0x138)];[a55i(0x146)];[a55i(0x137)];[a55i(0x150)];[a55i(0x14b)];[a55i(0x148)];constructor(a){var j=a55i;super(),this[j(0x138)]=a[j(0x138)],this[j(0x146)]=a[j(0x146)],this['riddle']=a['riddle'],this[j(0x150)]=a['rewardItem'],this[j(0x14b)]=a[j(0x14b)]||'You\x20solved\x20the\x20puzzle!',this[j(0x148)]=a[j(0x148)]||j(0x143);}[a55i(0x13f)](a){var k=a55i;if(this[k(0x138)])return a[k(0x147)](this[k(0x138)]);return![];}[a55i(0x153)](a){var l=a55i;return this[l(0x146)]===a;}['solve'](a,b){var m=a55i;if(this[m(0x136)])return this[m(0x145)][m(0x151)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this['hasRequiredItem'](b)||this['matchesRequiredPhrase'](a)?(this[m(0x136)]=!![],this[m(0x145)][m(0x151)](m(0x14d)),{'success':!![],'message':this['successMessage']}):(this[m(0x145)][m(0x151)](m(0x140)),{'success':![],'message':this['failureMessage']});}}
|
|
@@ -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(0x199))/0x1*(-parseInt(f(0x188))/0x2)+parseInt(f(0x17d))/0x3+parseInt(f(0x1a4))/0x4*(-parseInt(f(0x185))/0x5)+parseInt(f(0x17e))/0x6*(-parseInt(f(0x19e))/0x7)+-parseInt(f(0x19f))/0x8+parseInt(f(0x1b3))/0x9+-parseInt(f(0x19d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x42bc9));function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x173;let f=c[d];return f;},a56d(a,b);}const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a[h(0x173)]()[h(0x180)](h(0x1ab))[h(0x173)]()[h(0x1b0)](a56a)['search'](h(0x1ab));});a56a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';function a56c(){const u=['apply','north','addExit','get','constructor','No\x20locked\x20exit\x20found\x20in\x20direction\x20','write','395343IOsBJO','toString','addItem','getInstance','Puzzle\x20set\x20for\x20room\x20','hasItem','Fetching\x20exit\x20in\x20direction:\x20','Checking\x20if\x20exit\x20in\x20direction\x20','Item\x20removed\x20from\x20room\x20','down','east','1606257GASqYi','317334kqpHqr','description','search','exits','getOppositeDirection','\x20remains\x20locked.','Room\x20created:\x20','49510DhngeO','Item\x20added\x20to\x20room\x20','getExit','88514IAgPRb','INSIDE','puzzle','say','SOUTH','roomA','setPuzzle','roomB','isExitLocked','\x20unlocked!','set','EAST','DOWN','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','riddle','inventory','roomType','10WDqmiz','isStartRoom','.\x20Success:\x20','\x20is\x20locked.\x20Result:\x20','3124630QCCGCc','42sVryjK','395616wMssnf','attemptUnlock','south','The\x20','WEST','28yjTbjo','logger','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','NORTH','west','name','speak','(((.+)+)+)+$'];a56c=function(){return u;};return a56c();}export class Room extends AbstractRoom{[a56i(0x1a5)]=Logger[a56i(0x175)]();[a56i(0x1a9)];[a56i(0x17f)];[a56i(0x181)]=new Map();[a56i(0x198)];['isStartRoom'];[a56i(0x197)]=new Inventory();constructor(a){const j=a56i;super(),this[j(0x1a9)]=a['name'],this['description']=a[j(0x17f)],this[j(0x198)]=a[j(0x198)]||RoomType[j(0x189)],a[j(0x181)]&&(this[j(0x181)]=a[j(0x181)]||new Map()),a[j(0x197)]&&(this[j(0x197)]=a[j(0x197)]),a[j(0x18a)]&&(this['puzzle']=a[j(0x18a)]),this[j(0x19a)]=a[j(0x19a)]||![],this[j(0x1a5)][j(0x1b2)](j(0x184)+this[j(0x1a9)]);}[a56i(0x18b)](a,b){const k=a56i;this['emit'](k(0x1aa),a,b);}[a56i(0x1ae)](a,b,c){const l=a56i;let d=this['findExistingDoor'](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x181)][l(0x192)](a,d),b[l(0x181)]['set'](this[l(0x182)](a),d);}['attemptUnlockExit'](a,b){const m=a56i,c=this[m(0x181)][m(0x1af)](a);if(c instanceof Door){const d=c[m(0x1a0)](b);return this[m(0x1a5)][m(0x1b2)](m(0x195)+a+m(0x19b)+d),d?m(0x1a2)+c[m(0x1a9)]+m(0x191):m(0x1a2)+c[m(0x1a9)]+m(0x183);}return this['logger'][m(0x1b2)](m(0x1b1)+a),m(0x1a6);}[a56i(0x187)](a){const n=a56i;return this[n(0x1a5)]['write'](n(0x178)+a),this[n(0x181)][n(0x1af)](a);}[a56i(0x190)](a){const o=a56i,b=this[o(0x181)]['get'](a),c=b instanceof Door&&b['checkIfLocked']();return this[o(0x1a5)][o(0x1b2)](o(0x179)+a+o(0x19c)+c),c;}['addItem'](a){const p=a56i;this['inventory'][p(0x174)](a),this[p(0x1a5)][p(0x1b2)](p(0x186)+this[p(0x1a9)]+':\x20'+a[p(0x1a9)]);}['removeItem'](a){const q=a56i;this['inventory'][q(0x177)](a[q(0x1a9)])?(this[q(0x197)]['removeItem'](a[q(0x1a9)]),this[q(0x1a5)][q(0x1b2)](q(0x17a)+this[q(0x1a9)]+':\x20'+a['name'])):this[q(0x1a5)]['write']('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this[q(0x1a9)]+':\x20'+a[q(0x1a9)]);}[a56i(0x18e)](a){const r=a56i;this[r(0x18a)]=a,this[r(0x1a5)][r(0x1b2)](r(0x176)+this[r(0x1a9)]+':\x20'+a[r(0x196)]);}[a56i(0x182)](a){const s=a56i;switch(a){case s(0x1ad):return Direction[s(0x18c)];case s(0x1a1):return Direction[s(0x1a7)];case s(0x17c):return Direction[s(0x1a3)];case s(0x1a8):return Direction[s(0x193)];case'up':return Direction[s(0x194)];case s(0x17b):return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}['findExistingDoor'](a){const t=a56i;for(const b of this[t(0x181)]['values']()){if(b instanceof Door){if(b['roomA']===this&&b[t(0x18f)]===a||b['roomB']===this&&b[t(0x18d)]===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
|
+
const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=-parseInt(i(0x12d))/0x1+-parseInt(i(0x133))/0x2*(parseInt(i(0x145))/0x3)+-parseInt(i(0x13f))/0x4+parseInt(i(0x11e))/0x5*(parseInt(i(0x136))/0x6)+-parseInt(i(0x149))/0x7*(-parseInt(i(0x10e))/0x8)+parseInt(i(0x141))/0x9+parseInt(i(0x153))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x283d8));function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x10a;let f=c[d];return f;},a57d(a,b);}const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0x10b)]()[k(0x13a)](k(0x151))[k(0x10b)]()['constructor'](a57a)['search'](k(0x151));});a57a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';function a57c(){const E=['from','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','355044GiNZKq','isStartRoom','allActors','1746sGwpqk','No\x20actor\x20with\x20name\x20','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','Scene\x20initialized\x20with\x20rooms:\x20','search','delete','logger','getPlayer','Failed\x20to\x20add\x20puzzle.\x20Room\x20','1298260gMMKtJ','\x27s\x20location.\x20Room\x20','1786482pkBCaa','player','\x22\x20does\x20not\x20exist.','determineStartRoom','3VhUpVm','exits','keyRequired','initialize','14HOWnkq','toUpperCase','apply','Added\x20room\x20to\x20scene:\x20','currentLocation','length','getCharacterLocation','addActor','(((.+)+)+)+$','\x20found\x20in\x20the\x20scene.','929490bfylmG','roomConfiguration','toString','\x20already\x20exists\x20in\x20the\x20scene.','values','1176664ibZnBn','createRoom','addExit','warn','set','Added\x20puzzle\x20to\x20room\x20','\x20not\x20found\x20in\x20scene.','addPuzzleToRoom','write','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','actors','removeActor','characterLocations','Actor\x20with\x20name\x20','roomFactory','\x20to\x20room\x20','2315TcfQre','addItemToRoom','keys','setCharacterLocation','name','Failed\x20to\x20add\x20item\x20','Removed\x20room\x20from\x20scene:\x20','generateRoomsFromConfig','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','has','getInstance','rooms','setPuzzle','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','direction','53435GeLNvC','.\x20Room\x20','Room\x20\x22','createExitsFromConfig'];a57c=function(){return E;};return a57c();}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a57l(0x129)];[a57l(0x142)];[a57l(0x13c)];[a57l(0x118)];[a57l(0x11a)]=new Map();[a57l(0x11c)];constructor(a){const m=a57l;super(),this[m(0x11c)]=new RoomFactory(),this[m(0x142)]=a[m(0x142)],this['rooms']=this['generateRoomsFromConfig'](a[m(0x10a)]),this[m(0x13c)]=Logger[m(0x128)](),this[m(0x118)]=new Map(),this[m(0x130)](a[m(0x10a)]),this[m(0x13c)]['write'](m(0x139)+Object[m(0x120)](this['rooms'])['join'](',\x20'));}[a57l(0x148)](){const n=a57l;this[n(0x142)][n(0x14d)]=this[n(0x144)]();}[a57l(0x125)](a){const o=a57l;if(!this[o(0x11c)])throw new Error(o(0x132));const b={};for(const c of a){const d=this[o(0x11c)][o(0x10f)](c);b[c[o(0x122)]]=d;}return b;}['createExitsFromConfig'](a){const p=a57l;for(const b of a){const c=this[p(0x129)][b['name']];if(b[p(0x146)])for(const d of b[p(0x146)]){const e=d[p(0x12c)][p(0x14a)](),f=d['targetRoom'],g=d[p(0x147)],h=this[p(0x129)][f];h&&c[p(0x110)](Direction[e],h,g);}}}[a57l(0x150)](a){const q=a57l;if(this[q(0x118)][q(0x127)](a[q(0x122)]))throw new Error(q(0x11b)+a[q(0x122)]+q(0x10c));this['actors'][q(0x112)](a[q(0x122)],a);}[a57l(0x119)](a){const r=a57l;if(!this[r(0x118)]['has'](a))throw new Error(r(0x137)+a+r(0x152));this[r(0x118)][r(0x13b)](a);}['getActor'](a){const s=a57l;return this[s(0x118)]['get'](a);}get[a57l(0x135)](){const t=a57l;return Array[t(0x131)](this[t(0x118)][t(0x10d)]());}['addRoom'](a){const u=a57l;this[u(0x129)][a[u(0x122)]]=a,this[u(0x13c)][u(0x116)](u(0x14c)+a[u(0x122)]);}['removeRoom'](a){const v=a57l;return this[v(0x129)][a]?(delete this[v(0x129)][a],this['logger']['write'](v(0x124)+a),!![]):(this[v(0x13c)][v(0x116)](v(0x126)+a),![]);}[a57l(0x11f)](a,b){const w=a57l,c=this[w(0x129)][b];c?(c['addItem'](a),this[w(0x13c)][w(0x116)]('Added\x20item\x20'+a[w(0x122)]+w(0x11d)+c[w(0x122)])):this[w(0x13c)][w(0x116)](w(0x123)+a[w(0x122)]+w(0x12e)+b+'\x20not\x20found\x20in\x20scene.');}[a57l(0x115)](a,b){const x=a57l,c=this[x(0x129)][b];c?(c[x(0x12a)](a),this[x(0x13c)]['write'](x(0x113)+c['name'])):this[x(0x13c)][x(0x116)](x(0x13e)+b+x(0x114));}[a57l(0x121)](a,b){const y=a57l,c=this[y(0x129)][b];c?(this[y(0x11a)]['set'](a['name'],c),this[y(0x13c)][y(0x116)](a[y(0x122)]+'\x20is\x20now\x20in\x20room\x20'+c['name'])):this[y(0x13c)][y(0x116)]('Failed\x20to\x20set\x20'+a[y(0x122)]+y(0x140)+b+y(0x114));}[a57l(0x14f)](a){const z=a57l;return this[z(0x11a)]['get'](a[z(0x122)]);}['determineStartRoom'](){const A=a57l,a=[];for(const c in this[A(0x129)]){if(this[A(0x129)]['hasOwnProperty'](c)){const d=this[A(0x129)][c];d[A(0x134)]&&a['push'](d);}}if(a[A(0x14e)]>0x1)throw new Error(A(0x12b));if(a[A(0x14e)]===0x1)return a[0x0];const b=Object[A(0x120)](this['rooms']);if(b[A(0x14e)]===0x0)throw new Error(A(0x117));return console[A(0x111)](A(0x138)),this[A(0x129)][b[0x0]];}[a57l(0x13d)](){const B=a57l;return this[B(0x142)];}['getRooms'](){const C=a57l;return this[C(0x129)];}['connectRooms'](a,b,c,d){const D=a57l,e=this['rooms'][a],f=this['rooms'][c];if(!e)throw new Error(D(0x12f)+a+D(0x143));if(!f)throw new Error(D(0x12f)+c+D(0x143));e[D(0x110)](b,f,d);}}
|