@maka/maka-cli 5.0.30 → 5.0.32
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 +2 -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.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/templates/service/eslint/babelrc +18 -0
- package/bundle/obf/src/templates/service/eslint/config.eslint.js +57 -0
- 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 +2 -1
- package/bundle/obf/src/templates/service/eslint/eslintrc.json +0 -54
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x8a))/0x1*(parseInt(f(0x90))/0x2)+parseInt(f(0x8d))/0x3+-parseInt(f(0x6b))/0x4*(parseInt(f(0x93))/0x5)+-parseInt(f(0x91))/0x6+-parseInt(f(0x80))/0x7*(parseInt(f(0x9f))/0x8)+-parseInt(f(0x77))/0x9+parseInt(f(0x88))/0xa*(parseInt(f(0x7f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x7cc13));function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x69;let f=c[d];return f;},a38d(a,b);}const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x8f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x6f)]()[h(0x97)](h(0x6a))[h(0x6f)]()[h(0x98)](a38a)[h(0x97)](h(0x6a));});a38a();function a38c(){const n=['constructor','You\x20cannot\x20see\x20through','verb','\x20inventory.','To\x20the\x20','exits','hasItem','1619024fHDJRp','\x27\x20in\x20current\x20room\x20inventory.','(((.+)+)+)+$','276268WhnEPq','Above\x20you,\x20','lookOutside','error','toString','actor','OUTSIDE','write','inventory','execute','look','currentLocation','199152CYCxiW','inspectItem','logger','rooms','name','description','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','It\x27s\x20just\x20a\x20regular\x20','520091goPBNK','14bEvILi','isValidDirection',',\x20you\x20see\x20','You\x20cannot\x20see\x20','down','puzzle','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','get','230QWCvTz','\x27\x20in\x20','47XIgMcG','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','string','1911660izPDPm','getOtherSide','apply','3602LbPBdv','2140932NxQbEe','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','25OiYLAk','You\x27re\x20not\x20in\x20a\x20valid\x20room.','Looking\x20at\x20item\x20\x27','You\x20don\x27t\x20see\x20any\x20','search'];a38c=function(){return n;};return a38c();}import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';import{Command}from'./command.js';export class LookCommand extends Command{static [a38i(0x9a)]='look';static [a38i(0x7c)]='Examine\x20your\x20surroundings';[a38i(0x74)](a=[]){const j=a38i;this[j(0x79)][j(0x72)]('Executing\x20\x27Look\x27\x20command.');const b=a['join']('\x20');if(b){if(this[j(0x70)][j(0x73)][j(0x9e)](b))return this[j(0x79)][j(0x72)](j(0x95)+b+j(0x89)+this['actor']['name']+j(0x9b)),this[j(0x78)](b,this[j(0x70)][j(0x73)]);else{if(this['actor'][j(0x76)][j(0x73)][j(0x9e)](b))return this[j(0x79)][j(0x72)]('Looking\x20at\x20item\x20\x27'+b+j(0x69)),this[j(0x78)](b,this[j(0x70)]['currentLocation'][j(0x73)]);else return this[j(0x81)](b)?(this[j(0x79)][j(0x72)]('Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27'+b+'\x27.'),this[j(0x6d)](b)):j(0x83)+b;}}else return this[j(0x79)]['write'](this['actor'][j(0x7b)]+'\x20is\x20looking\x20around\x20the\x20current\x20room.'),this[j(0x75)]();}['look'](){const k=a38i,a=this[k(0x70)][k(0x76)];if(!a)return this[k(0x79)][k(0x6e)](this[k(0x70)]['name']+k(0x86)),k(0x94);let b=a[k(0x7c)];return a[k(0x85)]&&(b+='\x0a'+a[k(0x85)]['riddle']),b;}[a38i(0x6d)](a){const l=a38i,b=this['actor']['currentLocation'];if(!b)return this[l(0x79)][l(0x6e)](this[l(0x70)]['name']+'\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.'),'You\x27re\x20not\x20in\x20a\x20valid\x20room.';const c=b[l(0x9d)][l(0x87)](a);if(!c)return l(0x92)+a+'\x22.';let d;if(c instanceof Door)d=c[l(0x8e)](b);else{if(typeof c===l(0x8c)){d=this[l(0x7a)]&&this[l(0x7a)][c];if(!d)return l(0x8b)+a+'\x22.';}else return l(0x7d)+a+'\x22.';}if(d['roomType']===RoomType[l(0x71)]){if(a==='up')return l(0x6c)+d[l(0x7c)];else return a===l(0x84)?'Below\x20you,\x20'+d['description']:l(0x9c)+a+l(0x82)+d[l(0x7c)];}else return l(0x99);}['inspectItem'](a,b){const m=a38i,c=b['getItem'](a);if(!c)return m(0x96)+a+'\x20here.';return c[m(0x7c)]||m(0x7e)+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a39c(){const l=['Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','\x20says\x20to\x20','394210dcYxUb','An\x20error\x20occurred.','execute','currentLocation','name','say','(((.+)+)+)+$','6WjIxaf','1572012QCfavJ','12tFhyWQ',':\x20\x22','You\x20say:\x20\x22','612111uqEtkF','join','12YFRcUT','753487hpzVvr','verb','description','scene','constructor','1625456vKHJbp','1258760zprwRX','50478pDfPMu','log','search','length','What\x20do\x20you\x20want\x20to\x20say?','context','11TnMmDh','allActors'];a39c=function(){return l;};return a39c();}const a39i=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=-parseInt(g(0x208))/0x1*(parseInt(g(0x1f7))/0x2)+parseInt(g(0x20d))/0x3+parseInt(g(0x20a))/0x4*(-parseInt(g(0x201))/0x5)+parseInt(g(0x20f))/0x6*(parseInt(g(0x1f0))/0x7)+-parseInt(g(0x1f5))/0x8+parseInt(g(0x209))/0x9+parseInt(g(0x1f6))/0xa*(parseInt(g(0x1fd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x1f6d1));function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a39d(a,b);}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['toString']()[h(0x1f9)](h(0x207))['toString']()[h(0x1f4)](a39a)[h(0x1f9)](h(0x207));});a39a();import{Command}from'./command.js';export class SayCommand extends Command{static [a39i(0x1f1)]='say';static [a39i(0x1f2)]=a39i(0x1ff);[a39i(0x1fc)];constructor(a){const j=a39i;super(a),this[j(0x1fc)]=a;}[a39i(0x203)](a){const k=a39i;if(a[k(0x1fa)]===0x0)return k(0x1fb);const b=a[k(0x20e)]('\x20'),c=this['actor'],d=this[k(0x1fc)][k(0x1f3)];if(!d)return this['logger']['log']('Scene\x20is\x20missing\x20from\x20context.'),k(0x202);const e=d[k(0x1fe)]['filter'](f=>f[k(0x204)]===c[k(0x204)]);for(const f of e){this['logger'][k(0x1f8)](c[k(0x205)]+k(0x200)+f[k(0x205)]+k(0x20b)+b+'\x22'),this['actor'][k(0x204)][k(0x206)](f,b);}return k(0x20c)+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a40h=a40d;function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x164;let f=c[d];return f;},a40d(a,b);}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x175))/0x1*(parseInt(f(0x180))/0x2)+-parseInt(f(0x16b))/0x3*(parseInt(f(0x168))/0x4)+-parseInt(f(0x17f))/0x5+parseInt(f(0x16f))/0x6*(-parseInt(f(0x16d))/0x7)+-parseInt(f(0x17d))/0x8*(parseInt(f(0x169))/0x9)+-parseInt(f(0x17c))/0xa*(-parseInt(f(0x17a))/0xb)+-parseInt(f(0x166))/0xc*(-parseInt(f(0x172))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x2728a));const a40b=(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;};}()),a40a=a40b(this,function(){const g=a40d;return a40a[g(0x181)]()['search']('(((.+)+)+)+$')[g(0x181)]()[g(0x16e)](a40a)[g(0x174)](g(0x182));});a40a();import{Command}from'./command.js';function a40c(){const j=['execute','1128vBKEly','length','1692fbNFUA','72hOMdFd','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','783RJnSmU','You\x20search\x20the\x20area\x20and\x20find:\x20','7DqGryq','constructor','221412kYdftJ','listItems','name','18967XkfVRn','description','search','2807tYqxGr','write','SearchCommand:\x20','logger','verb','28347sNYwAL','currentLocation','1160OvCyxo','273680GnChDo','actor','438400WjYYxE','166etmRcF','toString','(((.+)+)+)+$','Search\x20for\x20items\x20in\x20your\x20area'];a40c=function(){return j;};return a40c();}export class SearchCommand extends Command{static [a40h(0x179)]='search';static [a40h(0x173)]=a40h(0x164);[a40h(0x165)](){const i=a40h,a=this[i(0x17e)][i(0x17b)]['inventory'][i(0x170)]();if(a[i(0x167)]===0x0)return this[i(0x178)][i(0x176)](i(0x177)+this['actor'][i(0x171)]+i(0x16a)),'You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.';const b=a['join'](',\x20');return this[i(0x178)][i(0x176)](i(0x177)+this[i(0x17e)]['name']+'\x20found\x20the\x20following\x20items:\x20'+b),i(0x16c)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d
|
|
1
|
+
const a41i=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a41d(a,b);}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x1e3))/0x1*(-parseInt(f(0x1e2))/0x2)+-parseInt(f(0x1de))/0x3+parseInt(f(0x1d8))/0x4*(parseInt(f(0x1ee))/0x5)+parseInt(f(0x1f2))/0x6*(-parseInt(f(0x1dc))/0x7)+-parseInt(f(0x1d5))/0x8+parseInt(f(0x1ea))/0x9*(-parseInt(f(0x1ef))/0xa)+parseInt(f(0x1e5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x32cef));function a41c(){const k=['(((.+)+)+)+$','165zjOwfH','51970qobFar','description','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','6zwFFLY','join','rewardItem','write','2643200CREaBr','puzzle','currentLocation','16044FDuxIE','inventory','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','actor','2694916TXzDCQ','Attempt\x20to\x20solve\x20a\x20puzzle.','475278AKcpUc','apply','SolveCommand:\x20','success','14298vIoyiC','1GZZmuj','search','13510728pqvdDS','toString','verb','logger','message','495sMglzg','solve','toLowerCase'];a41c=function(){return k;};return a41c();}const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x1e6)]()[h(0x1e4)](h(0x1ed))[h(0x1e6)]()['constructor'](a41a)['search'](h(0x1ed));});a41a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a41i(0x1e7)]=a41i(0x1eb);static [a41i(0x1f0)]=a41i(0x1dd);['execute'](a){const j=a41i,b=a[j(0x1f3)]('\x20')[j(0x1ec)](),c=this[j(0x1db)][j(0x1d7)];if(!c||!c[j(0x1d6)])return this[j(0x1e8)][j(0x1d4)](j(0x1da)),j(0x1f1);const d=c[j(0x1d6)][j(0x1eb)](b,this[j(0x1db)][j(0x1d9)]);return d[j(0x1e1)]&&c['puzzle'][j(0x1f4)]&&this[j(0x1db)][j(0x1d9)]['addItem'](c['puzzle'][j(0x1f4)]),this[j(0x1e8)][j(0x1d4)](j(0x1e0)+d['message']),d[j(0x1e9)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x108;let f=c[d];return f;},a42d(a,b);}const a42h=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0x11e))/0x1*(-parseInt(f(0x10c))/0x2)+-parseInt(f(0x11d))/0x3*(-parseInt(f(0x115))/0x4)+parseInt(f(0x108))/0x5+parseInt(f(0x122))/0x6+parseInt(f(0x129))/0x7+parseInt(f(0x128))/0x8*(parseInt(f(0x114))/0x9)+-parseInt(f(0x124))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x8f479));const a42b=(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;};}()),a42a=a42b(this,function(){const g=a42d;return a42a[g(0x110)]()['search'](g(0x11a))['toString']()[g(0x12a)](a42a)[g(0x109)](g(0x11a));});a42a();import{Command}from'./command.js';function a42c(){const k=['1249137eoAlIH','1172588rVBZbB','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','There\x20is\x20no\x20item\x20\x22','\x22\x20is\x20too\x20heavy\x20to\x20carry.','logger','(((.+)+)+)+$','Successfully\x20added\x20\x22','You\x20have\x20taken\x20the\x20','3OWPxuw','244046jTVezX','\x22\x20from\x20','description','verb','4650288hDkXmg','\x22\x20not\x20retrieved\x20from\x20','24189190HyOmYc','actor','Pick\x20up\x20an\x20item.','execute','48NluSxk','1559187cWkSlO','constructor','name','Error\x20during\x20\x27Take\x27\x20command:\x20','\x22\x20not\x20found\x20in\x20','\x22\x20to\x20','message','The\x20item\x20\x22','\x22\x20in\x20this\x20room.','Item\x20\x22','join','Successfully\x20removed\x20\x22','inventory','749800ibAiiA','search','toLowerCase','\x20during\x20\x27Take\x27\x20command.','6FYWIcx','take','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','write','toString','addInventory','currentLocation','hasItem'];a42c=function(){return k;};return a42c();}export class TakeCommand extends Command{static [a42h(0x121)]=a42h(0x10d);static [a42h(0x120)]=a42h(0x126);[a42h(0x127)](a){const i=a42h;return this['logger'][i(0x10f)](i(0x10e)+a[i(0x133)]('\x20')),this['take'](a);}['take'](a){const j=a42h,b=a[j(0x133)]('\x20')[j(0x10a)](),c=this[j(0x125)][j(0x112)];if(!c[j(0x135)][j(0x113)](b))return this[j(0x119)]['write'](j(0x132)+b+j(0x12d)+c[j(0x12b)]+j(0x10b)),j(0x117)+b+j(0x131);const d=c[j(0x135)]['getItem'](b);if(!d)return this[j(0x119)][j(0x10f)](j(0x132)+b+j(0x123)+c[j(0x12b)]+j(0x116)),j(0x117)+b+j(0x131);try{return this[j(0x125)][j(0x111)](d),this[j(0x119)][j(0x10f)](j(0x11b)+b+j(0x12e)+this[j(0x125)][j(0x12b)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[j(0x135)]['removeItem'](b),this[j(0x119)][j(0x10f)](j(0x134)+b+j(0x11f)+c[j(0x12b)]+j(0x116)),j(0x11c)+b+'.';}catch(e){return this[j(0x119)][j(0x10f)](j(0x12c)+e[j(0x12f)]),j(0x130)+b+j(0x118);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43h=a43d;function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x188;let f=c[d];return f;},a43d(a,b);}(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x19b))/0x1*(-parseInt(f(0x191))/0x2)+parseInt(f(0x196))/0x3+parseInt(f(0x188))/0x4*(-parseInt(f(0x19c))/0x5)+-parseInt(f(0x19f))/0x6*(parseInt(f(0x19e))/0x7)+parseInt(f(0x18c))/0x8*(-parseInt(f(0x18a))/0x9)+-parseInt(f(0x18b))/0xa+parseInt(f(0x18f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xb1d77));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(0x189)]()[g(0x195)](g(0x190))[g(0x189)]()[g(0x194)](a43a)[g(0x195)](g(0x190));});a43a();import{Command}from'./command.js';function a43c(){const j=['execute','constructor','search','3186132RMvAXu','actor','unqeuip','UnequipCommand:\x20','logger','15xgookb','15TeQyGF','toLowerCase','1252118KHlVrs','30iGGTIN','518036jxDXdH','toString','129726HhgJcQ','4033840RunSPW','536GfcSSW','\x20unqeuiped\x20','name','19618159srCEll','(((.+)+)+)+$','71326Yzmnrp','write'];a43c=function(){return j;};return a43c();}export class UnequipCommand extends Command{static ['verb']=a43h(0x198);static ['description']='Unequip\x20an\x20item.';[a43h(0x193)](a){const i=a43h,b=a['join']('\x20')[i(0x19d)](),c=this[i(0x197)]['unequip'](b);return this[i(0x19a)][i(0x192)](i(0x199)+this['actor'][i(0x18e)]+i(0x18d)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x85;let f=c[d];return f;},a44d(a,b);}const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=-parseInt(h(0x89))/0x1*(parseInt(h(0x9d))/0x2)+-parseInt(h(0xa7))/0x3+-parseInt(h(0xa5))/0x4*(parseInt(h(0x93))/0x5)+parseInt(h(0xa6))/0x6+parseInt(h(0x97))/0x7+parseInt(h(0xa2))/0x8+parseInt(h(0x88))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xc062f));function a44c(){const m=['execute','isValidDirection','logger','has','2129680XhMWDM','exits','error','24gQWSXO','6678546xpJMTw','4094358XslFJO','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','length','UnlockCommand:\x20','(((.+)+)+)+$','toString','\x22\x20here.','toLowerCase','apply','\x20is\x20attempted\x20to\x20unlock\x20','There\x27s\x20no\x20door\x20named\x20\x22','11256714VFSkzY','434959eenqvX','verb','.\x20Result:\x20','inventory','search','unlockItemOrSolution','getItem','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','unlock','constructor','557795PJbbJF','write','actor','description','4389469xgeFwY','Unlock\x20a\x20door.','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','name','UnlockCommand:\x20No\x20target\x20specified.','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','2TbhCgb'];a44c=function(){return m;};return a44c();}const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x85)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a[j(0xac)]()[j(0x8d)](j(0xab))[j(0xac)]()[j(0x92)](a44a)[j(0x8d)](j(0xab));});a44a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a44k(0x8a)]=a44k(0x91);static [a44k(0x96)]=a44k(0x98);[a44k(0x9e)](a){return this['unlock'](a);}[a44k(0x91)](a){const l=a44k;if(a[l(0xa9)]===0x0)return this['logger'][l(0xa4)](l(0x9b)),l(0x90);const b=a[0x0][l(0xae)](),c=this[l(0x95)]['currentLocation'];if(this[l(0x9f)](b)&&c['exits'][l(0xa1)](b)){const d=c[l(0xa3)]['get'](b);if(d instanceof Door){const e=d[l(0x8e)]?.['toLowerCase']();if(e&&this[l(0x95)][l(0x8c)]['hasItem'](e)){const f=this['actor'][l(0x8c)][l(0x8f)](e);if(f){const g=c['attemptUnlockExit'](b,f[l(0x9a)]);return this[l(0xa0)][l(0x94)]('UnlockCommand:\x20'+this[l(0x95)][l(0x9a)]+l(0x86)+b+l(0x8b)+g),g;}}return this[l(0xa0)][l(0x94)](l(0xaa)+this[l(0x95)][l(0x9a)]+l(0x9c)+b+'.'),l(0xa8);}else return this[l(0xa0)][l(0x94)](l(0xaa)+b+l(0x99)+c['name']+'.'),l(0x87)+b+'\x22\x20here.';}else return this[l(0xa0)][l(0x94)](l(0xaa)+b+l(0x99)+c[l(0x9a)]+'.'),l(0x87)+b+l(0xad);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45h=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0x155))/0x1+-parseInt(f(0x156))/0x2*(parseInt(f(0x157))/0x3)+-parseInt(f(0x150))/0x4+-parseInt(f(0x151))/0x5+-parseInt(f(0x14e))/0x6*(parseInt(f(0x15d))/0x7)+parseInt(f(0x164))/0x8+parseInt(f(0x163))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xcce4a));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const g=a45d;return a45a[g(0x148)]()[g(0x159)](g(0x152))['toString']()[g(0x166)](a45a)[g(0x159)](g(0x152));});a45a();function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x144;let f=c[d];return f;},a45d(a,b);}function a45c(){const j=['12792080hAnnti','toLowerCase','constructor','\x20used\x20',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','logger','name','toString','use','Use\x20an\x20item.','description','\x20to\x20use.','You\x20don\x27t\x20have\x20the\x20','6fTIZzA','\x20doesn\x27t\x20have\x20a\x20use\x20method.','5146268yTPwGh','838695QPlvJi','(((.+)+)+)+$','hasItem','actor','1563560grkNts','2138YKBycO','33PPgqEc','UseCommand:\x20','search','join','\x20attempted\x20to\x20use\x20','execute','3712639TSEqAs','\x20not\x20retrieved\x20from\x20','You\x20can\x27t\x20use\x20the\x20','write','verb','inventory','25202106wmFrDh'];a45c=function(){return j;};return a45c();}import{Command}from'./command.js';export class UseCommand extends Command{static [a45h(0x161)]=a45h(0x149);static [a45h(0x14b)]=a45h(0x14a);[a45h(0x15c)](a){return this['use'](a);}[a45h(0x149)](a){const i=a45h,b=a[i(0x15a)]('\x20')[i(0x165)]();if(!this[i(0x154)][i(0x162)][i(0x153)](b))return this['logger'][i(0x160)]('UseCommand:\x20'+this[i(0x154)][i(0x147)]+i(0x15b)+b+i(0x145)),i(0x14d)+b+i(0x14c);const c=this['actor'][i(0x162)]['getItem'](b);if(!c)return this[i(0x146)][i(0x160)]('UseCommand:\x20'+b+i(0x15e)+this[i(0x154)][i(0x147)]+'\x27s\x20inventory.'),i(0x14d)+b+i(0x14c);if(typeof c[i(0x149)]==='function'){const d=c[i(0x149)]();return this['logger'][i(0x160)](i(0x158)+this[i(0x154)][i(0x147)]+i(0x144)+b+'.'),d;}else return this['logger'][i(0x160)](i(0x158)+b+i(0x14f)),i(0x15f)+b+'\x20in\x20this\x20way.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a46h=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d=-parseInt(f(0x182))/0x1*(parseInt(f(0x174))/0x2)+parseInt(f(0x17c))/0x3*(-parseInt(f(0x179))/0x4)+parseInt(f(0x17a))/0x5*(-parseInt(f(0x184))/0x6)+parseInt(f(0x175))/0x7+-parseInt(f(0x178))/0x8*(parseInt(f(0x17f))/0x9)+-parseInt(f(0x177))/0xa*(-parseInt(f(0x17b))/0xb)+parseInt(f(0x17e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x45cc5));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[g(0x183)]()['search'](g(0x176))[g(0x183)]()['constructor'](a46a)[g(0x186)](g(0x176));});function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0x174;let f=c[d];return f;},a46d(a,b);}function a46c(){const k=['createCommand','search','2oWLmHW','1520134MFKIdr','(((.+)+)+)+$','3830lzlXRw','233384LeTAvl','56cBoMoy','5NBdntI','12353ktFdbL','83679DvCaRS','commandMap','11727540IBLBNf','54ETpoWY','registerCommand','getAllRegisteredCommands','253118hpHdTc','toString','3120090PtEcHh'];a46c=function(){return k;};return a46c();}a46a();export class CommandFactory{static [a46h(0x17d)]={};static[a46h(0x180)](a,b){const i=a46h;this[i(0x17d)][a]=b;}static[a46h(0x185)](a,b){const j=a46h,c=this[j(0x17d)][a];if(c)return new c(b);return null;}static[a46h(0x181)](){return this['commandMap'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47h=a47d;function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0xe6;let f=c[d];return f;},a47d(a,b);}(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0xfa))/0x1+parseInt(f(0x102))/0x2*(-parseInt(f(0xec))/0x3)+parseInt(f(0x107))/0x4*(parseInt(f(0xfc))/0x5)+parseInt(f(0x105))/0x6+parseInt(f(0xee))/0x7+parseInt(f(0xe9))/0x8*(-parseInt(f(0xf7))/0x9)+parseInt(f(0xed))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x71183));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(0xeb)]()['search'](g(0xe7))['toString']()[g(0xf9)](a47a)[g(0xf8)](g(0xe7));});a47a();function a47c(){const n=['1560384tzluPp','toUpperCase','7476JqyEQM','createItem','(((.+)+)+)+$','INSIDE','104jMVAIs','rifle','toString','404862EcEQQJ','452390VpKNQC','2474906DHfJUt','createPuzzle','type','gauntlets','description','isStartRoom','rewardItem','content','key','296757CUMNWI','search','constructor','247650NnpHUb','createRoom','1405Bxjkbk','inventory','roomType','name','forEach','puzzle','8VHoIvm','items','gloves'];a47c=function(){return n;};return a47c();}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{[a47h(0xfb)](a){const i=a47h,b=this['convertToRoomConfig'](a),c=new Room(b);if(a[i(0x103)]){const d=new Inventory();a[i(0x103)][i(0x100)](e=>{const j=i;d['addItem'](this[j(0xe6)](e));}),c[i(0xfd)]=d;}return a[i(0x101)]&&c['setPuzzle'](this[i(0xef)](a[i(0x101)])),c;}[a47h(0xe6)](a){const k=a47h;switch(a[k(0xf0)]){case k(0xf6):return new Key(a[k(0xff)],a[k(0xf2)]);case'book':return new Book(a[k(0xff)],a[k(0xf2)],a[k(0xf5)]);case'sword':return new Sword(a['name'],a[k(0xf2)]);case k(0xea):return new Rifle(a[k(0xff)],a['description']);case'helmet':return new Helmet(a[k(0xff)],a['description']);case'bodyarmor':return new BodyArmor(a[k(0xff)],a[k(0xf2)]);case'legarmor':return new LegArmor(a[k(0xff)],a['description']);case'boots':return new Boots(a[k(0xff)],a[k(0xf2)]);case k(0x104):return new Gloves(a[k(0xff)],a['description']);case k(0xf1):return new Gauntlets(a[k(0xff)],a[k(0xf2)]);default:return new BasicItem(a[k(0xff)],a[k(0xf2)]);}}['createPuzzle'](a){const l=a47h,b=this[l(0xe6)](a[l(0xf4)]);return new Puzzle({...a,'rewardItem':b});}['convertToRoomConfig'](a){const m=a47h,b=a[m(0xfe)]&&RoomType[a[m(0xfe)]['toUpperCase']()]?RoomType[a[m(0xfe)][m(0x106)]()]:RoomType[m(0xe8)];return{'name':a[m(0xff)],'description':a[m(0xf2)],'isStartRoom':a[m(0xf3)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=-parseInt(h(0x181))/0x1+parseInt(h(0x16f))/0x2*(parseInt(h(0x15f))/0x3)+parseInt(h(0x173))/0x4*(parseInt(h(0x17d))/0x5)+-parseInt(h(0x18a))/0x6+-parseInt(h(0x167))/0x7+-parseInt(h(0x17f))/0x8*(-parseInt(h(0x18e))/0x9)+parseInt(h(0x17e))/0xa*(parseInt(h(0x172))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x60b4d));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a[j(0x162)]()['search']('(((.+)+)+)+$')['toString']()[j(0x175)](a48a)[j(0x179)]('(((.+)+)+)+$');});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';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x15d;let f=c[d];return f;},a48d(a,b);}import{LockCommand}from'./commands/lock.js';function a48c(){const s=['clear','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','284676GetwcY','lock','equip','currentLocation','Welcome,\x20','apply','-\x20clear:\x20Clear\x20the\x20screen.\x0a','createCommand','698184DSViIv','registerCommand','initialize','2550537fraoeT','637472WwrCXj','instance','constructor','trim','unequip','-\x20quit:\x20Exit\x20the\x20game.\x0a','search','split','help','currentRoom','5AVrjVc','10zmoOyL','344qpOzas','rooms','646259oEAcDs','getAllRegisteredCommands','getDescription','getRooms','handleInput','determineStartRoom','registerCommands','getHelpMessage','take','1063482gCBXex','scene','use','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','108828iHcBft','player','maka','quit','3LFAaBm','hasOwnProperty','drop','toString','execute','solve'];a48c=function(){return s;};return a48c();}import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a48k(0x174)];[a48k(0x18b)];[a48k(0x18f)];[a48k(0x17c)];[a48k(0x180)];constructor(a,b){const l=a48k;this['player']=a,this[l(0x18b)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x18b)][l(0x171)](),this[l(0x18f)][l(0x16a)]=this[l(0x186)](),this['registerCommands']();}[a48k(0x187)](){const m=a48k;CommandFactory[m(0x170)]('look',LookCommand),CommandFactory[m(0x170)]('go',GoCommand),CommandFactory[m(0x170)](m(0x189),TakeCommand),CommandFactory['registerCommand'](m(0x18c),UseCommand),CommandFactory['registerCommand'](m(0x169),EquipCommand),CommandFactory['registerCommand'](m(0x177),UnequipCommand),CommandFactory[m(0x170)](m(0x164),SolveCommand),CommandFactory[m(0x170)](m(0x161),DropCommand),CommandFactory[m(0x170)]('unlock',UnlockCommand),CommandFactory['registerCommand'](m(0x168),LockCommand),CommandFactory[m(0x170)](m(0x179),SearchCommand),CommandFactory['registerCommand']('say',SayCommand);}[a48k(0x186)](){const n=a48k;return this['scene'][n(0x186)]();}['getWelcomeMessage'](){const o=a48k;return o(0x16b)+this[o(0x18f)]['name'];}static['getInstance'](a,b){const p=a48k;return!Game[p(0x174)]&&(Game[p(0x174)]=new Game(a,b)),Game[p(0x174)];}[a48k(0x185)](a){const q=a48k,b=a[q(0x176)]()[q(0x17a)]('\x20'),c=b[0x0]['toLowerCase'](),d=b['slice'](0x1);if(c===q(0x15e))return null;if(c===q(0x15d))return q(0x166);if(c===q(0x17b))return this[q(0x188)]();if(c===q(0x165))return'';const e={'actor':this[q(0x18f)],'rooms':this[q(0x18b)][q(0x184)](),'scene':this[q(0x18b)]},f=CommandFactory[q(0x16e)](c,e);if(f){const g=f[q(0x163)](d);return g;}return q(0x18d)+c+'\x22.';}['getHelpMessage'](){const r=a48k,a=CommandFactory[r(0x182)]();let b='Available\x20Commands:\x0a';for(const c in a){if(a[r(0x160)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x183)]()+'\x0a';}}return b+=r(0x16d),b+=r(0x178),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a49d,c=a();while(!![]){try{var d
|
|
1
|
+
function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x85;var f=c[d];return f;},a49d(a,b);}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x86))/0x1+parseInt(f(0x8d))/0x2*(parseInt(f(0x8b))/0x3)+parseInt(f(0x90))/0x4*(-parseInt(f(0x8c))/0x5)+parseInt(f(0x8f))/0x6*(parseInt(f(0x89))/0x7)+parseInt(f(0x92))/0x8*(-parseInt(f(0x8e))/0x9)+parseInt(f(0x85))/0xa+parseInt(f(0x87))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xee8a5));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x88)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x8a)]()[h(0x91)](h(0x93))[h(0x8a)]()['constructor'](a49a)[h(0x91)](h(0x93));});a49a();export*from'./door.js';export*from'./inventory.js';function a49c(){var i=['1031983gtMLiw','3726602PrnOIj','apply','3723055oMMdUd','toString','6kClYsC','635TklSOe','1141970SfTbTj','511965qhcHDD','6rrcCGT','36872tDiJkI','search','192GcszZl','(((.+)+)+)+$','4683870DNkthl'];a49c=function(){return i;};return a49c();}export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=parseInt(f(0x98))/0x1*(-parseInt(f(0x9e))/0x2)+parseInt(f(0xa3))/0x3+parseInt(f(0xa1))/0x4+-parseInt(f(0x90))/0x5+-parseInt(f(0x97))/0x6+-parseInt(f(0x93))/0x7+parseInt(f(0x92))/0x8*(parseInt(f(0x9d))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x23707));var a50b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a50d;if(c){var e=c[g(0xa4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){var h=a50d;return a50a[h(0xa5)]()[h(0x9f)](h(0x8c))['toString']()[h(0x91)](a50a)[h(0x9f)](h(0x8c));});a50a();function a50c(){var m=['write','isLockable','Door\x20created\x20between\x20','checkIfLocked','5154399RmgJfk','6qnrCho','search','roomA','250196PitSPR','checkIfLockable','649137LqtPgF','apply','toString','isLocked','\x20and\x20','unlockItemOrSolution','name','(((.+)+)+)+$','Door\x20unlocked:\x20','roomB','Failed\x20to\x20unlock\x20door:\x20','1205810tzwCsI','constructor','8XVeHNk','392IqWIeq','getOtherSide','.\x20Used:\x20','logger','1384224vexWde','78186SQvKhW'];a50c=function(){return m;};return a50c();}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-0x8c;var f=c[d];return f;},a50d(a,b);}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a50i(0xa0)];['roomB'];[a50i(0xa6)];[a50i(0xa8)];[a50i(0xa9)];[a50i(0x96)];[a50i(0x9a)];constructor(a){var j=a50i;super(),this['roomA']=a[j(0xa0)],this['roomB']=a['roomB'],this[j(0xa6)]=a[j(0xa6)]||![],this[j(0xa8)]=a['unlockItemOrSolution'],this[j(0xa9)]=a[j(0xa9)]?capitalCase(a['name']):'To\x20'+a[j(0x8e)][j(0xa9)],this[j(0x96)]=Logger['getInstance'](),this[j(0x9a)]=!!a[j(0xa8)],this[j(0x96)][j(0x99)](j(0x9b)+this['roomA'][j(0xa9)]+j(0xa7)+this['roomB'][j(0xa9)]+'.\x20Is\x20Locked:\x20'+this['isLocked']);}[a50i(0x94)](a){var k=a50i;return this[k(0xa0)]===a?this[k(0x8e)]:this['roomA'];}['attemptUnlock'](a){var l=a50i;if(this[l(0xa6)]&&this[l(0xa8)]&&this[l(0xa8)]===a)return this['isLocked']=![],this[l(0x96)][l(0x99)](l(0x8d)+this[l(0xa9)]+l(0x95)+a),!![];return this[l(0x96)][l(0x99)](l(0x8f)+this[l(0xa9)]+l(0x95)+a),![];}[a50i(0x9c)](){return this['isLocked'];}[a50i(0xa2)](){return this['isLockable'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d
|
|
1
|
+
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x1a4))/0x1*(-parseInt(f(0x1b2))/0x2)+parseInt(f(0x1aa))/0x3+-parseInt(f(0x1bc))/0x4+parseInt(f(0x1a8))/0x5*(-parseInt(f(0x1ac))/0x6)+-parseInt(f(0x1ae))/0x7*(-parseInt(f(0x1be))/0x8)+-parseInt(f(0x1ca))/0x9*(-parseInt(f(0x1b6))/0xa)+-parseInt(f(0x1a9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x44ad6));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0x1b3)]()['search'](h(0x1ba))['toString']()['constructor'](a51a)[h(0x1c9)](h(0x1ba));});a51a();function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a51d(a,b);}import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a51i(0x1bb)];[a51i(0x1a5)];constructor(){const j=a51i;super(),this[j(0x1bb)]=new Map(),this[j(0x1a5)]=Logger[j(0x1cb)]();}[a51i(0x1b0)](a){const k=a51i;this[k(0x1bb)][k(0x1cd)](a[k(0x1ad)][k(0x1b9)](),a),this['logger'][k(0x1b4)](k(0x1a7)+a[k(0x1ad)]+k(0x1a6));}[a51i(0x1c8)](a){const l=a51i,b=this['getItem'](a);if(b)return this[l(0x1bb)][l(0x1c1)](a[l(0x1b9)]()),this[l(0x1a5)][l(0x1b4)](l(0x1af)+a+'\x20from\x20inventory.'),b;return this[l(0x1a5)][l(0x1b4)]('Failed\x20to\x20remove\x20item:\x20'+a+l(0x1bd)),null;}[a51i(0x1c7)](a){const m=a51i,b=this['items'][m(0x1c5)](a[m(0x1b9)]()),c=[...this[m(0x1bb)]['keys']()];return this[m(0x1a5)][m(0x1b4)](m(0x1b1)+a+m(0x1c2)+c[m(0x1b8)](',\x20')+m(0x1c0)+b+'.'),b;}[a51i(0x1bf)](a){const n=a51i,b=this[n(0x1bb)]['get'](a[n(0x1b9)]())||null;return b?this[n(0x1a5)][n(0x1b4)](n(0x1c3)+a+'.'):this[n(0x1a5)][n(0x1b4)](n(0x1b7)+a+n(0x1bd)),b;}['listItems'](){const o=a51i,a=[...this[o(0x1bb)]['keys']()],b=a['map'](c=>capitalCase(c));return this[o(0x1a5)]['write']('Listed\x20items\x20in\x20inventory:\x20'+b[o(0x1b8)](',\x20')+'.'),a;}[a51i(0x1b5)](){const p=a51i;let a=0x0;for(const b of this[p(0x1bb)][p(0x1c6)]()){a+=b[p(0x1c4)];}return a;}[a51i(0x1ab)](){const q=a51i;return[...this[q(0x1bb)][q(0x1c6)]()];}}function a51c(){const r=['write','getWeight','159190Yorsch','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','join','toLowerCase','(((.+)+)+)+$','items','2194084Xhogim','.\x20Item\x20not\x20found.','16JUnsQB','getItem','.\x20Exists:\x20','delete','\x20in\x20','Retrieved\x20details\x20for\x20item:\x20','weight','has','values','hasItem','removeItem','search','270cYEEBR','getInstance','apply','set','1gXJvlt','logger','\x20to\x20inventory.','Added\x20item:\x20','2125205UjKvJB','673156vRveZl','904764vuitHe','getAllItems','6RfmYwM','name','23107bzDIki','Removed\x20item:\x20','addItem','Checked\x20for\x20item:\x20','1060600urrIaS','toString'];a51c=function(){return r;};return a51c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x86))/0x1*(parseInt(f(0x8a))/0x2)+parseInt(f(0x92))/0x3*(parseInt(f(0x93))/0x4)+parseInt(f(0x8e))/0x5*(-parseInt(f(0x82))/0x6)+parseInt(f(0x7d))/0x7*(parseInt(f(0x97))/0x8)+parseInt(f(0x8c))/0x9*(-parseInt(f(0x8b))/0xa)+-parseInt(f(0x87))/0xb+parseInt(f(0x7f))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xeba8c));function a52c(){var l=['size','You\x20use\x20the\x20','use','3oIYnje','6104284lNdzcJ','rating','apply','category','2426080SGlLvu','search','shape','uuid','35kljCKR','weight','31040304KfPZfW','(((.+)+)+)+$','texture','9726aWZuOT','.\x20Nothing\x20special\x20happens.','name','color','5pGhFCi','8415979gCOvPg','description','toString','763982uyHtuE','10534420qtgaGn','9QoXZIk','constructor','2885Bzgtqg'];a52c=function(){return l;};return a52c();}var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x95)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a['toString']()[h(0x98)](h(0x80))[h(0x89)]()[h(0x8d)](a52a)[h(0x98)](h(0x80));});a52a();import{v4 as a52e}from'uuid';import{AbstractItem}from'../types/abstracts.js';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x7c;var f=c[d];return f;},a52d(a,b);}export class Item extends AbstractItem{[a52i(0x7c)];[a52i(0x84)];[a52i(0x88)];['size'];[a52i(0x96)];[a52i(0x99)];[a52i(0x85)];[a52i(0x81)];[a52i(0x94)];[a52i(0x7e)];constructor(a){var j=a52i;super(),this['name']=a[j(0x84)],this[j(0x88)]=a[j(0x88)],this[j(0x8f)]=a[j(0x8f)],this[j(0x96)]=a[j(0x96)],this[j(0x99)]=a['shape'],this[j(0x85)]=a[j(0x85)],this[j(0x81)]=a[j(0x81)],this[j(0x94)]=a[j(0x94)],this[j(0x7e)]=a[j(0x7e)],this[j(0x7c)]=a52e();}[a52i(0x91)](){var k=a52i;return k(0x90)+this[k(0x84)]+k(0x83);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a53c(){const
|
|
1
|
+
function a53c(){const n=['floor','_dialogue','1992LTZkkE','scene','343782nLNiMz','192914ysdrUD','2151787JmwNcl','name','search','5RUkxnd','constructor','length','20NwhcPw','106220HcUKgE','_name','14521kEdZzj','8AYHWpT','1310856rzwijA','2pTQBXu','random','rooms','autonomousMove','toString','3yzgWqa','(((.+)+)+)+$','719705HQUllN'];a53c=function(){return n;};return a53c();}const a53h=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0x170))/0x1*(parseInt(f(0x163))/0x2)+parseInt(f(0x175))/0x3*(-parseInt(f(0x16b))/0x4)+parseInt(f(0x167))/0x5*(-parseInt(f(0x16f))/0x6)+-parseInt(f(0x177))/0x7*(-parseInt(f(0x16e))/0x8)+parseInt(f(0x162))/0x9*(parseInt(f(0x16a))/0xa)+-parseInt(f(0x164))/0xb+parseInt(f(0x160))/0xc*(parseInt(f(0x16d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x1c8a3));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(0x174)]()[g(0x166)](g(0x176))[g(0x174)]()[g(0x168)](a53a)[g(0x166)](g(0x176));});function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x160;let f=c[d];return f;},a53d(a,b);}a53a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{['_name'];[a53h(0x179)];['rooms'];[a53h(0x161)];constructor(a,b,c,d){const i=a53h;super(d),this['_name']=a,this[i(0x179)]=b,this[i(0x172)]=c;}get[a53h(0x165)](){const j=a53h;return this[j(0x16c)];}['speak'](){const k=a53h;return this['_dialogue'][Math[k(0x178)](Math[k(0x171)]()*this[k(0x179)][k(0x169)])];}[a53h(0x173)](a){const l=a53h,b=a[Math[l(0x178)](Math[l(0x171)]()*a[l(0x169)])];this['moveTo'](b[l(0x165)]);}['moveTo'](a){const m=a53h,b={'actor':this,'rooms':this[m(0x172)],'scene':this['scene']},c=new GoCommand(b);c['execute']([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54h=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d
|
|
1
|
+
const a54h=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d=-parseInt(f(0x1fa))/0x1+parseInt(f(0x1c6))/0x2*(-parseInt(f(0x1d2))/0x3)+parseInt(f(0x1ee))/0x4+-parseInt(f(0x1c1))/0x5*(-parseInt(f(0x1c3))/0x6)+parseInt(f(0x1e0))/0x7+parseInt(f(0x1bd))/0x8+-parseInt(f(0x1ae))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0xd1bd5));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']()['search'](g(0x1a9))[g(0x1a8)]()[g(0x1cc)](a54a)['search'](g(0x1a9));});a54a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';function a54c(){const B=['category','equip','8653274MZxysa','\x20from\x20player\x27s\x20inventory.','_currentLocation','\x20is\x20now\x20listening\x20in\x20room\x20','A\x20featureless\x20room','playerName','Max\x20carrying\x20weight\x20must\x20be\x20positive.','hat','maxCarryingWeight','leftHand','currentLocation','enterRoom','body\x20armor','unequipBySlot','6503156XTPoEy','includes','Removed\x20','initialEquipment','helmet','arms','unequip','Weapon','You\x20don\x27t\x20have\x20','Invalid\x20category\x20or\x20slot:\x20','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','668810ddLQMn','head','weight','toString','(((.+)+)+)+$','write','toLowerCase','feet','_playerName','22249485owFiWD','addInventory','torso','removeItem','getInstance','bodyarmor','determineEquipmentSlot','weapon','_maxCarryingWeight','currentWeight','Failed\x20to\x20remove\x20','arm\x20armor','\x20to\x20player\x27s\x20inventory.','addItem','Nexus','13519464kXyEdX','bind','_inventory','leg\x20armor','10ritHSv','speak','1244172EtAQbp','name','rightHand','112OMfTkw','.\x20You\x20must\x20unequip\x20it\x20first.','off','getWeight','boots','legs','constructor','armarmor','hear','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','_equipment','removeInventory','51780PuqmTm','logger','gloves','shield','startLocation','\x20in\x20your\x20inventory.','\x20slot.','values','leaveRoom','canEquip','BodyArmor','equipment'];a54c=function(){return B;};return a54c();}function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a54d(a,b);}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{[a54h(0x1ad)];[a54h(0x1e2)];['_inventory'];[a54h(0x1d0)];[a54h(0x1b6)]=0x32;[a54h(0x1d3)];constructor(a){const i=a54h;super(),this[i(0x1ad)]=a[i(0x1e5)],this['_currentLocation']=a[i(0x1d6)]||new Room({'name':i(0x1bc),'description':i(0x1e4)}),this['_inventory']=new Inventory(),this[i(0x1d3)]=Logger[i(0x1b2)]();if(a?.['inventoryItems'])for(const b of a['inventoryItems']){this['_inventory']['addItem'](b);}this['_equipment']=a?.[i(0x1f1)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54h(0x1c4)](){const j=a54h;return this[j(0x1ad)];}get[a54h(0x1ea)](){const k=a54h;return this[k(0x1e2)];}set['currentLocation'](a){const l=a54h;this[l(0x1e2)]!==a&&(this[l(0x1da)](),this[l(0x1eb)](a)),this[l(0x1e2)]=a;}get['inventory'](){const m=a54h;return this[m(0x1bf)];}get[a54h(0x1dd)](){const n=a54h;return this[n(0x1d0)];}set[a54h(0x1dd)](a){this['_equipment']=a;}get['maxCarryingWeight'](){const o=a54h;return this[o(0x1b6)];}set[a54h(0x1e8)](a){const p=a54h;a>0x0?this[p(0x1b6)]=a:console['error'](p(0x1e6));}get[a54h(0x1b7)](){const q=a54h;let a=this[q(0x1bf)][q(0x1c9)]();for(const b in this[q(0x1d0)]){const c=this['_equipment'][b];c&&(a+=c['weight']);}return a;}[a54h(0x1af)](a){const r=a54h;if(this[r(0x1b7)]+a[r(0x1a7)]>this[r(0x1e8)]){this[r(0x1d3)][r(0x1aa)](r(0x1f9));throw new Error(r(0x1cf));}this[r(0x1bf)][r(0x1bb)](a),this[r(0x1d3)][r(0x1aa)]('Added\x20'+a['name']+r(0x1ba));}[a54h(0x1d1)](a){const s=a54h;if(this[s(0x1bf)][s(0x1b1)](a[s(0x1c4)]))return this[s(0x1d3)][s(0x1aa)](s(0x1f0)+a[s(0x1c4)]+s(0x1e1)),!![];return this['logger'][s(0x1aa)](s(0x1b8)+a['name']+s(0x1e1)),![];}[a54h(0x1df)](a){const t=a54h;if(!this[t(0x1bf)]['hasItem'](a[t(0x1c4)]))return t(0x1f6)+a[t(0x1c4)]+t(0x1d7);if(!this['canEquip'](a))return'You\x20can\x27t\x20equip\x20'+a[t(0x1c4)]+'.';const b=this[t(0x1b4)](a[t(0x1de)]);if(!b)return a[t(0x1c4)]+'\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.';if(this[t(0x1dd)][b])return t(0x1f8)+b+t(0x1c7);return this[t(0x1dd)][b]=a,this['removeInventory'](a),'You\x20equipped\x20'+a['name']+'.';}[a54h(0x1f4)](a){const u=a54h;let b=a;if(!this[u(0x1dd)][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return u(0x1f7)+a+'.';}return this[u(0x1ed)](b);}[a54h(0x1b4)](a){const v=a54h;switch(a['toLowerCase']()){case Category[v(0x1f5)]['toLowerCase']():return v(0x1c5);case Category['Shield'][v(0x1ab)]():return v(0x1e9);case Category['Gloves'][v(0x1ab)]():return v(0x1d4);case Category['Helmet'][v(0x1ab)]():case Category['Hat']['toLowerCase']():return v(0x1a6);case Category['Boots'][v(0x1ab)]():return v(0x1ac);case Category['LegArmor']['toLowerCase']():return v(0x1cb);case Category['ArmArmor'][v(0x1ab)]():return v(0x1f3);case Category[v(0x1dc)][v(0x1ab)]():return v(0x1b0);case v(0x1b5):return v(0x1c5);case v(0x1d5):return'leftHand';case'gloves':return v(0x1d4);case v(0x1f2):case v(0x1e7):return'head';case v(0x1ca):return v(0x1ac);case v(0x1c0):case'legarmor':return v(0x1cb);case v(0x1b9):case v(0x1cd):return'arms';case v(0x1ec):case v(0x1b3):case'torso':return v(0x1b0);default:return null;}}[a54h(0x1db)](a){const w=a54h;return Object[w(0x1d9)](Category)[w(0x1ef)](a[w(0x1de)]);}[a54h(0x1ed)](a){const x=a54h,b=this[x(0x1dd)][a];if(!b)return'You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20'+a+x(0x1d8);return this[x(0x1af)](b),this[x(0x1dd)][a]=null,'You\x20unequipped\x20'+b['name']+'.';}[a54h(0x1ce)](a,b){const y=a54h;a!==this&&this[y(0x1d3)]['log'](a[y(0x1c4)]+'\x20says:\x20\x22'+b+'\x22');}['enterRoom'](a){const z=a54h;this[z(0x1e2)]=a,a['on'](z(0x1c2),this[z(0x1ce)][z(0x1be)](this)),this[z(0x1d3)][z(0x1aa)](this['name']+z(0x1e3)+a['name']);}[a54h(0x1da)](){const A=a54h;this[A(0x1e2)]&&(this[A(0x1e2)][A(0x1c8)](A(0x1c2),this[A(0x1ce)][A(0x1be)](this)),this[A(0x1d3)][A(0x1aa)](this[A(0x1c4)]+'\x20is\x20no\x20longer\x20listeng\x20in\x20'+this['_currentLocation'][A(0x1c4)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x6f;var f=c[d];return f;},a55d(a,b);}function a55c(){var m=['1074168EMDOnW','matchesRequiredPhrase','Puzzle:\x20Correct\x20solution\x20provided.','rewardItem','6827784ICcvtb','10Hvjqvi','(((.+)+)+)+$','search','21026JeMyqC','solve','getInstance','failureMessage','toString','riddle','solved','You\x20have\x20already\x20solved\x20this\x20puzzle.','hasItem','4326355AKvHcZ','109744oWvUDY','logger','apply','constructor','24csjewX','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','requiredPhrase','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','50918SkykTQ','requiredItem','3466791ELMPWw','hasRequiredItem','successMessage','write','6jAaUEH'];a55c=function(){return m;};return a55c();}var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x7e))/0x1+parseInt(f(0x74))/0x2*(parseInt(f(0x8c))/0x3)+parseInt(f(0x8d))/0x4+-parseInt(f(0x7d))/0x5+parseInt(f(0x82))/0x6*(parseInt(f(0x86))/0x7)+parseInt(f(0x70))/0x8+-parseInt(f(0x88))/0x9*(-parseInt(f(0x71))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x8e2b1));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x80)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x78)]()[h(0x73)](h(0x72))[h(0x78)]()[h(0x81)](a55a)[h(0x73)](h(0x72));});a55a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a55i(0x7f)]=Logger[a55i(0x76)]();[a55i(0x7a)]=![];[a55i(0x87)];[a55i(0x84)];[a55i(0x79)];['rewardItem'];[a55i(0x8a)];[a55i(0x77)];constructor(a){var j=a55i;super(),this[j(0x87)]=a[j(0x87)],this[j(0x84)]=a[j(0x84)],this[j(0x79)]=a[j(0x79)],this[j(0x6f)]=a['rewardItem'],this[j(0x8a)]=a[j(0x8a)]||'You\x20solved\x20the\x20puzzle!',this['failureMessage']=a['failureMessage']||j(0x85);}[a55i(0x89)](a){var k=a55i;if(this['requiredItem'])return a[k(0x7c)](this['requiredItem']);return![];}[a55i(0x8e)](a){return this['requiredPhrase']===a;}[a55i(0x75)](a,b){var l=a55i;if(this['solved'])return this['logger']['write'](l(0x83)),{'success':![],'message':l(0x7b)};return this[l(0x89)](b)||this[l(0x8e)](a)?(this[l(0x7a)]=!![],this[l(0x7f)][l(0x8b)](l(0x8f)),{'success':!![],'message':this[l(0x8a)]}):(this[l(0x7f)][l(0x8b)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this['failureMessage']});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d
|
|
1
|
+
const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=parseInt(f(0x164))/0x1+-parseInt(f(0x139))/0x2*(-parseInt(f(0x162))/0x3)+parseInt(f(0x150))/0x4+parseInt(f(0x173))/0x5+parseInt(f(0x144))/0x6+parseInt(f(0x15d))/0x7*(parseInt(f(0x14b))/0x8)+-parseInt(f(0x16c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0xe7dce));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a[h(0x149)]()[h(0x166)](h(0x14f))[h(0x149)]()[h(0x13b)](a56a)[h(0x166)](h(0x14f));});a56a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x138;let f=c[d];return f;},a56d(a,b);}import{AbstractRoom}from'../types/abstracts.js';function a56c(){const u=['getOppositeDirection','setPuzzle','emit','toString','attemptUnlock','88FsJrTo','write','set','south','(((.+)+)+)+$','5474080qUTjlA','findExistingDoor','apply','puzzle','addItem','values','logger','roomType','north','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','No\x20locked\x20exit\x20found\x20in\x20direction\x20','WEST','Item\x20removed\x20from\x20room\x20','458703iBVKjx','Fetching\x20exit\x20in\x20direction:\x20','isStartRoom','.\x20Success:\x20','west','3153441KLCogF','description','1072216QmlpSZ','EAST','search','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','roomB','hasItem','get','name','49796424efgDMr','DOWN','SOUTH','inventory','down','Room\x20created:\x20','addExit','4069085fFZNQW','getInstance','speak','2xxvQbZ','The\x20','constructor','\x20remains\x20locked.','Puzzle\x20set\x20for\x20room\x20','\x20is\x20locked.\x20Result:\x20','getExit','exits','Item\x20added\x20to\x20room\x20','checkIfLocked','removeItem','8736762SUgaup','roomA'];a56c=function(){return u;};return a56c();}export class Room extends AbstractRoom{['logger']=Logger[a56i(0x174)]();[a56i(0x16b)];[a56i(0x163)];[a56i(0x140)]=new Map();[a56i(0x157)];[a56i(0x15f)];[a56i(0x16f)]=new Inventory();constructor(a){const j=a56i;super(),this['name']=a[j(0x16b)],this[j(0x163)]=a[j(0x163)],this[j(0x157)]=a[j(0x157)]||RoomType['INSIDE'],a[j(0x140)]&&(this[j(0x140)]=a[j(0x140)]||new Map()),a[j(0x16f)]&&(this[j(0x16f)]=a[j(0x16f)]),a['puzzle']&&(this[j(0x153)]=a['puzzle']),this[j(0x15f)]=a[j(0x15f)]||![],this[j(0x156)][j(0x14c)](j(0x171)+this[j(0x16b)]);}['say'](a,b){const k=a56i;this[k(0x148)](k(0x138),a,b);}[a56i(0x172)](a,b,c){const l=a56i;let d=this[l(0x151)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x140)][l(0x14d)](a,d),b[l(0x140)]['set'](this[l(0x146)](a),d);}['attemptUnlockExit'](a,b){const m=a56i,c=this['exits'][m(0x16a)](a);if(c instanceof Door){const d=c[m(0x14a)](b);return this[m(0x156)][m(0x14c)](m(0x167)+a+m(0x160)+d),d?m(0x13a)+c[m(0x16b)]+'\x20unlocked!':'The\x20'+c[m(0x16b)]+m(0x13c);}return this[m(0x156)][m(0x14c)](m(0x15a)+a),m(0x159);}[a56i(0x13f)](a){const n=a56i;return this['logger'][n(0x14c)](n(0x15e)+a),this['exits'][n(0x16a)](a);}['isExitLocked'](a){const o=a56i,b=this[o(0x140)][o(0x16a)](a),c=b instanceof Door&&b[o(0x142)]();return this[o(0x156)][o(0x14c)]('Checking\x20if\x20exit\x20in\x20direction\x20'+a+o(0x13e)+c),c;}[a56i(0x154)](a){const p=a56i;this['inventory'][p(0x154)](a),this[p(0x156)][p(0x14c)](p(0x141)+this[p(0x16b)]+':\x20'+a[p(0x16b)]);}[a56i(0x143)](a){const q=a56i;this[q(0x16f)][q(0x169)](a[q(0x16b)])?(this['inventory'][q(0x143)](a[q(0x16b)]),this[q(0x156)][q(0x14c)](q(0x15c)+this[q(0x16b)]+':\x20'+a[q(0x16b)])):this[q(0x156)]['write']('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this[q(0x16b)]+':\x20'+a[q(0x16b)]);}[a56i(0x147)](a){const r=a56i;this[r(0x153)]=a,this[r(0x156)][r(0x14c)](r(0x13d)+this[r(0x16b)]+':\x20'+a['riddle']);}[a56i(0x146)](a){const s=a56i;switch(a){case s(0x158):return Direction[s(0x16e)];case s(0x14e):return Direction['NORTH'];case'east':return Direction[s(0x15b)];case s(0x161):return Direction[s(0x165)];case'up':return Direction[s(0x16d)];case s(0x170):return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}[a56i(0x151)](a){const t=a56i;for(const b of this[t(0x140)][t(0x155)]()){if(b instanceof Door){if(b[t(0x145)]===this&&b['roomB']===a||b[t(0x168)]===this&&b['roomA']===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57l=a57d;
|
|
1
|
+
const a57l=a57d;function a57c(){const D=['toUpperCase','initialize','Scene\x20initialized\x20with\x20rooms:\x20','\x27s\x20location.\x20Room\x20','getPlayer','setCharacterLocation','hasOwnProperty','toString','Failed\x20to\x20add\x20item\x20','get','addExit','length','6wnpCYz','delete','\x20is\x20now\x20in\x20room\x20','removeRoom','addActor','removeActor','keys','Room\x20\x22','warn','from','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','Added\x20room\x20to\x20scene:\x20','targetRoom','createExitsFromConfig','allActors','No\x20actor\x20with\x20name\x20','Failed\x20to\x20add\x20puzzle.\x20Room\x20','459450DBfgwJ','Actor\x20with\x20name\x20','name','(((.+)+)+)+$','set','connectRooms','search','player','createRoom','getCharacterLocation','addPuzzleToRoom','560sPTFhq','write','\x22\x20does\x20not\x20exist.','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','generateRoomsFromConfig','roomFactory','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','currentLocation','roomConfiguration','234964qxaiyB','setPuzzle','logger','direction','645912wSlqCL','addItem','1364860ikyVAF','push','actors','has','characterLocations','\x20not\x20found\x20in\x20scene.','determineStartRoom','apply','keyRequired','getActor','values','constructor','\x20to\x20room\x20','isStartRoom','exits','80235MPdmma','747845tqPfLx','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','1182176fdyAww','rooms','Removed\x20room\x20from\x20scene:\x20'];a57c=function(){return D;};return a57c();}function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0xd8;let f=c[d];return f;},a57d(a,b);}(function(a,b){const i=a57d,c=a();while(!![]){try{const d=parseInt(i(0xea))/0x1+-parseInt(i(0x122))/0x2+-parseInt(i(0xee))/0x3+-parseInt(i(0x102))/0x4+-parseInt(i(0x100))/0x5*(parseInt(i(0x111))/0x6)+parseInt(i(0xf0))/0x7+parseInt(i(0xe1))/0x8*(parseInt(i(0xff))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x2800c));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0xf7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0x10c)]()[k(0xdc)](k(0xd9))[k(0x10c)]()[k(0xfb)](a57a)[k(0xdc)](k(0xd9));});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';export class Scene extends AbstractScene{['rooms'];[a57l(0xdd)];[a57l(0xec)];[a57l(0xf2)];[a57l(0xf4)]=new Map();[a57l(0xe6)];constructor(a){const m=a57l;super(),this[m(0xe6)]=new RoomFactory(),this[m(0xdd)]=a[m(0xdd)],this[m(0x103)]=this[m(0xe5)](a[m(0xe9)]),this['logger']=Logger['getInstance'](),this[m(0xf2)]=new Map(),this[m(0x11e)](a[m(0xe9)]),this[m(0xec)][m(0xe2)](m(0x107)+Object[m(0x117)](this[m(0x103)])['join'](',\x20'));}[a57l(0x106)](){const n=a57l;this[n(0xdd)][n(0xe8)]=this[n(0xf6)]();}[a57l(0xe5)](a){const o=a57l;if(!this[o(0xe6)])throw new Error(o(0xe4));const b={};for(const c of a){const d=this[o(0xe6)][o(0xde)](c);b[c[o(0xd8)]]=d;}return b;}[a57l(0x11e)](a){const p=a57l;for(const b of a){const c=this[p(0x103)][b[p(0xd8)]];if(b[p(0xfe)])for(const d of b[p(0xfe)]){const e=d[p(0xed)][p(0x105)](),f=d[p(0x11d)],g=d[p(0xf8)],h=this[p(0x103)][f];h&&c['addExit'](Direction[e],h,g);}}}[a57l(0x115)](a){const q=a57l;if(this[q(0xf2)][q(0xf3)](a[q(0xd8)]))throw new Error(q(0x123)+a['name']+'\x20already\x20exists\x20in\x20the\x20scene.');this[q(0xf2)][q(0xda)](a[q(0xd8)],a);}[a57l(0x116)](a){const r=a57l;if(!this[r(0xf2)][r(0xf3)](a))throw new Error(r(0x120)+a+'\x20found\x20in\x20the\x20scene.');this[r(0xf2)][r(0x112)](a);}[a57l(0xf9)](a){const s=a57l;return this[s(0xf2)][s(0x10e)](a);}get[a57l(0x11f)](){const t=a57l;return Array[t(0x11a)](this[t(0xf2)][t(0xfa)]());}['addRoom'](a){const u=a57l;this['rooms'][a[u(0xd8)]]=a,this['logger'][u(0xe2)](u(0x11c)+a['name']);}[a57l(0x114)](a){const v=a57l;return this['rooms'][a]?(delete this[v(0x103)][a],this['logger']['write'](v(0x104)+a),!![]):(this['logger'][v(0xe2)](v(0x11b)+a),![]);}['addItemToRoom'](a,b){const w=a57l,c=this['rooms'][b];c?(c[w(0xef)](a),this[w(0xec)][w(0xe2)]('Added\x20item\x20'+a[w(0xd8)]+w(0xfc)+c[w(0xd8)])):this[w(0xec)][w(0xe2)](w(0x10d)+a[w(0xd8)]+'.\x20Room\x20'+b+w(0xf5));}[a57l(0xe0)](a,b){const x=a57l,c=this['rooms'][b];c?(c[x(0xeb)](a),this[x(0xec)][x(0xe2)]('Added\x20puzzle\x20to\x20room\x20'+c[x(0xd8)])):this[x(0xec)][x(0xe2)](x(0x121)+b+x(0xf5));}[a57l(0x10a)](a,b){const y=a57l,c=this['rooms'][b];c?(this[y(0xf4)][y(0xda)](a['name'],c),this[y(0xec)][y(0xe2)](a[y(0xd8)]+y(0x113)+c[y(0xd8)])):this[y(0xec)]['write']('Failed\x20to\x20set\x20'+a[y(0xd8)]+y(0x108)+b+y(0xf5));}[a57l(0xdf)](a){const z=a57l;return this['characterLocations'][z(0x10e)](a['name']);}[a57l(0xf6)](){const A=a57l,a=[];for(const c in this[A(0x103)]){if(this[A(0x103)][A(0x10b)](c)){const d=this[A(0x103)][c];d[A(0xfd)]&&a[A(0xf1)](d);}}if(a[A(0x110)]>0x1)throw new Error(A(0xe7));if(a['length']===0x1)return a[0x0];const b=Object['keys'](this[A(0x103)]);if(b[A(0x110)]===0x0)throw new Error(A(0x101));return console[A(0x119)]('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this['rooms'][b[0x0]];}[a57l(0x109)](){const B=a57l;return this[B(0xdd)];}['getRooms'](){return this['rooms'];}[a57l(0xdb)](a,b,c,d){const C=a57l,e=this[C(0x103)][a],f=this[C(0x103)][c];if(!e)throw new Error(C(0x118)+a+C(0xe3));if(!f)throw new Error('Room\x20\x22'+c+'\x22\x20does\x20not\x20exist.');e[C(0x10f)](b,f,d);}}
|