@maka/maka-cli 4.5.49 → 4.5.51
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/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.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/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/kit.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/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
|
-
const
|
|
1
|
+
const a36h=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d=-parseInt(f(0x1c8))/0x1*(parseInt(f(0x1df))/0x2)+parseInt(f(0x1c4))/0x3*(-parseInt(f(0x1c3))/0x4)+-parseInt(f(0x1c1))/0x5+parseInt(f(0x1cb))/0x6+-parseInt(f(0x1d8))/0x7+parseInt(f(0x1d3))/0x8*(-parseInt(f(0x1e0))/0x9)+parseInt(f(0x1bf))/0xa*(parseInt(f(0x1e7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0xdf434));function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x1be;let f=c[d];return f;},a36d(a,b);}const a36b=(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;};}()),a36a=a36b(this,function(){const g=a36d;return a36a[g(0x1dd)]()[g(0x1c7)](g(0x1c9))[g(0x1dd)]()['constructor'](a36a)[g(0x1c7)](g(0x1c9));});a36a();function a36c(){const k=['hasItem','\x22\x20not\x20found\x20in\x20','message','You\x20have\x20taken\x20the\x20','toString','getItem','622854URHCrk','747IujIVy','\x22\x20not\x20retrieved\x20from\x20','actor','\x22\x20from\x20','take','Successfully\x20added\x20\x22','execute','40607303bmuwcq','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','10qORLYW','There\x20is\x20no\x20item\x20\x22','87175msJVnJ','inventory','365624NiWwAQ','24uipiRQ','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','join','search','3PIuKZN','(((.+)+)+)+$','Successfully\x20removed\x20\x22','1869402ClUJRA','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','write','\x22\x20in\x20this\x20room.','name','description','\x22\x20is\x20too\x20heavy\x20to\x20carry.','logger','118424lMReZZ','addInventory','verb','Item\x20\x22','Pick\x20up\x20an\x20item.','1239301uVIZHi'];a36c=function(){return k;};return a36c();}import{Command}from'./command.js';export class TakeCommand extends Command{static [a36h(0x1d5)]=a36h(0x1e4);static [a36h(0x1d0)]=a36h(0x1d7);[a36h(0x1e6)](a){const i=a36h;return this[i(0x1d2)]['write'](i(0x1be)+a[i(0x1c6)]('\x20')),this[i(0x1e4)](a);}[a36h(0x1e4)](a){const j=a36h,b=a[j(0x1c6)]('\x20')['toLowerCase'](),c=this['actor']['currentLocation'];if(!c[j(0x1c2)][j(0x1d9)](b))return this['logger'][j(0x1cd)](j(0x1d6)+b+j(0x1da)+c[j(0x1cf)]+'\x20during\x20\x27Take\x27\x20command.'),j(0x1c0)+b+j(0x1ce);const d=c[j(0x1c2)][j(0x1de)](b);if(!d)return this[j(0x1d2)][j(0x1cd)]('Item\x20\x22'+b+j(0x1e1)+c[j(0x1cf)]+j(0x1c5)),j(0x1c0)+b+'\x22\x20in\x20this\x20room.';try{return this[j(0x1e2)][j(0x1d4)](d),this[j(0x1d2)][j(0x1cd)](j(0x1e5)+b+'\x22\x20to\x20'+this['actor'][j(0x1cf)]+j(0x1cc)),c[j(0x1c2)]['removeItem'](b),this[j(0x1d2)]['write'](j(0x1ca)+b+j(0x1e3)+c[j(0x1cf)]+j(0x1c5)),j(0x1dc)+b+'.';}catch(e){return this[j(0x1d2)][j(0x1cd)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[j(0x1db)]),'The\x20item\x20\x22'+b+j(0x1d1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37i=a37d;
|
|
1
|
+
const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x1e5))/0x1+parseInt(f(0x1e6))/0x2+parseInt(f(0x1e8))/0x3*(parseInt(f(0x1de))/0x4)+-parseInt(f(0x1e9))/0x5+-parseInt(f(0x1ee))/0x6+parseInt(f(0x1e1))/0x7+parseInt(f(0x1ef))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xd0c36));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x1ea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x1f3)]()[h(0x1df)](h(0x1ed))['toString']()[h(0x1e3)](a37a)[h(0x1df)]('(((.+)+)+)+$');});function a37c(){const k=['Unequip\x20an\x20item.','toString','4432zMmgmA','search','\x20unqeuiped\x20','10953117QyHTpt','UnequipCommand:\x20','constructor','toLowerCase','146079muKngj','104372ZMKnYO','actor','2949lqqFJj','5660495uWSlNL','apply','verb','name','(((.+)+)+)+$','9055056BPAAmH','5153672mikecy','unequip','description'];a37c=function(){return k;};return a37c();}a37a();import{Command}from'./command.js';function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x1de;let f=c[d];return f;},a37d(a,b);}export class UnequipCommand extends Command{static [a37i(0x1eb)]='unqeuip';static [a37i(0x1f1)]=a37i(0x1f2);['execute'](a){const j=a37i,b=a['join']('\x20')[j(0x1e4)](),c=this[j(0x1e7)][j(0x1f0)](b);return this['logger']['write'](j(0x1e2)+this['actor'][j(0x1ec)]+j(0x1e0)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a38c(){const n=['You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','exits','error','.\x20Result:\x20','attemptUnlockExit','verb','unlockItemOrSolution','write','\x20is\x20attempted\x20to\x20unlock\x20','description','(((.+)+)+)+$','toString','16507180hZzNZS','1832250iVTrkW','inventory','length','1466yeDAzr','apply','\x22\x20here.','249MnfKxX','3951WEfHFh','105268FWjYJX','unlock','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','actor','hasItem','search','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','execute','There\x27s\x20no\x20door\x20named\x20\x22','currentLocation','Unlock\x20a\x20door.','getItem','toLowerCase','UnlockCommand:\x20','8245758aYsmOJ','9600096WRmtFr','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','183ZLYZrY','5heKypg','name','logger','7712MgnEXi'];a38c=function(){return n;};return a38c();}const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=parseInt(h(0x8d))/0x1*(-parseInt(h(0x8a))/0x2)+parseInt(h(0xa0))/0x3*(parseInt(h(0x8f))/0x4)+parseInt(h(0xa1))/0x5*(-parseInt(h(0x9d))/0x6)+-parseInt(h(0x87))/0x7+-parseInt(h(0xa4))/0x8*(-parseInt(h(0x8e))/0x9)+parseInt(h(0x86))/0xa+-parseInt(h(0x9e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xf1333));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a38d;if(c){const e=c[i(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a[j(0x85)]()[j(0x94)]('(((.+)+)+)+$')[j(0x85)]()['constructor'](a38a)[j(0x94)](j(0x84));});function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x7e;let f=c[d];return f;},a38d(a,b);}a38a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a38k(0x7f)]=a38k(0x90);static [a38k(0x83)]=a38k(0x99);[a38k(0x96)](a){const l=a38k;return this[l(0x90)](a);}[a38k(0x90)](a){const m=a38k;if(a[m(0x89)]===0x0)return this[m(0xa3)][m(0xa7)]('UnlockCommand:\x20No\x20target\x20specified.'),m(0x95);const b=a[0x0][m(0x9b)](),c=this[m(0x92)][m(0x98)];if(this['isValidDirection'](b)&&c['exits']['has'](b)){const d=c[m(0xa6)]['get'](b);if(d instanceof Door){const e=d[m(0x80)]?.[m(0x9b)]();if(e&&this[m(0x92)][m(0x88)][m(0x93)](e)){const f=this[m(0x92)][m(0x88)][m(0x9a)](e);if(f){const g=c[m(0x7e)](b,f['name']);return this['logger']['write'](m(0x9c)+this[m(0x92)][m(0xa2)]+m(0x82)+b+m(0xa8)+g),g;}}return this[m(0xa3)][m(0x81)](m(0x9c)+this[m(0x92)][m(0xa2)]+m(0x91)+b+'.'),m(0xa5);}else return this[m(0xa3)][m(0x81)](m(0x9c)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c['name']+'.'),m(0x97)+b+'\x22\x20here.';}else return this[m(0xa3)][m(0x81)]('UnlockCommand:\x20'+b+m(0x9f)+c['name']+'.'),m(0x97)+b+m(0x8c);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0x173))/0x1+-parseInt(f(0x183))/0x2+parseInt(f(0x184))/0x3+-parseInt(f(0x18f))/0x4*(parseInt(f(0x17d))/0x5)+-parseInt(f(0x176))/0x6*(parseInt(f(0x180))/0x7)+parseInt(f(0x190))/0x8+parseInt(f(0x171))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x670fe));function a39c(){const l=['1204574onTTKf','492147STrnrA','\x20in\x20this\x20way.','\x20doesn\x27t\x20have\x20a\x20use\x20method.','\x20to\x20use.','toLowerCase','hasItem','search','UseCommand:\x20','constructor','name','use','1496MUSEbh','5727352xRLKCd','logger','\x20used\x20','4977279GLdjtJ','toString','81017pHJajN','You\x20don\x27t\x20have\x20the\x20','(((.+)+)+)+$','1862094GAzBVn','execute','verb','actor','You\x20can\x27t\x20use\x20the\x20','apply','description','230kMxIOw','inventory','\x20attempted\x20to\x20use\x20','7ZypVos','\x27s\x20inventory.','write'];a39c=function(){return l;};return a39c();}const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x172)]()[h(0x18a)]('(((.+)+)+)+$')['toString']()[h(0x18c)](a39a)[h(0x18a)](h(0x175));});a39a();function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x171;let f=c[d];return f;},a39d(a,b);}import{Command}from'./command.js';export class UseCommand extends Command{static [a39i(0x178)]=a39i(0x18e);static [a39i(0x17c)]='Use\x20an\x20item.';[a39i(0x177)](a){const j=a39i;return this[j(0x18e)](a);}[a39i(0x18e)](a){const k=a39i,b=a['join']('\x20')[k(0x188)]();if(!this[k(0x179)][k(0x17e)][k(0x189)](b))return this[k(0x191)][k(0x182)]('UseCommand:\x20'+this['actor'][k(0x18d)]+k(0x17f)+b+',\x20which\x20is\x20not\x20in\x20their\x20inventory.'),k(0x174)+b+k(0x187);const c=this[k(0x179)][k(0x17e)]['getItem'](b);if(!c)return this[k(0x191)][k(0x182)](k(0x18b)+b+'\x20not\x20retrieved\x20from\x20'+this['actor'][k(0x18d)]+k(0x181)),k(0x174)+b+k(0x187);if(typeof c[k(0x18e)]==='function'){const d=c[k(0x18e)]();return this['logger'][k(0x182)](k(0x18b)+this[k(0x179)][k(0x18d)]+k(0x192)+b+'.'),d;}else return this[k(0x191)][k(0x182)](k(0x18b)+b+k(0x186)),k(0x17a)+b+k(0x185);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-
|
|
1
|
+
function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x18c;let f=c[d];return f;},a40d(a,b);}const a40i=a40d;function a40c(){const l=['122116TRUDGx','6XTWQno','8zuqHMi','1470QskAsZ','apply','6291AXyVio','toString','64yVIGAu','12ToZowQ','846241EZIyHH','665178CKkkKD','(((.+)+)+)+$','createCommand','177282lIhuuh','registerCommand','12975DaUTTx','commandMap','constructor','998403iBOGYu'];a40c=function(){return l;};return a40c();}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x18c))/0x1+-parseInt(f(0x192))/0x2*(-parseInt(f(0x193))/0x3)+parseInt(f(0x199))/0x4*(-parseInt(f(0x18e))/0x5)+-parseInt(f(0x19c))/0x6+-parseInt(f(0x191))/0x7*(-parseInt(f(0x194))/0x8)+-parseInt(f(0x197))/0x9*(-parseInt(f(0x195))/0xa)+parseInt(f(0x19b))/0xb*(parseInt(f(0x19a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x1c04c));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x196)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x198)]()['search']('(((.+)+)+)+$')[h(0x198)]()[h(0x190)](a40a)['search'](h(0x19d));});a40a();export class CommandFactory{static [a40i(0x18f)]={};static[a40i(0x18d)](a,b){const j=a40i;this[j(0x18f)][a]=b;}static[a40i(0x19e)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){const k=a40i;return this[k(0x18f)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41i=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-
|
|
1
|
+
const a41i=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0xed;let f=c[d];return f;},a41d(a,b);}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0xf0))/0x1+-parseInt(f(0x109))/0x2*(parseInt(f(0xfb))/0x3)+-parseInt(f(0x107))/0x4*(parseInt(f(0x10d))/0x5)+-parseInt(f(0xf4))/0x6+parseInt(f(0xee))/0x7+-parseInt(f(0xf1))/0x8*(-parseInt(f(0xff))/0x9)+parseInt(f(0xf6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x86490));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x103)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x10f)]()['search']('(((.+)+)+)+$')[h(0x10f)]()[h(0x108)](a41a)[h(0xf7)](h(0xf8));});a41a();function a41c(){const o=['bodyarmor','isStartRoom','type','82737kweGoA','description','forEach','rifle','apply','INSIDE','inventory','gloves','16pXhvcy','constructor','10Zelsak','createRoom','content','createPuzzle','635420XZZieL','convertToRoomConfig','toString','key','name','book','3617327nviWSK','items','615909vgKPXq','784fpCWsN','createItem','legarmor','4748580SPScDt','toUpperCase','15604220KGhUBy','search','(((.+)+)+)+$','puzzle','roomType','307434SfaRYK'];a41c=function(){return o;};return a41c();}import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{[a41i(0x10a)](a){const j=a41i,b=this[j(0x10e)](a),c=new Room(b);if(a[j(0xef)]){const d=new Inventory();a['items'][j(0x101)](e=>{const k=j;d['addItem'](this[k(0xf2)](e));}),c[j(0x105)]=d;}return a[j(0xf9)]&&c['setPuzzle'](this[j(0x10c)](a[j(0xf9)])),c;}[a41i(0xf2)](a){const l=a41i;switch(a[l(0xfe)]){case l(0x110):return new Key(a[l(0x111)],a[l(0x100)]);case l(0xed):return new Book(a[l(0x111)],a[l(0x100)],a[l(0x10b)]);case'sword':return new Sword(a[l(0x111)],a[l(0x100)]);case l(0x102):return new Rifle(a['name'],a[l(0x100)]);case'helmet':return new Helmet(a[l(0x111)],a[l(0x100)]);case l(0xfc):return new BodyArmor(a[l(0x111)],a[l(0x100)]);case l(0xf3):return new LegArmor(a[l(0x111)],a[l(0x100)]);case'boots':return new Boots(a[l(0x111)],a['description']);case l(0x106):return new Gloves(a[l(0x111)],a[l(0x100)]);case'gauntlets':return new Gauntlets(a[l(0x111)],a['description']);default:return new BasicItem(a[l(0x111)],a[l(0x100)]);}}[a41i(0x10c)](a){const m=a41i,b=this[m(0xf2)](a['rewardItem']);return new Puzzle({...a,'rewardItem':b});}[a41i(0x10e)](a){const n=a41i,b=a['roomType']&&RoomType[a[n(0xfa)][n(0xf5)]()]?RoomType[a[n(0xfa)][n(0xf5)]()]:RoomType[n(0x104)];return{'name':a[n(0x111)],'description':a[n(0x100)],'isStartRoom':a[n(0xfd)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=-parseInt(h(0x179))/0x1*(-parseInt(h(0x17d))/0x2)+-parseInt(h(0x183))/0x3*(-parseInt(h(0x15d))/0x4)+-parseInt(h(0x15c))/0x5+-parseInt(h(0x162))/0x6+-parseInt(h(0x184))/0x7+-parseInt(h(0x154))/0x8*(-parseInt(h(0x17f))/0x9)+parseInt(h(0x165))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xad3d8));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0x178)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0x169)]()['search'](j(0x177))[j(0x169)]()[j(0x172)](a42a)[j(0x180)](j(0x177));});a42a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x154;let f=c[d];return f;},a42d(a,b);}import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';function a42c(){const s=['toLowerCase','1341498jjkcie','handleInput','4851nFcEYe','search','registerCommands','split','73389ovUIjk','5628616WDWwjZ','248kGQYaL','createCommand','solve','getHelpMessage','name','Welcome,\x20','lock','unlock','2762010SCXJhT','184qlQKrc','currentRoom','player','take','-\x20clear:\x20Clear\x20the\x20screen.\x0a','5284398JcIoxV','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','getAllRegisteredCommands','11340590PqoIGB','getRooms','help','say','toString','maka','look','getDescription','slice','rooms','trim','instance','scene','constructor','registerCommand','currentLocation','execute','determineStartRoom','(((.+)+)+)+$','apply','1qdDiBb','hasOwnProperty','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit'];a42c=function(){return s;};return a42c();}import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a42k(0x170)];[a42k(0x171)];[a42k(0x15f)];[a42k(0x15e)];[a42k(0x16e)];constructor(a,b){const l=a42k;this[l(0x15f)]=a,this[l(0x171)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x171)]['initialize'](),this[l(0x15f)][l(0x174)]=this['determineStartRoom'](),this[l(0x181)]();}['registerCommands'](){const m=a42k;CommandFactory[m(0x173)](m(0x16b),LookCommand),CommandFactory[m(0x173)]('go',GoCommand),CommandFactory['registerCommand'](m(0x160),TakeCommand),CommandFactory[m(0x173)]('use',UseCommand),CommandFactory[m(0x173)]('equip',EquipCommand),CommandFactory[m(0x173)]('unequip',UnequipCommand),CommandFactory[m(0x173)](m(0x156),SolveCommand),CommandFactory[m(0x173)]('drop',DropCommand),CommandFactory[m(0x173)](m(0x15b),UnlockCommand),CommandFactory[m(0x173)](m(0x15a),LockCommand),CommandFactory[m(0x173)](m(0x180),SearchCommand),CommandFactory[m(0x173)](m(0x168),SayCommand);}[a42k(0x176)](){const n=a42k;return this[n(0x171)][n(0x176)]();}['getWelcomeMessage'](){const o=a42k;return o(0x159)+this[o(0x15f)][o(0x158)];}static['getInstance'](a,b){const p=a42k;return!Game[p(0x170)]&&(Game[p(0x170)]=new Game(a,b)),Game[p(0x170)];}[a42k(0x17e)](a){const q=a42k,b=a[q(0x16f)]()[q(0x182)]('\x20'),c=b[0x0][q(0x17c)](),d=b[q(0x16d)](0x1);if(c==='quit')return null;if(c===q(0x16a))return q(0x17b);if(c===q(0x167))return this[q(0x157)]();if(c==='clear')return'';const e={'actor':this[q(0x15f)],'rooms':this[q(0x171)][q(0x166)](),'scene':this[q(0x171)]},f=CommandFactory[q(0x155)](c,e);if(f){const g=f[q(0x175)](d);return g;}return q(0x163)+c+'\x22.';}[a42k(0x157)](){const r=a42k,a=CommandFactory[r(0x164)]();let b='Available\x20Commands:\x0a';for(const c in a){if(a[r(0x17a)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x16c)]()+'\x0a';}}return b+=r(0x161),b+='-\x20quit:\x20Exit\x20the\x20game.\x0a',b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a43d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a43d,c=a();while(!![]){try{var d=-parseInt(f(0x134))/0x1+-parseInt(f(0x130))/0x2+-parseInt(f(0x137))/0x3+parseInt(f(0x139))/0x4*(parseInt(f(0x132))/0x5)+-parseInt(f(0x136))/0x6+-parseInt(f(0x12f))/0x7+parseInt(f(0x13a))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x32b65));var a43b=(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;};}()),a43a=a43b(this,function(){var g=a43d;return a43a['toString']()[g(0x135)](g(0x133))[g(0x138)]()[g(0x131)](a43a)[g(0x135)](g(0x133));});a43a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x12f;var f=c[d];return f;},a43d(a,b);}function a43c(){var h=['1681960tIagrp','748790quISyL','constructor','2024195CmsquF','(((.+)+)+)+$','413214foqAxV','search','1553274iuhlNM','234006JMFTjd','toString','4dpsmIj','9341184mXosJW'];a43c=function(){return h;};return a43c();}export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a44h=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=parseInt(f(0x79))/0x1+parseInt(f(0x73))/0x2*(parseInt(f(0x71))/0x3)+parseInt(f(0x7b))/0x4*(-parseInt(f(0x81))/0x5)+parseInt(f(0x7f))/0x6*(-parseInt(f(0x6a))/0x7)+-parseInt(f(0x84))/0x8*(-parseInt(f(0x87))/0x9)+-parseInt(f(0x76))/0xa*(parseInt(f(0x82))/0xb)+parseInt(f(0x83))/0xc*(-parseInt(f(0x6d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x60622));var a44b=(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;};}()),a44a=a44b(this,function(){var g=a44d;return a44a[g(0x89)]()[g(0x6f)](g(0x7e))[g(0x89)]()[g(0x6e)](a44a)['search'](g(0x7e));});a44a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a44c(){var m=['write','\x20and\x20','45XkFWyu','.\x20Is\x20Locked:\x20','toString','Door\x20created\x20between\x20','isLocked','getOtherSide','2878666kMAYCM','name','roomA','31096giApqV','constructor','search','unlockItemOrSolution','618495xnWZgU','checkIfLocked','2ZIALLQ','roomB','getInstance','2681960JLmABu','.\x20Used:\x20','checkIfLockable','536737aoawBU','logger','25084BJiQXU','isLockable','Failed\x20to\x20unlock\x20door:\x20','(((.+)+)+)+$','6MlFEbO','Door\x20unlocked:\x20','115isgTZs','11dVchju','744SqOyGC','998168XbywgD'];a44c=function(){return m;};return a44c();}import{AbstractDoor}from'../types/abstracts.js';function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0x67;var f=c[d];return f;},a44d(a,b);}export class Door extends AbstractDoor{[a44h(0x6c)];['roomB'];[a44h(0x68)];[a44h(0x70)];[a44h(0x6b)];[a44h(0x7a)];['isLockable'];constructor(a){var i=a44h;super(),this['roomA']=a[i(0x6c)],this[i(0x74)]=a['roomB'],this['isLocked']=a['isLocked']||![],this[i(0x70)]=a[i(0x70)],this[i(0x6b)]=a[i(0x6b)]?capitalCase(a[i(0x6b)]):'To\x20'+a[i(0x74)]['name'],this['logger']=Logger[i(0x75)](),this['isLockable']=!!a['unlockItemOrSolution'],this[i(0x7a)][i(0x85)](i(0x67)+this['roomA'][i(0x6b)]+i(0x86)+this[i(0x74)][i(0x6b)]+i(0x88)+this[i(0x68)]);}[a44h(0x69)](a){var j=a44h;return this[j(0x6c)]===a?this[j(0x74)]:this[j(0x6c)];}['attemptUnlock'](a){var k=a44h;if(this[k(0x68)]&&this[k(0x70)]&&this[k(0x70)]===a)return this['isLocked']=![],this[k(0x7a)][k(0x85)](k(0x80)+this[k(0x6b)]+'.\x20Used:\x20'+a),!![];return this[k(0x7a)][k(0x85)](k(0x7d)+this[k(0x6b)]+k(0x77)+a),![];}[a44h(0x72)](){return this['isLocked'];}[a44h(0x78)](){var l=a44h;return this[l(0x7c)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d
|
|
1
|
+
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0x106))/0x1+parseInt(f(0x11b))/0x2+-parseInt(f(0x11f))/0x3+-parseInt(f(0x125))/0x4+parseInt(f(0x117))/0x5+-parseInt(f(0x116))/0x6+parseInt(f(0x121))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xcad80));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x10a)]()['search'](h(0x100))['toString']()[h(0x119)](a45a)[h(0x102)](h(0x100));});a45a();function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xfe;let f=c[d];return f;},a45d(a,b);}import{capitalCase}from'change-case';function a45c(){const r=['weight','Listed\x20items\x20in\x20inventory:\x20','716653aKDbdL','toLowerCase','Retrieved\x20details\x20for\x20item:\x20','Removed\x20item:\x20','toString','getWeight','values','apply','delete','listItems','write','set','\x20from\x20inventory.','.\x20Item\x20not\x20found.','getInstance','addItem','9857304zwRmED','1262720fDCISJ','name','constructor','items','3310900jpOflE','\x20in\x20','.\x20Exists:\x20','Checked\x20for\x20item:\x20','634842YizExp','getAllItems','10712758UaQuBU','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','Failed\x20to\x20remove\x20item:\x20','getItem','5878780vqLvZK','get','has','logger','(((.+)+)+)+$','keys','search','removeItem'];a45c=function(){return r;};return a45c();}import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a45i(0x11a)];[a45i(0xff)];constructor(){const j=a45i;super(),this[j(0x11a)]=new Map(),this[j(0xff)]=Logger[j(0x114)]();}[a45i(0x115)](a){const k=a45i;this[k(0x11a)][k(0x111)](a[k(0x118)][k(0x107)](),a),this['logger']['write']('Added\x20item:\x20'+a[k(0x118)]+'\x20to\x20inventory.');}[a45i(0x103)](a){const l=a45i,b=this['getItem'](a);if(b)return this[l(0x11a)][l(0x10e)](a[l(0x107)]()),this[l(0xff)][l(0x110)](l(0x109)+a+l(0x112)),b;return this['logger']['write'](l(0x123)+a+'.\x20Item\x20not\x20found.'),null;}['hasItem'](a){const m=a45i,b=this['items'][m(0xfe)](a[m(0x107)]()),c=[...this[m(0x11a)]['keys']()];return this[m(0xff)][m(0x110)](m(0x11e)+a+m(0x11c)+c['join'](',\x20')+m(0x11d)+b+'.'),b;}[a45i(0x124)](a){const n=a45i,b=this['items'][n(0x126)](a[n(0x107)]())||null;return b?this[n(0xff)][n(0x110)](n(0x108)+a+'.'):this[n(0xff)][n(0x110)](n(0x122)+a+n(0x113)),b;}[a45i(0x10f)](){const o=a45i,a=[...this[o(0x11a)][o(0x101)]()],b=a['map'](c=>capitalCase(c));return this[o(0xff)][o(0x110)](o(0x105)+b['join'](',\x20')+'.'),a;}[a45i(0x10b)](){const p=a45i;let a=0x0;for(const b of this['items']['values']()){a+=b[p(0x104)];}return a;}[a45i(0x120)](){const q=a45i;return[...this['items'][q(0x10c)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d
|
|
1
|
+
var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0xee))/0x1*(-parseInt(f(0xdb))/0x2)+-parseInt(f(0xe2))/0x3+-parseInt(f(0xec))/0x4*(-parseInt(f(0xed))/0x5)+parseInt(f(0xdf))/0x6*(parseInt(f(0xf3))/0x7)+-parseInt(f(0xe6))/0x8+-parseInt(f(0xda))/0x9*(parseInt(f(0xeb))/0xa)+parseInt(f(0xea))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xb6425));function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xda;var f=c[d];return f;},a46d(a,b);}var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0xe1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a['toString']()[h(0xe8)](h(0xf0))['toString']()[h(0xdd)](a46a)[h(0xe8)](h(0xf0));});a46a();import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';function a46c(){var l=['897532iRIBOD','10YPAZFm','965ttbxma','texture','(((.+)+)+)+$','rating','name','4932753ZQegjO','.\x20Nothing\x20special\x20happens.','153vLnGjD','2514vdScCF','You\x20use\x20the\x20','constructor','color','12sORBgg','uuid','apply','1784199RpyrKv','shape','weight','size','6893368YXyBGC','description','search','category','26956677RmbyXD','525170WtnSjF'];a46c=function(){return l;};return a46c();}export class Item extends AbstractItem{[a46i(0xe0)];[a46i(0xf2)];[a46i(0xe7)];[a46i(0xe5)];[a46i(0xe9)];[a46i(0xe3)];[a46i(0xde)];['texture'];[a46i(0xf1)];[a46i(0xe4)];constructor(a){var j=a46i;super(),this[j(0xf2)]=a[j(0xf2)],this[j(0xe7)]=a[j(0xe7)],this[j(0xe5)]=a[j(0xe5)],this[j(0xe9)]=a[j(0xe9)],this['shape']=a[j(0xe3)],this[j(0xde)]=a[j(0xde)],this[j(0xef)]=a[j(0xef)],this[j(0xf1)]=a['rating'],this[j(0xe4)]=a['weight'],this[j(0xe0)]=a46e();}['use'](){var k=a46i;return k(0xdc)+this[k(0xf2)]+k(0xf4);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47h=a47d;function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0xd2;let f=c[d];return f;},a47d(a,b);}(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0xda))/0x1+-parseInt(f(0xe0))/0x2+-parseInt(f(0xd2))/0x3+parseInt(f(0xdf))/0x4+parseInt(f(0xdb))/0x5+parseInt(f(0xd3))/0x6+parseInt(f(0xd9))/0x7*(parseInt(f(0xdd))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xd4e7e));function a47c(){const n=['11784vXgVuu','toString','5634652dYaMmG','1206060XoweTM','autonomousMove','(((.+)+)+)+$','length','_name','constructor','execute','moveTo','_dialogue','1616907JAAcYK','2575500jlIVmh','floor','rooms','random','name','scene','7651YGsfyk','1684309BSsuld','1252340dqhort','search'];a47c=function(){return n;};return a47c();}const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const g=a47d;return a47a[g(0xde)]()[g(0xdc)](g(0xe2))['toString']()[g(0xe5)](a47a)[g(0xdc)]('(((.+)+)+)+$');});a47a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{['_name'];[a47h(0xe8)];['rooms'];['scene'];constructor(a,b,c,d){const i=a47h;super(d),this[i(0xe4)]=a,this['_dialogue']=b,this[i(0xd5)]=c;}get[a47h(0xd7)](){const j=a47h;return this[j(0xe4)];}['speak'](){const k=a47h;return this['_dialogue'][Math[k(0xd4)](Math[k(0xd6)]()*this['_dialogue'][k(0xe3)])];}[a47h(0xe1)](a){const l=a47h,b=a[Math[l(0xd4)](Math['random']()*a['length'])];this[l(0xe7)](b[l(0xd7)]);}[a47h(0xe7)](a){const m=a47h,b={'actor':this,'rooms':this[m(0xd5)],'scene':this[m(0xd8)]},c=new GoCommand(b);c[m(0xe6)]([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(0x17c))/0x1+-parseInt(f(0x1a9))/0x2+parseInt(f(0x17b))/0x3*(-parseInt(f(0x1c5))/0x4)+-parseInt(f(0x19e))/0x5*(-parseInt(f(0x17f))/0x6)+-parseInt(f(0x1ac))/0x7*(-parseInt(f(0x1c9))/0x8)+-parseInt(f(0x180))/0x9+-parseInt(f(0x1ca))/0xa*(-parseInt(f(0x183))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x369b3));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x18b)]()[h(0x1a2)]('(((.+)+)+)+$')[h(0x18b)]()['constructor'](a48a)['search'](h(0x194));});a48a();import{camelCase}from'change-case';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x175;let f=c[d];return f;},a48d(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';function a48c(){const C=['feet','removeInventory','Hat','84728IaACLF','10ehoUvH','leaveRoom','toLowerCase','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','addItem','\x20says:\x20\x22','leftHand','gloves','error','log','A\x20featureless\x20room','helmet','armarmor','hasItem','11952vTPKiD','55198OGrngJ','_equipment','write','102HEKwev','785313Vncmiw','boots','maxCarryingWeight','2020612PnhcuS','You\x20don\x27t\x20have\x20','enterRoom','determineEquipmentSlot','addInventory','\x20from\x20player\x27s\x20inventory.','logger','initialEquipment','toString','body\x20armor','removeItem','_currentLocation','getWeight','Gloves','You\x20equipped\x20','legs','torso','(((.+)+)+)+$','.\x20You\x20must\x20unequip\x20it\x20first.','currentWeight','arm\x20armor','Max\x20carrying\x20weight\x20must\x20be\x20positive.','includes','weapon','_maxCarryingWeight','shield','playerName','79990wCRITP','\x20in\x20your\x20inventory.','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','equipment','search','canEquip','\x20to\x20player\x27s\x20inventory.','equip','LegArmor','Invalid\x20category\x20or\x20slot:\x20','Helmet','260300bQcXNF','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','head','154eYcYZE','Weapon','Nexus','currentLocation','apply','_playerName','Boots','ArmArmor','weight','leg\x20armor','arms','_inventory','name','You\x20unequipped\x20','startLocation','hear','hat','BodyArmor','\x20is\x20now\x20listening\x20in\x20room\x20','Failed\x20to\x20remove\x20','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','speak','category','off','unequipBySlot','304BtbETt'];a48c=function(){return C;};return a48c();}export class Player extends AbstractPlayer{[a48i(0x1b1)];['_currentLocation'];[a48i(0x1b7)];['_equipment'];[a48i(0x19b)]=0x32;[a48i(0x189)];constructor(a){const j=a48i;super(),this['_playerName']=a[j(0x19d)],this['_currentLocation']=a[j(0x1ba)]||new Room({'name':j(0x1ae),'description':j(0x177)}),this['_inventory']=new Inventory(),this[j(0x189)]=Logger['getInstance']();if(a?.['inventoryItems'])for(const b of a['inventoryItems']){this[j(0x1b7)][j(0x1ce)](b);}this[j(0x17d)]=a?.[j(0x18a)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48i(0x1b8)](){const k=a48i;return this[k(0x1b1)];}get[a48i(0x1af)](){const l=a48i;return this[l(0x18e)];}set[a48i(0x1af)](a){const m=a48i;this[m(0x18e)]!==a&&(this[m(0x1cb)](),this[m(0x185)](a)),this['_currentLocation']=a;}get['inventory'](){return this['_inventory'];}get[a48i(0x1a1)](){const n=a48i;return this[n(0x17d)];}set[a48i(0x1a1)](a){const o=a48i;this[o(0x17d)]=a;}get[a48i(0x182)](){const p=a48i;return this[p(0x19b)];}set['maxCarryingWeight'](a){const q=a48i;a>0x0?this[q(0x19b)]=a:console[q(0x175)](q(0x198));}get[a48i(0x196)](){const r=a48i;let a=this[r(0x1b7)][r(0x18f)]();for(const b in this[r(0x17d)]){const c=this[r(0x17d)][b];c&&(a+=c['weight']);}return a;}[a48i(0x187)](a){const s=a48i;if(this[s(0x196)]+a[s(0x1b4)]>this[s(0x182)]){this[s(0x189)]['write'](s(0x1a0));throw new Error(s(0x1cd));}this['_inventory'][s(0x1ce)](a),this['logger']['write']('Added\x20'+a[s(0x1b8)]+s(0x1a4));}['removeInventory'](a){const t=a48i;if(this[t(0x1b7)][t(0x18d)](a[t(0x1b8)]))return this[t(0x189)][t(0x17e)]('Removed\x20'+a[t(0x1b8)]+t(0x188)),!![];return this[t(0x189)]['write'](t(0x1bf)+a[t(0x1b8)]+'\x20from\x20player\x27s\x20inventory.'),![];}[a48i(0x1a5)](a){const u=a48i;if(!this[u(0x1b7)][u(0x17a)](a['name']))return u(0x184)+a[u(0x1b8)]+u(0x19f);if(!this[u(0x1a3)](a))return'You\x20can\x27t\x20equip\x20'+a[u(0x1b8)]+'.';const b=this['determineEquipmentSlot'](a[u(0x1c2)]);if(!b)return a[u(0x1b8)]+'\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.';if(this[u(0x1a1)][b])return u(0x1c0)+b+u(0x195);return this['equipment'][b]=a,this[u(0x1c7)](a),u(0x191)+a['name']+'.';}['unequip'](a){const v=a48i;let b=a;if(!this[v(0x1a1)][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return v(0x1a7)+a+'.';}return this[v(0x1c4)](b);}[a48i(0x186)](a){const w=a48i;switch(a[w(0x1cc)]()){case Category[w(0x1ad)][w(0x1cc)]():return'rightHand';case Category['Shield'][w(0x1cc)]():return w(0x1d0);case Category[w(0x190)][w(0x1cc)]():return w(0x1d1);case Category[w(0x1a8)][w(0x1cc)]():case Category[w(0x1c8)]['toLowerCase']():return w(0x1ab);case Category[w(0x1b2)][w(0x1cc)]():return w(0x1c6);case Category[w(0x1a6)][w(0x1cc)]():return w(0x192);case Category[w(0x1b3)][w(0x1cc)]():return'arms';case Category[w(0x1bd)]['toLowerCase']():return w(0x193);case w(0x19a):return'rightHand';case w(0x19c):return w(0x1d0);case'gloves':return w(0x1d1);case w(0x178):case w(0x1bc):return w(0x1ab);case w(0x181):return'feet';case w(0x1b5):case'legarmor':return'legs';case w(0x197):case w(0x179):return w(0x1b6);case w(0x18c):case'bodyarmor':case'torso':return w(0x193);default:return null;}}['canEquip'](a){const x=a48i;return Object['values'](Category)[x(0x199)](a[x(0x1c2)]);}['unequipBySlot'](a){const y=a48i,b=this['equipment'][a];if(!b)return y(0x1aa)+a+'\x20slot.';return this[y(0x187)](b),this[y(0x1a1)][a]=null,y(0x1b9)+b[y(0x1b8)]+'.';}[a48i(0x1bb)](a,b){const z=a48i;a!==this&&this['logger'][z(0x176)](a[z(0x1b8)]+z(0x1cf)+b+'\x22');}[a48i(0x185)](a){const A=a48i;this[A(0x18e)]=a,a['on'](A(0x1c1),this['hear']['bind'](this)),this[A(0x189)]['write'](this[A(0x1b8)]+A(0x1be)+a[A(0x1b8)]);}[a48i(0x1cb)](){const B=a48i;this[B(0x18e)]&&(this[B(0x18e)][B(0x1c3)](B(0x1c1),this[B(0x1bb)]['bind'](this)),this[B(0x189)][B(0x17e)](this['name']+'\x20is\x20no\x20longer\x20listeng\x20in\x20'+this[B(0x18e)][B(0x1b8)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x1c6))/0x1+parseInt(f(0x1be))/0x2+parseInt(f(0x1c0))/0x3+parseInt(f(0x1bd))/0x4*(-parseInt(f(0x1cb))/0x5)+parseInt(f(0x1ca))/0x6+parseInt(f(0x1c4))/0x7*(-parseInt(f(0x1b8))/0x8)+-parseInt(f(0x1b3))/0x9*(-parseInt(f(0x1c7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x844f3));function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1af;var f=c[d];return f;},a49d(a,b);}var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1cf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x1c3)]()[h(0x1b7)](h(0x1b9))[h(0x1c3)]()[h(0x1bb)](a49a)[h(0x1b7)](h(0x1b9));});a49a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';function a49c(){var m=['Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','444KizddE','187070Hdgvnu','solved','55383rIAhmG','riddle','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','toString','21jUqCdV','You\x20have\x20already\x20solved\x20this\x20puzzle.','973908uivQoh','16455590hxKXSX','requiredPhrase','matchesRequiredPhrase','915060wrSznZ','16445iIjXxv','write','You\x20solved\x20the\x20puzzle!','hasItem','apply','logger','Puzzle:\x20Correct\x20solution\x20provided.','rewardItem','requiredItem','9pJJvFB','successMessage','failureMessage','hasRequiredItem','search','77704foQuSo','(((.+)+)+)+$','solve','constructor'];a49c=function(){return m;};return a49c();}export class Puzzle extends AbstractPuzzle{[a49i(0x1af)]=Logger['getInstance']();[a49i(0x1bf)]=![];[a49i(0x1b2)];[a49i(0x1c8)];[a49i(0x1c1)];[a49i(0x1b1)];[a49i(0x1b4)];[a49i(0x1b5)];constructor(a){var j=a49i;super(),this[j(0x1b2)]=a[j(0x1b2)],this[j(0x1c8)]=a['requiredPhrase'],this[j(0x1c1)]=a['riddle'],this[j(0x1b1)]=a[j(0x1b1)],this['successMessage']=a['successMessage']||j(0x1cd),this[j(0x1b5)]=a[j(0x1b5)]||j(0x1c2);}[a49i(0x1b6)](a){var k=a49i;if(this[k(0x1b2)])return a[k(0x1ce)](this[k(0x1b2)]);return![];}[a49i(0x1c9)](a){return this['requiredPhrase']===a;}[a49i(0x1ba)](a,b){var l=a49i;if(this['solved'])return this['logger']['write']('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':l(0x1c5)};return this['hasRequiredItem'](b)||this[l(0x1c9)](a)?(this[l(0x1bf)]=!![],this['logger'][l(0x1cc)](l(0x1b0)),{'success':!![],'message':this['successMessage']}):(this['logger'][l(0x1cc)](l(0x1bc)),{'success':![],'message':this[l(0x1b5)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=-parseInt(f(0x118))/0x1*(parseInt(f(0xf5))/0x2)+parseInt(f(0xee))/0x3*(-parseInt(f(0xfb))/0x4)+-parseInt(f(0xe0))/0x5+-parseInt(f(0x114))/0x6+parseInt(f(0x10d))/0x7*(parseInt(f(0x111))/0x8)+-parseInt(f(0xef))/0x9*(-parseInt(f(0xe5))/0xa)+parseInt(f(0xfa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xea373));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0xf1)]()[h(0xf3)](h(0x102))[h(0xf1)]()[h(0x11b)](a50a)[h(0xf3)](h(0x102));});a50a();import{Logger}from'../utilities/logger.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xe0;let f=c[d];return f;},a50d(a,b);}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=['attemptUnlock','DOWN','exits','speak','NORTH','roomType','EAST','apply','189qyjvcO','hasItem','emit','getOppositeDirection','295144ZYhKiS','No\x20locked\x20exit\x20found\x20in\x20direction\x20','SOUTH','2465910PnwuPD','setPuzzle','north','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','26881CCbolz','west','down','constructor','findExistingDoor','\x20is\x20locked.\x20Result:\x20','say','description','6649110uzMWAN','roomB','attemptUnlockExit','values','write','10YdnLdF','Checking\x20if\x20exit\x20in\x20direction\x20','getExit','addExit','The\x20','INSIDE','roomA','inventory','name','6FbNVqb','3576249tjEEXg','Item\x20added\x20to\x20room\x20','toString','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','search','\x20remains\x20locked.','46QUVHQG','removeItem','logger','isExitLocked','Puzzle\x20set\x20for\x20room\x20','29621537Wnynzg','1535844GljRsN','puzzle','get','checkIfLocked','Fetching\x20exit\x20in\x20direction:\x20','addItem','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','(((.+)+)+)+$','Item\x20removed\x20from\x20room\x20','set'];a50c=function(){return u;};return a50c();}export class Room extends AbstractRoom{[a50i(0xf7)]=Logger['getInstance']();[a50i(0xed)];[a50i(0x11f)];[a50i(0x107)]=new Map();[a50i(0x10a)];['isStartRoom'];[a50i(0xec)]=new Inventory();constructor(a){const j=a50i;super(),this[j(0xed)]=a[j(0xed)],this[j(0x11f)]=a[j(0x11f)],this[j(0x10a)]=a[j(0x10a)]||RoomType[j(0xea)],a[j(0x107)]&&(this[j(0x107)]=a[j(0x107)]||new Map()),a[j(0xec)]&&(this['inventory']=a[j(0xec)]),a[j(0xfc)]&&(this[j(0xfc)]=a['puzzle']),this['isStartRoom']=a['isStartRoom']||![],this[j(0xf7)][j(0xe4)]('Room\x20created:\x20'+this[j(0xed)]);}[a50i(0x11e)](a,b){const k=a50i;this[k(0x10f)](k(0x108),a,b);}[a50i(0xe8)](a,b,c){const l=a50i;let d=this[l(0x11c)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x107)][l(0x104)](a,d),b[l(0x107)]['set'](this[l(0x110)](a),d);}[a50i(0xe2)](a,b){const m=a50i,c=this['exits'][m(0xfd)](a);if(c instanceof Door){const d=c[m(0x105)](b);return this[m(0xf7)][m(0xe4)](m(0x117)+a+'.\x20Success:\x20'+d),d?m(0xe9)+c['name']+'\x20unlocked!':m(0xe9)+c['name']+m(0xf4);}return this['logger'][m(0xe4)](m(0x112)+a),m(0x101);}[a50i(0xe7)](a){const n=a50i;return this['logger'][n(0xe4)](n(0xff)+a),this[n(0x107)]['get'](a);}[a50i(0xf8)](a){const o=a50i,b=this['exits']['get'](a),c=b instanceof Door&&b[o(0xfe)]();return this[o(0xf7)][o(0xe4)](o(0xe6)+a+o(0x11d)+c),c;}['addItem'](a){const p=a50i;this[p(0xec)][p(0x100)](a),this['logger'][p(0xe4)](p(0xf0)+this[p(0xed)]+':\x20'+a[p(0xed)]);}[a50i(0xf6)](a){const q=a50i;this['inventory'][q(0x10e)](a[q(0xed)])?(this[q(0xec)][q(0xf6)](a['name']),this[q(0xf7)][q(0xe4)](q(0x103)+this[q(0xed)]+':\x20'+a[q(0xed)])):this[q(0xf7)][q(0xe4)](q(0xf2)+this['name']+':\x20'+a['name']);}[a50i(0x115)](a){const r=a50i;this[r(0xfc)]=a,this['logger'][r(0xe4)](r(0xf9)+this[r(0xed)]+':\x20'+a['riddle']);}[a50i(0x110)](a){const s=a50i;switch(a){case s(0x116):return Direction[s(0x113)];case'south':return Direction[s(0x109)];case'east':return Direction['WEST'];case s(0x119):return Direction[s(0x10b)];case'up':return Direction[s(0x106)];case s(0x11a):return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}[a50i(0x11c)](a){const t=a50i;for(const b of this[t(0x107)][t(0xe3)]()){if(b instanceof Door){if(b[t(0xeb)]===this&&b[t(0xe1)]===a||b[t(0xe1)]===this&&b[t(0xeb)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51k=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=-parseInt(i(0x1b6))/0x1+parseInt(i(0x1d3))/0x2+parseInt(i(0x1e8))/0x3+parseInt(i(0x1cc))/0x4+parseInt(i(0x1a7))/0x5*(parseInt(i(0x1d7))/0x6)+parseInt(i(0x1c1))/0x7*(-parseInt(i(0x1d9))/0x8)+-parseInt(i(0x1ab))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x95197));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const j=a51d;return a51a[j(0x1ec)]()[j(0x1db)]('(((.+)+)+)+$')[j(0x1ec)]()['constructor'](a51a)['search']('(((.+)+)+)+$');});a51a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1a7;let f=c[d];return f;},a51d(a,b);}import{AbstractScene}from'../types/abstracts.js';function a51c(){const D=['toUpperCase','characterLocations','exits','Failed\x20to\x20add\x20puzzle.\x20Room\x20','2277592PGXGgT','Failed\x20to\x20add\x20item\x20','setPuzzle','setCharacterLocation','2160366LCOtZQ','getPlayer','8hKkVAC','keys','search','determineStartRoom','removeRoom','roomFactory','Actor\x20with\x20name\x20','has','get','Failed\x20to\x20set\x20','\x27s\x20location.\x20Room\x20','hasOwnProperty','removeActor','No\x20actor\x20with\x20name\x20','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','3164076CVzWCW','Added\x20puzzle\x20to\x20room\x20','targetRoom','\x20to\x20room\x20','toString','name','Added\x20item\x20','5ZxFMCg','\x20is\x20now\x20in\x20room\x20','length','addRoom','8046234FNzKsQ','getCharacterLocation','connectRooms','\x20found\x20in\x20the\x20scene.','addPuzzleToRoom','Added\x20room\x20to\x20scene:\x20','initialize','currentLocation','warn','direction','allActors','826253oBnYzT','createRoom','logger','getRooms','player','getActor','Removed\x20room\x20from\x20scene:\x20','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','values','set','write','6764037USbXhT','addExit','roomConfiguration','\x22\x20does\x20not\x20exist.','rooms','addActor','delete','actors','addItem','\x20not\x20found\x20in\x20scene.','generateRoomsFromConfig','2974928TcTVrP','join','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20'];a51c=function(){return D;};return a51c();}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a51k(0x1c5)];['player'];[a51k(0x1b8)];['actors'];[a51k(0x1d0)]=new Map();[a51k(0x1de)];constructor(a){const l=a51k;super(),this[l(0x1de)]=new RoomFactory(),this[l(0x1ba)]=a['player'],this['rooms']=this[l(0x1cb)](a['roomConfiguration']),this[l(0x1b8)]=Logger['getInstance'](),this[l(0x1c8)]=new Map(),this['createExitsFromConfig'](a[l(0x1c3)]),this[l(0x1b8)][l(0x1c0)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object['keys'](this[l(0x1c5)])[l(0x1cd)](',\x20'));}[a51k(0x1b1)](){const m=a51k;this['player'][m(0x1b2)]=this[m(0x1dc)]();}[a51k(0x1cb)](a){const n=a51k;if(!this[n(0x1de)])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this[n(0x1de)][n(0x1b7)](c);b[c[n(0x1ed)]]=d;}return b;}['createExitsFromConfig'](a){const o=a51k;for(const b of a){const c=this['rooms'][b[o(0x1ed)]];if(b[o(0x1d1)])for(const d of b[o(0x1d1)]){const e=d[o(0x1b4)][o(0x1cf)](),f=d[o(0x1ea)],g=d['keyRequired'],h=this[o(0x1c5)][f];h&&c[o(0x1c2)](Direction[e],h,g);}}}[a51k(0x1c6)](a){const p=a51k;if(this['actors'][p(0x1e0)](a['name']))throw new Error(p(0x1df)+a[p(0x1ed)]+'\x20already\x20exists\x20in\x20the\x20scene.');this[p(0x1c8)]['set'](a[p(0x1ed)],a);}[a51k(0x1e5)](a){const q=a51k;if(!this[q(0x1c8)][q(0x1e0)](a))throw new Error(q(0x1e6)+a+q(0x1ae));this['actors'][q(0x1c7)](a);}[a51k(0x1bb)](a){const r=a51k;return this[r(0x1c8)]['get'](a);}get[a51k(0x1b5)](){const s=a51k;return Array['from'](this[s(0x1c8)][s(0x1be)]());}[a51k(0x1aa)](a){const t=a51k;this['rooms'][a['name']]=a,this[t(0x1b8)][t(0x1c0)](t(0x1b0)+a[t(0x1ed)]);}[a51k(0x1dd)](a){const u=a51k;return this[u(0x1c5)][a]?(delete this[u(0x1c5)][a],this['logger']['write'](u(0x1bc)+a),!![]):(this[u(0x1b8)][u(0x1c0)](u(0x1ce)+a),![]);}['addItemToRoom'](a,b){const v=a51k,c=this['rooms'][b];c?(c[v(0x1c9)](a),this['logger']['write'](v(0x1ee)+a[v(0x1ed)]+v(0x1eb)+c['name'])):this[v(0x1b8)]['write'](v(0x1d4)+a[v(0x1ed)]+'.\x20Room\x20'+b+v(0x1ca));}[a51k(0x1af)](a,b){const w=a51k,c=this[w(0x1c5)][b];c?(c[w(0x1d5)](a),this[w(0x1b8)]['write'](w(0x1e9)+c[w(0x1ed)])):this[w(0x1b8)][w(0x1c0)](w(0x1d2)+b+w(0x1ca));}[a51k(0x1d6)](a,b){const x=a51k,c=this[x(0x1c5)][b];c?(this[x(0x1d0)][x(0x1bf)](a[x(0x1ed)],c),this[x(0x1b8)][x(0x1c0)](a[x(0x1ed)]+x(0x1a8)+c[x(0x1ed)])):this[x(0x1b8)][x(0x1c0)](x(0x1e2)+a[x(0x1ed)]+x(0x1e3)+b+x(0x1ca));}[a51k(0x1ac)](a){const y=a51k;return this[y(0x1d0)][y(0x1e1)](a['name']);}[a51k(0x1dc)](){const z=a51k,a=[];for(const c in this[z(0x1c5)]){if(this[z(0x1c5)][z(0x1e4)](c)){const d=this[z(0x1c5)][c];d['isStartRoom']&&a['push'](d);}}if(a['length']>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a['length']===0x1)return a[0x0];const b=Object[z(0x1da)](this[z(0x1c5)]);if(b[z(0x1a9)]===0x0)throw new Error(z(0x1e7));return console[z(0x1b3)](z(0x1bd)),this[z(0x1c5)][b[0x0]];}[a51k(0x1d8)](){const A=a51k;return this[A(0x1ba)];}[a51k(0x1b9)](){const B=a51k;return this[B(0x1c5)];}[a51k(0x1ad)](a,b,c,d){const C=a51k,e=this[C(0x1c5)][a],f=this['rooms'][c];if(!e)throw new Error('Room\x20\x22'+a+C(0x1c4));if(!f)throw new Error('Room\x20\x22'+c+'\x22\x20does\x20not\x20exist.');e['addExit'](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a52t=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x138))/0x1*(-parseInt(f(0x11a))/0x2)+parseInt(f(0x130))/0x3+-parseInt(f(0x13c))/0x4*(-parseInt(f(0x128))/0x5)+-parseInt(f(0x12b))/0x6*(-parseInt(f(0x121))/0x7)+-parseInt(f(0x13f))/0x8*(-parseInt(f(0x10c))/0x9)+-parseInt(f(0x112))/0xa+-parseInt(f(0x140))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xb197a));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x122)]()[h(0x136)]('(((.+)+)+)+$')[h(0x122)]()[h(0x12c)](a52a)[h(0x136)]('(((.+)+)+)+$');});a52a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a52d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[i(0x119)],'shape':Shape[i(0x133)],'color':Color[i(0x114)],'texture':Texture[i(0x120)],'rating':Rating['Common'],'weight':0x1});}['use'](){var j=a52d;return this[j(0x11f)];}}function a52c(){var E=['Rifle','4ABudjA','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Large','8wmWjeh','25153821IOsVhz','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Legendary','Holy\x20Grail','7060986viYXDq','apply','BodyArmor','Grey','Cup','use','10434450gNCTjS','ArmArmor','Yellow','name','Sniper\x20Rifle','Blade','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Unknown','30vexamm','LegArmor','Gloves','Rare','Boots','description','Smooth','14NMdHzb','toString','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','You\x20hold\x20the\x20','Medium','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','Small','6950540jGqDJL','A\x20mysterious\x20book.','publishDate','1426890ZQKKxn','constructor','Common','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Helmet','4184811vVutPS','Brown','author','Rectangle','Circle','Gold','search','pageCount','823HGgCRr','Metallic','Weapon'];a52c=function(){return E;};return a52c();}export class Sword extends Item{constructor(a,b){var k=a52d;super({'name':a,'description':b,'size':Size[k(0x125)],'category':Category[k(0x13a)],'shape':Shape[k(0x117)],'color':Color[k(0x10f)],'texture':Texture[k(0x139)],'rating':Rating[k(0x12d)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a52d;super({'name':a,'description':b,'size':Size[l(0x13e)],'category':Category[l(0x13a)],'shape':Shape[l(0x13b)],'color':Color['Brown'],'texture':Texture[l(0x139)],'rating':Rating[l(0x11d)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a52d;super({'name':a,'description':b,'size':Size[m(0x125)],'category':Category[m(0x12f)],'shape':Shape['Circle'],'color':Color[m(0x10f)],'texture':Texture[m(0x139)],'rating':Rating[m(0x12d)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a52d;super({'name':a,'description':b,'size':Size[n(0x13e)],'category':Category[n(0x10e)],'shape':Shape['Rectangle'],'color':Color[n(0x10f)],'texture':Texture[n(0x139)],'rating':Rating[n(0x12d)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a52d;super({'name':a,'description':b,'size':Size[o(0x125)],'category':Category[o(0x11b)],'shape':Shape['Rectangle'],'color':Color['Grey'],'texture':Texture[o(0x139)],'rating':Rating[o(0x12d)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a52d;super({'name':a,'description':b,'size':Size[p(0x125)],'category':Category[p(0x11e)],'shape':Shape['Circle'],'color':Color[p(0x131)],'texture':Texture[p(0x120)],'rating':Rating['Common'],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a52d;super({'name':a,'description':b,'size':Size[q(0x127)],'category':Category[q(0x11c)],'shape':Shape[q(0x134)],'color':Color[q(0x131)],'texture':Texture[q(0x120)],'rating':Rating[q(0x12d)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a52d;super({'name':a,'description':b,'size':Size[r(0x125)],'category':Category[r(0x113)],'shape':Shape[r(0x133)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating[r(0x12d)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a52d;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category['Key'],'shape':Shape['Rectangle'],'color':Color[s(0x114)],'texture':Texture[s(0x120)],'rating':Rating[s(0x12d)],'weight':0x0});}[a52t(0x111)](){return'This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22';}}export class Weapon extends Item{constructor(a,b){var u=a52t;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[u(0x13a)],'shape':Shape[u(0x117)],'color':Color[u(0x10f)],'texture':Texture[u(0x139)],'rating':Rating[u(0x12d)],'weight':0x3});}[a52t(0x111)](){var v=a52t;return v(0x13d);}}export class Book extends Item{[a52t(0x132)];[a52t(0x12a)];[a52t(0x137)];constructor(a,b=a52t(0x129),c='Unknown\x20Author'){var w=a52t;super({'name':a,'description':b,'size':Size[w(0x125)],'category':Category['Book'],'shape':Shape[w(0x133)],'color':Color['Brown'],'texture':Texture[w(0x120)],'rating':Rating[w(0x12d)],'weight':0x1}),this[w(0x132)]=c,this['publishDate']=new Date(),this[w(0x137)]=0x64;}[a52t(0x111)](){var x=a52t;return x(0x126);}}export class ShortSword extends Item{constructor(){var y=a52t;super({'name':'Short\x20Sword','description':y(0x12e),'size':Size[y(0x125)],'category':Category['Weapon'],'shape':Shape[y(0x117)],'color':Color[y(0x10f)],'texture':Texture[y(0x139)],'rating':Rating['Common'],'weight':0x3});}[a52t(0x111)](){var z=a52t;return z(0x13d);}}export class SniperRifle extends Item{constructor(){var A=a52t;super({'name':A(0x116),'description':A(0x123),'size':Size[A(0x13e)],'category':Category['Weapon'],'shape':Shape['Rifle'],'color':Color[A(0x131)],'texture':Texture[A(0x120)],'rating':Rating[A(0x12d)],'weight':0x5});}[a52t(0x111)](){var B=a52t;return B(0x142);}}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x10a;var f=c[d];return f;},a52d(a,b);}export class HolyGrail extends Item{constructor(){var C=a52t;super({'name':C(0x10b),'description':C(0x141),'size':Size['Small'],'category':Category[C(0x110)],'shape':Shape[C(0x134)],'color':Color[C(0x135)],'texture':Texture[C(0x139)],'rating':Rating[C(0x10a)],'weight':0x1});}[a52t(0x111)](){var D=a52t;return D(0x124)+this[D(0x115)]+D(0x118);}}
|