@maka/maka-cli 5.1.21 → 5.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/testCmd/_index.js +1 -1
- package/bundle/obf/src/commands/testCmd/jest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/testCmd/mocha.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/testCmd/test.command.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/uninstall.js +1 -1
- package/bundle/obf/src/commands/version/_index.js +1 -1
- package/bundle/obf/src/commands/version/list.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/version/use.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/version/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/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/logger.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/service.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a38h=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x10b))/0x1*(-parseInt(f(0xff))/0x2)+-parseInt(f(0xe5))/0x3*(-parseInt(f(0x10c))/0x4)+parseInt(f(0xfe))/0x5*(parseInt(f(0xfc))/0x6)+-parseInt(f(0x113))/0x7+-parseInt(f(0xfa))/0x8+-parseInt(f(0x110))/0x9*(parseInt(f(0x111))/0xa)+parseInt(f(0xf8))/0xb*(-parseInt(f(0x10f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xf4147));function a38c(){const m=['getItem','\x20inventory.','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','join','(((.+)+)+)+$','execute','inventory','13761howHsW',',\x20you\x20see\x20','12711704mtfNXx','You\x20cannot\x20see\x20','6CuKgpz','write','7589515WHAxCo','16uPUIHA','rooms','You\x27re\x20not\x20in\x20a\x20valid\x20room.','hasItem','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','Below\x20you,\x20','search','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','actor','currentLocation','OUTSIDE','getOtherSide','228394zaVdWj','612tMwIMt','toString','Above\x20you,\x20','5748zClvaU','9aYCJnn','10830310YgNJrc','lookOutside','1257613XtVaYp','logger','Examine\x20your\x20surroundings','\x20here.','look','error','riddle','You\x20cannot\x20see\x20through','21678zTRisB','inspectItem','description','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','roomType','string','name','It\x27s\x20just\x20a\x20regular\x20','\x27\x20in\x20current\x20room\x20inventory.','You\x20don\x27t\x20see\x20any\x20','puzzle','Looking\x20at\x20item\x20\x27'];a38c=function(){return m;};return a38c();}const a38b=(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;};}()),a38a=a38b(this,function(){const g=a38d;return a38a[g(0x10d)]()['search'](g(0xf5))[g(0x10d)]()['constructor'](a38a)[g(0x105)](g(0xf5));});a38a();import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';import{Command}from'./command.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xe2;let f=c[d];return f;},a38d(a,b);}export class LookCommand extends Command{static ['verb']=a38h(0x117);static [a38h(0xe7)]=a38h(0x115);[a38h(0xf6)](a=[]){const i=a38h;this[i(0x114)][i(0xfd)]('Executing\x20\x27Look\x27\x20command.');const b=a[i(0xf4)]('\x20');if(b){if(this['actor']['inventory']['hasItem'](b))return this[i(0x114)][i(0xfd)]('Looking\x20at\x20item\x20\x27'+b+'\x27\x20in\x20'+this[i(0x107)][i(0xeb)]+i(0xf2)),this['inspectItem'](b,this[i(0x107)][i(0xf7)]);else{if(this['actor'][i(0x108)][i(0xf7)][i(0x102)](b))return this[i(0x114)][i(0xfd)](i(0xf0)+b+i(0xed)),this[i(0xe6)](b,this[i(0x107)][i(0x108)][i(0xf7)]);else return this['isValidDirection'](b)?(this['logger']['write']('Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27'+b+'\x27.'),this[i(0x112)](b)):i(0xfb)+b;}}else return this[i(0x114)][i(0xfd)](this[i(0x107)][i(0xeb)]+'\x20is\x20looking\x20around\x20the\x20current\x20room.'),this[i(0x117)]();}['look'](){const j=a38h,a=this[j(0x107)][j(0x108)];if(!a)return this[j(0x114)][j(0xe2)](this[j(0x107)][j(0xeb)]+j(0xe8)),j(0x101);let b=a[j(0xe7)];return a[j(0xef)]&&(b+='\x0a'+a[j(0xef)][j(0xe3)]),b;}['lookOutside'](a){const k=a38h,b=this[k(0x107)][k(0x108)];if(!b)return this[k(0x114)][k(0xe2)](this[k(0x107)]['name']+k(0xe8)),k(0x101);const c=b['exits']['get'](a);if(!c)return k(0xf3)+a+'\x22.';let d;if(c instanceof Door)d=c[k(0x10a)](b);else{if(typeof c===k(0xea)){d=this[k(0x100)]&&this[k(0x100)][c];if(!d)return k(0x103)+a+'\x22.';}else return k(0x106)+a+'\x22.';}if(d[k(0xe9)]===RoomType[k(0x109)]){if(a==='up')return k(0x10e)+d[k(0xe7)];else return a==='down'?k(0x104)+d[k(0xe7)]:'To\x20the\x20'+a+k(0xf9)+d[k(0xe7)];}else return k(0xe4);}[a38h(0xe6)](a,b){const l=a38h,c=b[l(0xf1)](a);if(!c)return l(0xee)+a+l(0x116);return c['description']||l(0xec)+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39j=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d
|
|
1
|
+
const a39j=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=-parseInt(g(0xfe))/0x1*(parseInt(g(0xf7))/0x2)+-parseInt(g(0xe3))/0x3+-parseInt(g(0xea))/0x4+-parseInt(g(0xec))/0x5+-parseInt(g(0xfb))/0x6*(parseInt(g(0xf4))/0x7)+parseInt(g(0xe8))/0x8+parseInt(g(0xf6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xf3548));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a39d;if(c){const e=c[h(0xf9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const i=a39d;return a39a[i(0xed)]()[i(0xfc)](i(0xe6))[i(0xed)]()[i(0xf1)](a39a)[i(0xfc)](i(0xe6));});a39a();function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xe2;let f=c[d];return f;},a39d(a,b);}function a39c(){const l=['apply','currentLocation','96LjaEsn','search','length','1919217rPqpaL','join','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','5933355lrrrXT','execute','context','(((.+)+)+)+$','actor','5458808cWajbd','say','7697088NJWxqL','What\x20do\x20you\x20want\x20to\x20say?','6289985lcoxAn','toString','You\x20say:\x20\x22','logger','name','constructor',':\x20\x22','Scene\x20is\x20missing\x20from\x20context.','839713xaqgHC','log','83816496kqvIxC','2WUKXbG','verb'];a39c=function(){return l;};return a39c();}import{Command}from'./command.js';export class SayCommand extends Command{static [a39j(0xf8)]=a39j(0xe9);static ['description']=a39j(0xe2);[a39j(0xe5)];constructor(a){super(a),this['context']=a;}[a39j(0xe4)](a){const k=a39j;if(a[k(0xfd)]===0x0)return k(0xeb);const b=a[k(0xff)]('\x20'),c=this[k(0xe7)],d=this[k(0xe5)]['scene'];if(!d)return this[k(0xef)][k(0xf5)](k(0xf3)),'An\x20error\x20occurred.';const e=d['allActors']['filter'](f=>f[k(0xfa)]===c[k(0xfa)]);for(const f of e){this[k(0xef)][k(0xf5)](c[k(0xf0)]+'\x20says\x20to\x20'+f['name']+k(0xf2)+b+'\x22'),this[k(0xe7)][k(0xfa)][k(0xe9)](f,b);}return k(0xee)+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x1a4))/0x1*(-parseInt(f(0x19d))/0x2)+parseInt(f(0x1a8))/0x3*(parseInt(f(0x1a0))/0x4)+parseInt(f(0x1a5))/0x5+parseInt(f(0x1b0))/0x6*(-parseInt(f(0x19c))/0x7)+-parseInt(f(0x19a))/0x8*(parseInt(f(0x199))/0x9)+parseInt(f(0x1a9))/0xa*(-parseInt(f(0x19b))/0xb)+parseInt(f(0x1ad))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xa4c3a));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x19e)]()[h(0x1a7)](h(0x1a6))[h(0x19e)]()['constructor'](a40a)['search'](h(0x1a6));});a40a();import{Command}from'./command.js';function a40c(){const k=['5854055nCGyWj','(((.+)+)+)+$','search','6YfTBuz','50EeVkYS','listItems','name','actor','4954308qhpeYx','SearchCommand:\x20','write','18DIkfLs','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','\x20found\x20the\x20following\x20items:\x20','logger','Search\x20for\x20items\x20in\x20your\x20area','8865xyCbSc','2632kVgwXj','1257839ILDIGL','1266594VqPzRi','2990zQXMhx','toString','apply','1418480IvJjCG','currentLocation','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','verb','120lnYKGB'];a40c=function(){return k;};return a40c();}function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x198;let f=c[d];return f;},a40d(a,b);}export class SearchCommand extends Command{static [a40i(0x1a3)]=a40i(0x1a7);static ['description']=a40i(0x198);['execute'](){const j=a40i,a=this[j(0x1ac)][j(0x1a1)]['inventory'][j(0x1aa)]();if(a['length']===0x0)return this[j(0x1b3)][j(0x1af)](j(0x1ae)+this[j(0x1ac)][j(0x1ab)]+j(0x1b1)),j(0x1a2);const b=a['join'](',\x20');return this['logger']['write'](j(0x1ae)+this[j(0x1ac)][j(0x1ab)]+j(0x1b2)+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
|
|
1
|
+
const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=parseInt(f(0x198))/0x1+-parseInt(f(0x1a5))/0x2+-parseInt(f(0x193))/0x3+-parseInt(f(0x1a3))/0x4+-parseInt(f(0x19b))/0x5*(parseInt(f(0x191))/0x6)+parseInt(f(0x1a2))/0x7+parseInt(f(0x197))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x6286b));function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x18f;let f=c[d];return f;},a41d(a,b);}function a41c(){const k=['SolveCommand:\x20','write','rewardItem','8818624PuVCVm','80225glwhbb','inventory','toString','39145NpjnKv','join','description','search','(((.+)+)+)+$','solve','puzzle','290948hSRGhe','357776CbWRtN','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','38614MXaavi','verb','execute','currentLocation','Attempt\x20to\x20solve\x20a\x20puzzle.','constructor','toLowerCase','actor','318tYxHiF','apply','890598OmvHfd'];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(0x192)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x19a)]()['search'](h(0x19f))['toString']()[h(0x1aa)](a41a)[h(0x19e)](h(0x19f));});a41a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a41i(0x1a6)]='solve';static [a41i(0x19d)]=a41i(0x1a9);[a41i(0x1a7)](a){const j=a41i,b=a[j(0x19c)]('\x20')[j(0x18f)](),c=this['actor'][j(0x1a8)];if(!c||!c[j(0x1a1)])return this['logger'][j(0x195)](j(0x1a4)),'There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.';const d=c[j(0x1a1)][j(0x1a0)](b,this[j(0x190)][j(0x199)]);return d['success']&&c['puzzle'][j(0x196)]&&this[j(0x190)]['inventory']['addItem'](c['puzzle']['rewardItem']),this['logger'][j(0x195)](j(0x194)+d['message']),d['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x159))/0x1+-parseInt(f(0x145))/0x2*(parseInt(f(0x156))/0x3)+parseInt(f(0x15d))/0x4*(-parseInt(f(0x13e))/0x5)+parseInt(f(0x133))/0x6+parseInt(f(0x141))/0x7+parseInt(f(0x157))/0x8+-parseInt(f(0x14c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xd74cf));function a42c(){const l=['Error\x20during\x20\x27Take\x27\x20command:\x20','3ywCPqZ','9718336zgikAz','hasItem','680162fsLTaF','execute','toLowerCase','\x22\x20in\x20this\x20room.','28ahVhoD','name','5895354KvavAo','removeItem','toString','Item\x20\x22','take','(((.+)+)+)+$','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','There\x20is\x20no\x20item\x20\x22','message','You\x20have\x20taken\x20the\x20','currentLocation','96205LoCbNu','\x22\x20is\x20too\x20heavy\x20to\x20carry.','constructor','8486261gIYLXe','actor','Pick\x20up\x20an\x20item.','getItem','3087010nYBjop','\x22\x20not\x20retrieved\x20from\x20','addInventory','write','\x20during\x20\x27Take\x27\x20command.','description','logger','13767957iEZyQW','search','Successfully\x20added\x20\x22','join','inventory','The\x20item\x20\x22','apply','\x22\x20from\x20','\x22\x20not\x20found\x20in\x20'];a42c=function(){return l;};return a42c();}const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x135)]()['search'](h(0x138))[h(0x135)]()[h(0x140)](a42a)[h(0x14d)](h(0x138));});a42a();function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x132;let f=c[d];return f;},a42d(a,b);}import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']=a42i(0x137);static [a42i(0x14a)]=a42i(0x143);[a42i(0x15a)](a){const j=a42i;return this[j(0x14b)][j(0x148)]('Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20'+a[j(0x14f)]('\x20')),this[j(0x137)](a);}['take'](a){const k=a42i,b=a[k(0x14f)]('\x20')[k(0x15b)](),c=this[k(0x142)][k(0x13d)];if(!c[k(0x150)][k(0x158)](b))return this['logger']['write'](k(0x136)+b+k(0x154)+c[k(0x132)]+k(0x149)),k(0x13a)+b+k(0x15c);const d=c['inventory'][k(0x144)](b);if(!d)return this[k(0x14b)]['write'](k(0x136)+b+k(0x146)+c['name']+k(0x139)),k(0x13a)+b+k(0x15c);try{return this[k(0x142)][k(0x147)](d),this[k(0x14b)][k(0x148)](k(0x14e)+b+'\x22\x20to\x20'+this[k(0x142)][k(0x132)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[k(0x150)][k(0x134)](b),this['logger'][k(0x148)]('Successfully\x20removed\x20\x22'+b+k(0x153)+c[k(0x132)]+k(0x139)),k(0x13c)+b+'.';}catch(e){return this[k(0x14b)][k(0x148)](k(0x155)+e[k(0x13b)]),k(0x151)+b+k(0x13f);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d
|
|
1
|
+
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0xb9))/0x1*(-parseInt(f(0xbb))/0x2)+-parseInt(f(0xc3))/0x3+parseInt(f(0xc4))/0x4+-parseInt(f(0xb8))/0x5+-parseInt(f(0xb7))/0x6+parseInt(f(0xbd))/0x7+parseInt(f(0xb5))/0x8*(parseInt(f(0xb3))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x99273));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0xc9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0xc1)]()[h(0xba)](h(0xc0))[h(0xc1)]()[h(0xb4)](a43a)[h(0xba)](h(0xc0));});function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0xb2;let f=c[d];return f;},a43d(a,b);}a43a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a43i(0xbe)]=a43i(0xb2);static [a43i(0xc6)]='Unequip\x20an\x20item.';[a43i(0xbf)](a){const j=a43i,b=a[j(0xc8)]('\x20')[j(0xc5)](),c=this[j(0xb6)][j(0xc2)](b);return this['logger'][j(0xc7)](j(0xbc)+this['actor']['name']+j(0xca)+c),c;}}function a43c(){const k=['2944218AAzkFP','2307376UlWWDz','toLowerCase','description','write','join','apply','\x20unqeuiped\x20','unqeuip','541755PpzAtM','constructor','456YbSvwe','actor','1271394qgrAGj','5999685GvqOnj','1109278DiiwCw','search','2Mnemhm','UnequipCommand:\x20','853132CfCVXg','verb','execute','(((.+)+)+)+$','toString','unequip'];a43c=function(){return k;};return a43c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44k=a44d;
|
|
1
|
+
const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=-parseInt(h(0x167))/0x1*(-parseInt(h(0x162))/0x2)+-parseInt(h(0x154))/0x3*(-parseInt(h(0x168))/0x4)+parseInt(h(0x170))/0x5+parseInt(h(0x158))/0x6*(-parseInt(h(0x14b))/0x7)+parseInt(h(0x15f))/0x8*(parseInt(h(0x159))/0x9)+parseInt(h(0x16c))/0xa+-parseInt(h(0x15d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xb00a4));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a[j(0x15a)]()[j(0x166)](j(0x153))[j(0x15a)]()[j(0x16a)](a44a)['search'](j(0x153));});function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x149;let f=c[d];return f;},a44d(a,b);}a44a();import{Door}from'../models/door.js';import{Command}from'./command.js';function a44c(){const n=['description','13474120XGJSEF','exits','UnlockCommand:\x20','.\x20Result:\x20','4657755WUssgR','logger','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','currentLocation','name','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','actor','There\x27s\x20no\x20door\x20named\x20\x22','1673GQkRKP','get','apply','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','execute','unlockItemOrSolution','getItem','attemptUnlockExit','(((.+)+)+)+$','3fetlhs','write','\x22\x20here.','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','1626rwYxMI','11673BGhqnT','toString','verb','unlock','38884945JBSGIc','inventory','2032HqlthV','isValidDirection','toLowerCase','219192fExqyW','\x20is\x20attempted\x20to\x20unlock\x20','has','Unlock\x20a\x20door.','search','10wKDuUi','2465852vgvGsU','length','constructor'];a44c=function(){return n;};return a44c();}export class UnlockCommand extends Command{static [a44k(0x15b)]=a44k(0x15c);static [a44k(0x16b)]=a44k(0x165);[a44k(0x14f)](a){const l=a44k;return this[l(0x15c)](a);}[a44k(0x15c)](a){const m=a44k;if(a[m(0x169)]===0x0)return this[m(0x171)]['error']('UnlockCommand:\x20No\x20target\x20specified.'),m(0x14e);const b=a[0x0][m(0x161)](),c=this[m(0x149)][m(0x173)];if(this[m(0x160)](b)&&c[m(0x16d)][m(0x164)](b)){const d=c[m(0x16d)][m(0x14c)](b);if(d instanceof Door){const e=d[m(0x150)]?.[m(0x161)]();if(e&&this[m(0x149)][m(0x15e)]['hasItem'](e)){const f=this['actor'][m(0x15e)][m(0x151)](e);if(f){const g=c[m(0x152)](b,f[m(0x174)]);return this[m(0x171)]['write']('UnlockCommand:\x20'+this[m(0x149)][m(0x174)]+m(0x163)+b+m(0x16f)+g),g;}}return this[m(0x171)][m(0x155)](m(0x16e)+this[m(0x149)]['name']+m(0x157)+b+'.'),m(0x175);}else return this[m(0x171)][m(0x155)]('UnlockCommand:\x20'+b+m(0x172)+c[m(0x174)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+'\x22\x20here.';}else return this[m(0x171)][m(0x155)](m(0x16e)+b+m(0x172)+c[m(0x174)]+'.'),m(0x14a)+b+m(0x156);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a45i=a45d;function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x11c;let f=c[d];return f;},a45d(a,b);}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0x136))/0x1*(-parseInt(f(0x12b))/0x2)+-parseInt(f(0x123))/0x3+parseInt(f(0x124))/0x4+parseInt(f(0x132))/0x5+parseInt(f(0x120))/0x6*(-parseInt(f(0x125))/0x7)+-parseInt(f(0x11f))/0x8+parseInt(f(0x13b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x1e611));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x13d)]()['search'](h(0x131))['toString']()[h(0x12a)](a45a)['search'](h(0x131));});function a45c(){const l=['636475qWyBMJ','write','You\x20don\x27t\x20have\x20the\x20','execute','49586taLjEV','join','inventory','getItem','description','763974KqzYvF',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','toString','function','\x20not\x20retrieved\x20from\x20','You\x20can\x27t\x20use\x20the\x20','669504JqNhBC','406710CqJmuf','\x20attempted\x20to\x20use\x20','UseCommand:\x20','463464kocKGC','621756lMMqMr','21nbwNCA','use','apply','hasItem','name','constructor','8MyYCEe','actor','\x20in\x20this\x20way.','\x20to\x20use.','verb','logger','(((.+)+)+)+$'];a45c=function(){return l;};return a45c();}a45a();import{Command}from'./command.js';export class UseCommand extends Command{static [a45i(0x12f)]=a45i(0x126);static [a45i(0x13a)]='Use\x20an\x20item.';[a45i(0x135)](a){const j=a45i;return this[j(0x126)](a);}['use'](a){const k=a45i,b=a[k(0x137)]('\x20')['toLowerCase']();if(!this[k(0x12c)][k(0x138)][k(0x128)](b))return this[k(0x130)][k(0x133)](k(0x122)+this[k(0x12c)]['name']+k(0x121)+b+k(0x13c)),k(0x134)+b+k(0x12e);const c=this[k(0x12c)][k(0x138)][k(0x139)](b);if(!c)return this[k(0x130)]['write'](k(0x122)+b+k(0x11d)+this[k(0x12c)]['name']+'\x27s\x20inventory.'),k(0x134)+b+k(0x12e);if(typeof c[k(0x126)]===k(0x11c)){const d=c['use']();return this[k(0x130)][k(0x133)](k(0x122)+this[k(0x12c)][k(0x129)]+'\x20used\x20'+b+'.'),d;}else return this[k(0x130)]['write'](k(0x122)+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),k(0x11e)+b+k(0x12d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46i=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d
|
|
1
|
+
const a46i=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d=parseInt(f(0x1b5))/0x1+-parseInt(f(0x1b9))/0x2*(parseInt(f(0x1aa))/0x3)+parseInt(f(0x1b0))/0x4*(parseInt(f(0x1b3))/0x5)+parseInt(f(0x1b1))/0x6*(-parseInt(f(0x1b2))/0x7)+parseInt(f(0x1b7))/0x8+-parseInt(f(0x1ba))/0x9*(parseInt(f(0x1b8))/0xa)+parseInt(f(0x1ab))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x9ad4c));function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a46d(a,b);}function a46c(){const m=['commandMap','787949RZzIZp','(((.+)+)+)+$','3509912FQAnVe','41330nUmyCf','1197634VYWOKQ','639FWfVDZ','constructor','toString','6wCJVQb','1746657bXiCNn','apply','registerCommand','search','createCommand','144RWsxRv','948FQoMWj','18851ybxuTg','161845fQLIer'];a46c=function(){return m;};return a46c();}const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a[h(0x1a9)]()['search'](h(0x1b6))[h(0x1a9)]()[h(0x1a8)](a46a)[h(0x1ae)](h(0x1b6));});a46a();export class CommandFactory{static ['commandMap']={};static[a46i(0x1ad)](a,b){const j=a46i;this[j(0x1b4)][a]=b;}static[a46i(0x1af)](a,b){const k=a46i,c=this[k(0x1b4)][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){const l=a46i;return this[l(0x1b4)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47h=a47d;function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x100;let f=c[d];return f;},a47d(a,b);}(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x10b))/0x1*(-parseInt(f(0x112))/0x2)+parseInt(f(0x125))/0x3+parseInt(f(0x104))/0x4*(-parseInt(f(0x107))/0x5)+-parseInt(f(0x126))/0x6*(parseInt(f(0x123))/0x7)+parseInt(f(0x106))/0x8+-parseInt(f(0x105))/0x9*(-parseInt(f(0x109))/0xa)+parseInt(f(0x111))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xb1754));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['toString']()[g(0x124)](g(0x10e))[g(0x121)]()['constructor'](a47a)[g(0x124)](g(0x10e));});a47a();function a47c(){const n=['2787192PJIeID','132VJhFOy','name','createRoom','content','toUpperCase','createItem','16ctAvsS','9PqlCBV','8979768ZjKvsa','203030gkXJFL','createPuzzle','2292910PYwRrp','forEach','1343935dcZeqQ','isStartRoom','setPuzzle','(((.+)+)+)+$','sword','rewardItem','8840117TOuVcT','2IRlnJT','gloves','puzzle','bodyarmor','legarmor','key','boots','rifle','items','gauntlets','convertToRoomConfig','roomType','type','INSIDE','book','toString','description','270851IdgSXa','search'];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(0x100)](a){const i=a47h,b=this['convertToRoomConfig'](a),c=new Room(b);if(a['items']){const d=new Inventory();a[i(0x11a)][i(0x10a)](e=>{const j=i;d['addItem'](this[j(0x103)](e));}),c['inventory']=d;}return a[i(0x114)]&&c[i(0x10d)](this[i(0x108)](a[i(0x114)])),c;}[a47h(0x103)](a){const k=a47h;switch(a[k(0x11e)]){case k(0x117):return new Key(a[k(0x127)],a[k(0x122)]);case k(0x120):return new Book(a[k(0x127)],a[k(0x122)],a[k(0x101)]);case k(0x10f):return new Sword(a[k(0x127)],a[k(0x122)]);case k(0x119):return new Rifle(a[k(0x127)],a['description']);case'helmet':return new Helmet(a['name'],a[k(0x122)]);case k(0x115):return new BodyArmor(a[k(0x127)],a[k(0x122)]);case k(0x116):return new LegArmor(a[k(0x127)],a[k(0x122)]);case k(0x118):return new Boots(a[k(0x127)],a[k(0x122)]);case k(0x113):return new Gloves(a['name'],a['description']);case k(0x11b):return new Gauntlets(a[k(0x127)],a[k(0x122)]);default:return new BasicItem(a[k(0x127)],a['description']);}}['createPuzzle'](a){const l=a47h,b=this['createItem'](a[l(0x110)]);return new Puzzle({...a,'rewardItem':b});}[a47h(0x11c)](a){const m=a47h,b=a[m(0x11d)]&&RoomType[a[m(0x11d)][m(0x102)]()]?RoomType[a[m(0x11d)][m(0x102)]()]:RoomType[m(0x11f)];return{'name':a['name'],'description':a[m(0x122)],'isStartRoom':a[m(0x10c)],'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(0x125))/0x1*(parseInt(h(0x135))/0x2)+-parseInt(h(0x14b))/0x3+-parseInt(h(0x11b))/0x4+-parseInt(h(0x145))/0x5*(-parseInt(h(0x12d))/0x6)+-parseInt(h(0x136))/0x7*(parseInt(h(0x12b))/0x8)+-parseInt(h(0x11c))/0x9*(-parseInt(h(0x11d))/0xa)+parseInt(h(0x137))/0xb*(parseInt(h(0x12a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x34441));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a[j(0x126)]()[j(0x122)](j(0x143))['toString']()[j(0x149)](a48a)[j(0x122)]('(((.+)+)+)+$');});a48a();function a48c(){const s=['11tfUvVP','toString','getDescription','quit','player','840URCCuE','2704NmjUKT','initialize','47022JkHzwa','Welcome,\x20','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','drop','scene','apply','determineStartRoom','38242biFTjG','1834iqFPJq','77693eVebun','getInstance','rooms','name','lock','getRooms','unlock','hasOwnProperty','Available\x20Commands:\x0a','getAllRegisteredCommands','createCommand','say','(((.+)+)+)+$','maka','105cppfdy','split','unequip','equip','constructor','getHelpMessage','1171647GSEoSO','instance','1032416XdDBGE','207DUxCDs','35640ByPVmP','help','slice','registerCommands','toLowerCase','search','registerCommand','currentLocation'];a48c=function(){return s;};return a48c();}function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x11b;let f=c[d];return f;},a48d(a,b);}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';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(0x14c)];['scene'];[a48k(0x129)];['currentRoom'];[a48k(0x139)];constructor(a,b){const l=a48k;this['player']=a,this[l(0x132)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x132)][l(0x12c)](),this[l(0x129)][l(0x124)]=this[l(0x134)](),this[l(0x120)]();}[a48k(0x120)](){const m=a48k;CommandFactory[m(0x123)]('look',LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory[m(0x123)]('take',TakeCommand),CommandFactory[m(0x123)]('use',UseCommand),CommandFactory[m(0x123)](m(0x148),EquipCommand),CommandFactory[m(0x123)](m(0x147),UnequipCommand),CommandFactory[m(0x123)]('solve',SolveCommand),CommandFactory['registerCommand'](m(0x131),DropCommand),CommandFactory['registerCommand'](m(0x13d),UnlockCommand),CommandFactory[m(0x123)](m(0x13b),LockCommand),CommandFactory[m(0x123)](m(0x122),SearchCommand),CommandFactory[m(0x123)](m(0x142),SayCommand);}[a48k(0x134)](){const n=a48k;return this[n(0x132)][n(0x134)]();}['getWelcomeMessage'](){const o=a48k;return o(0x12e)+this['player'][o(0x13a)];}static[a48k(0x138)](a,b){const p=a48k;return!Game[p(0x14c)]&&(Game['instance']=new Game(a,b)),Game[p(0x14c)];}['handleInput'](a){const q=a48k,b=a['trim']()[q(0x146)]('\x20'),c=b[0x0][q(0x121)](),d=b[q(0x11f)](0x1);if(c===q(0x128))return null;if(c===q(0x144))return q(0x130);if(c===q(0x11e))return this[q(0x14a)]();if(c==='clear')return'';const e={'actor':this[q(0x129)],'rooms':this[q(0x132)][q(0x13c)](),'scene':this['scene']},f=CommandFactory[q(0x141)](c,e);if(f){const g=f['execute'](d);return g;}return q(0x12f)+c+'\x22.';}['getHelpMessage'](){const r=a48k,a=CommandFactory[r(0x140)]();let b=r(0x13f);for(const c in a){if(a[r(0x13e)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x127)]()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+='-\x20quit:\x20Exit\x20the\x20game.\x0a',b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0xca))/0x1*(parseInt(f(0xd8))/0x2)+-parseInt(f(0xcc))/0x3*(-parseInt(f(0xd0))/0x4)+parseInt(f(0xd5))/0x5+parseInt(f(0xd9))/0x6*(parseInt(f(0xd1))/0x7)+-parseInt(f(0xda))/0x8*(-parseInt(f(0xcd))/0x9)+parseInt(f(0xd6))/0xa*(-parseInt(f(0xdb))/0xb)+-parseInt(f(0xd7))/0xc*(parseInt(f(0xd4))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x3172f));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0xcf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0xd3)]()[h(0xce)](h(0xd2))[h(0xd3)]()[h(0xcb)](a49a)[h(0xce)](h(0xd2));});a49a();export*from'./door.js';function a49c(){var i=['391464QoiNuC','search','apply','8geecNG','5894dzOWym','(((.+)+)+)+$','toString','65rgLxSd','616445YYLMaQ','3930qCiZyh','1337628SMmCJm','4TNIvXp','852dbqxFG','24TiRoZz','7403TDVwct','142727nesfmb','constructor','548373aKBhCN'];a49c=function(){return i;};return a49c();}function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xca;var f=c[d];return f;},a49d(a,b);}export*from'./inventory.js';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
|
-
|
|
1
|
+
function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0xb7;var f=c[d];return f;},a50d(a,b);}var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=parseInt(f(0xba))/0x1*(parseInt(f(0xd1))/0x2)+-parseInt(f(0xc2))/0x3*(-parseInt(f(0xd5))/0x4)+parseInt(f(0xd3))/0x5+-parseInt(f(0xbe))/0x6*(parseInt(f(0xc8))/0x7)+-parseInt(f(0xb9))/0x8*(parseInt(f(0xda))/0x9)+-parseInt(f(0xd0))/0xa+-parseInt(f(0xc7))/0xb*(-parseInt(f(0xd6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x4d1e4));var a50b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a50d;if(c){var e=c[g(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){var h=a50d;return a50a[h(0xd7)]()['search']('(((.+)+)+)+$')['toString']()[h(0xb8)](a50a)[h(0xc0)](h(0xb7));});function a50c(){var o=['To\x20','getOtherSide','Door\x20created\x20between\x20','4916870jqZfXq','26uKdFPX','name','1369805ZTVEbj','apply','25436kxXKcQ','10822380KucYaK','toString','isLockable','roomB','27XZKKap','(((.+)+)+)+$','constructor','1552120aFYbOh','8635gxRApJ','.\x20Is\x20Locked:\x20','\x20and\x20','checkIfLockable','12rorUHm','checkIfLocked','search','roomA','87kYGsPY','write','isLocked','logger','getInstance','11uEiQlS','290094hOtQdv','Failed\x20to\x20unlock\x20door:\x20','.\x20Used:\x20','unlockItemOrSolution','Door\x20unlocked:\x20'];a50c=function(){return o;};return a50c();}a50a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a50i(0xc1)];[a50i(0xd9)];['isLocked'];[a50i(0xcb)];[a50i(0xd2)];[a50i(0xc5)];[a50i(0xd8)];constructor(a){var j=a50i;super(),this[j(0xc1)]=a[j(0xc1)],this['roomB']=a['roomB'],this[j(0xc4)]=a[j(0xc4)]||![],this[j(0xcb)]=a[j(0xcb)],this[j(0xd2)]=a[j(0xd2)]?capitalCase(a['name']):j(0xcd)+a[j(0xd9)][j(0xd2)],this[j(0xc5)]=Logger[j(0xc6)](),this[j(0xd8)]=!!a[j(0xcb)],this['logger'][j(0xc3)](j(0xcf)+this[j(0xc1)][j(0xd2)]+j(0xbc)+this[j(0xd9)][j(0xd2)]+j(0xbb)+this[j(0xc4)]);}[a50i(0xce)](a){var k=a50i;return this[k(0xc1)]===a?this[k(0xd9)]:this[k(0xc1)];}['attemptUnlock'](a){var l=a50i;if(this[l(0xc4)]&&this[l(0xcb)]&&this[l(0xcb)]===a)return this[l(0xc4)]=![],this[l(0xc5)][l(0xc3)](l(0xcc)+this[l(0xd2)]+l(0xca)+a),!![];return this[l(0xc5)][l(0xc3)](l(0xc9)+this[l(0xd2)]+l(0xca)+a),![];}[a50i(0xbf)](){var m=a50i;return this[m(0xc4)];}[a50i(0xbd)](){var n=a50i;return this[n(0xd8)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a51i=a51d;function a51c(){const r=['4rWwNdb','listItems','Checked\x20for\x20item:\x20','435325bIyKEt','get','name','getInstance','\x20to\x20inventory.','Added\x20item:\x20','Listed\x20items\x20in\x20inventory:\x20','2545470Gnjqxu','items','search','6whbmot','Retrieved\x20details\x20for\x20item:\x20','toLowerCase','toString','delete','hasItem','Removed\x20item:\x20','531081EahhwG','.\x20Item\x20not\x20found.','341896UKbsRn','logger','values','join','1167145PJyzSJ','\x20from\x20inventory.','keys','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','map','write','addItem','\x20in\x20','219402PPrFVe','86982sJyOeF','getItem','has','24anqIsZ','apply','(((.+)+)+)+$'];a51c=function(){return r;};return a51c();}(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x15d))/0x1+parseInt(f(0x140))/0x2*(parseInt(f(0x154))/0x3)+parseInt(f(0x147))/0x4*(parseInt(f(0x14a))/0x5)+parseInt(f(0x141))/0x6+-parseInt(f(0x138))/0x7+parseInt(f(0x144))/0x8*(parseInt(f(0x15b))/0x9)+parseInt(f(0x151))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x3b8c3));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x145)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a['toString']()[h(0x153)]('(((.+)+)+)+$')[h(0x157)]()['constructor'](a51a)[h(0x153)](h(0x146));});a51a();function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x137;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(0x152)];[a51i(0x15e)];constructor(){const j=a51i;super(),this[j(0x152)]=new Map(),this[j(0x15e)]=Logger[j(0x14d)]();}[a51i(0x13e)](a){const k=a51i;this[k(0x152)]['set'](a['name'][k(0x156)](),a),this['logger'][k(0x13d)](k(0x14f)+a[k(0x14c)]+k(0x14e));}['removeItem'](a){const l=a51i,b=this[l(0x142)](a);if(b)return this['items'][l(0x158)](a[l(0x156)]()),this[l(0x15e)][l(0x13d)](l(0x15a)+a+l(0x139)),b;return this[l(0x15e)][l(0x13d)]('Failed\x20to\x20remove\x20item:\x20'+a+'.\x20Item\x20not\x20found.'),null;}[a51i(0x159)](a){const m=a51i,b=this['items'][m(0x143)](a[m(0x156)]()),c=[...this[m(0x152)][m(0x13a)]()];return this['logger'][m(0x13d)](m(0x149)+a+m(0x13f)+c[m(0x137)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}[a51i(0x142)](a){const n=a51i,b=this['items'][n(0x14b)](a[n(0x156)]())||null;return b?this[n(0x15e)]['write'](n(0x155)+a+'.'):this[n(0x15e)]['write'](n(0x13b)+a+n(0x15c)),b;}[a51i(0x148)](){const o=a51i,a=[...this[o(0x152)]['keys']()],b=a[o(0x13c)](c=>capitalCase(c));return this['logger']['write'](o(0x150)+b[o(0x137)](',\x20')+'.'),a;}['getWeight'](){const p=a51i;let a=0x0;for(const b of this[p(0x152)][p(0x15f)]()){a+=b['weight'];}return a;}['getAllItems'](){const q=a51i;return[...this[q(0x152)]['values']()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x1da))/0x1*(parseInt(f(0x1de))/0x2)+parseInt(f(0x1e0))/0x3*(-parseInt(f(0x1ed))/0x4)+parseInt(f(0x1d8))/0x5+-parseInt(f(0x1d5))/0x6*(parseInt(f(0x1e8))/0x7)+parseInt(f(0x1dc))/0x8+-parseInt(f(0x1d4))/0x9+parseInt(f(0x1e4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xbe42e));function a52c(){var l=['search','1ZdvDbq','category','8915672VgDNpN','size','3071234ysLbcW','constructor','3592293badyip','uuid','description','color','26923590GwhTgM','name','rating','toString','4082267VYnzQZ','(((.+)+)+)+$','use','.\x20Nothing\x20special\x20happens.','apply','4YprAUo','texture','6291432ZqgNUj','6FKfGPD','weight','shape','4938845dFLcxg'];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(0x1ec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x1e7)]()[h(0x1d9)](h(0x1e9))[h(0x1e7)]()[h(0x1df)](a52a)[h(0x1d9)](h(0x1e9));});a52a();import{v4 as a52e}from'uuid';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x1d3;var f=c[d];return f;},a52d(a,b);}import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a52i(0x1e1)];[a52i(0x1e5)];['description'];[a52i(0x1dd)];[a52i(0x1db)];['shape'];[a52i(0x1e3)];[a52i(0x1d3)];[a52i(0x1e6)];[a52i(0x1d6)];constructor(a){var j=a52i;super(),this[j(0x1e5)]=a[j(0x1e5)],this[j(0x1e2)]=a[j(0x1e2)],this['size']=a[j(0x1dd)],this[j(0x1db)]=a['category'],this['shape']=a[j(0x1d7)],this[j(0x1e3)]=a[j(0x1e3)],this[j(0x1d3)]=a['texture'],this[j(0x1e6)]=a[j(0x1e6)],this[j(0x1d6)]=a[j(0x1d6)],this[j(0x1e1)]=a52e();}[a52i(0x1ea)](){var k=a52i;return'You\x20use\x20the\x20'+this[k(0x1e5)]+k(0x1eb);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0xe6))/0x1+-parseInt(f(0xe0))/0x2+-parseInt(f(0xe2))/0x3+-parseInt(f(0xd5))/0x4+-parseInt(f(0xdf))/0x5*(-parseInt(f(0xe9))/0x6)+parseInt(f(0xeb))/0x7*(-parseInt(f(0xe7))/0x8)+-parseInt(f(0xec))/0x9*(-parseInt(f(0xe4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x9cb10));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0xda)]()[h(0xe5)](h(0xdb))[h(0xda)]()['constructor'](a53a)['search'](h(0xdb));});a53a();import{Player}from'./player.js';function a53c(){const n=['_dialogue','scene','moveTo','toString','(((.+)+)+)+$','floor','speak','random','10FmyScI','1742472VwvJxr','_name','705915RbBTim','apply','38150amQDzh','search','758775EIgtPt','16FcvXLP','autonomousMove','22284HCYRMa','rooms','2328263kRafwJ','4716wFQuQB','length','1406784bhkVBC','name'];a53c=function(){return n;};return a53c();}import{GoCommand}from'../commands/go.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xd4;let f=c[d];return f;},a53d(a,b);}export class NPC extends Player{[a53i(0xe1)];['_dialogue'];[a53i(0xea)];[a53i(0xd8)];constructor(a,b,c,d){const j=a53i;super(d),this[j(0xe1)]=a,this[j(0xd7)]=b,this['rooms']=c;}get[a53i(0xd6)](){return this['_name'];}[a53i(0xdd)](){const k=a53i;return this['_dialogue'][Math[k(0xdc)](Math[k(0xde)]()*this[k(0xd7)][k(0xd4)])];}[a53i(0xe8)](a){const l=a53i,b=a[Math[l(0xdc)](Math[l(0xde)]()*a[l(0xd4)])];this[l(0xd9)](b[l(0xd6)]);}[a53i(0xd9)](a){const m=a53i,b={'actor':this,'rooms':this[m(0xea)],'scene':this[m(0xd8)]},c=new GoCommand(b);c['execute']([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54i=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d
|
|
1
|
+
const a54i=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d=-parseInt(f(0x168))/0x1+-parseInt(f(0x17f))/0x2+parseInt(f(0x162))/0x3+parseInt(f(0x17b))/0x4+-parseInt(f(0x189))/0x5*(-parseInt(f(0x197))/0x6)+-parseInt(f(0x1ad))/0x7*(parseInt(f(0x1ab))/0x8)+parseInt(f(0x180))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x35532));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a54d;if(c){const e=c[g(0x15f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const h=a54d;return a54a['toString']()[h(0x1ae)](h(0x18e))[h(0x191)]()[h(0x1a8)](a54a)[h(0x1ae)](h(0x18e));});function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x154;let f=c[d];return f;},a54d(a,b);}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 C=['determineEquipmentSlot','body\x20armor','startLocation','\x20to\x20player\x27s\x20inventory.','getInstance','358804FVVfIs','inventoryItems','Hat','values','leftHand','LegArmor','leaveRoom','helmet','hat','Added\x20','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','log','Shield','toLowerCase','Weapon','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','Gloves','category','addInventory','1295732QZNJhA','bind','Failed\x20to\x20remove\x20','logger','34694hkWhYk','704322FbFGzj','getWeight','equip','enterRoom','Nexus','ArmArmor','Max\x20carrying\x20weight\x20must\x20be\x20positive.','You\x20can\x27t\x20equip\x20','Helmet','15970uctuma','equipment','weight','unequip','\x20from\x20player\x27s\x20inventory.','(((.+)+)+)+$','inventory','leg\x20armor','toString','write','BodyArmor','addItem','bodyarmor','\x20is\x20now\x20listening\x20in\x20room\x20','168lgNeyC','playerName','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','feet','hear','error','torso','name','Boots','You\x20equipped\x20','_maxCarryingWeight','You\x20don\x27t\x20have\x20','Removed\x20','includes','removeInventory','rightHand','Invalid\x20category\x20or\x20slot:\x20','constructor','hasItem','maxCarryingWeight','8mqMrsP','arm\x20armor','115325qdJXZT','search','_currentLocation','gloves','unequipBySlot','A\x20featureless\x20room','_equipment','currentWeight','_inventory','speak','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','boots','legarmor','\x20in\x20your\x20inventory.','canEquip','removeItem','currentLocation','apply','head','_playerName','358263ErXsGt'];a54c=function(){return C;};return a54c();}export class Player extends AbstractPlayer{[a54i(0x161)];[a54i(0x1af)];[a54i(0x156)];[a54i(0x154)];[a54i(0x1a1)]=0x32;[a54i(0x17e)];constructor(a){const j=a54i;super(),this[j(0x161)]=a[j(0x198)],this[j(0x1af)]=a[j(0x165)]||new Room({'name':j(0x184),'description':j(0x1b2)}),this[j(0x156)]=new Inventory(),this[j(0x17e)]=Logger[j(0x167)]();if(a?.[j(0x169)])for(const b of a['inventoryItems']){this[j(0x156)][j(0x194)](b);}this[j(0x154)]=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54i(0x19e)](){const k=a54i;return this[k(0x161)];}get[a54i(0x15e)](){const l=a54i;return this[l(0x1af)];}set[a54i(0x15e)](a){const m=a54i;this['_currentLocation']!==a&&(this[m(0x16e)](),this['enterRoom'](a)),this['_currentLocation']=a;}get[a54i(0x18f)](){const n=a54i;return this[n(0x156)];}get['equipment'](){return this['_equipment'];}set[a54i(0x18a)](a){const o=a54i;this[o(0x154)]=a;}get[a54i(0x1aa)](){const p=a54i;return this[p(0x1a1)];}set['maxCarryingWeight'](a){const q=a54i;a>0x0?this[q(0x1a1)]=a:console[q(0x19c)](q(0x186));}get['currentWeight'](){const r=a54i;let a=this[r(0x156)][r(0x181)]();for(const b in this[r(0x154)]){const c=this[r(0x154)][b];c&&(a+=c[r(0x18b)]);}return a;}['addInventory'](a){const s=a54i;if(this[s(0x155)]+a[s(0x18b)]>this[s(0x1aa)]){this['logger'][s(0x192)](s(0x177));throw new Error(s(0x158));}this['_inventory']['addItem'](a),this[s(0x17e)][s(0x192)](s(0x171)+a[s(0x19e)]+s(0x166));}['removeInventory'](a){const t=a54i;if(this['_inventory'][t(0x15d)](a[t(0x19e)]))return this[t(0x17e)][t(0x192)](t(0x1a3)+a['name']+t(0x18d)),!![];return this[t(0x17e)][t(0x192)](t(0x17d)+a['name']+t(0x18d)),![];}[a54i(0x182)](a){const u=a54i;if(!this[u(0x156)][u(0x1a9)](a[u(0x19e)]))return u(0x1a2)+a['name']+u(0x15b);if(!this[u(0x15c)](a))return u(0x187)+a[u(0x19e)]+'.';const b=this[u(0x163)](a['category']);if(!b)return a['name']+u(0x172);if(this['equipment'][b])return u(0x199)+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this[u(0x18a)][b]=a,this[u(0x1a5)](a),u(0x1a0)+a[u(0x19e)]+'.';}[a54i(0x18c)](a){const v=a54i;let b=a;if(!this['equipment'][camelCase(b)]){b=this[v(0x163)](a);if(!b)return v(0x1a7)+a+'.';}return this[v(0x1b1)](b);}['determineEquipmentSlot'](a){const w=a54i;switch(a[w(0x175)]()){case Category[w(0x176)][w(0x175)]():return w(0x1a6);case Category[w(0x174)][w(0x175)]():return w(0x16c);case Category[w(0x178)]['toLowerCase']():return w(0x1b0);case Category[w(0x188)]['toLowerCase']():case Category[w(0x16a)]['toLowerCase']():return w(0x160);case Category[w(0x19f)]['toLowerCase']():return'feet';case Category[w(0x16d)][w(0x175)]():return'legs';case Category[w(0x185)][w(0x175)]():return'arms';case Category[w(0x193)][w(0x175)]():return'torso';case'weapon':return w(0x1a6);case'shield':return w(0x16c);case w(0x1b0):return'gloves';case w(0x16f):case w(0x170):return'head';case w(0x159):return w(0x19a);case w(0x190):case w(0x15a):return'legs';case w(0x1ac):case'armarmor':return'arms';case w(0x164):case w(0x195):case w(0x19d):return w(0x19d);default:return null;}}['canEquip'](a){const x=a54i;return Object[x(0x16b)](Category)[x(0x1a4)](a[x(0x179)]);}[a54i(0x1b1)](a){const y=a54i,b=this[y(0x18a)][a];if(!b)return'You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20'+a+'\x20slot.';return this[y(0x17a)](b),this[y(0x18a)][a]=null,'You\x20unequipped\x20'+b[y(0x19e)]+'.';}['hear'](a,b){const z=a54i;a!==this&&this['logger'][z(0x173)](a[z(0x19e)]+'\x20says:\x20\x22'+b+'\x22');}[a54i(0x183)](a){const A=a54i;this[A(0x1af)]=a,a['on'](A(0x157),this[A(0x19b)][A(0x17c)](this)),this[A(0x17e)][A(0x192)](this[A(0x19e)]+A(0x196)+a[A(0x19e)]);}['leaveRoom'](){const B=a54i;this[B(0x1af)]&&(this[B(0x1af)]['off'](B(0x157),this['hear'][B(0x17c)](this)),this[B(0x17e)]['write'](this['name']+'\x20is\x20no\x20longer\x20listeng\x20in\x20'+this[B(0x1af)]['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
var a55i=a55d;function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x177;var f=c[d];return f;},a55d(a,b);}(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x185))/0x1+parseInt(f(0x17a))/0x2*(parseInt(f(0x18b))/0x3)+parseInt(f(0x181))/0x4+-parseInt(f(0x186))/0x5*(parseInt(f(0x188))/0x6)+parseInt(f(0x18c))/0x7*(parseInt(f(0x196))/0x8)+-parseInt(f(0x17b))/0x9*(-parseInt(f(0x197))/0xa)+parseInt(f(0x177))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x66153));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x17f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x182)]()[h(0x193)]('(((.+)+)+)+$')[h(0x182)]()[h(0x179)](a55a)[h(0x193)](h(0x198));});a55a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger[a55i(0x17d)]();[a55i(0x17c)]=![];[a55i(0x18d)];[a55i(0x18f)];[a55i(0x195)];[a55i(0x17e)];[a55i(0x184)];['failureMessage'];constructor(a){var j=a55i;super(),this[j(0x18d)]=a[j(0x18d)],this['requiredPhrase']=a[j(0x18f)],this[j(0x195)]=a['riddle'],this['rewardItem']=a[j(0x17e)],this[j(0x184)]=a[j(0x184)]||j(0x187),this['failureMessage']=a[j(0x189)]||j(0x18a);}['hasRequiredItem'](a){var k=a55i;if(this['requiredItem'])return a[k(0x192)](this[k(0x18d)]);return![];}[a55i(0x199)](a){var l=a55i;return this[l(0x18f)]===a;}[a55i(0x194)](a,b){var m=a55i;if(this[m(0x17c)])return this[m(0x180)][m(0x191)](m(0x183)),{'success':![],'message':m(0x190)};return this['hasRequiredItem'](b)||this[m(0x199)](a)?(this[m(0x17c)]=!![],this[m(0x180)]['write'](m(0x178)),{'success':!![],'message':this[m(0x184)]}):(this[m(0x180)][m(0x191)](m(0x18e)),{'success':![],'message':this[m(0x189)]});}}function a55c(){var n=['768394dtkyBt','Puzzle:\x20Correct\x20solution\x20provided.','constructor','4nPussh','48483sXALwj','solved','getInstance','rewardItem','apply','logger','785780LeEksK','toString','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','successMessage','527893sKZtRX','115nHETCu','You\x20solved\x20the\x20puzzle!','104604QbMsad','failureMessage','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','845874VzEFZE','7saaaty','requiredItem','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','requiredPhrase','You\x20have\x20already\x20solved\x20this\x20puzzle.','write','hasItem','search','solve','riddle','384976aMpDoD','870XlLslx','(((.+)+)+)+$','matchesRequiredPhrase'];a55c=function(){return n;};return a55c();}
|
|
@@ -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(0x1ca))/0x1+parseInt(f(0x1f7))/0x2*(-parseInt(f(0x1d4))/0x3)+parseInt(f(0x1d3))/0x4+parseInt(f(0x1ef))/0x5*(parseInt(f(0x1cd))/0x6)+parseInt(f(0x1e2))/0x7*(parseInt(f(0x203))/0x8)+parseInt(f(0x1e0))/0x9+-parseInt(f(0x1f6))/0xa*(parseInt(f(0x1da))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0xca079));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a[h(0x1f0)]()['search'](h(0x1f8))[h(0x1f0)]()[h(0x1fe)](a56a)['search'](h(0x1f8));});a56a();function a56c(){const u=['exits','hasItem','logger','removeItem','.\x20Success:\x20','getInstance','20410Aammve','toString','isStartRoom','roomType','WEST','roomA','\x20is\x20locked.\x20Result:\x20','10uybPvO','500476hskUnv','(((.+)+)+)+$','The\x20','DOWN','values','north','speak','constructor','say','isExitLocked','No\x20locked\x20exit\x20found\x20in\x20direction\x20','west','24Ewcdfe','setPuzzle','Puzzle\x20set\x20for\x20room\x20','getOppositeDirection','211437KoEwka','inventory','description','984IAtVgv','Invalid\x20direction:\x20','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','checkIfLocked','apply','south','5411052gayoUP','3CzxGpO','name','attemptUnlockExit','NORTH','get','\x20unlocked!','31205658GUgeeK','getExit','roomB','findExistingDoor','set','write','13496652qhCpYD','INSIDE','1409863UwcQTM','down','Item\x20added\x20to\x20room\x20','puzzle','Room\x20created:\x20','east','addItem'];a56c=function(){return u;};return a56c();}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 a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x1c9;let f=c[d];return f;},a56d(a,b);}export class Room extends AbstractRoom{[a56i(0x1eb)]=Logger[a56i(0x1ee)]();[a56i(0x1d5)];['description'];[a56i(0x1e9)]=new Map();[a56i(0x1f2)];[a56i(0x1f1)];[a56i(0x1cb)]=new Inventory();constructor(a){const j=a56i;super(),this[j(0x1d5)]=a[j(0x1d5)],this[j(0x1cc)]=a[j(0x1cc)],this[j(0x1f2)]=a[j(0x1f2)]||RoomType[j(0x1e1)],a[j(0x1e9)]&&(this['exits']=a[j(0x1e9)]||new Map()),a[j(0x1cb)]&&(this[j(0x1cb)]=a['inventory']),a[j(0x1e5)]&&(this['puzzle']=a['puzzle']),this[j(0x1f1)]=a[j(0x1f1)]||![],this[j(0x1eb)][j(0x1df)](j(0x1e6)+this[j(0x1d5)]);}[a56i(0x1ff)](a,b){const k=a56i;this['emit'](k(0x1fd),a,b);}['addExit'](a,b,c){const l=a56i;let d=this[l(0x1dd)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x1e9)]['set'](a,d),b[l(0x1e9)][l(0x1de)](this[l(0x1c9)](a),d);}[a56i(0x1d6)](a,b){const m=a56i,c=this['exits'][m(0x1d8)](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[m(0x1eb)][m(0x1df)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+m(0x1ed)+d),d?'The\x20'+c[m(0x1d5)]+m(0x1d9):m(0x1f9)+c[m(0x1d5)]+'\x20remains\x20locked.';}return this[m(0x1eb)][m(0x1df)](m(0x201)+a),m(0x1cf);}[a56i(0x1db)](a){const n=a56i;return this[n(0x1eb)]['write']('Fetching\x20exit\x20in\x20direction:\x20'+a),this[n(0x1e9)][n(0x1d8)](a);}[a56i(0x200)](a){const o=a56i,b=this['exits'][o(0x1d8)](a),c=b instanceof Door&&b[o(0x1d0)]();return this['logger'][o(0x1df)]('Checking\x20if\x20exit\x20in\x20direction\x20'+a+o(0x1f5)+c),c;}[a56i(0x1e8)](a){const p=a56i;this[p(0x1cb)][p(0x1e8)](a),this[p(0x1eb)]['write'](p(0x1e4)+this[p(0x1d5)]+':\x20'+a[p(0x1d5)]);}[a56i(0x1ec)](a){const q=a56i;this[q(0x1cb)][q(0x1ea)](a['name'])?(this[q(0x1cb)]['removeItem'](a[q(0x1d5)]),this[q(0x1eb)][q(0x1df)]('Item\x20removed\x20from\x20room\x20'+this['name']+':\x20'+a[q(0x1d5)])):this[q(0x1eb)][q(0x1df)]('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this[q(0x1d5)]+':\x20'+a[q(0x1d5)]);}[a56i(0x204)](a){const r=a56i;this[r(0x1e5)]=a,this[r(0x1eb)][r(0x1df)](r(0x205)+this[r(0x1d5)]+':\x20'+a['riddle']);}[a56i(0x1c9)](a){const s=a56i;switch(a){case s(0x1fc):return Direction['SOUTH'];case s(0x1d2):return Direction[s(0x1d7)];case s(0x1e7):return Direction[s(0x1f3)];case s(0x202):return Direction['EAST'];case'up':return Direction[s(0x1fa)];case s(0x1e3):return Direction['UP'];default:throw new Error(s(0x1ce)+a);}}['findExistingDoor'](a){const t=a56i;for(const b of this['exits'][t(0x1fb)]()){if(b instanceof Door){if(b[t(0x1f4)]===this&&b[t(0x1dc)]===a||b[t(0x1dc)]===this&&b[t(0x1f4)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a57c(){const E=['\
|
|
1
|
+
function a57c(){const E=['determineStartRoom','\x20not\x20found\x20in\x20scene.','\x22\x20does\x20not\x20exist.','createRoom','direction','\x20found\x20in\x20the\x20scene.','getCharacterLocation','createExitsFromConfig','getActor','name','.\x20Room\x20','characterLocations','1822288oZjxaM','No\x20actor\x20with\x20name\x20','getPlayer','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','26599936gnEwWj','set','Room\x20\x22','Added\x20puzzle\x20to\x20room\x20','(((.+)+)+)+$','addRoom','\x20already\x20exists\x20in\x20the\x20scene.','setCharacterLocation','Scene\x20initialized\x20with\x20rooms:\x20','push','keys','1441313YjqenA','allActors','keyRequired','values','rooms','get','roomConfiguration','exits','2812110RcQmZL','getRooms','roomFactory','targetRoom','removeRoom','addExit','currentLocation','getInstance','6KDzRrM','81476JUAhKQ','join','constructor','setPuzzle','actors','Failed\x20to\x20set\x20','toString','addPuzzleToRoom','3905062Wcvhpv','addActor','search','Added\x20room\x20to\x20scene:\x20','toUpperCase','isStartRoom','has','initialize','Removed\x20room\x20from\x20scene:\x20','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','generateRoomsFromConfig','player','removeActor','addItemToRoom','\x20to\x20room\x20','Added\x20item\x20','length','Failed\x20to\x20add\x20item\x20','\x27s\x20location.\x20Room\x20','addItem','1077955Nfrfhg','logger','write','Failed\x20to\x20add\x20puzzle.\x20Room\x20','apply','Room\x20Factory\x20was\x20not\x20correctly\x20initialized'];a57c=function(){return E;};return a57c();}const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=-parseInt(i(0x1df))/0x1+-parseInt(i(0x1d0))/0x2+-parseInt(i(0x1e7))/0x3+-parseInt(i(0x1f0))/0x4+-parseInt(i(0x1be))/0x5*(-parseInt(i(0x1ef))/0x6)+parseInt(i(0x1f8))/0x7+parseInt(i(0x1d4))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xc071d));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0x1f6)]()[k(0x1ac)](k(0x1d8))[k(0x1f6)]()[k(0x1f2)](a57a)['search'](k(0x1d8));});a57a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a57d(a,b);}export class Scene extends AbstractScene{[a57l(0x1e3)];[a57l(0x1b5)];[a57l(0x1bf)];[a57l(0x1f4)];[a57l(0x1cf)]=new Map();[a57l(0x1e9)];constructor(a){const m=a57l;super(),this['roomFactory']=new RoomFactory(),this[m(0x1b5)]=a['player'],this[m(0x1e3)]=this[m(0x1b4)](a['roomConfiguration']),this[m(0x1bf)]=Logger[m(0x1ee)](),this[m(0x1f4)]=new Map(),this['createExitsFromConfig'](a[m(0x1e5)]),this[m(0x1bf)][m(0x1c0)](m(0x1dc)+Object[m(0x1de)](this['rooms'])[m(0x1f1)](',\x20'));}[a57l(0x1b1)](){const n=a57l;this['player'][n(0x1ed)]=this[n(0x1c4)]();}[a57l(0x1b4)](a){const o=a57l;if(!this['roomFactory'])throw new Error(o(0x1c3));const b={};for(const c of a){const d=this[o(0x1e9)][o(0x1c7)](c);b[c[o(0x1cd)]]=d;}return b;}[a57l(0x1cb)](a){const p=a57l;for(const b of a){const c=this[p(0x1e3)][b['name']];if(b[p(0x1e6)])for(const d of b['exits']){const e=d[p(0x1c8)][p(0x1ae)](),f=d[p(0x1ea)],g=d[p(0x1e1)],h=this[p(0x1e3)][f];h&&c[p(0x1ec)](Direction[e],h,g);}}}[a57l(0x1f9)](a){const q=a57l;if(this[q(0x1f4)][q(0x1b0)](a[q(0x1cd)]))throw new Error('Actor\x20with\x20name\x20'+a['name']+q(0x1da));this['actors'][q(0x1d5)](a[q(0x1cd)],a);}[a57l(0x1b6)](a){const r=a57l;if(!this['actors'][r(0x1b0)](a))throw new Error(r(0x1d1)+a+r(0x1c9));this[r(0x1f4)]['delete'](a);}[a57l(0x1cc)](a){const s=a57l;return this[s(0x1f4)][s(0x1e4)](a);}get[a57l(0x1e0)](){const t=a57l;return Array['from'](this[t(0x1f4)][t(0x1e2)]());}[a57l(0x1d9)](a){const u=a57l;this[u(0x1e3)][a['name']]=a,this['logger'][u(0x1c0)](u(0x1ad)+a['name']);}[a57l(0x1eb)](a){const v=a57l;return this['rooms'][a]?(delete this['rooms'][a],this['logger'][v(0x1c0)](v(0x1b2)+a),!![]):(this['logger'][v(0x1c0)](v(0x1d3)+a),![]);}[a57l(0x1b7)](a,b){const w=a57l,c=this[w(0x1e3)][b];c?(c[w(0x1bd)](a),this[w(0x1bf)][w(0x1c0)](w(0x1b9)+a[w(0x1cd)]+w(0x1b8)+c['name'])):this['logger'][w(0x1c0)](w(0x1bb)+a[w(0x1cd)]+w(0x1ce)+b+w(0x1c5));}[a57l(0x1f7)](a,b){const x=a57l,c=this[x(0x1e3)][b];c?(c[x(0x1f3)](a),this['logger'][x(0x1c0)](x(0x1d7)+c[x(0x1cd)])):this[x(0x1bf)][x(0x1c0)](x(0x1c1)+b+x(0x1c5));}[a57l(0x1db)](a,b){const y=a57l,c=this[y(0x1e3)][b];c?(this[y(0x1cf)][y(0x1d5)](a[y(0x1cd)],c),this[y(0x1bf)][y(0x1c0)](a[y(0x1cd)]+'\x20is\x20now\x20in\x20room\x20'+c[y(0x1cd)])):this['logger']['write'](y(0x1f5)+a[y(0x1cd)]+y(0x1bc)+b+y(0x1c5));}[a57l(0x1ca)](a){const z=a57l;return this['characterLocations']['get'](a[z(0x1cd)]);}[a57l(0x1c4)](){const A=a57l,a=[];for(const c in this[A(0x1e3)]){if(this[A(0x1e3)]['hasOwnProperty'](c)){const d=this[A(0x1e3)][c];d[A(0x1af)]&&a[A(0x1dd)](d);}}if(a[A(0x1ba)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a[A(0x1ba)]===0x1)return a[0x0];const b=Object[A(0x1de)](this['rooms']);if(b[A(0x1ba)]===0x0)throw new Error('No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.');return console['warn'](A(0x1b3)),this[A(0x1e3)][b[0x0]];}[a57l(0x1d2)](){const B=a57l;return this[B(0x1b5)];}[a57l(0x1e8)](){const C=a57l;return this[C(0x1e3)];}['connectRooms'](a,b,c,d){const D=a57l,e=this[D(0x1e3)][a],f=this['rooms'][c];if(!e)throw new Error(D(0x1d6)+a+D(0x1c6));if(!f)throw new Error(D(0x1d6)+c+D(0x1c6));e[D(0x1ec)](b,f,d);}}
|