@maka/maka-cli 4.7.13 → 4.7.14
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/.vs/VSWorkspaceState.json +5 -2
- package/.vs/maka-cli-src/FileContentIndex/{69d2de39-b193-48d9-b520-96bdb73b7b61.vsidx → 4c0a1daa-da96-4fc9-bf6f-ad5a9148b26c.vsidx} +0 -0
- package/.vs/maka-cli-src/v17/.wsuo +0 -0
- package/.vs/maka-cli-src/v17/workspaceFileList.bin +0 -0
- package/.vs/slnx.sqlite +0 -0
- package/bundle/obf/package.json +2 -2
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/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/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/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/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.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/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/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/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/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a33h=a33d;function a33d(a,b){const c=a33c();return a33d=function(d,e){d=d-0x77;let f=c[d];return f;},a33d(a,b);}(function(a,b){const f=a33d,c=a();while(!![]){try{const d=-parseInt(f(0x7a))/0x1+-parseInt(f(0xa4))/0x2+parseInt(f(0x82))/0x3+parseInt(f(0xa2))/0x4*(-parseInt(f(0x92))/0x5)+parseInt(f(0xa9))/0x6*(-parseInt(f(0x7f))/0x7)+parseInt(f(0x7e))/0x8+-parseInt(f(0x88))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a33c,0x3995b));const a33b=(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;};}()),a33a=a33b(this,function(){const g=a33d;return a33a[g(0x98)]()[g(0x97)]('(((.+)+)+)+$')['toString']()[g(0x95)](a33a)['search'](g(0x7c));});a33a();function a33c(){const m=['search','toString','inspectItem','You\x20cannot\x20see\x20','\x20here.','write','verb','exits','Examine\x20your\x20surroundings','You\x27re\x20not\x20in\x20a\x20valid\x20room.',',\x20you\x20see\x20','12qRRQiE','getOtherSide','89650QvqbPV','Above\x20you,\x20','Looking\x20at\x20item\x20\x27','actor','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','2628lcuDcf','OUTSIDE','execute','description','5706WsiKUP','inventory','(((.+)+)+)+$','isValidDirection','3448400pLcgFr','1869RWzTQs','lookOutside','rooms','1169343qMvQLA','To\x20the\x20','It\x27s\x20just\x20a\x20regular\x20','Executing\x20\x27Look\x27\x20command.','\x20inventory.','logger','2320659aimGNJ','currentLocation','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','error','down','name','look','puzzle','riddle','get','266060iOBdCf','Below\x20you,\x20','hasItem','constructor','You\x20don\x27t\x20see\x20any\x20'];a33c=function(){return m;};return a33c();}import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';import{Command}from'./command.js';export class LookCommand extends Command{static [a33h(0x9d)]=a33h(0x8e);static [a33h(0x79)]=a33h(0x9f);[a33h(0x78)](a=[]){const i=a33h;this[i(0x87)][i(0x9c)](i(0x85));const b=a['join']('\x20');if(b){if(this[i(0xa7)][i(0x7b)][i(0x94)](b))return this['logger'][i(0x9c)](i(0xa6)+b+'\x27\x20in\x20'+this[i(0xa7)]['name']+i(0x86)),this['inspectItem'](b,this[i(0xa7)][i(0x7b)]);else{if(this[i(0xa7)][i(0x89)][i(0x7b)][i(0x94)](b))return this[i(0x87)][i(0x9c)]('Looking\x20at\x20item\x20\x27'+b+'\x27\x20in\x20current\x20room\x20inventory.'),this[i(0x99)](b,this[i(0xa7)][i(0x89)][i(0x7b)]);else return this[i(0x7d)](b)?(this[i(0x87)]['write']('Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27'+b+'\x27.'),this[i(0x80)](b)):i(0x9a)+b;}}else return this[i(0x87)][i(0x9c)](this[i(0xa7)][i(0x8d)]+'\x20is\x20looking\x20around\x20the\x20current\x20room.'),this[i(0x8e)]();}[a33h(0x8e)](){const j=a33h,a=this[j(0xa7)][j(0x89)];if(!a)return this[j(0x87)][j(0x8b)](this['actor'][j(0x8d)]+j(0xa8)),j(0xa0);let b=a[j(0x79)];return a['puzzle']&&(b+='\x0a'+a[j(0x8f)][j(0x90)]),b;}[a33h(0x80)](a){const k=a33h,b=this[k(0xa7)]['currentLocation'];if(!b)return this[k(0x87)]['error'](this[k(0xa7)][k(0x8d)]+k(0xa8)),k(0xa0);const c=b[k(0x9e)][k(0x91)](a);if(!c)return'There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22'+a+'\x22.';let d;if(c instanceof Door)d=c[k(0xa3)](b);else{if(typeof c==='string'){d=this[k(0x81)]&&this[k(0x81)][c];if(!d)return'There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22'+a+'\x22.';}else return k(0x8a)+a+'\x22.';}if(d['roomType']===RoomType[k(0x77)]){if(a==='up')return k(0xa5)+d[k(0x79)];else return a===k(0x8c)?k(0x93)+d[k(0x79)]:k(0x83)+a+k(0xa1)+d[k(0x79)];}else return'You\x20cannot\x20see\x20through';}[a33h(0x99)](a,b){const l=a33h,c=b['getItem'](a);if(!c)return l(0x96)+a+l(0x9b);return c['description']||l(0x84)+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a34j=a34d;(function(a,b){const g=a34d,c=a();while(!![]){try{const d=-parseInt(g(0xe7))/0x1+-parseInt(g(0xf9))/0x2+parseInt(g(0xf4))/0x3*(-parseInt(g(0xf1))/0x4)+parseInt(g(0xe9))/0x5+-parseInt(g(0xee))/0x6+parseInt(g(0x101))/0x7*(parseInt(g(0xf0))/0x8)+parseInt(g(0xf3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a34c,0xc2759));const a34b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a34d;if(c){const e=c[h(0xed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a34a=a34b(this,function(){const i=a34d;return a34a[i(0xfd)]()['search']('(((.+)+)+)+$')[i(0xfd)]()[i(0x100)](a34a)[i(0xef)](i(0x103));});function a34d(a,b){const c=a34c();return a34d=function(d,e){d=d-0xe7;let f=c[d];return f;},a34d(a,b);}a34a();import{Command}from'./command.js';function a34c(){const m=['1779248BCpjQG','description','allActors','\x20says\x20to\x20','toString','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','What\x20do\x20you\x20want\x20to\x20say?','constructor','58569OPFRLT','logger','(((.+)+)+)+$','Scene\x20is\x20missing\x20from\x20context.','execute','join','476347bkIlqZ','say','5020990PcXyho','name','log','actor','apply','6585594FSIiii','search','8UmvrPD','7608tPejoD','context','20535714rVIgXt','54yIjFYL','currentLocation',':\x20\x22','filter','verb'];a34c=function(){return m;};return a34c();}export class SayCommand extends Command{static [a34j(0xf8)]=a34j(0xe8);static [a34j(0xfa)]=a34j(0xfe);[a34j(0xf2)];constructor(a){const k=a34j;super(a),this[k(0xf2)]=a;}[a34j(0x105)](a){const l=a34j;if(a['length']===0x0)return l(0xff);const b=a[l(0x106)]('\x20'),c=this[l(0xec)],d=this[l(0xf2)]['scene'];if(!d)return this[l(0x102)]['log'](l(0x104)),'An\x20error\x20occurred.';const e=d[l(0xfb)][l(0xf7)](f=>f[l(0xf5)]===c[l(0xf5)]);for(const f of e){this[l(0x102)][l(0xeb)](c[l(0xea)]+l(0xfc)+f[l(0xea)]+l(0xf6)+b+'\x22'),this[l(0xec)]['currentLocation'][l(0xe8)](f,b);}return'You\x20say:\x20\x22'+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d
|
|
1
|
+
const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d=-parseInt(f(0x1b3))/0x1+-parseInt(f(0x1c0))/0x2*(parseInt(f(0x1b0))/0x3)+parseInt(f(0x1c5))/0x4+parseInt(f(0x1ca))/0x5+parseInt(f(0x1b8))/0x6+parseInt(f(0x1bf))/0x7+-parseInt(f(0x1c2))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a35c,0xbc3b7));function a35d(a,b){const c=a35c();return a35d=function(d,e){d=d-0x1af;let f=c[d];return f;},a35d(a,b);}function a35c(){const k=['apply','3654152hISvET','execute','verb','search','description','3453095rqKkjs','constructor','2391777WjWsXX','write','(((.+)+)+)+$','431094YTVRAY','listItems','inventory','name','logger','4088460lqELKn','toString','\x20found\x20the\x20following\x20items:\x20','actor','SearchCommand:\x20','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','Search\x20for\x20items\x20in\x20your\x20area','7804216CPBOcO','2qwUiZT','You\x20search\x20the\x20area\x20and\x20find:\x20','11208824aJNKKZ','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.'];a35c=function(){return k;};return a35c();}const a35b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a35d;if(c){const e=c[g(0x1c4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a35a=a35b(this,function(){const h=a35d;return a35a[h(0x1b9)]()[h(0x1c8)](h(0x1b2))['toString']()[h(0x1af)](a35a)[h(0x1c8)]('(((.+)+)+)+$');});a35a();import{Command}from'./command.js';export class SearchCommand extends Command{static [a35i(0x1c7)]=a35i(0x1c8);static [a35i(0x1c9)]=a35i(0x1be);[a35i(0x1c6)](){const j=a35i,a=this['actor']['currentLocation'][j(0x1b5)][j(0x1b4)]();if(a['length']===0x0)return this['logger'][j(0x1b1)](j(0x1bc)+this[j(0x1bb)][j(0x1b6)]+j(0x1bd)),j(0x1c3);const b=a['join'](',\x20');return this[j(0x1b7)][j(0x1b1)](j(0x1bc)+this[j(0x1bb)]['name']+j(0x1ba)+b),j(0x1c1)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a36i=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a36i=a36d;function a36c(){const k=['Attempt\x20to\x20solve\x20a\x20puzzle.','toString','180UubNuQ','inventory','toLowerCase','verb','(((.+)+)+)+$','41352AfGMYA','actor','currentLocation','solve','search','logger','success','52GAGvlf','write','7717190qPYFMD','794710GSYNZO','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','execute','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','message','addItem','SolveCommand:\x20','1341641ZGeOQJ','1429428DQvFLd','rewardItem','description','join','apply','6CuXoCi','puzzle','274516fcVUBp','10827qaQynl'];a36c=function(){return k;};return a36c();}(function(a,b){const f=a36d,c=a();while(!![]){try{const d=parseInt(f(0xe2))/0x1+parseInt(f(0xd0))/0x2*(parseInt(f(0xe3))/0x3)+-parseInt(f(0xdb))/0x4+-parseInt(f(0xd3))/0x5+-parseInt(f(0xe0))/0x6*(parseInt(f(0xda))/0x7)+-parseInt(f(0xc9))/0x8*(parseInt(f(0xe6))/0x9)+parseInt(f(0xd2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x50417));function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0xc5;let f=c[d];return f;},a36d(a,b);}const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a[h(0xe5)]()[h(0xcd)]('(((.+)+)+)+$')[h(0xe5)]()['constructor'](a36a)[h(0xcd)](h(0xc8));});a36a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a36i(0xc7)]=a36i(0xcc);static [a36i(0xdd)]=a36i(0xe4);[a36i(0xd5)](a){const j=a36i,b=a[j(0xde)]('\x20')[j(0xc6)](),c=this['actor'][j(0xcb)];if(!c||!c[j(0xe1)])return this[j(0xce)][j(0xd1)](j(0xd4)),j(0xd6);const d=c[j(0xe1)][j(0xcc)](b,this[j(0xca)]['inventory']);return d[j(0xcf)]&&c['puzzle'][j(0xdc)]&&this['actor'][j(0xc5)][j(0xd8)](c['puzzle']['rewardItem']),this['logger'][j(0xd1)](j(0xd9)+d[j(0xd7)]),d['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37h=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0x171))/0x1+parseInt(f(0x167))/0x2+-parseInt(f(0x15b))/0x3*(-parseInt(f(0x151))/0x4)+parseInt(f(0x161))/0x5*(-parseInt(f(0x14d))/0x6)+-parseInt(f(0x152))/0x7+parseInt(f(0x168))/0x8+-parseInt(f(0x16e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xa527e));const a37b=(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;};}()),a37a=a37b(this,function(){const g=a37d;return a37a[g(0x14c)]()[g(0x16a)](g(0x164))[g(0x14c)]()[g(0x15f)](a37a)[g(0x16a)](g(0x164));});a37a();import{Command}from'./command.js';function a37c(){const k=['Pick\x20up\x20an\x20item.','join','execute','take','toString','1344732OZthdH','\x22\x20not\x20retrieved\x20from\x20','inventory','Successfully\x20added\x20\x22','4YnNhHl','973140PVhmHz','The\x20item\x20\x22','\x22\x20from\x20','\x22\x20is\x20too\x20heavy\x20to\x20carry.','toLowerCase','description','Successfully\x20removed\x20\x22','You\x20have\x20taken\x20the\x20','write','1475391rydSwm','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','addInventory','message','constructor','actor','5rXymQt','Item\x20\x22','\x22\x20not\x20found\x20in\x20','(((.+)+)+)+$','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','\x22\x20in\x20this\x20room.','717042DakkSp','9860112WTiqMK','There\x20is\x20no\x20item\x20\x22','search','Error\x20during\x20\x27Take\x27\x20command:\x20','getItem','currentLocation','6386508aCGGZc','name','logger','333600PksVIb','verb','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'];a37c=function(){return k;};return a37c();}function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x148;let f=c[d];return f;},a37d(a,b);}export class TakeCommand extends Command{static [a37h(0x172)]=a37h(0x14b);static [a37h(0x157)]=a37h(0x148);[a37h(0x14a)](a){const i=a37h;return this[i(0x170)]['write'](i(0x165)+a[i(0x149)]('\x20')),this[i(0x14b)](a);}[a37h(0x14b)](a){const j=a37h,b=a[j(0x149)]('\x20')[j(0x156)](),c=this[j(0x160)][j(0x16d)];if(!c[j(0x14f)]['hasItem'](b))return this['logger'][j(0x15a)]('Item\x20\x22'+b+j(0x163)+c[j(0x16f)]+'\x20during\x20\x27Take\x27\x20command.'),'There\x20is\x20no\x20item\x20\x22'+b+j(0x166);const d=c['inventory'][j(0x16c)](b);if(!d)return this[j(0x170)][j(0x15a)](j(0x162)+b+j(0x14e)+c['name']+j(0x173)),j(0x169)+b+'\x22\x20in\x20this\x20room.';try{return this[j(0x160)][j(0x15d)](d),this[j(0x170)][j(0x15a)](j(0x150)+b+'\x22\x20to\x20'+this[j(0x160)][j(0x16f)]+j(0x15c)),c[j(0x14f)]['removeItem'](b),this[j(0x170)][j(0x15a)](j(0x158)+b+j(0x154)+c[j(0x16f)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),j(0x159)+b+'.';}catch(e){return this[j(0x170)][j(0x15a)](j(0x16b)+e[j(0x15e)]),j(0x153)+b+j(0x155);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a38c(){const
|
|
1
|
+
const a38h=a38d;function a38c(){const j=['4805uqHOxS','actor','1134opPZWO','1367520xsXETp','3300786magtAn','4038FkrusA','1227216rflTeQ','unqeuip','toString','verb','write','search','Unequip\x20an\x20item.','logger','description','(((.+)+)+)+$','78590SWPPOx','7843LtmXNT','execute','join','toLowerCase','12204836cUerNT','UnequipCommand:\x20','unequip','20xzplif'];a38c=function(){return j;};return a38c();}(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x1f5))/0x1*(parseInt(f(0x1e3))/0x2)+parseInt(f(0x1e8))/0x3+-parseInt(f(0x1e7))/0x4+parseInt(f(0x1e4))/0x5*(-parseInt(f(0x1e9))/0x6)+parseInt(f(0x1f9))/0x7+parseInt(f(0x1ea))/0x8+-parseInt(f(0x1e6))/0x9*(parseInt(f(0x1f4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xe578b));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(0x1ec)]()[g(0x1ef)](g(0x1f3))[g(0x1ec)]()['constructor'](a38a)[g(0x1ef)](g(0x1f3));});function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a38d(a,b);}a38a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a38h(0x1ed)]=a38h(0x1eb);static [a38h(0x1f2)]=a38h(0x1f0);[a38h(0x1f6)](a){const i=a38h,b=a[i(0x1f7)]('\x20')[i(0x1f8)](),c=this[i(0x1e5)][i(0x1e2)](b);return this[i(0x1f1)][i(0x1ee)](i(0x1fa)+this['actor']['name']+'\x20unqeuiped\x20'+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39k=a39d;(function(a,b){const h=a39d,c=a();while(!![]){try{const d
|
|
1
|
+
const a39k=a39d;(function(a,b){const h=a39d,c=a();while(!![]){try{const d=-parseInt(h(0x189))/0x1+parseInt(h(0x162))/0x2*(parseInt(h(0x164))/0x3)+parseInt(h(0x160))/0x4*(parseInt(h(0x16e))/0x5)+-parseInt(h(0x16c))/0x6+parseInt(h(0x17e))/0x7+parseInt(h(0x161))/0x8*(-parseInt(h(0x181))/0x9)+-parseInt(h(0x17a))/0xa*(-parseInt(h(0x166))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x2f377));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a39d;if(c){const e=c[i(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const j=a39d;return a39a[j(0x167)]()[j(0x177)](j(0x16b))[j(0x167)]()[j(0x176)](a39a)[j(0x177)](j(0x16b));});a39a();function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x15f;let f=c[d];return f;},a39d(a,b);}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a39k(0x174)]='unlock';static ['description']=a39k(0x168);[a39k(0x172)](a){const l=a39k;return this[l(0x184)](a);}[a39k(0x184)](a){const m=a39k;if(a[m(0x185)]===0x0)return this[m(0x186)]['error']('UnlockCommand:\x20No\x20target\x20specified.'),m(0x180);const b=a[0x0][m(0x187)](),c=this[m(0x170)][m(0x163)];if(this[m(0x175)](b)&&c[m(0x169)][m(0x182)](b)){const d=c['exits'][m(0x16d)](b);if(d instanceof Door){const e=d[m(0x183)]?.[m(0x187)]();if(e&&this[m(0x170)][m(0x16a)]['hasItem'](e)){const f=this[m(0x170)][m(0x16a)][m(0x171)](e);if(f){const g=c[m(0x17d)](b,f[m(0x165)]);return this[m(0x186)][m(0x188)](m(0x179)+this[m(0x170)][m(0x165)]+m(0x17b)+b+m(0x173)+g),g;}}return this[m(0x186)]['write'](m(0x179)+this[m(0x170)][m(0x165)]+m(0x15f)+b+'.'),m(0x16f);}else return this[m(0x186)]['write']('UnlockCommand:\x20'+b+m(0x18a)+c[m(0x165)]+'.'),m(0x17f)+b+m(0x178);}else return this[m(0x186)]['write']('UnlockCommand:\x20'+b+m(0x18a)+c[m(0x165)]+'.'),m(0x17f)+b+m(0x178);}}function a39c(){const n=['logger','toLowerCase','write','56811gZZpYe','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','10348PQtfXk','8THjGhn','63230DKesTe','currentLocation','3lrhXVF','name','88khxHic','toString','Unlock\x20a\x20door.','exits','inventory','(((.+)+)+)+$','1042314OkASPH','get','130nBYXpF','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','actor','getItem','execute','.\x20Result:\x20','verb','isValidDirection','constructor','search','\x22\x20here.','UnlockCommand:\x20','167390RJprIV','\x20is\x20attempted\x20to\x20unlock\x20','apply','attemptUnlockExit','2341472kLlcIN','There\x27s\x20no\x20door\x20named\x20\x22','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','1290204zMGZqW','has','unlockItemOrSolution','unlock','length'];a39c=function(){return n;};return a39c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0xb8;let f=c[d];return f;},a40d(a,b);}const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0xc8))/0x1+parseInt(f(0xc3))/0x2*(parseInt(f(0xd4))/0x3)+parseInt(f(0xc4))/0x4+-parseInt(f(0xbc))/0x5+parseInt(f(0xdc))/0x6*(parseInt(f(0xcc))/0x7)+-parseInt(f(0xcf))/0x8+-parseInt(f(0xbb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x3e649));function a40c(){const l=['execute','62859peRPBB',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','hasItem','(((.+)+)+)+$','name','use','You\x20don\x27t\x20have\x20the\x20','UseCommand:\x20','120WJlZEf','getItem','apply','toLowerCase','409536GKWkCF','2020715wQbDom','inventory','You\x20can\x27t\x20use\x20the\x20','constructor','\x20doesn\x27t\x20have\x20a\x20use\x20method.','\x20used\x20','verb','38UmeQrP','1859988sVurtk','toString','\x20to\x20use.','\x20attempted\x20to\x20use\x20','503863dfpozO','actor','description','Use\x20an\x20item.','166929tNGvXw','write','join','1047784erCHIx','\x20in\x20this\x20way.','logger','function'];a40c=function(){return l;};return a40c();}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0xc5)]()['search']('(((.+)+)+)+$')[h(0xc5)]()[h(0xbf)](a40a)['search'](h(0xd7));});a40a();import{Command}from'./command.js';export class UseCommand extends Command{static [a40i(0xc2)]='use';static [a40i(0xca)]=a40i(0xcb);[a40i(0xd3)](a){const j=a40i;return this[j(0xd9)](a);}[a40i(0xd9)](a){const k=a40i,b=a[k(0xce)]('\x20')[k(0xba)]();if(!this[k(0xc9)][k(0xbd)][k(0xd6)](b))return this[k(0xd1)][k(0xcd)](k(0xdb)+this['actor'][k(0xd8)]+k(0xc7)+b+k(0xd5)),k(0xda)+b+k(0xc6);const c=this[k(0xc9)]['inventory'][k(0xb8)](b);if(!c)return this[k(0xd1)]['write']('UseCommand:\x20'+b+'\x20not\x20retrieved\x20from\x20'+this[k(0xc9)]['name']+'\x27s\x20inventory.'),k(0xda)+b+'\x20to\x20use.';if(typeof c[k(0xd9)]===k(0xd2)){const d=c[k(0xd9)]();return this[k(0xd1)]['write']('UseCommand:\x20'+this[k(0xc9)]['name']+k(0xc1)+b+'.'),d;}else return this[k(0xd1)][k(0xcd)]('UseCommand:\x20'+b+k(0xc0)),k(0xbe)+b+k(0xd0);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d
|
|
1
|
+
const a41i=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x12c;let f=c[d];return f;},a41d(a,b);}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=parseInt(f(0x138))/0x1*(-parseInt(f(0x13d))/0x2)+parseInt(f(0x132))/0x3*(-parseInt(f(0x139))/0x4)+parseInt(f(0x136))/0x5+-parseInt(f(0x12f))/0x6*(-parseInt(f(0x131))/0x7)+-parseInt(f(0x135))/0x8+-parseInt(f(0x12d))/0x9+parseInt(f(0x12e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xec008));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a['toString']()[h(0x13a)]('(((.+)+)+)+$')[h(0x137)]()[h(0x13c)](a41a)[h(0x13a)](h(0x13b));});a41a();function a41c(){const m=['apply','6334016nrgNMT','2601785utYIty','toString','1775DyivKb','4dpZjyP','search','(((.+)+)+)+$','constructor','1030gGcDRm','commandMap','9060426OjgKKA','42624440DpKsqK','477762fDUMmz','registerCommand','7uBbdmu','3549519krRCah','createCommand'];a41c=function(){return m;};return a41c();}export class CommandFactory{static [a41i(0x12c)]={};static[a41i(0x130)](a,b){const j=a41i;this[j(0x12c)][a]=b;}static[a41i(0x133)](a,b){const k=a41i,c=this[k(0x12c)][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){const l=a41i;return this[l(0x12c)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42i=a42d;
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x107))/0x1*(-parseInt(f(0x110))/0x2)+parseInt(f(0x105))/0x3+parseInt(f(0x10e))/0x4+-parseInt(f(0x103))/0x5*(-parseInt(f(0xfa))/0x6)+-parseInt(f(0xfb))/0x7*(-parseInt(f(0x106))/0x8)+parseInt(f(0x119))/0x9*(-parseInt(f(0xf8))/0xa)+-parseInt(f(0x115))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xcaa93));function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xf5;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(0x117)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a['toString']()[h(0x118)](h(0x108))[h(0x116)]()[h(0x109)](a42a)[h(0x118)](h(0x108));});a42a();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 a42c(){const o=['7CgMPkf','key','legarmor','boots','addItem','gloves','description','isStartRoom','7897845EIACGt','convertToRoomConfig','4235091TVkDHJ','388672PZAOtz','348654GZcIqC','(((.+)+)+)+$','constructor','type','setPuzzle','INSIDE','createRoom','1973536RzfHtu','gauntlets','4CXeybR','rewardItem','content','name','createItem','15706691mDdtSi','toString','apply','search','2600757jrUwba','puzzle','createPuzzle','book','roomType','toUpperCase','20KBdXid','items','6TNUZqz'];a42c=function(){return o;};return a42c();}export class RoomFactory{[a42i(0x10d)](a){const j=a42i,b=this[j(0x104)](a),c=new Room(b);if(a[j(0xf9)]){const d=new Inventory();a[j(0xf9)]['forEach'](e=>{const k=j;d[k(0xff)](this[k(0x114)](e));}),c['inventory']=d;}return a[j(0x11a)]&&c[j(0x10b)](this[j(0x11b)](a[j(0x11a)])),c;}[a42i(0x114)](a){const l=a42i;switch(a[l(0x10a)]){case l(0xfc):return new Key(a['name'],a['description']);case l(0xf5):return new Book(a['name'],a[l(0x101)],a[l(0x112)]);case'sword':return new Sword(a[l(0x113)],a[l(0x101)]);case'rifle':return new Rifle(a['name'],a[l(0x101)]);case'helmet':return new Helmet(a[l(0x113)],a[l(0x101)]);case'bodyarmor':return new BodyArmor(a[l(0x113)],a[l(0x101)]);case l(0xfd):return new LegArmor(a[l(0x113)],a[l(0x101)]);case l(0xfe):return new Boots(a[l(0x113)],a['description']);case l(0x100):return new Gloves(a[l(0x113)],a[l(0x101)]);case l(0x10f):return new Gauntlets(a['name'],a[l(0x101)]);default:return new BasicItem(a[l(0x113)],a['description']);}}['createPuzzle'](a){const m=a42i,b=this['createItem'](a[m(0x111)]);return new Puzzle({...a,'rewardItem':b});}[a42i(0x104)](a){const n=a42i,b=a[n(0xf6)]&&RoomType[a['roomType'][n(0xf7)]()]?RoomType[a['roomType'][n(0xf7)]()]:RoomType[n(0x10c)];return{'name':a[n(0x113)],'description':a[n(0x101)],'isStartRoom':a[n(0x102)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a43k=a43d;(function(a,b){const h=a43d,c=a();while(!![]){try{const d
|
|
1
|
+
const a43k=a43d;(function(a,b){const h=a43d,c=a();while(!![]){try{const d=-parseInt(h(0x214))/0x1*(parseInt(h(0x1fc))/0x2)+-parseInt(h(0x208))/0x3*(-parseInt(h(0x207))/0x4)+-parseInt(h(0x1f2))/0x5+-parseInt(h(0x1f3))/0x6+-parseInt(h(0x21e))/0x7+-parseInt(h(0x200))/0x8+-parseInt(h(0x1ff))/0x9*(-parseInt(h(0x1ef))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xcc4cc));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a43d;if(c){const e=c[i(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const j=a43d;return a43a['toString']()['search'](j(0x21b))[j(0x20c)]()[j(0x212)](a43a)['search'](j(0x21b));});a43a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a43d(a,b);}import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';function a43c(){const s=['toLowerCase','27tFFDrW','9217576HOYptg','search','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','maka','unequip','scene','look','44wZzBYz','357957IvGXfc','rooms','clear','use','toString','registerCommand','take','player','Welcome,\x20','getInstance','constructor','instance','1sDLInj','quit','trim','getHelpMessage','help','name','getWelcomeMessage','(((.+)+)+)+$','equip','split','11188478qirznT','createCommand','Available\x20Commands:\x0a','determineStartRoom','16356310JCxAPC','-\x20quit:\x20Exit\x20the\x20game.\x0a','getRooms','5226800aVWYKF','8472648CyfMPV','registerCommands','unlock','execute','getDescription','apply','currentLocation','handleInput','lock','349142LxpXEF','slice'];a43c=function(){return s;};return a43c();}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 [a43k(0x213)];[a43k(0x205)];['player'];['currentRoom'];[a43k(0x209)];constructor(a,b){const l=a43k;this['player']=a,this[l(0x205)]=new Scene({'player':a,'roomConfiguration':b}),this['scene']['initialize'](),this[l(0x20f)][l(0x1f9)]=this[l(0x1ee)](),this['registerCommands']();}[a43k(0x1f4)](){const m=a43k;CommandFactory[m(0x20d)](m(0x206),LookCommand),CommandFactory[m(0x20d)]('go',GoCommand),CommandFactory[m(0x20d)](m(0x20e),TakeCommand),CommandFactory['registerCommand'](m(0x20b),UseCommand),CommandFactory[m(0x20d)](m(0x21c),EquipCommand),CommandFactory['registerCommand'](m(0x204),UnequipCommand),CommandFactory[m(0x20d)]('solve',SolveCommand),CommandFactory['registerCommand']('drop',DropCommand),CommandFactory[m(0x20d)](m(0x1f5),UnlockCommand),CommandFactory[m(0x20d)](m(0x1fb),LockCommand),CommandFactory[m(0x20d)](m(0x201),SearchCommand),CommandFactory[m(0x20d)]('say',SayCommand);}['determineStartRoom'](){const n=a43k;return this[n(0x205)][n(0x1ee)]();}[a43k(0x21a)](){const o=a43k;return o(0x210)+this[o(0x20f)][o(0x219)];}static[a43k(0x211)](a,b){const p=a43k;return!Game[p(0x213)]&&(Game[p(0x213)]=new Game(a,b)),Game[p(0x213)];}[a43k(0x1fa)](a){const q=a43k,b=a[q(0x216)]()[q(0x21d)]('\x20'),c=b[0x0][q(0x1fe)](),d=b[q(0x1fd)](0x1);if(c===q(0x215))return null;if(c===q(0x203))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c===q(0x218))return this[q(0x217)]();if(c===q(0x20a))return'';const e={'actor':this['player'],'rooms':this[q(0x205)][q(0x1f1)](),'scene':this[q(0x205)]},f=CommandFactory[q(0x21f)](c,e);if(f){const g=f[q(0x1f6)](d);return g;}return q(0x202)+c+'\x22.';}[a43k(0x217)](){const r=a43k,a=CommandFactory['getAllRegisteredCommands']();let b=r(0x220);for(const c in a){if(a['hasOwnProperty'](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x1f7)]()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+=r(0x1f0),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x151))/0x1*(-parseInt(f(0x15a))/0x2)+parseInt(f(0x152))/0x3+-parseInt(f(0x154))/0x4*(parseInt(f(0x15d))/0x5)+-parseInt(f(0x15c))/0x6*(parseInt(f(0x157))/0x7)+-parseInt(f(0x159))/0x8+-parseInt(f(0x15e))/0x9+parseInt(f(0x155))/0xa*(parseInt(f(0x153))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xbb438));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var g=a52d;return a52a[g(0x158)]()[g(0x15f)](g(0x15b))[g(0x158)]()[g(0x156)](a52a)[g(0x15f)]('(((.+)+)+)+$');});a52a();function a52c(){var h=['253WHTOLC','60HTTTlm','909410rJRbnj','constructor','307699oImdVc','toString','2242328cmyeZI','82TcHPub','(((.+)+)+)+$','54kuIznz','65845orQBED','1490895UDUsUK','search','18042zRMuPx','1362615kAwNdJ'];a52c=function(){return h;};return a52c();}export*from'./door.js';export*from'./inventory.js';export*from'./item.js';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x151;var f=c[d];return f;},a52d(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 a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=parseInt(f(0xb6))/0x1*(-parseInt(f(0xbe))/0x2)+-parseInt(f(0xaf))/0x3+-parseInt(f(0xbf))/0x4+-parseInt(f(0xbb))/0x5+-parseInt(f(0xc4))/0x6*(-parseInt(f(0xb9))/0x7)+parseInt(f(0xb0))/0x8+parseInt(f(0xaa))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xedfa3));var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a['toString']()['search'](h(0xad))[h(0xa8)]()['constructor'](a44a)[h(0xb1)](h(0xad));});a44a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';function a44c(){var n=['checkIfLocked','toString','isLockable','16003800VUKIDc','roomA','isLocked','(((.+)+)+)+$','To\x20','1894650zhWfMl','6055576MREnMT','search','checkIfLockable','Failed\x20to\x20unlock\x20door:\x20','apply','write','9XQUpEz','.\x20Used:\x20','name','7jwAwvO','getOtherSide','5967230KPkkez','getInstance','attemptUnlock','1428cXzDBA','706780jNbpHn','roomB','unlockItemOrSolution','.\x20Is\x20Locked:\x20','logger','2686350OWpQsD','\x20and\x20','Door\x20created\x20between\x20'];a44c=function(){return n;};return a44c();}function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0xa5;var f=c[d];return f;},a44d(a,b);}export class Door extends AbstractDoor{[a44i(0xab)];[a44i(0xc0)];[a44i(0xac)];[a44i(0xc1)];[a44i(0xb8)];['logger'];[a44i(0xa9)];constructor(a){var j=a44i;super(),this['roomA']=a[j(0xab)],this['roomB']=a[j(0xc0)],this['isLocked']=a[j(0xac)]||![],this['unlockItemOrSolution']=a[j(0xc1)],this['name']=a[j(0xb8)]?capitalCase(a[j(0xb8)]):j(0xae)+a[j(0xc0)][j(0xb8)],this[j(0xc3)]=Logger[j(0xbc)](),this[j(0xa9)]=!!a[j(0xc1)],this[j(0xc3)]['write'](j(0xa6)+this['roomA'][j(0xb8)]+j(0xa5)+this[j(0xc0)][j(0xb8)]+j(0xc2)+this[j(0xac)]);}[a44i(0xba)](a){var k=a44i;return this[k(0xab)]===a?this[k(0xc0)]:this[k(0xab)];}[a44i(0xbd)](a){var l=a44i;if(this[l(0xac)]&&this[l(0xc1)]&&this[l(0xc1)]===a)return this['isLocked']=![],this['logger'][l(0xb5)]('Door\x20unlocked:\x20'+this[l(0xb8)]+l(0xb7)+a),!![];return this[l(0xc3)][l(0xb5)](l(0xb3)+this[l(0xb8)]+l(0xb7)+a),![];}[a44i(0xa7)](){return this['isLocked'];}[a44i(0xb2)](){var m=a44i;return this[m(0xa9)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0x7d))/0x1+parseInt(f(0x72))/0x2*(-parseInt(f(0x6e))/0x3)+-parseInt(f(0x7b))/0x4+parseInt(f(0x7f))/0x5+parseInt(f(0x85))/0x6+-parseInt(f(0x7e))/0x7+-parseInt(f(0x73))/0x8*(-parseInt(f(0x68))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xdd500));function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x67;let f=c[d];return f;},a45d(a,b);}const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a['toString']()[h(0x79)](h(0x83))[h(0x71)]()[h(0x88)](a45a)[h(0x79)](h(0x83));});a45a();import{capitalCase}from'change-case';function a45c(){const r=['hasItem','6PXtECK','\x20in\x20','write','toString','853454pxQVes','3641536rIunxc','Listed\x20items\x20in\x20inventory:\x20','delete','join','toLowerCase','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','search','Checked\x20for\x20item:\x20','1353732XuLIHn','logger','489919EZILdv','5600mAPhrC','2806985qldETY','values','getInstance','.\x20Exists:\x20','(((.+)+)+)+$','getItem','3972774zdrFMd','weight','\x20from\x20inventory.','constructor','Removed\x20item:\x20','name','apply','Added\x20item:\x20','items','keys','27pwRRxu','Failed\x20to\x20remove\x20item:\x20','addItem','\x20to\x20inventory.','get'];a45c=function(){return r;};return a45c();}import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a45i(0x8d)];[a45i(0x7c)];constructor(){const j=a45i;super(),this['items']=new Map(),this[j(0x7c)]=Logger[j(0x81)]();}[a45i(0x6a)](a){const k=a45i;this[k(0x8d)]['set'](a[k(0x8a)][k(0x77)](),a),this[k(0x7c)]['write'](k(0x8c)+a[k(0x8a)]+k(0x6b));}['removeItem'](a){const l=a45i,b=this[l(0x84)](a);if(b)return this[l(0x8d)][l(0x75)](a[l(0x77)]()),this[l(0x7c)][l(0x70)](l(0x89)+a+l(0x87)),b;return this['logger'][l(0x70)](l(0x69)+a+'.\x20Item\x20not\x20found.'),null;}[a45i(0x6d)](a){const m=a45i,b=this['items']['has'](a['toLowerCase']()),c=[...this[m(0x8d)]['keys']()];return this[m(0x7c)][m(0x70)](m(0x7a)+a+m(0x6f)+c[m(0x76)](',\x20')+m(0x82)+b+'.'),b;}[a45i(0x84)](a){const n=a45i,b=this[n(0x8d)][n(0x6c)](a[n(0x77)]())||null;return b?this[n(0x7c)][n(0x70)]('Retrieved\x20details\x20for\x20item:\x20'+a+'.'):this['logger']['write'](n(0x78)+a+'.\x20Item\x20not\x20found.'),b;}['listItems'](){const o=a45i,a=[...this['items'][o(0x67)]()],b=a['map'](c=>capitalCase(c));return this[o(0x7c)]['write'](o(0x74)+b['join'](',\x20')+'.'),a;}['getWeight'](){const p=a45i;let a=0x0;for(const b of this[p(0x8d)][p(0x80)]()){a+=b[p(0x86)];}return a;}['getAllItems'](){const q=a45i;return[...this[q(0x8d)][q(0x80)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0x1db))/0x1*(parseInt(f(0x1e1))/0x2)+-parseInt(f(0x1d4))/0x3*(-parseInt(f(0x1d2))/0x4)+parseInt(f(0x1cf))/0x5*(-parseInt(f(0x1cd))/0x6)+-parseInt(f(0x1d9))/0x7+-parseInt(f(0x1ce))/0x8+-parseInt(f(0x1e0))/0x9+parseInt(f(0x1c9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xec824));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0x1cb)]()['search'](h(0x1d5))['toString']()[h(0x1dd)](a46a)[h(0x1d1)]('(((.+)+)+)+$');});function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x1c7;var f=c[d];return f;},a46d(a,b);}function a46c(){var l=['texture','3867RUcVQG','use','constructor','name','apply','6377391CqXKdE','196ljfdbW','color','size','weight','52755910wjqGrU','.\x20Nothing\x20special\x20happens.','toString','You\x20use\x20the\x20','6QAkggD','11528728RiXLlt','4869110xxpONf','shape','search','15844xPtOEB','uuid','813TocSSr','(((.+)+)+)+$','description','rating','category','13144628XCpsRo'];a46c=function(){return l;};return a46c();}a46a();import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a46i(0x1d3)];[a46i(0x1de)];['description'];[a46i(0x1c7)];[a46i(0x1d8)];[a46i(0x1d0)];[a46i(0x1e2)];[a46i(0x1da)];[a46i(0x1d7)];[a46i(0x1c8)];constructor(a){var j=a46i;super(),this[j(0x1de)]=a['name'],this[j(0x1d6)]=a[j(0x1d6)],this[j(0x1c7)]=a[j(0x1c7)],this[j(0x1d8)]=a[j(0x1d8)],this[j(0x1d0)]=a['shape'],this[j(0x1e2)]=a['color'],this[j(0x1da)]=a[j(0x1da)],this[j(0x1d7)]=a[j(0x1d7)],this[j(0x1c8)]=a[j(0x1c8)],this['uuid']=a46e();}[a46i(0x1dc)](){var k=a46i;return k(0x1cc)+this[k(0x1de)]+k(0x1ca);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0xa8;let f=c[d];return f;},a47d(a,b);}const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0xa9))/0x1+parseInt(f(0xba))/0x2*(parseInt(f(0xb1))/0x3)+-parseInt(f(0xad))/0x4+parseInt(f(0xbe))/0x5*(-parseInt(f(0xb4))/0x6)+-parseInt(f(0xb0))/0x7+-parseInt(f(0xae))/0x8+parseInt(f(0xbc))/0x9*(parseInt(f(0xab))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xee770));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0xa8)]()[h(0xb7)]('(((.+)+)+)+$')[h(0xa8)]()[h(0xb6)](a47a)['search']('(((.+)+)+)+$');});a47a();function a47c(){const o=['_name','3829968wGetgc','11766488kLpCOI','_dialogue','12513830uXXxNH','3uauMSJ','moveTo','rooms','11742XhckQZ','apply','constructor','search','name','random','1448142hyfbjD','length','1359uGXBsk','speak','3230Pnjhqc','floor','toString','693211RqnMNY','scene','425570LIKoAO'];a47c=function(){return o;};return a47c();}import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a47i(0xac)];['_dialogue'];['rooms'];[a47i(0xaa)];constructor(a,b,c,d){const j=a47i;super(d),this[j(0xac)]=a,this[j(0xaf)]=b,this[j(0xb3)]=c;}get[a47i(0xb8)](){const k=a47i;return this[k(0xac)];}[a47i(0xbd)](){const l=a47i;return this[l(0xaf)][Math['floor'](Math[l(0xb9)]()*this['_dialogue'][l(0xbb)])];}['autonomousMove'](a){const m=a47i,b=a[Math[m(0xbf)](Math['random']()*a[m(0xbb)])];this[m(0xb2)](b[m(0xb8)]);}[a47i(0xb2)](a){const n=a47i,b={'actor':this,'rooms':this['rooms'],'scene':this[n(0xaa)]},c=new GoCommand(b);c['execute']([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d
|
|
1
|
+
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0x1d6))/0x1+parseInt(f(0x1d4))/0x2+-parseInt(f(0x1b4))/0x3*(-parseInt(f(0x1a2))/0x4)+parseInt(f(0x1ea))/0x5+-parseInt(f(0x1df))/0x6+-parseInt(f(0x19e))/0x7+-parseInt(f(0x1e8))/0x8*(parseInt(f(0x1c5))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x1e45c));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x1cf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x1bb)]()['search'](h(0x1f3))[h(0x1bb)]()[h(0x1c4)](a48a)[h(0x1ba)]('(((.+)+)+)+$');});a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x19b;let f=c[d];return f;},a48d(a,b);}import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';function a48c(){const B=['boots','1508346FdnkWl','equip','unequipBySlot','_maxCarryingWeight','4WuQJHy','equipment','arm\x20armor','\x20in\x20your\x20inventory.','_currentLocation','_inventory','helmet','leaveRoom','You\x20don\x27t\x20have\x20','\x20says:\x20\x22','name','includes','arms','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','inventoryItems','A\x20featureless\x20room','addItem','Added\x20','364107LWdNEO','Max\x20carrying\x20weight\x20must\x20be\x20positive.','logger','\x20from\x20player\x27s\x20inventory.','feet','canEquip','search','toString','gloves','legs','Invalid\x20category\x20or\x20slot:\x20','category','error','armarmor','Removed\x20','determineEquipmentSlot','constructor','174420WiFbMt','Failed\x20to\x20remove\x20','values','maxCarryingWeight','playerName','log','\x20is\x20now\x20listening\x20in\x20room\x20','write','torso','hear','apply','currentWeight','Gloves','.\x20You\x20must\x20unequip\x20it\x20first.','head','374296KaIxrh','Weapon','168781EXudIv','Helmet','\x20to\x20player\x27s\x20inventory.','LegArmor','weapon','\x20is\x20no\x20longer\x20listeng\x20in\x20','You\x20equipped\x20','body\x20armor','speak','80610CiJqeJ','You\x20unequipped\x20','removeInventory','_equipment','unequip','addInventory','enterRoom','shield','toLowerCase','120zlrZqb','You\x20can\x27t\x20equip\x20','831555PsRYMV','initialEquipment','leftHand','startLocation','getInstance','hasItem','\x20slot.','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','(((.+)+)+)+$','_playerName','Hat','removeItem','Shield','bodyarmor','legarmor'];a48c=function(){return B;};return a48c();}export class Player extends AbstractPlayer{[a48i(0x1f4)];[a48i(0x1a6)];['_inventory'];[a48i(0x1e2)];[a48i(0x1a1)]=0x32;[a48i(0x1b6)];constructor(a){const j=a48i;super(),this[j(0x1f4)]=a[j(0x1c9)],this[j(0x1a6)]=a[j(0x1ed)]||new Room({'name':'Nexus','description':j(0x1b1)}),this[j(0x1a7)]=new Inventory(),this['logger']=Logger[j(0x1ee)]();if(a?.[j(0x1b0)])for(const b of a['inventoryItems']){this[j(0x1a7)][j(0x1b2)](b);}this[j(0x1e2)]=a?.[j(0x1eb)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48i(0x1ac)](){return this['_playerName'];}get['currentLocation'](){const k=a48i;return this[k(0x1a6)];}set['currentLocation'](a){const l=a48i;this[l(0x1a6)]!==a&&(this['leaveRoom'](),this['enterRoom'](a)),this[l(0x1a6)]=a;}get['inventory'](){const m=a48i;return this[m(0x1a7)];}get[a48i(0x1a3)](){const n=a48i;return this[n(0x1e2)];}set[a48i(0x1a3)](a){this['_equipment']=a;}get[a48i(0x1c8)](){const o=a48i;return this[o(0x1a1)];}set['maxCarryingWeight'](a){const p=a48i;a>0x0?this[p(0x1a1)]=a:console[p(0x1c0)](p(0x1b5));}get[a48i(0x1d0)](){const q=a48i;let a=this[q(0x1a7)]['getWeight']();for(const b in this['_equipment']){const c=this[q(0x1e2)][b];c&&(a+=c['weight']);}return a;}[a48i(0x1e4)](a){const r=a48i;if(this['currentWeight']+a['weight']>this[r(0x1c8)]){this[r(0x1b6)][r(0x1cc)](r(0x1f2));throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this['_inventory'][r(0x1b2)](a),this['logger'][r(0x1cc)](r(0x1b3)+a['name']+r(0x1d8));}[a48i(0x1e1)](a){const s=a48i;if(this[s(0x1a7)][s(0x1f6)](a['name']))return this['logger'][s(0x1cc)](s(0x1c2)+a[s(0x1ac)]+s(0x1b7)),!![];return this['logger'][s(0x1cc)](s(0x1c6)+a[s(0x1ac)]+s(0x1b7)),![];}[a48i(0x19f)](a){const t=a48i;if(!this['_inventory'][t(0x1ef)](a[t(0x1ac)]))return t(0x1aa)+a[t(0x1ac)]+t(0x1a5);if(!this[t(0x1b9)](a))return t(0x1e9)+a[t(0x1ac)]+'.';const b=this[t(0x1c3)](a['category']);if(!b)return a[t(0x1ac)]+t(0x1af);if(this['equipment'][b])return t(0x1f1)+b+t(0x1d2);return this[t(0x1a3)][b]=a,this[t(0x1e1)](a),t(0x1dc)+a['name']+'.';}[a48i(0x1e3)](a){const u=a48i;let b=a;if(!this['equipment'][camelCase(b)]){b=this[u(0x1c3)](a);if(!b)return u(0x1be)+a+'.';}return this['unequipBySlot'](b);}[a48i(0x1c3)](a){const v=a48i;switch(a[v(0x1e7)]()){case Category[v(0x1d5)][v(0x1e7)]():return'rightHand';case Category[v(0x1f7)][v(0x1e7)]():return v(0x1ec);case Category[v(0x1d1)]['toLowerCase']():return v(0x1bc);case Category[v(0x1d7)][v(0x1e7)]():case Category[v(0x1f5)][v(0x1e7)]():return v(0x1d3);case Category['Boots']['toLowerCase']():return'feet';case Category[v(0x1d9)][v(0x1e7)]():return'legs';case Category['ArmArmor'][v(0x1e7)]():return v(0x1ae);case Category['BodyArmor']['toLowerCase']():return v(0x1cd);case v(0x1da):return'rightHand';case v(0x1e6):return'leftHand';case v(0x1bc):return v(0x1bc);case v(0x1a8):case'hat':return'head';case v(0x19d):return v(0x1b8);case'leg\x20armor':case v(0x19c):return v(0x1bd);case v(0x1a4):case v(0x1c1):return v(0x1ae);case v(0x1dd):case v(0x19b):case v(0x1cd):return v(0x1cd);default:return null;}}['canEquip'](a){const w=a48i;return Object[w(0x1c7)](Category)[w(0x1ad)](a[w(0x1bf)]);}[a48i(0x1a0)](a){const x=a48i,b=this['equipment'][a];if(!b)return'You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20'+a+x(0x1f0);return this[x(0x1e4)](b),this[x(0x1a3)][a]=null,x(0x1e0)+b[x(0x1ac)]+'.';}[a48i(0x1ce)](a,b){const y=a48i;a!==this&&this['logger'][y(0x1ca)](a['name']+y(0x1ab)+b+'\x22');}[a48i(0x1e5)](a){const z=a48i;this[z(0x1a6)]=a,a['on'](z(0x1de),this[z(0x1ce)]['bind'](this)),this['logger'][z(0x1cc)](this[z(0x1ac)]+z(0x1cb)+a[z(0x1ac)]);}[a48i(0x1a9)](){const A=a48i;this[A(0x1a6)]&&(this['_currentLocation']['off'](A(0x1de),this['hear']['bind'](this)),this[A(0x1b6)][A(0x1cc)](this[A(0x1ac)]+A(0x1db)+this[A(0x1a6)]['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;
|
|
1
|
+
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x81))/0x1+parseInt(f(0x74))/0x2+-parseInt(f(0x6d))/0x3+parseInt(f(0x80))/0x4*(parseInt(f(0x85))/0x5)+parseInt(f(0x76))/0x6*(-parseInt(f(0x86))/0x7)+-parseInt(f(0x6e))/0x8*(parseInt(f(0x7c))/0x9)+-parseInt(f(0x72))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x1f660));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x82)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x6f)]()[h(0x6a)](h(0x7f))[h(0x6f)]()['constructor'](a49a)[h(0x6a)](h(0x7f));});a49a();import{Logger}from'../utilities/logger.js';function a49c(){var n=['135006HulJzz','288ihVZYP','toString','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','solved','1994920pmDgvD','riddle','361118ewYnBy','solve','24SOzUTK','failureMessage','write','requiredItem','hasItem','logger','50751bfirkI','You\x20solved\x20the\x20puzzle!','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','(((.+)+)+)+$','16DEojeo','192207NjuZub','apply','hasRequiredItem','rewardItem','300310lltVdV','64589MxKigx','Puzzle:\x20Correct\x20solution\x20provided.','requiredPhrase','successMessage','search','You\x20have\x20already\x20solved\x20this\x20puzzle.','matchesRequiredPhrase'];a49c=function(){return n;};return a49c();}function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x68;var f=c[d];return f;},a49d(a,b);}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger['getInstance']();[a49i(0x71)]=![];[a49i(0x79)];[a49i(0x68)];[a49i(0x73)];[a49i(0x84)];[a49i(0x69)];['failureMessage'];constructor(a){var j=a49i;super(),this[j(0x79)]=a[j(0x79)],this[j(0x68)]=a['requiredPhrase'],this[j(0x73)]=a['riddle'],this[j(0x84)]=a[j(0x84)],this[j(0x69)]=a[j(0x69)]||j(0x7d),this['failureMessage']=a[j(0x77)]||j(0x7e);}[a49i(0x83)](a){var k=a49i;if(this[k(0x79)])return a[k(0x7a)](this[k(0x79)]);return![];}[a49i(0x6c)](a){var l=a49i;return this[l(0x68)]===a;}[a49i(0x75)](a,b){var m=a49i;if(this['solved'])return this[m(0x7b)][m(0x78)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':m(0x6b)};return this['hasRequiredItem'](b)||this[m(0x6c)](a)?(this[m(0x71)]=!![],this[m(0x7b)]['write'](m(0x87)),{'success':!![],'message':this[m(0x69)]}):(this[m(0x7b)][m(0x78)](m(0x70)),{'success':![],'message':this[m(0x77)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x19c;let f=c[d];return f;},a50d(a,b);}const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x1d7))/0x1*(parseInt(f(0x1ab))/0x2)+parseInt(f(0x1c1))/0x3+-parseInt(f(0x1cf))/0x4*(-parseInt(f(0x1ac))/0x5)+parseInt(f(0x1b4))/0x6+parseInt(f(0x1d2))/0x7+-parseInt(f(0x1b1))/0x8+-parseInt(f(0x1da))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x62c77));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x1ad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a['toString']()[h(0x1d6)](h(0x1bd))[h(0x19e)]()['constructor'](a50a)[h(0x1d6)](h(0x1bd));});a50a();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 a50c(){const u=['south','getOppositeDirection','Checking\x20if\x20exit\x20in\x20direction\x20','write','Item\x20added\x20to\x20room\x20','east','Fetching\x20exit\x20in\x20direction:\x20','name','checkIfLocked','2pXQztL','295crTrHN','apply','INSIDE','getInstance','down','2148360hzpiWE','inventory','attemptUnlockExit','1150452eebyaw','Item\x20removed\x20from\x20room\x20','isExitLocked','DOWN','get','roomB','NORTH','\x20unlocked!','roomType','(((.+)+)+)+$','roomA','puzzle','description','990372nUNtGb','Puzzle\x20set\x20for\x20room\x20','hasItem','findExistingDoor','setPuzzle','exits','Room\x20created:\x20','addExit','riddle','WEST','getExit','emit','speak','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','28004fMKOyf','SOUTH','logger','2878127NjZBQj','EAST','removeItem','isStartRoom','search','243964pmeDTi','set','No\x20locked\x20exit\x20found\x20in\x20direction\x20','8252154gEhdVw','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','west','toString','say','addItem','The\x20'];a50c=function(){return u;};return a50c();}export class Room extends AbstractRoom{['logger']=Logger[a50i(0x1af)]();[a50i(0x1a9)];[a50i(0x1c0)];['exits']=new Map();[a50i(0x1bc)];['isStartRoom'];[a50i(0x1b2)]=new Inventory();constructor(a){const j=a50i;super(),this[j(0x1a9)]=a[j(0x1a9)],this[j(0x1c0)]=a[j(0x1c0)],this[j(0x1bc)]=a[j(0x1bc)]||RoomType[j(0x1ae)],a['exits']&&(this[j(0x1c6)]=a['exits']||new Map()),a[j(0x1b2)]&&(this[j(0x1b2)]=a[j(0x1b2)]),a[j(0x1bf)]&&(this['puzzle']=a[j(0x1bf)]),this['isStartRoom']=a[j(0x1d5)]||![],this[j(0x1d1)][j(0x1a5)](j(0x1c7)+this[j(0x1a9)]);}[a50i(0x19f)](a,b){const k=a50i;this[k(0x1cc)](k(0x1cd),a,b);}[a50i(0x1c8)](a,b,c){const l=a50i;let d=this[l(0x1c4)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits']['set'](a,d),b[l(0x1c6)][l(0x1d8)](this[l(0x1a3)](a),d);}[a50i(0x1b3)](a,b){const m=a50i,c=this[m(0x1c6)][m(0x1b8)](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[m(0x1d1)][m(0x1a5)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+'.\x20Success:\x20'+d),d?m(0x1a1)+c[m(0x1a9)]+m(0x1bb):m(0x1a1)+c[m(0x1a9)]+'\x20remains\x20locked.';}return this['logger'][m(0x1a5)](m(0x1d9)+a),m(0x19c);}[a50i(0x1cb)](a){const n=a50i;return this[n(0x1d1)][n(0x1a5)](n(0x1a8)+a),this[n(0x1c6)][n(0x1b8)](a);}[a50i(0x1b6)](a){const o=a50i,b=this[o(0x1c6)]['get'](a),c=b instanceof Door&&b[o(0x1aa)]();return this[o(0x1d1)][o(0x1a5)](o(0x1a4)+a+'\x20is\x20locked.\x20Result:\x20'+c),c;}['addItem'](a){const p=a50i;this[p(0x1b2)][p(0x1a0)](a),this[p(0x1d1)]['write'](p(0x1a6)+this[p(0x1a9)]+':\x20'+a[p(0x1a9)]);}['removeItem'](a){const q=a50i;this[q(0x1b2)][q(0x1c3)](a[q(0x1a9)])?(this[q(0x1b2)][q(0x1d4)](a[q(0x1a9)]),this[q(0x1d1)][q(0x1a5)](q(0x1b5)+this['name']+':\x20'+a[q(0x1a9)])):this['logger'][q(0x1a5)](q(0x1ce)+this[q(0x1a9)]+':\x20'+a[q(0x1a9)]);}[a50i(0x1c5)](a){const r=a50i;this['puzzle']=a,this['logger'][r(0x1a5)](r(0x1c2)+this[r(0x1a9)]+':\x20'+a[r(0x1c9)]);}['getOppositeDirection'](a){const s=a50i;switch(a){case'north':return Direction[s(0x1d0)];case s(0x1a2):return Direction[s(0x1ba)];case s(0x1a7):return Direction[s(0x1ca)];case s(0x19d):return Direction[s(0x1d3)];case'up':return Direction[s(0x1b7)];case s(0x1b0):return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}['findExistingDoor'](a){const t=a50i;for(const b of this[t(0x1c6)]['values']()){if(b instanceof Door){if(b['roomA']===this&&b[t(0x1b9)]===a||b[t(0x1b9)]===this&&b[t(0x1be)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51l=a51d;function
|
|
1
|
+
const a51l=a51d;function a51c(){const E=['(((.+)+)+)+$','actors','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','Failed\x20to\x20add\x20item\x20','has','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','length','from','warn','initialize','player','exits','set','search','2590231VaFxFd','get','characterLocations','No\x20actor\x20with\x20name\x20','allActors','Added\x20item\x20','\x27s\x20location.\x20Room\x20','removeRoom','addPuzzleToRoom','1542798ObTCRi','generateRoomsFromConfig','roomFactory','1902798lGIyfX','name','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','setCharacterLocation','determineStartRoom','rooms','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','values','targetRoom','addExit','setPuzzle','apply','removeActor','Failed\x20to\x20set\x20','1029600rENXqW','hasOwnProperty','7818AXawOw','createExitsFromConfig','15590hOQwlh','getPlayer','getActor','keys','join','constructor','write','roomConfiguration','42tMpsvv','15411480XYdeqk','8fIwVqi','Room\x20\x22','404AaYrZD','keyRequired','isStartRoom','currentLocation','Removed\x20room\x20from\x20scene:\x20','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','direction','getRooms','logger','Added\x20room\x20to\x20scene:\x20','addActor','\x22\x20does\x20not\x20exist.','createRoom','addItemToRoom'];a51c=function(){return E;};return a51c();}(function(a,b){const i=a51d,c=a();while(!![]){try{const d=-parseInt(i(0x1fe))/0x1*(parseInt(i(0x1f6))/0x2)+-parseInt(i(0x1f4))/0x3*(parseInt(i(0x202))/0x4)+-parseInt(i(0x1f2))/0x5+-parseInt(i(0x1e4))/0x6+parseInt(i(0x1d8))/0x7*(-parseInt(i(0x200))/0x8)+parseInt(i(0x1e1))/0x9+parseInt(i(0x1ff))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x37e18));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a51d;if(c){const e=c[j(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const k=a51d;return a51a['toString']()[k(0x1d7)]('(((.+)+)+)+$')['toString']()[k(0x1fb)](a51a)[k(0x1d7)](k(0x210));});a51a();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 a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a51d(a,b);}export class Scene extends AbstractScene{[a51l(0x1e9)];[a51l(0x21a)];[a51l(0x20a)];[a51l(0x211)];[a51l(0x1da)]=new Map();[a51l(0x1e3)];constructor(a){const m=a51l;super(),this['roomFactory']=new RoomFactory(),this['player']=a['player'],this['rooms']=this[m(0x1e2)](a[m(0x1fd)]),this[m(0x20a)]=Logger['getInstance'](),this[m(0x211)]=new Map(),this[m(0x1f5)](a['roomConfiguration']),this[m(0x20a)][m(0x1fc)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[m(0x1f9)](this[m(0x1e9)])[m(0x1fa)](',\x20'));}[a51l(0x219)](){const n=a51l;this[n(0x21a)][n(0x205)]=this[n(0x1e8)]();}[a51l(0x1e2)](a){const o=a51l;if(!this[o(0x1e3)])throw new Error(o(0x212));const b={};for(const c of a){const d=this[o(0x1e3)][o(0x20e)](c);b[c[o(0x1e5)]]=d;}return b;}['createExitsFromConfig'](a){const p=a51l;for(const b of a){const c=this['rooms'][b[p(0x1e5)]];if(b[p(0x1d5)])for(const d of b[p(0x1d5)]){const e=d[p(0x208)]['toUpperCase'](),f=d[p(0x1ec)],g=d[p(0x203)],h=this[p(0x1e9)][f];h&&c[p(0x1ed)](Direction[e],h,g);}}}[a51l(0x20c)](a){const q=a51l;if(this[q(0x211)][q(0x214)](a['name']))throw new Error('Actor\x20with\x20name\x20'+a['name']+'\x20already\x20exists\x20in\x20the\x20scene.');this[q(0x211)][q(0x1d6)](a[q(0x1e5)],a);}[a51l(0x1f0)](a){const r=a51l;if(!this[r(0x211)][r(0x214)](a))throw new Error(r(0x1db)+a+'\x20found\x20in\x20the\x20scene.');this['actors']['delete'](a);}[a51l(0x1f8)](a){const s=a51l;return this[s(0x211)][s(0x1d9)](a);}get[a51l(0x1dc)](){const t=a51l;return Array[t(0x217)](this[t(0x211)][t(0x1eb)]());}['addRoom'](a){const u=a51l;this['rooms'][a[u(0x1e5)]]=a,this[u(0x20a)][u(0x1fc)](u(0x20b)+a[u(0x1e5)]);}[a51l(0x1df)](a){const v=a51l;return this[v(0x1e9)][a]?(delete this[v(0x1e9)][a],this[v(0x20a)]['write'](v(0x206)+a),!![]):(this[v(0x20a)]['write'](v(0x1e6)+a),![]);}[a51l(0x20f)](a,b){const w=a51l,c=this[w(0x1e9)][b];c?(c['addItem'](a),this['logger'][w(0x1fc)](w(0x1dd)+a[w(0x1e5)]+'\x20to\x20room\x20'+c[w(0x1e5)])):this['logger'][w(0x1fc)](w(0x213)+a[w(0x1e5)]+'.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0x1e0)](a,b){const x=a51l,c=this['rooms'][b];c?(c[x(0x1ee)](a),this[x(0x20a)][x(0x1fc)]('Added\x20puzzle\x20to\x20room\x20'+c[x(0x1e5)])):this[x(0x20a)][x(0x1fc)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0x1e7)](a,b){const y=a51l,c=this[y(0x1e9)][b];c?(this['characterLocations']['set'](a[y(0x1e5)],c),this[y(0x20a)][y(0x1fc)](a[y(0x1e5)]+'\x20is\x20now\x20in\x20room\x20'+c[y(0x1e5)])):this[y(0x20a)][y(0x1fc)](y(0x1f1)+a['name']+y(0x1de)+b+'\x20not\x20found\x20in\x20scene.');}['getCharacterLocation'](a){const z=a51l;return this[z(0x1da)][z(0x1d9)](a[z(0x1e5)]);}['determineStartRoom'](){const A=a51l,a=[];for(const c in this[A(0x1e9)]){if(this[A(0x1e9)][A(0x1f3)](c)){const d=this[A(0x1e9)][c];d[A(0x204)]&&a['push'](d);}}if(a[A(0x216)]>0x1)throw new Error(A(0x215));if(a[A(0x216)]===0x1)return a[0x0];const b=Object[A(0x1f9)](this['rooms']);if(b[A(0x216)]===0x0)throw new Error(A(0x207));return console[A(0x218)](A(0x1ea)),this[A(0x1e9)][b[0x0]];}[a51l(0x1f7)](){const B=a51l;return this[B(0x21a)];}[a51l(0x209)](){const C=a51l;return this[C(0x1e9)];}['connectRooms'](a,b,c,d){const D=a51l,e=this[D(0x1e9)][a],f=this['rooms'][c];if(!e)throw new Error('Room\x20\x22'+a+D(0x20d));if(!f)throw new Error(D(0x201)+c+D(0x20d));e[D(0x1ed)](b,f,d);}}
|