@maka/maka-cli 5.0.0 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/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/react/component/component.js.jsx +1 -1
- package/bundle/obf/src/templates/react/component/component.js.tsx +1 -1
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a38i=a38d;function a38c(){const n=['lookOutside','2cEVeJm','execute','\x27\x20in\x20current\x20room\x20inventory.','getItem','look','rooms','Looking\x20at\x20item\x20\x27','353417ZRrMGY','getOtherSide','error','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','name','hasItem','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','18956hmrRWj','riddle','3026518mFMrqc','1013025lEvpde','\x20is\x20looking\x20around\x20the\x20current\x20room.','description','verb','It\x27s\x20just\x20a\x20regular\x20','\x20here.','You\x20cannot\x20see\x20through','351DBtuon','129880OoNYJH',',\x20you\x20see\x20','Above\x20you,\x20','roomType','apply','write','\x20inventory.','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','Below\x20you,\x20','(((.+)+)+)+$','inspectItem','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','currentLocation','get','12vBwFBo','isValidDirection','logger','join','You\x27re\x20not\x20in\x20a\x20valid\x20room.','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','OUTSIDE','puzzle','actor','To\x20the\x20','16047VfrRfp','198jGvulU','Executing\x20\x27Look\x27\x20command.','down','search','1048ZSWPyV','inventory','You\x20cannot\x20see\x20','103572bzTTkp','toString','string'];a38c=function(){return n;};return a38c();}(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0xfa))/0x1*(parseInt(f(0xf3))/0x2)+parseInt(f(0xce))/0x3*(-parseInt(f(0xc4))/0x4)+parseInt(f(0xc7))/0x5+parseInt(f(0xe8))/0x6*(parseInt(f(0xef))/0x7)+-parseInt(f(0xec))/0x8*(-parseInt(f(0xe7))/0x9)+-parseInt(f(0xcf))/0xa+-parseInt(f(0xc6))/0xb*(-parseInt(f(0xdd))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x440bc));function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xbf;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(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0xf0)]()[h(0xeb)](h(0xd8))[h(0xf0)]()['constructor'](a38a)['search'](h(0xd8));});a38a();import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';import{Command}from'./command.js';export class LookCommand extends Command{static [a38i(0xca)]=a38i(0xf7);static [a38i(0xc9)]='Examine\x20your\x20surroundings';[a38i(0xf4)](a=[]){const j=a38i;this[j(0xdf)][j(0xd4)](j(0xe9));const b=a[j(0xe0)]('\x20');if(b){if(this[j(0xe5)][j(0xed)][j(0xc2)](b))return this[j(0xdf)][j(0xd4)](j(0xf9)+b+'\x27\x20in\x20'+this['actor'][j(0xc1)]+j(0xd5)),this[j(0xd9)](b,this['actor'][j(0xed)]);else{if(this['actor']['currentLocation'][j(0xed)][j(0xc2)](b))return this[j(0xdf)]['write'](j(0xf9)+b+j(0xf5)),this[j(0xd9)](b,this[j(0xe5)]['currentLocation'][j(0xed)]);else return this[j(0xde)](b)?(this[j(0xdf)]['write'](j(0xda)+b+'\x27.'),this[j(0xf2)](b)):j(0xee)+b;}}else return this[j(0xdf)][j(0xd4)](this[j(0xe5)][j(0xc1)]+j(0xc8)),this[j(0xf7)]();}[a38i(0xf7)](){const k=a38i,a=this[k(0xe5)]['currentLocation'];if(!a)return this['logger'][k(0xbf)](this[k(0xe5)][k(0xc1)]+'\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.'),k(0xe1);let b=a['description'];return a[k(0xe4)]&&(b+='\x0a'+a[k(0xe4)][k(0xc5)]),b;}[a38i(0xf2)](a){const l=a38i,b=this[l(0xe5)][l(0xdb)];if(!b)return this[l(0xdf)][l(0xbf)](this['actor']['name']+l(0xd6)),l(0xe1);const c=b['exits'][l(0xdc)](a);if(!c)return l(0xc0)+a+'\x22.';let d;if(c instanceof Door)d=c[l(0xfb)](b);else{if(typeof c===l(0xf1)){d=this[l(0xf8)]&&this[l(0xf8)][c];if(!d)return l(0xe2)+a+'\x22.';}else return l(0xc3)+a+'\x22.';}if(d[l(0xd2)]===RoomType[l(0xe3)]){if(a==='up')return l(0xd1)+d[l(0xc9)];else return a===l(0xea)?l(0xd7)+d['description']:l(0xe6)+a+l(0xd0)+d[l(0xc9)];}else return l(0xcd);}[a38i(0xd9)](a,b){const m=a38i,c=b[m(0xf6)](a);if(!c)return'You\x20don\x27t\x20see\x20any\x20'+a+m(0xcc);return c['description']||m(0xcb)+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a39c(){const m=['1180934lpNcAI','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','267804XXBiLR','An\x20error\x20occurred.','context','say','557316EDYXOr','1795332fLbgiu','\x20says\x20to\x20','constructor','1579920PqxGdO',':\x20\x22','989750lNTYMV','currentLocation','filter','execute','(((.+)+)+)+$','actor','logger','log','length','139223ICObwr','description','apply','search','You\x20say:\x20\x22','scene','toString','552wzoVXH','name'];a39c=function(){return m;};return a39c();}const a39j=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=parseInt(g(0x1aa))/0x1+-parseInt(g(0x1a8))/0x2+-parseInt(g(0x1af))/0x3+-parseInt(g(0x1b2))/0x4+parseInt(g(0x1b4))/0x5+parseInt(g(0x1ae))/0x6+-parseInt(g(0x19f))/0x7*(-parseInt(g(0x1a6))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x54bd2));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a39d;if(c){const e=c[h(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const i=a39d;return a39a[i(0x1a5)]()[i(0x1a2)](i(0x19a))[i(0x1a5)]()[i(0x1b1)](a39a)[i(0x1a2)](i(0x19a));});function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x197;let f=c[d];return f;},a39d(a,b);}a39a();import{Command}from'./command.js';export class SayCommand extends Command{static ['verb']=a39j(0x1ad);static [a39j(0x1a0)]=a39j(0x1a9);['context'];constructor(a){const k=a39j;super(a),this[k(0x1ac)]=a;}[a39j(0x199)](a){const l=a39j;if(a[l(0x19e)]===0x0)return'What\x20do\x20you\x20want\x20to\x20say?';const b=a['join']('\x20'),c=this[l(0x19b)],d=this['context'][l(0x1a4)];if(!d)return this[l(0x19c)][l(0x19d)]('Scene\x20is\x20missing\x20from\x20context.'),l(0x1ab);const e=d['allActors'][l(0x198)](f=>f['currentLocation']===c[l(0x197)]);for(const f of e){this[l(0x19c)][l(0x19d)](c[l(0x1a7)]+l(0x1b0)+f[l(0x1a7)]+l(0x1b3)+b+'\x22'),this[l(0x19b)][l(0x197)]['say'](f,b);}return l(0x1a3)+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(0x87))/0x1*(parseInt(f(0x81))/0x2)+parseInt(f(0x7b))/0x3+parseInt(f(0x97))/0x4*(-parseInt(f(0x91))/0x5)+parseInt(f(0x7e))/0x6+-parseInt(f(0x8f))/0x7*(-parseInt(f(0x7d))/0x8)+-parseInt(f(0x8c))/0x9+parseInt(f(0x7f))/0xa*(-parseInt(f(0x86))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xc8c50));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x84)]()[h(0x95)]('(((.+)+)+)+$')[h(0x84)]()['constructor'](a40a)[h(0x95)](h(0x82));});a40a();import{Command}from'./command.js';function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x79;let f=c[d];return f;},a40d(a,b);}function a40c(){const k=['329bQwDQV','listItems','20ZoXZlh','join','SearchCommand:\x20','logger','search','currentLocation','1116676PRFAnN','\x20found\x20the\x20following\x20items:\x20','name','3072939ARwywP','description','258568frxYWG','7938942hlTeyA','10LxIanQ','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','1324DHeppD','(((.+)+)+)+$','You\x20search\x20the\x20area\x20and\x20find:\x20','toString','execute','14452097esonDj','1451dvlyWJ','inventory','write','actor','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','14168376ppqLPQ','length','apply'];a40c=function(){return k;};return a40c();}export class SearchCommand extends Command{static ['verb']=a40i(0x95);static [a40i(0x7c)]='Search\x20for\x20items\x20in\x20your\x20area';[a40i(0x85)](){const j=a40i,a=this[j(0x8a)][j(0x96)][j(0x88)][j(0x90)]();if(a[j(0x8d)]===0x0)return this[j(0x94)][j(0x89)](j(0x93)+this['actor'][j(0x7a)]+j(0x8b)),j(0x80);const b=a[j(0x92)](',\x20');return this[j(0x94)]['write'](j(0x93)+this[j(0x8a)][j(0x7a)]+j(0x79)+b),j(0x83)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41h=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=parseInt(f(0x93))/0x1*(parseInt(f(0x94))/0x2)+parseInt(f(0x87))/0x3*(parseInt(f(0x95))/0x4)+-parseInt(f(0xa3))/0x5*(parseInt(f(0x9d))/0x6)+parseInt(f(0x89))/0x7+parseInt(f(0x97))/0x8*(-parseInt(f(0x98))/0x9)+parseInt(f(0x90))/0xa+-parseInt(f(0x8d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x5b8cb));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const g=a41d;return a41a[g(0x8e)]()['search'](g(0x9e))[g(0x8e)]()[g(0x99)](a41a)['search'](g(0x9e));});a41a();function a41c(){const j=['SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','1305010bNinsd','join','currentLocation','Attempt\x20to\x20solve\x20a\x20puzzle.','1822671rmfEzP','actor','5083351kumVEc','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','description','logger','7391131rRIWvj','toString','message','3781890UGgrYm','solve','success','299dGBBhQ','1718ivCafM','4BhHzGs','write','120VXBZDG','396522EbuwCg','constructor','inventory','SolveCommand:\x20','execute','6FaVkxc','(((.+)+)+)+$','verb','puzzle','rewardItem'];a41c=function(){return j;};return a41c();}function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x85;let f=c[d];return f;},a41d(a,b);}import{Command}from'./command.js';export class SolveCommand extends Command{static [a41h(0x9f)]='solve';static [a41h(0x8b)]=a41h(0x86);[a41h(0x9c)](a){const i=a41h,b=a[i(0xa4)]('\x20')['toLowerCase'](),c=this['actor'][i(0x85)];if(!c||!c[i(0xa0)])return this[i(0x8c)][i(0x96)](i(0xa2)),i(0x8a);const d=c[i(0xa0)][i(0x91)](b,this[i(0x88)][i(0x9a)]);return d[i(0x92)]&&c[i(0xa0)][i(0xa1)]&&this[i(0x88)][i(0x9a)]['addItem'](c[i(0xa0)][i(0xa1)]),this['logger']['write'](i(0x9b)+d[i(0x8f)]),d[i(0x8f)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x121))/0x1+-parseInt(f(0x12e))/0x2*(-parseInt(f(0x10b))/0x3)+parseInt(f(0x133))/0x4*(parseInt(f(0x120))/0x5)+-parseInt(f(0x10d))/0x6*(-parseInt(f(0x111))/0x7)+parseInt(f(0x129))/0x8*(parseInt(f(0x131))/0x9)+-parseInt(f(0x10f))/0xa*(-parseInt(f(0x10c))/0xb)+-parseInt(f(0x125))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x2a35d));function a42c(){const l=['1212959MjMCfG','990uBzTuz','logger','10myPqrm','verb','5411madqxO','getItem','execute','Pick\x20up\x20an\x20item.','write','toString','Item\x20\x22','The\x20item\x20\x22','There\x20is\x20no\x20item\x20\x22','removeItem','currentLocation','search','constructor','You\x20have\x20taken\x20the\x20','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','5uqwqog','24950GvyxXJ','description','toLowerCase','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','7126956lQBWca','addInventory','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','\x22\x20to\x20','75344LSRSGs','take','Successfully\x20removed\x20\x22','hasItem','\x22\x20in\x20this\x20room.','6822jYazmI','apply','(((.+)+)+)+$','72ikFtIi','Successfully\x20added\x20\x22','364036HjrLdM','inventory','\x22\x20from\x20','join','actor','name','\x22\x20is\x20too\x20heavy\x20to\x20carry.','297JYrhyl'];a42c=function(){return l;};return a42c();}function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x105;let f=c[d];return f;},a42d(a,b);}const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x116)]()['search'](h(0x130))[h(0x116)]()[h(0x11d)](a42a)[h(0x11c)]('(((.+)+)+)+$');});a42a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a42i(0x110)]=a42i(0x12a);static [a42i(0x122)]=a42i(0x114);[a42i(0x113)](a){const j=a42i;return this['logger']['write'](j(0x127)+a['join']('\x20')),this[j(0x12a)](a);}[a42i(0x12a)](a){const k=a42i,b=a[k(0x107)]('\x20')[k(0x123)](),c=this[k(0x108)][k(0x11b)];if(!c['inventory'][k(0x12c)](b))return this[k(0x10e)][k(0x115)](k(0x117)+b+'\x22\x20not\x20found\x20in\x20'+c[k(0x109)]+'\x20during\x20\x27Take\x27\x20command.'),k(0x119)+b+'\x22\x20in\x20this\x20room.';const d=c[k(0x105)][k(0x112)](b);if(!d)return this[k(0x10e)][k(0x115)]('Item\x20\x22'+b+'\x22\x20not\x20retrieved\x20from\x20'+c[k(0x109)]+k(0x124)),k(0x119)+b+k(0x12d);try{return this[k(0x108)][k(0x126)](d),this['logger'][k(0x115)](k(0x132)+b+k(0x128)+this[k(0x108)][k(0x109)]+k(0x11f)),c['inventory'][k(0x11a)](b),this[k(0x10e)]['write'](k(0x12b)+b+k(0x106)+c[k(0x109)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x11e)+b+'.';}catch(e){return this[k(0x10e)][k(0x115)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e['message']),k(0x118)+b+k(0x10a);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0xd3;let f=c[d];return f;},a43d(a,b);}const a43h=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0xd6))/0x1+-parseInt(f(0xe3))/0x2*(parseInt(f(0xe4))/0x3)+parseInt(f(0xe5))/0x4*(parseInt(f(0xda))/0x5)+parseInt(f(0xe6))/0x6+-parseInt(f(0xec))/0x7*(parseInt(f(0xd3))/0x8)+-parseInt(f(0xe0))/0x9+parseInt(f(0xdd))/0xa*(-parseInt(f(0xde))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xe3c3d));function a43c(){const j=['1460ChLmXl','27841ufdxrv','constructor','2726370pMLWEK','search','join','2uFTiFN','5505417nsXKtT','4ddnTcG','11171064lnuBxD','(((.+)+)+)+$','toLowerCase','verb','execute','unqeuip','7IEAbil','description','5314952hCwLtY','UnequipCommand:\x20','\x20unqeuiped\x20','849139NcXOPv','write','Unequip\x20an\x20item.','toString','6969530WmRYwt','name','actor'];a43c=function(){return j;};return a43c();}const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const g=a43d;return a43a[g(0xd9)]()[g(0xe1)]('(((.+)+)+)+$')[g(0xd9)]()[g(0xdf)](a43a)[g(0xe1)](g(0xe7));});a43a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a43h(0xe9)]=a43h(0xeb);static [a43h(0xed)]=a43h(0xd8);[a43h(0xea)](a){const i=a43h,b=a[i(0xe2)]('\x20')[i(0xe8)](),c=this[i(0xdc)]['unequip'](b);return this['logger'][i(0xd7)](i(0xd4)+this[i(0xdc)][i(0xdb)]+i(0xd5)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=parseInt(h(0x110))/0x1*(-parseInt(h(0x112))/0x2)+-parseInt(h(0x105))/0x3*(parseInt(h(0xf9))/0x4)+parseInt(h(0xfe))/0x5+-parseInt(h(0xf0))/0x6+-parseInt(h(0xf3))/0x7*(-parseInt(h(0x115))/0x8)+parseInt(h(0x102))/0x9*(parseInt(h(0x10b))/0xa)+-parseInt(h(0x108))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xcc7eb));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a['toString']()[j(0x116)](j(0x10d))[j(0xf1)]()[j(0x100)](a44a)[j(0x116)](j(0x10d));});a44a();function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xee;let f=c[d];return f;},a44d(a,b);}function a44c(){const n=['get','5488272CJkNaN','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','toLowerCase','641511XZxXkf','getItem','\x22\x20here.','13910743TDxQhR','\x20is\x20attempted\x20to\x20unlock\x20','UnlockCommand:\x20No\x20target\x20specified.','20nIalHd','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','(((.+)+)+)+$','.\x20Result:\x20','UnlockCommand:\x20','1SMKUwW','attemptUnlockExit','670532piphgL','name','apply','8478584eFxTGB','search','inventory','unlock','3962520UEFvkj','toString','write','7kRYqDG','has','isValidDirection','currentLocation','exits','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','8NCcLGI','logger','error','There\x27s\x20no\x20door\x20named\x20\x22','Unlock\x20a\x20door.','6230725LiBWln','actor','constructor'];a44c=function(){return n;};return a44c();}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static ['verb']=a44k(0xef);static ['description']=a44k(0xfd);['execute'](a){const l=a44k;return this[l(0xef)](a);}[a44k(0xef)](a){const m=a44k;if(a['length']===0x0)return this['logger'][m(0xfb)](m(0x10a)),'Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.';const b=a[0x0][m(0x104)](),c=this[m(0xff)][m(0xf6)];if(this[m(0xf5)](b)&&c[m(0xf7)][m(0xf4)](b)){const d=c[m(0xf7)][m(0x101)](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.[m(0x104)]();if(e&&this[m(0xff)][m(0xee)]['hasItem'](e)){const f=this[m(0xff)][m(0xee)][m(0x106)](e);if(f){const g=c[m(0x111)](b,f['name']);return this['logger'][m(0xf2)](m(0x10f)+this[m(0xff)][m(0x113)]+m(0x109)+b+m(0x10e)+g),g;}}return this[m(0xfa)][m(0xf2)](m(0x10f)+this[m(0xff)][m(0x113)]+m(0x10c)+b+'.'),m(0x103);}else return this['logger'][m(0xf2)](m(0x10f)+b+m(0xf8)+c[m(0x113)]+'.'),m(0xfc)+b+m(0x107);}else return this[m(0xfa)]['write'](m(0x10f)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[m(0x113)]+'.'),m(0xfc)+b+'\x22\x20here.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45h=a45d;function
|
|
1
|
+
const a45h=a45d;function a45c(){const k=['\x20to\x20use.','join','inventory','25627YsfOuL','hasItem','2007550HrUien','Use\x20an\x20item.','2209395oSyZle','1640TYsoTj','function','actor','\x20used\x20','(((.+)+)+)+$','6MhgLuA','2203128sotcMU','2yfxiVC','description','45XKEEfF','24HAunhd','constructor','name','verb','\x20in\x20this\x20way.','1390892hgIDYu','toLowerCase','You\x20don\x27t\x20have\x20the\x20','logger','UseCommand:\x20','4898586JykEnx','7863295uEIFsG','You\x20can\x27t\x20use\x20the\x20',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','getItem','toString','search','execute','\x20attempted\x20to\x20use\x20','write','use'];a45c=function(){return k;};return a45c();}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0x153))/0x1*(-parseInt(f(0x15b))/0x2)+parseInt(f(0x160))/0x3+-parseInt(f(0x152))/0x4+-parseInt(f(0x172))/0x5*(parseInt(f(0x151))/0x6)+parseInt(f(0x16e))/0x7*(-parseInt(f(0x173))/0x8)+-parseInt(f(0x155))/0x9*(-parseInt(f(0x170))/0xa)+-parseInt(f(0x161))/0xb*(parseInt(f(0x156))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xd0a91));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(0x165)]()[g(0x166)](g(0x177))[g(0x165)]()[g(0x157)](a45a)[g(0x166)](g(0x177));});function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x151;let f=c[d];return f;},a45d(a,b);}a45a();import{Command}from'./command.js';export class UseCommand extends Command{static [a45h(0x159)]=a45h(0x16a);static [a45h(0x154)]=a45h(0x171);[a45h(0x167)](a){const i=a45h;return this[i(0x16a)](a);}[a45h(0x16a)](a){const j=a45h,b=a[j(0x16c)]('\x20')[j(0x15c)]();if(!this[j(0x175)][j(0x16d)][j(0x16f)](b))return this[j(0x15e)][j(0x169)](j(0x15f)+this['actor'][j(0x158)]+j(0x168)+b+j(0x163)),j(0x15d)+b+j(0x16b);const c=this[j(0x175)]['inventory'][j(0x164)](b);if(!c)return this['logger'][j(0x169)](j(0x15f)+b+'\x20not\x20retrieved\x20from\x20'+this[j(0x175)][j(0x158)]+'\x27s\x20inventory.'),j(0x15d)+b+j(0x16b);if(typeof c[j(0x16a)]===j(0x174)){const d=c[j(0x16a)]();return this[j(0x15e)][j(0x169)](j(0x15f)+this[j(0x175)][j(0x158)]+j(0x176)+b+'.'),d;}else return this[j(0x15e)][j(0x169)]('UseCommand:\x20'+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),j(0x162)+b+j(0x15a);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a46i=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d=parseInt(f(0x18b))/0x1*(parseInt(f(0x189))/0x2)+-parseInt(f(0x183))/0x3*(-parseInt(f(0x17d))/0x4)+parseInt(f(0x185))/0x5+parseInt(f(0x180))/0x6+-parseInt(f(0x186))/0x7+parseInt(f(0x18d))/0x8*(parseInt(f(0x18c))/0x9)+-parseInt(f(0x187))/0xa*(parseInt(f(0x18e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xede93));const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0x18a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a[h(0x188)]()['search']('(((.+)+)+)+$')[h(0x188)]()[h(0x181)](a46a)[h(0x184)](h(0x17f));});function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0x17c;let f=c[d];return f;},a46d(a,b);}a46a();function a46c(){const l=['toString','35586NTlYEL','apply','43kbxnyi','299745bCFoBn','296irQQDh','221243XpfLzu','createCommand','72BzxYwA','registerCommand','(((.+)+)+)+$','8657088mSnjAu','constructor','commandMap','219753rdIuPB','search','286405iqdXLa','422128hhMRyV','1880iTwYeu'];a46c=function(){return l;};return a46c();}export class CommandFactory{static ['commandMap']={};static[a46i(0x17e)](a,b){this['commandMap'][a]=b;}static[a46i(0x17c)](a,b){const j=a46i,c=this[j(0x182)][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){const k=a46i;return this[k(0x182)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0x1c8))/0x1+parseInt(f(0x1d3))/0x2+-parseInt(f(0x1c3))/0x3*(parseInt(f(0x1c2))/0x4)+parseInt(f(0x1c1))/0x5*(parseInt(f(0x1d2))/0x6)+-parseInt(f(0x1b5))/0x7+-parseInt(f(0x1c6))/0x8+parseInt(f(0x1bf))/0x9*(parseInt(f(0x1c0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x96170));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x1ce)]()[h(0x1b3)]('(((.+)+)+)+$')['toString']()[h(0x1d5)](a47a)[h(0x1b3)](h(0x1d4));});function a47c(){const o=['isStartRoom','key','roomType','apply','9JtoNHq','20860090YJwxWB','5EAsvpo','4TbOSBA','409002eOcAVS','items','createRoom','9356600yuFZYX','createPuzzle','207234QaCgLi','INSIDE','book','toUpperCase','rifle','inventory','toString','type','description','gloves','4886850DrZYak','394114jFXwDQ','(((.+)+)+)+$','constructor','createItem','puzzle','helmet','convertToRoomConfig','search','boots','6787410ecUnoJ','forEach','rewardItem','legarmor','name','content'];a47c=function(){return o;};return a47c();}a47a();import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a47d(a,b);}export class RoomFactory{[a47i(0x1c5)](a){const j=a47i,b=this[j(0x1b2)](a),c=new Room(b);if(a[j(0x1c4)]){const d=new Inventory();a[j(0x1c4)][j(0x1b6)](e=>{const k=j;d['addItem'](this[k(0x1d6)](e));}),c[j(0x1cd)]=d;}return a[j(0x1d7)]&&c['setPuzzle'](this[j(0x1c7)](a['puzzle'])),c;}[a47i(0x1d6)](a){const l=a47i;switch(a[l(0x1cf)]){case l(0x1bc):return new Key(a['name'],a[l(0x1d0)]);case l(0x1ca):return new Book(a[l(0x1b9)],a[l(0x1d0)],a[l(0x1ba)]);case'sword':return new Sword(a[l(0x1b9)],a['description']);case l(0x1cc):return new Rifle(a[l(0x1b9)],a[l(0x1d0)]);case l(0x1d8):return new Helmet(a[l(0x1b9)],a[l(0x1d0)]);case'bodyarmor':return new BodyArmor(a['name'],a[l(0x1d0)]);case l(0x1b8):return new LegArmor(a['name'],a['description']);case l(0x1b4):return new Boots(a[l(0x1b9)],a[l(0x1d0)]);case l(0x1d1):return new Gloves(a[l(0x1b9)],a[l(0x1d0)]);case'gauntlets':return new Gauntlets(a[l(0x1b9)],a['description']);default:return new BasicItem(a[l(0x1b9)],a[l(0x1d0)]);}}[a47i(0x1c7)](a){const m=a47i,b=this[m(0x1d6)](a[m(0x1b7)]);return new Puzzle({...a,'rewardItem':b});}[a47i(0x1b2)](a){const n=a47i,b=a['roomType']&&RoomType[a[n(0x1bd)][n(0x1cb)]()]?RoomType[a[n(0x1bd)][n(0x1cb)]()]:RoomType[n(0x1c9)];return{'name':a[n(0x1b9)],'description':a[n(0x1d0)],'isStartRoom':a[n(0x1bb)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a48k=a48d;function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x141;let f=c[d];return f;},a48d(a,b);}(function(a,b){const h=a48d,c=a();while(!![]){try{const d=-parseInt(h(0x15e))/0x1*(-parseInt(h(0x148))/0x2)+parseInt(h(0x16a))/0x3+-parseInt(h(0x162))/0x4+parseInt(h(0x165))/0x5+-parseInt(h(0x147))/0x6*(-parseInt(h(0x14a))/0x7)+parseInt(h(0x168))/0x8+parseInt(h(0x153))/0x9*(-parseInt(h(0x156))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xd07ea));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a['toString']()['search'](j(0x16e))['toString']()[j(0x16b)](a48a)[j(0x14c)]('(((.+)+)+)+$');});a48a();import{Scene}from'./models/scene.js';function a48c(){const s=['clear','getDescription','getInstance','1jKooSv','use','take','help','5270608FHjNXS','determineStartRoom','slice','7055420mAZOQz','look','hasOwnProperty','9823056ffDoDW','execute','1599780FnSGym','constructor','initialize','handleInput','(((.+)+)+)+$','apply','createCommand','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','Welcome,\x20','getHelpMessage','getWelcomeMessage','toLowerCase','6wysCQl','2895998JgXfAz','scene','5913299eknyaC','instance','search','solve','currentRoom','getAllRegisteredCommands','registerCommand','unlock','player','72GRpTxI','registerCommands','drop','4116670wCpQft','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','getRooms','lock','-\x20quit:\x20Exit\x20the\x20game.\x0a'];a48c=function(){return s;};return a48c();}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(0x14b)];[a48k(0x149)];[a48k(0x152)];[a48k(0x14e)];['rooms'];constructor(a,b){const l=a48k;this['player']=a,this[l(0x149)]=new Scene({'player':a,'roomConfiguration':b}),this['scene'][l(0x16c)](),this[l(0x152)]['currentLocation']=this['determineStartRoom'](),this[l(0x154)]();}[a48k(0x154)](){const m=a48k;CommandFactory[m(0x150)](m(0x166),LookCommand),CommandFactory[m(0x150)]('go',GoCommand),CommandFactory[m(0x150)](m(0x160),TakeCommand),CommandFactory[m(0x150)](m(0x15f),UseCommand),CommandFactory[m(0x150)]('equip',EquipCommand),CommandFactory[m(0x150)]('unequip',UnequipCommand),CommandFactory[m(0x150)](m(0x14d),SolveCommand),CommandFactory[m(0x150)](m(0x155),DropCommand),CommandFactory[m(0x150)](m(0x151),UnlockCommand),CommandFactory[m(0x150)](m(0x159),LockCommand),CommandFactory[m(0x150)](m(0x14c),SearchCommand),CommandFactory['registerCommand']('say',SayCommand);}[a48k(0x163)](){const n=a48k;return this[n(0x149)][n(0x163)]();}[a48k(0x145)](){const o=a48k;return o(0x143)+this[o(0x152)]['name'];}static[a48k(0x15d)](a,b){const p=a48k;return!Game[p(0x14b)]&&(Game['instance']=new Game(a,b)),Game[p(0x14b)];}[a48k(0x16d)](a){const q=a48k,b=a['trim']()['split']('\x20'),c=b[0x0][q(0x146)](),d=b[q(0x164)](0x1);if(c==='quit')return null;if(c==='maka')return q(0x142);if(c===q(0x161))return this[q(0x144)]();if(c===q(0x15b))return'';const e={'actor':this[q(0x152)],'rooms':this[q(0x149)][q(0x158)](),'scene':this[q(0x149)]},f=CommandFactory[q(0x141)](c,e);if(f){const g=f[q(0x169)](d);return g;}return q(0x157)+c+'\x22.';}[a48k(0x144)](){const r=a48k,a=CommandFactory[r(0x14f)]();let b='Available\x20Commands:\x0a';for(const c in a){if(a[r(0x167)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x15c)]()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+=r(0x15a),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(0x106))/0x1*(parseInt(f(0x10a))/0x2)+-parseInt(f(0x113))/0x3*(-parseInt(f(0x107))/0x4)+parseInt(f(0x10e))/0x5+-parseInt(f(0x10c))/0x6*(parseInt(f(0x10b))/0x7)+-parseInt(f(0x112))/0x8+parseInt(f(0x110))/0x9*(parseInt(f(0x10f))/0xa)+parseInt(f(0x10d))/0xb*(parseInt(f(0x111))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xc5ed9));function a49c(){var h=['450mFrWwu','324bXzDNF','11218256xJcgTt','627twHrLi','toString','411LjESdG','5792CRvQJd','(((.+)+)+)+$','search','4964TQHqPU','427oirVRC','97932BbdOkW','918599ZblDEW','5195070YnJXmh','126470twLXfF'];a49c=function(){return h;};return a49c();}var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var g=a49d;return a49a[g(0x105)]()[g(0x109)](g(0x108))[g(0x105)]()['constructor'](a49a)[g(0x109)]('(((.+)+)+)+$');});a49a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x105;var f=c[d];return f;},a49d(a,b);}export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a50i=a50d;
|
|
1
|
+
var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=parseInt(f(0xa5))/0x1+parseInt(f(0xa0))/0x2*(parseInt(f(0x9f))/0x3)+parseInt(f(0xb2))/0x4*(parseInt(f(0xa2))/0x5)+parseInt(f(0xaa))/0x6+-parseInt(f(0xae))/0x7+-parseInt(f(0xa6))/0x8*(parseInt(f(0xb0))/0x9)+-parseInt(f(0xa9))/0xa*(-parseInt(f(0xbf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x2bc9b));var a50b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a50d;if(c){var e=c[g(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){var h=a50d;return a50a[h(0xc0)]()[h(0xbe)](h(0xa4))[h(0xc0)]()[h(0xb5)](a50a)[h(0xbe)](h(0xa4));});a50a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a50c(){var o=['.\x20Used:\x20','Door\x20created\x20between\x20','search','66561XyjxRg','toString','.\x20Is\x20Locked:\x20','3HbWhZT','206474SWFfIS','To\x20','685GDLsdo','apply','(((.+)+)+)+$','7144fYXqPd','24HXZxHq','roomB','write','230JKrtjG','706476CychYH','\x20and\x20','getInstance','Door\x20unlocked:\x20','1589441CmtBTJ','logger','471609jdlnGL','roomA','5732LqBfEJ','Failed\x20to\x20unlock\x20door:\x20','checkIfLockable','constructor','isLockable','attemptUnlock','isLocked','name','getOtherSide','unlockItemOrSolution'];a50c=function(){return o;};return a50c();}import{AbstractDoor}from'../types/abstracts.js';function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x9e;var f=c[d];return f;},a50d(a,b);}export class Door extends AbstractDoor{[a50i(0xb1)];[a50i(0xa7)];['isLocked'];['unlockItemOrSolution'];['name'];[a50i(0xaf)];[a50i(0xb6)];constructor(a){var j=a50i;super(),this[j(0xb1)]=a['roomA'],this[j(0xa7)]=a['roomB'],this['isLocked']=a['isLocked']||![],this[j(0xbb)]=a[j(0xbb)],this[j(0xb9)]=a['name']?capitalCase(a[j(0xb9)]):j(0xa1)+a['roomB'][j(0xb9)],this[j(0xaf)]=Logger[j(0xac)](),this[j(0xb6)]=!!a[j(0xbb)],this['logger']['write'](j(0xbd)+this['roomA']['name']+j(0xab)+this[j(0xa7)]['name']+j(0x9e)+this['isLocked']);}[a50i(0xba)](a){var k=a50i;return this[k(0xb1)]===a?this[k(0xa7)]:this['roomA'];}[a50i(0xb7)](a){var l=a50i;if(this['isLocked']&&this['unlockItemOrSolution']&&this[l(0xbb)]===a)return this[l(0xb8)]=![],this[l(0xaf)]['write'](l(0xad)+this[l(0xb9)]+'.\x20Used:\x20'+a),!![];return this[l(0xaf)][l(0xa8)](l(0xb3)+this['name']+l(0xbc)+a),![];}['checkIfLocked'](){var m=a50i;return this[m(0xb8)];}[a50i(0xb4)](){var n=a50i;return this[n(0xb6)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0xb2))/0x1*(-parseInt(f(0xa3))/0x2)+parseInt(f(0xb1))/0x3+parseInt(f(0x9c))/0x4+parseInt(f(0xae))/0x5*(parseInt(f(0xb0))/0x6)+-parseInt(f(0xb5))/0x7*(-parseInt(f(0x9f))/0x8)+parseInt(f(0xb7))/0x9+-parseInt(f(0xb8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x36210));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x97)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0xbe)]()[h(0xb3)](h(0xbb))[h(0xbe)]()[h(0xaf)](a51a)['search'](h(0xbb));});function a51c(){const r=['14330MKrjDs','constructor','570qrljTq','1024941gGgCkp','6474cqtjUt','search','removeItem','7zaeCqI','write','3444669GsNvrk','10189200ANYCai','getItem','map','(((.+)+)+)+$','items','Removed\x20item:\x20','toString','apply','logger','Added\x20item:\x20','weight','\x20in\x20','1675540PSAROQ','Listed\x20items\x20in\x20inventory:\x20','getInstance','413432khcKXz','get','name','toLowerCase','70poggrc','.\x20Exists:\x20','join','keys','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','\x20to\x20inventory.','.\x20Item\x20not\x20found.','values','has','Failed\x20to\x20remove\x20item:\x20','Checked\x20for\x20item:\x20'];a51c=function(){return r;};return a51c();}a51a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x97;let f=c[d];return f;},a51d(a,b);}export class Inventory extends AbstractInventory{['items'];[a51i(0x98)];constructor(){const j=a51i;super(),this[j(0xbc)]=new Map(),this[j(0x98)]=Logger[j(0x9e)]();}['addItem'](a){const k=a51i;this[k(0xbc)]['set'](a[k(0xa1)][k(0xa2)](),a),this[k(0x98)][k(0xb6)](k(0x99)+a['name']+k(0xa8));}[a51i(0xb4)](a){const l=a51i,b=this[l(0xb9)](a);if(b)return this[l(0xbc)]['delete'](a['toLowerCase']()),this[l(0x98)][l(0xb6)](l(0xbd)+a+'\x20from\x20inventory.'),b;return this['logger']['write'](l(0xac)+a+l(0xa9)),null;}['hasItem'](a){const m=a51i,b=this['items'][m(0xab)](a[m(0xa2)]()),c=[...this[m(0xbc)]['keys']()];return this[m(0x98)][m(0xb6)](m(0xad)+a+m(0x9b)+c[m(0xa5)](',\x20')+m(0xa4)+b+'.'),b;}['getItem'](a){const n=a51i,b=this['items'][n(0xa0)](a['toLowerCase']())||null;return b?this['logger']['write']('Retrieved\x20details\x20for\x20item:\x20'+a+'.'):this[n(0x98)]['write'](n(0xa7)+a+n(0xa9)),b;}['listItems'](){const o=a51i,a=[...this[o(0xbc)][o(0xa6)]()],b=a[o(0xba)](c=>capitalCase(c));return this[o(0x98)][o(0xb6)](o(0x9d)+b[o(0xa5)](',\x20')+'.'),a;}['getWeight'](){const p=a51i;let a=0x0;for(const b of this[p(0xbc)][p(0xaa)]()){a+=b[p(0x9a)];}return a;}['getAllItems'](){const q=a51i;return[...this['items'][q(0xaa)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x1dd))/0x1+parseInt(f(0x1d9))/0x2*(-parseInt(f(0x1d7))/0x3)+parseInt(f(0x1d0))/0x4+parseInt(f(0x1d6))/0x5+-parseInt(f(0x1c9))/0x6+-parseInt(f(0x1cd))/0x7*(-parseInt(f(0x1c7))/0x8)+parseInt(f(0x1d3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xaa2f5));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x1ce)]()[h(0x1cc)](h(0x1cf))[h(0x1ce)]()[h(0x1d8)](a52a)[h(0x1cc)](h(0x1cf));});a52a();import{v4 as a52e}from'uuid';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x1c6;var f=c[d];return f;},a52d(a,b);}function a52c(){var l=['description','size','apply','8rIXBEt','uuid','4774224FzxNCF','use','weight','search','3522358amnvdd','toString','(((.+)+)+)+$','3539472ognjrE','name','rating','12825891UEqpoG','category','shape','5443650peUgtT','3RWJzZY','constructor','2770132QqnPJC','color','texture','.\x20Nothing\x20special\x20happens.','1024044fjtigL','You\x20use\x20the\x20'];a52c=function(){return l;};return a52c();}import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a52i(0x1c8)];[a52i(0x1d1)];[a52i(0x1df)];[a52i(0x1e0)];[a52i(0x1d4)];[a52i(0x1d5)];[a52i(0x1da)];['texture'];[a52i(0x1d2)];[a52i(0x1cb)];constructor(a){var j=a52i;super(),this['name']=a[j(0x1d1)],this[j(0x1df)]=a['description'],this[j(0x1e0)]=a[j(0x1e0)],this[j(0x1d4)]=a[j(0x1d4)],this['shape']=a[j(0x1d5)],this[j(0x1da)]=a['color'],this['texture']=a[j(0x1db)],this[j(0x1d2)]=a[j(0x1d2)],this[j(0x1cb)]=a['weight'],this[j(0x1c8)]=a52e();}[a52i(0x1ca)](){var k=a52i;return k(0x1de)+this[k(0x1d1)]+k(0x1dc);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a53d(a,b);}const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x208))/0x1*(parseInt(f(0x1f6))/0x2)+-parseInt(f(0x203))/0x3*(parseInt(f(0x1fb))/0x4)+parseInt(f(0x1fd))/0x5*(parseInt(f(0x206))/0x6)+parseInt(f(0x209))/0x7*(-parseInt(f(0x1f0))/0x8)+-parseInt(f(0x1fc))/0x9*(parseInt(f(0x1f2))/0xa)+-parseInt(f(0x20b))/0xb+parseInt(f(0x205))/0xc*(parseInt(f(0x204))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xe5809));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x207)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0x1f1)]()[h(0x1fe)](h(0x201))[h(0x1f1)]()['constructor'](a53a)[h(0x1fe)](h(0x201));});a53a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';function a53c(){const o=['random','floor','2899822wJCsfk','rooms','moveTo','scene','name','27204LYPWhX','8838gNbEfj','5KppGHm','search','_name','execute','(((.+)+)+)+$','length','252nwhpcB','55508531LlBksn','12PkSrUX','845430jJOzOx','apply','1HofBdw','1177288CQfVPJ','autonomousMove','4607328ejHMCp','48xolJof','toString','220mCXbzp','_dialogue'];a53c=function(){return o;};return a53c();}export class NPC extends Player{[a53i(0x1ff)];[a53i(0x1f3)];[a53i(0x1f7)];[a53i(0x1f9)];constructor(a,b,c,d){const j=a53i;super(d),this[j(0x1ff)]=a,this[j(0x1f3)]=b,this[j(0x1f7)]=c;}get[a53i(0x1fa)](){const k=a53i;return this[k(0x1ff)];}['speak'](){const l=a53i;return this['_dialogue'][Math[l(0x1f5)](Math[l(0x1f4)]()*this[l(0x1f3)][l(0x202)])];}[a53i(0x20a)](a){const m=a53i,b=a[Math['floor'](Math[m(0x1f4)]()*a[m(0x202)])];this[m(0x1f8)](b[m(0x1fa)]);}[a53i(0x1f8)](a){const n=a53i,b={'actor':this,'rooms':this[n(0x1f7)],'scene':this['scene']},c=new GoCommand(b);c[n(0x200)]([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(0x1bc))/0x1*(parseInt(f(0x1aa))/0x2)+-parseInt(f(0x1be))/0x3*(parseInt(f(0x1d0))/0x4)+parseInt(f(0x195))/0x5+parseInt(f(0x1c6))/0x6+-parseInt(f(0x19b))/0x7*(parseInt(f(0x1c1))/0x8)+parseInt(f(0x194))/0x9*(-parseInt(f(0x1d8))/0xa)+parseInt(f(0x1a7))/0xb*(-parseInt(f(0x1cf))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x8ce54));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[g(0x191)]()[g(0x192)](g(0x1b5))[g(0x191)]()[g(0x1ac)](a54a)[g(0x192)]('(((.+)+)+)+$');});function a54c(){const z=['removeItem','boots','LegArmor','canEquip','(((.+)+)+)+$','write','torso','Boots','maxCarryingWeight','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','currentLocation','1GlXxro','Helmet','9aBNKUz','arm\x20armor','shield','1079216TdzUVi','speak','.\x20You\x20must\x20unequip\x20it\x20first.','You\x20unequipped\x20','startLocation','4781796mGZXQT','Hat','includes','logger','weapon','Shield','You\x20can\x27t\x20equip\x20','\x20is\x20now\x20listening\x20in\x20room\x20','removeInventory','53160nmjbAh','707612KPSPRu','\x20from\x20player\x27s\x20inventory.','bodyarmor','category','inventoryItems','You\x20don\x27t\x20have\x20','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','Added\x20','10HGYzgt','equipment','addItem','hat','hasItem','hear','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','playerName','Gloves','Removed\x20','ArmArmor','head','values','body\x20armor','_currentLocation','legs','weight','Nexus','_inventory','gloves','A\x20featureless\x20room','_maxCarryingWeight','rightHand','helmet','\x20is\x20no\x20longer\x20listeng\x20in\x20','unequipBySlot','name','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','toString','search','toLowerCase','3975921HueFBT','818690fQiqCJ','initialEquipment','bind','_equipment','You\x20equipped\x20','\x20to\x20player\x27s\x20inventory.','7zFJCQX','\x20says:\x20\x22','getInstance','_playerName','equip','error','arms','enterRoom','unequip','armarmor','leftHand','off','209WpeVgq','feet','Failed\x20to\x20remove\x20','1615908hMeaER','Weapon','constructor','\x20slot.','inventory','determineEquipmentSlot','addInventory'];a54c=function(){return z;};return a54c();}a54a();import{camelCase}from'change-case';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x177;let f=c[d];return f;},a54d(a,b);}import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a54h(0x19e)];['_currentLocation'];[a54h(0x187)];[a54h(0x198)];[a54h(0x18a)]=0x32;[a54h(0x1c9)];constructor(a){const i=a54h;super(),this[i(0x19e)]=a[i(0x17c)],this['_currentLocation']=a[i(0x1c5)]||new Room({'name':i(0x186),'description':i(0x189)}),this[i(0x187)]=new Inventory(),this[i(0x1c9)]=Logger[i(0x19d)]();if(a?.[i(0x1d4)])for(const b of a[i(0x1d4)]){this[i(0x187)][i(0x1da)](b);}this['_equipment']=a?.[i(0x196)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get['name'](){const j=a54h;return this[j(0x19e)];}get['currentLocation'](){return this['_currentLocation'];}set[a54h(0x1bb)](a){const k=a54h;this[k(0x183)]!==a&&(this['leaveRoom'](),this[k(0x1a2)](a)),this['_currentLocation']=a;}get[a54h(0x1ae)](){const l=a54h;return this[l(0x187)];}get[a54h(0x1d9)](){const m=a54h;return this[m(0x198)];}set[a54h(0x1d9)](a){this['_equipment']=a;}get['maxCarryingWeight'](){return this['_maxCarryingWeight'];}set[a54h(0x1b9)](a){const n=a54h;a>0x0?this[n(0x18a)]=a:console[n(0x1a0)]('Max\x20carrying\x20weight\x20must\x20be\x20positive.');}get['currentWeight'](){const o=a54h;let a=this[o(0x187)]['getWeight']();for(const b in this[o(0x198)]){const c=this[o(0x198)][b];c&&(a+=c[o(0x185)]);}return a;}['addInventory'](a){const p=a54h;if(this['currentWeight']+a[p(0x185)]>this[p(0x1b9)]){this[p(0x1c9)]['write'](p(0x1d6));throw new Error(p(0x190));}this[p(0x187)][p(0x1da)](a),this[p(0x1c9)][p(0x1b6)](p(0x1d7)+a[p(0x18f)]+p(0x19a));}[a54h(0x1ce)](a){const q=a54h;if(this[q(0x187)][q(0x1b1)](a[q(0x18f)]))return this[q(0x1c9)][q(0x1b6)](q(0x17e)+a[q(0x18f)]+q(0x1d1)),!![];return this['logger'][q(0x1b6)](q(0x1a9)+a[q(0x18f)]+q(0x1d1)),![];}[a54h(0x19f)](a){const r=a54h;if(!this[r(0x187)][r(0x178)](a[r(0x18f)]))return r(0x1d5)+a['name']+'\x20in\x20your\x20inventory.';if(!this[r(0x1b4)](a))return r(0x1cc)+a[r(0x18f)]+'.';const b=this[r(0x1af)](a[r(0x1d3)]);if(!b)return a['name']+r(0x1ba);if(this[r(0x1d9)][b])return r(0x17b)+b+r(0x1c3);return this['equipment'][b]=a,this['removeInventory'](a),r(0x199)+a[r(0x18f)]+'.';}[a54h(0x1a3)](a){const s=a54h;let b=a;if(!this[s(0x1d9)][camelCase(b)]){b=this[s(0x1af)](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this['unequipBySlot'](b);}['determineEquipmentSlot'](a){const t=a54h;switch(a[t(0x193)]()){case Category[t(0x1ab)][t(0x193)]():return t(0x18b);case Category[t(0x1cb)][t(0x193)]():return'leftHand';case Category[t(0x17d)][t(0x193)]():return t(0x188);case Category[t(0x1bd)][t(0x193)]():case Category[t(0x1c7)]['toLowerCase']():return t(0x180);case Category[t(0x1b8)][t(0x193)]():return t(0x1a8);case Category[t(0x1b3)][t(0x193)]():return t(0x184);case Category[t(0x17f)][t(0x193)]():return'arms';case Category['BodyArmor']['toLowerCase']():return t(0x1b7);case t(0x1ca):return t(0x18b);case t(0x1c0):return t(0x1a5);case'gloves':return t(0x188);case t(0x18c):case t(0x177):return t(0x180);case t(0x1b2):return'feet';case'leg\x20armor':case'legarmor':return t(0x184);case t(0x1bf):case t(0x1a4):return t(0x1a1);case t(0x182):case t(0x1d2):case t(0x1b7):return t(0x1b7);default:return null;}}[a54h(0x1b4)](a){const u=a54h;return Object[u(0x181)](Category)[u(0x1c8)](a[u(0x1d3)]);}[a54h(0x18e)](a){const v=a54h,b=this[v(0x1d9)][a];if(!b)return v(0x17a)+a+v(0x1ad);return this[v(0x1b0)](b),this[v(0x1d9)][a]=null,v(0x1c4)+b[v(0x18f)]+'.';}[a54h(0x179)](a,b){const w=a54h;a!==this&&this[w(0x1c9)]['log'](a['name']+w(0x19c)+b+'\x22');}[a54h(0x1a2)](a){const x=a54h;this[x(0x183)]=a,a['on']('speak',this['hear']['bind'](this)),this[x(0x1c9)][x(0x1b6)](this[x(0x18f)]+x(0x1cd)+a[x(0x18f)]);}['leaveRoom'](){const y=a54h;this[y(0x183)]&&(this[y(0x183)][y(0x1a6)](y(0x1c2),this[y(0x179)][y(0x197)](this)),this[y(0x1c9)][y(0x1b6)](this[y(0x18f)]+y(0x18d)+this[y(0x183)][y(0x18f)]));}}
|
|
@@ -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(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0xc7))/0x1+parseInt(f(0xe0))/0x2+-parseInt(f(0xe2))/0x3*(parseInt(f(0xcf))/0x4)+-parseInt(f(0xd0))/0x5+parseInt(f(0xcd))/0x6+parseInt(f(0xd1))/0x7*(parseInt(f(0xdf))/0x8)+-parseInt(f(0xda))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xcc0ec));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0xc9)]()[h(0xdb)](h(0xd3))[h(0xc9)]()[h(0xd9)](a55a)[h(0xdb)](h(0xd3));});a55a();import{Logger}from'../utilities/logger.js';function a55c(){var n=['4907735acIABZ','494606uxilJY','solved','(((.+)+)+)+$','riddle','requiredItem','matchesRequiredPhrase','hasRequiredItem','apply','constructor','2987541ANXRgz','search','Puzzle:\x20Correct\x20solution\x20provided.','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','solve','88bXBOon','1984248xWcjjg','failureMessage','1031154SEaAHU','rewardItem','write','You\x20solved\x20the\x20puzzle!','97790YPwOBi','successMessage','toString','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','logger','requiredPhrase','4928772oaPeDa','hasItem','4fWOLhg'];a55c=function(){return n;};return a55c();}import{AbstractPuzzle}from'../types/abstracts.js';function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0xc6;var f=c[d];return f;},a55d(a,b);}export class Puzzle extends AbstractPuzzle{[a55i(0xcb)]=Logger['getInstance']();[a55i(0xd2)]=![];[a55i(0xd5)];[a55i(0xcc)];[a55i(0xd4)];[a55i(0xe3)];[a55i(0xc8)];[a55i(0xe1)];constructor(a){var j=a55i;super(),this[j(0xd5)]=a['requiredItem'],this[j(0xcc)]=a[j(0xcc)],this[j(0xd4)]=a[j(0xd4)],this[j(0xe3)]=a[j(0xe3)],this[j(0xc8)]=a[j(0xc8)]||j(0xc6),this[j(0xe1)]=a[j(0xe1)]||j(0xca);}[a55i(0xd7)](a){var k=a55i;if(this[k(0xd5)])return a[k(0xce)](this['requiredItem']);return![];}['matchesRequiredPhrase'](a){var l=a55i;return this[l(0xcc)]===a;}[a55i(0xde)](a,b){var m=a55i;if(this[m(0xd2)])return this[m(0xcb)][m(0xe4)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this[m(0xd7)](b)||this[m(0xd6)](a)?(this['solved']=!![],this[m(0xcb)][m(0xe4)](m(0xdc)),{'success':!![],'message':this['successMessage']}):(this[m(0xcb)][m(0xe4)](m(0xdd)),{'success':![],'message':this[m(0xe1)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56h=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=-parseInt(f(0x128))/0x1*(-parseInt(f(0x125))/0x2)+parseInt(f(0x12b))/0x3+parseInt(f(0x145))/0x4*(parseInt(f(0x122))/0x5)+-parseInt(f(0x137))/0x6+parseInt(f(0x15d))/0x7+-parseInt(f(0x133))/0x8+-parseInt(f(0x135))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0xbb0c0));const a56b=(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;};}()),a56a=a56b(this,function(){const g=a56d;return a56a['toString']()[g(0x143)]('(((.+)+)+)+$')[g(0x150)]()[g(0x155)](a56a)[g(0x143)](g(0x130));});a56a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a56h(0x148)]=Logger[a56h(0x147)]();[a56h(0x127)];['description'];[a56h(0x153)]=new Map();['roomType'];['isStartRoom'];['inventory']=new Inventory();constructor(a){const i=a56h;super(),this[i(0x127)]=a['name'],this['description']=a[i(0x129)],this[i(0x14a)]=a[i(0x14a)]||RoomType[i(0x144)],a['exits']&&(this[i(0x153)]=a['exits']||new Map()),a[i(0x136)]&&(this['inventory']=a[i(0x136)]),a[i(0x152)]&&(this[i(0x152)]=a[i(0x152)]),this[i(0x14b)]=a[i(0x14b)]||![],this['logger'][i(0x14d)](i(0x12a)+this[i(0x127)]);}['say'](a,b){const j=a56h;this[j(0x141)](j(0x13e),a,b);}['addExit'](a,b,c){const k=a56h;let d=this[k(0x142)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits']['set'](a,d),b['exits'][k(0x12d)](this[k(0x151)](a),d);}['attemptUnlockExit'](a,b){const l=a56h,c=this[l(0x153)][l(0x124)](a);if(c instanceof Door){const d=c[l(0x131)](b);return this['logger'][l(0x14d)](l(0x158)+a+l(0x13b)+d),d?l(0x12f)+c[l(0x127)]+l(0x121):l(0x12f)+c[l(0x127)]+l(0x13f);}return this[l(0x148)]['write']('No\x20locked\x20exit\x20found\x20in\x20direction\x20'+a),l(0x140);}[a56h(0x12c)](a){const m=a56h;return this['logger'][m(0x14d)]('Fetching\x20exit\x20in\x20direction:\x20'+a),this[m(0x153)][m(0x124)](a);}[a56h(0x134)](a){const n=a56h,b=this[n(0x153)][n(0x124)](a),c=b instanceof Door&&b['checkIfLocked']();return this['logger'][n(0x14d)]('Checking\x20if\x20exit\x20in\x20direction\x20'+a+n(0x123)+c),c;}[a56h(0x15c)](a){const o=a56h;this['inventory'][o(0x15c)](a),this[o(0x148)][o(0x14d)](o(0x15a)+this[o(0x127)]+':\x20'+a[o(0x127)]);}[a56h(0x157)](a){const p=a56h;this[p(0x136)]['hasItem'](a['name'])?(this[p(0x136)][p(0x157)](a['name']),this[p(0x148)]['write'](p(0x154)+this['name']+':\x20'+a[p(0x127)])):this['logger'][p(0x14d)](p(0x139)+this[p(0x127)]+':\x20'+a[p(0x127)]);}[a56h(0x13a)](a){const q=a56h;this[q(0x152)]=a,this[q(0x148)][q(0x14d)](q(0x156)+this[q(0x127)]+':\x20'+a['riddle']);}[a56h(0x151)](a){const r=a56h;switch(a){case r(0x14e):return Direction[r(0x14c)];case r(0x159):return Direction[r(0x126)];case r(0x12e):return Direction[r(0x146)];case r(0x13d):return Direction['EAST'];case'up':return Direction[r(0x15b)];case r(0x138):return Direction['UP'];default:throw new Error(r(0x14f)+a);}}[a56h(0x142)](a){const s=a56h;for(const b of this[s(0x153)][s(0x13c)]()){if(b instanceof Door){if(b[s(0x149)]===this&&b[s(0x132)]===a||b[s(0x132)]===this&&b[s(0x149)]===a)return b;}}return undefined;}}function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x121;let f=c[d];return f;},a56d(a,b);}function a56c(){const t=['puzzle','exits','Item\x20removed\x20from\x20room\x20','constructor','Puzzle\x20set\x20for\x20room\x20','removeItem','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','south','Item\x20added\x20to\x20room\x20','DOWN','addItem','7477295zEBBFd','\x20unlocked!','5aNJSrA','\x20is\x20locked.\x20Result:\x20','get','514OLXRWZ','NORTH','name','3257eJujDW','description','Room\x20created:\x20','1568148YdkXCJ','getExit','set','east','The\x20','(((.+)+)+)+$','attemptUnlock','roomB','9660168ZRiOau','isExitLocked','2650392eiEFBx','inventory','6617850TKcqJS','down','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','setPuzzle','.\x20Success:\x20','values','west','speak','\x20remains\x20locked.','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','emit','findExistingDoor','search','INSIDE','3772712DTgkPQ','WEST','getInstance','logger','roomA','roomType','isStartRoom','SOUTH','write','north','Invalid\x20direction:\x20','toString','getOppositeDirection'];a56c=function(){return t;};return a56c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=parseInt(i(
|
|
1
|
+
const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=parseInt(i(0xf5))/0x1*(parseInt(i(0xfc))/0x2)+-parseInt(i(0x107))/0x3*(-parseInt(i(0xec))/0x4)+-parseInt(i(0xf6))/0x5+-parseInt(i(0xd4))/0x6*(-parseInt(i(0x10e))/0x7)+-parseInt(i(0xdc))/0x8+parseInt(i(0xda))/0x9*(parseInt(i(0x10c))/0xa)+-parseInt(i(0xc6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x3b583));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0xf3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0x10d)]()[k(0xdd)]('(((.+)+)+)+$')['toString']()[k(0xd9)](a57a)['search'](k(0xe7));});a57a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0xc5;let f=c[d];return f;},a57d(a,b);}function a57c(){const E=['setCharacterLocation','removeActor','currentLocation','\x20not\x20found\x20in\x20scene.','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','(((.+)+)+)+$','\x20to\x20room\x20','addExit','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','allActors','40IsSees','keyRequired','hasOwnProperty','Removed\x20room\x20from\x20scene:\x20','name','targetRoom','addPuzzleToRoom','apply','direction','416374uuLbIo','2202210kQlwUA','initialize','Actor\x20with\x20name\x20','Added\x20room\x20to\x20scene:\x20','exits','setPuzzle','2pewXJn','Scene\x20initialized\x20with\x20rooms:\x20','Room\x20\x22','getPlayer','createExitsFromConfig','has','getCharacterLocation','logger','Added\x20item\x20','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','length','37983SDNYyp','getRooms','set','getActor','join','67970hctJLm','toString','9415cGDuBJ','addItem','generateRoomsFromConfig','keys','3153997BJdVHd','actors','Added\x20puzzle\x20to\x20room\x20','createRoom','getInstance','determineStartRoom','roomFactory','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','\x27s\x20location.\x20Room\x20','addItemToRoom','addActor','Failed\x20to\x20set\x20','\x20is\x20now\x20in\x20room\x20','isStartRoom','1884FhSUNW','addRoom','values','write','rooms','constructor','27FZkNCz','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','123688YVTsJO','search','\x22\x20does\x20not\x20exist.','characterLocations','player','delete'];a57c=function(){return E;};return a57c();}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a57l(0xd8)];[a57l(0xe0)];['logger'];['actors'];[a57l(0xdf)]=new Map();[a57l(0xcc)];constructor(a){const m=a57l;super(),this['roomFactory']=new RoomFactory(),this[m(0xe0)]=a[m(0xe0)],this[m(0xd8)]=this[m(0x110)](a['roomConfiguration']),this[m(0x103)]=Logger[m(0xca)](),this[m(0xc7)]=new Map(),this['createExitsFromConfig'](a['roomConfiguration']),this[m(0x103)][m(0xd7)](m(0xfd)+Object[m(0xc5)](this['rooms'])[m(0x10b)](',\x20'));}[a57l(0xf7)](){const n=a57l;this[n(0xe0)][n(0xe4)]=this[n(0xcb)]();}['generateRoomsFromConfig'](a){const o=a57l;if(!this[o(0xcc)])throw new Error(o(0xdb));const b={};for(const c of a){const d=this[o(0xcc)][o(0xc9)](c);b[c[o(0xf0)]]=d;}return b;}[a57l(0x100)](a){const p=a57l;for(const b of a){const c=this[p(0xd8)][b[p(0xf0)]];if(b['exits'])for(const d of b[p(0xfa)]){const e=d[p(0xf4)]['toUpperCase'](),f=d[p(0xf1)],g=d[p(0xed)],h=this[p(0xd8)][f];h&&c[p(0xe9)](Direction[e],h,g);}}}[a57l(0xd0)](a){const q=a57l;if(this[q(0xc7)][q(0x101)](a[q(0xf0)]))throw new Error(q(0xf8)+a[q(0xf0)]+'\x20already\x20exists\x20in\x20the\x20scene.');this[q(0xc7)][q(0x109)](a[q(0xf0)],a);}[a57l(0xe3)](a){const r=a57l;if(!this['actors'][r(0x101)](a))throw new Error('No\x20actor\x20with\x20name\x20'+a+'\x20found\x20in\x20the\x20scene.');this[r(0xc7)][r(0xe1)](a);}[a57l(0x10a)](a){const s=a57l;return this[s(0xc7)]['get'](a);}get[a57l(0xeb)](){const t=a57l;return Array['from'](this[t(0xc7)][t(0xd6)]());}[a57l(0xd5)](a){const u=a57l;this[u(0xd8)][a[u(0xf0)]]=a,this[u(0x103)]['write'](u(0xf9)+a[u(0xf0)]);}['removeRoom'](a){const v=a57l;return this[v(0xd8)][a]?(delete this['rooms'][a],this['logger'][v(0xd7)](v(0xef)+a),!![]):(this[v(0x103)]['write'](v(0xea)+a),![]);}[a57l(0xcf)](a,b){const w=a57l,c=this['rooms'][b];c?(c[w(0x10f)](a),this[w(0x103)]['write'](w(0x104)+a[w(0xf0)]+w(0xe8)+c['name'])):this[w(0x103)]['write']('Failed\x20to\x20add\x20item\x20'+a[w(0xf0)]+'.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a57l(0xf2)](a,b){const x=a57l,c=this[x(0xd8)][b];c?(c[x(0xfb)](a),this[x(0x103)]['write'](x(0xc8)+c[x(0xf0)])):this[x(0x103)][x(0xd7)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+x(0xe5));}[a57l(0xe2)](a,b){const y=a57l,c=this['rooms'][b];c?(this['characterLocations'][y(0x109)](a[y(0xf0)],c),this[y(0x103)][y(0xd7)](a[y(0xf0)]+y(0xd2)+c[y(0xf0)])):this[y(0x103)]['write'](y(0xd1)+a[y(0xf0)]+y(0xce)+b+y(0xe5));}[a57l(0x102)](a){const z=a57l;return this[z(0xdf)]['get'](a[z(0xf0)]);}[a57l(0xcb)](){const A=a57l,a=[];for(const c in this[A(0xd8)]){if(this[A(0xd8)][A(0xee)](c)){const d=this['rooms'][c];d[A(0xd3)]&&a['push'](d);}}if(a['length']>0x1)throw new Error(A(0xcd));if(a[A(0x106)]===0x1)return a[0x0];const b=Object[A(0xc5)](this['rooms']);if(b['length']===0x0)throw new Error(A(0x105));return console['warn'](A(0xe6)),this[A(0xd8)][b[0x0]];}[a57l(0xff)](){const B=a57l;return this[B(0xe0)];}[a57l(0x108)](){const C=a57l;return this[C(0xd8)];}['connectRooms'](a,b,c,d){const D=a57l,e=this['rooms'][a],f=this[D(0xd8)][c];if(!e)throw new Error(D(0xfe)+a+D(0xde));if(!f)throw new Error(D(0xfe)+c+D(0xde));e[D(0xe9)](b,f,d);}}
|