@maka/maka-cli 4.5.49 → 4.5.50
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
|
-
|
|
1
|
+
function a33d(a,b){const c=a33c();return a33d=function(d,e){d=d-0x9f;let f=c[d];return f;},a33d(a,b);}function a33c(){const l=['An\x20error\x20occurred.','894958VrPJlA','search','16MyLJyt','actor','814570kauuHp','toString','473yonIOt','apply','scene','1107281VXzJBv','1554KZQuzK','What\x20do\x20you\x20want\x20to\x20say?','join','\x20says\x20to\x20','128206qzlXYA','description','say','execute','16bunFPy','name','2Cvhlma','26181AffjXQ','176700IWDYLQ','30LNYoto','(((.+)+)+)+$',':\x20\x22','Scene\x20is\x20missing\x20from\x20context.','483858oXKygM','verb','log','54hgrifp','context','currentLocation','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.'];a33c=function(){return l;};return a33c();}const a33j=a33d;(function(a,b){const g=a33d,c=a();while(!![]){try{const d=-parseInt(g(0xba))/0x1*(parseInt(g(0xa6))/0x2)+parseInt(g(0xbb))/0x3*(-parseInt(g(0xa8))/0x4)+parseInt(g(0xbd))/0x5*(-parseInt(g(0xc1))/0x6)+parseInt(g(0xaf))/0x7*(-parseInt(g(0xb8))/0x8)+-parseInt(g(0xa1))/0x9*(-parseInt(g(0xaa))/0xa)+parseInt(g(0xac))/0xb*(parseInt(g(0xbc))/0xc)+parseInt(g(0xb4))/0xd*(parseInt(g(0xb0))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a33c,0x76c6d));const a33b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a33d;if(c){const e=c[h(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a33a=a33b(this,function(){const i=a33d;return a33a[i(0xab)]()[i(0xa7)](i(0xbe))['toString']()['constructor'](a33a)[i(0xa7)](i(0xbe));});a33a();import{Command}from'./command.js';export class SayCommand extends Command{static [a33j(0x9f)]='say';static [a33j(0xb5)]=a33j(0xa4);[a33j(0xa2)];constructor(a){super(a),this['context']=a;}[a33j(0xb7)](a){const k=a33j;if(a['length']===0x0)return k(0xb1);const b=a[k(0xb2)]('\x20'),c=this['actor'],d=this[k(0xa2)][k(0xae)];if(!d)return this['logger'][k(0xa0)](k(0xc0)),k(0xa5);const e=d['allActors']['filter'](f=>f[k(0xa3)]===c[k(0xa3)]);for(const f of e){this['logger']['log'](c[k(0xb9)]+k(0xb3)+f[k(0xb9)]+k(0xbf)+b+'\x22'),this[k(0xa9)]['currentLocation'][k(0xb6)](f,b);}return'You\x20say:\x20\x22'+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34i=a34d;
|
|
1
|
+
const a34i=a34d;(function(a,b){const f=a34d,c=a();while(!![]){try{const d=-parseInt(f(0x1b8))/0x1+parseInt(f(0x1c4))/0x2*(parseInt(f(0x1ca))/0x3)+-parseInt(f(0x1bc))/0x4*(-parseInt(f(0x1be))/0x5)+-parseInt(f(0x1bf))/0x6*(parseInt(f(0x1c7))/0x7)+-parseInt(f(0x1c6))/0x8+-parseInt(f(0x1c5))/0x9+parseInt(f(0x1bd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a34c,0x56b9d));const a34b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a34d;if(c){const e=c[g(0x1c3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a34a=a34b(this,function(){const h=a34d;return a34a['toString']()[h(0x1c2)](h(0x1bb))[h(0x1d0)]()['constructor'](a34a)[h(0x1c2)](h(0x1bb));});function a34d(a,b){const c=a34c();return a34d=function(d,e){d=d-0x1b7;let f=c[d];return f;},a34d(a,b);}a34a();import{Command}from'./command.js';function a34c(){const k=['SearchCommand:\x20','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','38173jBuxgu','logger','Search\x20for\x20items\x20in\x20your\x20area','(((.+)+)+)+$','8sTLmvV','10447370gQFpPJ','827560ywPUgI','5802WEtDrM','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','length','search','apply','305068EjJAHk','5010561UOQVTr','2186456gFrcwC','3311kjUImm','write','actor','6RpCHkD','execute','verb','inventory','\x20found\x20the\x20following\x20items:\x20','name','toString','You\x20search\x20the\x20area\x20and\x20find:\x20'];a34c=function(){return k;};return a34c();}export class SearchCommand extends Command{static [a34i(0x1cc)]=a34i(0x1c2);static ['description']=a34i(0x1ba);[a34i(0x1cb)](){const j=a34i,a=this[j(0x1c9)]['currentLocation'][j(0x1cd)]['listItems']();if(a[j(0x1c1)]===0x0)return this[j(0x1b9)][j(0x1c8)](j(0x1d2)+this[j(0x1c9)][j(0x1cf)]+j(0x1c0)),j(0x1b7);const b=a['join'](',\x20');return this[j(0x1b9)][j(0x1c8)](j(0x1d2)+this[j(0x1c9)][j(0x1cf)]+j(0x1ce)+b),j(0x1d1)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d=parseInt(f(0xd1))/0x1+-parseInt(f(0xcc))/0x2*(-parseInt(f(0xe5))/0x3)+parseInt(f(0xe4))/0x4*(parseInt(f(0xe3))/0x5)+parseInt(f(0xd0))/0x6+-parseInt(f(0xd7))/0x7*(parseInt(f(0xd5))/0x8)+parseInt(f(0xdd))/0x9*(-parseInt(f(0xc8))/0xa)+-parseInt(f(0xcb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a35c,0x713a1));function a35d(a,b){const c=a35c();return a35d=function(d,e){d=d-0xc5;let f=c[d];return f;},a35d(a,b);}const a35b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a35d;if(c){const e=c[g(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a35a=a35b(this,function(){const h=a35d;return a35a['toString']()[h(0xdb)](h(0xcf))[h(0xce)]()[h(0xe0)](a35a)[h(0xdb)]('(((.+)+)+)+$');});a35a();import{Command}from'./command.js';function a35c(){const k=['1419294dbijPd','actor','execute','inventory','3354930tTAzAi','logger','puzzle','4601201ZLdBZm','2wgTlOZ','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','toString','(((.+)+)+)+$','4843146jIektv','21646kaeEEN','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','SolveCommand:\x20','addItem','898256EuLzJg','currentLocation','35euvBBw','join','apply','description','search','verb','9cLjGkF','write','Attempt\x20to\x20solve\x20a\x20puzzle.','constructor','solve','message','340740jhnkEu','28OSqDir'];a35c=function(){return k;};return a35c();}export class SolveCommand extends Command{static [a35i(0xdc)]=a35i(0xe1);static [a35i(0xda)]=a35i(0xdf);[a35i(0xc6)](a){const j=a35i,b=a[j(0xd8)]('\x20')['toLowerCase'](),c=this[j(0xc5)][j(0xd6)];if(!c||!c[j(0xca)])return this[j(0xc9)][j(0xde)](j(0xd2)),j(0xcd);const d=c[j(0xca)][j(0xe1)](b,this[j(0xc5)][j(0xc7)]);return d['success']&&c['puzzle']['rewardItem']&&this[j(0xc5)][j(0xc7)][j(0xd4)](c[j(0xca)]['rewardItem']),this['logger'][j(0xde)](j(0xd3)+d[j(0xe2)]),d[j(0xe2)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a36i=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d
|
|
1
|
+
const a36i=a36d;function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x123;let f=c[d];return f;},a36d(a,b);}(function(a,b){const f=a36d,c=a();while(!![]){try{const d=-parseInt(f(0x12e))/0x1+-parseInt(f(0x12c))/0x2+parseInt(f(0x134))/0x3*(parseInt(f(0x148))/0x4)+parseInt(f(0x14b))/0x5*(parseInt(f(0x132))/0x6)+parseInt(f(0x143))/0x7+-parseInt(f(0x124))/0x8*(-parseInt(f(0x12f))/0x9)+-parseInt(f(0x13e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x703f7));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a[h(0x145)]()[h(0x135)](h(0x141))[h(0x145)]()['constructor'](a36a)[h(0x135)](h(0x141));});function a36c(){const l=['join','\x22\x20not\x20retrieved\x20from\x20','6mSWkzP','The\x20item\x20\x22','180budIHE','search','\x22\x20to\x20','verb','\x22\x20not\x20found\x20in\x20','\x22\x20from\x20','name','Pick\x20up\x20an\x20item.','Successfully\x20added\x20\x22','actor','132190Zzmlbm','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','message','(((.+)+)+)+$','removeItem','5111365bCmzKR','\x20during\x20\x27Take\x27\x20command.','toString','logger','There\x20is\x20no\x20item\x20\x22','43732JGzTtU','\x22\x20in\x20this\x20room.','getItem','789395lNzRoZ','\x22\x20is\x20too\x20heavy\x20to\x20carry.','take','inventory','616CIbfTr','write','You\x20have\x20taken\x20the\x20','apply','currentLocation','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','Item\x20\x22','execute','1817504OQbtVI','hasItem','742973mPlkpm','67869ShDMxn'];a36c=function(){return l;};return a36c();}a36a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a36i(0x137)]='take';static ['description']=a36i(0x13b);[a36i(0x12b)](a){const j=a36i;return this[j(0x146)]['write'](j(0x13f)+a[j(0x130)]('\x20')),this[j(0x14d)](a);}[a36i(0x14d)](a){const k=a36i,b=a[k(0x130)]('\x20')['toLowerCase'](),c=this[k(0x13d)][k(0x128)];if(!c[k(0x123)][k(0x12d)](b))return this['logger'][k(0x125)]('Item\x20\x22'+b+k(0x138)+c[k(0x13a)]+k(0x144)),k(0x147)+b+k(0x149);const d=c[k(0x123)][k(0x14a)](b);if(!d)return this[k(0x146)]['write'](k(0x12a)+b+k(0x131)+c[k(0x13a)]+k(0x129)),k(0x147)+b+k(0x149);try{return this[k(0x13d)]['addInventory'](d),this[k(0x146)][k(0x125)](k(0x13c)+b+k(0x136)+this[k(0x13d)][k(0x13a)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[k(0x123)][k(0x142)](b),this[k(0x146)]['write']('Successfully\x20removed\x20\x22'+b+k(0x139)+c[k(0x13a)]+k(0x129)),k(0x126)+b+'.';}catch(e){return this[k(0x146)][k(0x125)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[k(0x140)]),k(0x133)+b+k(0x14c);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37h=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0xa0))/0x1+parseInt(f(0xab))/0x2*(parseInt(f(0xa1))/0x3)+parseInt(f(0x9f))/0x4+parseInt(f(0xa9))/0x5+-parseInt(f(0xa4))/0x6*(parseInt(f(0xa7))/0x7)+parseInt(f(0xaa))/0x8+-parseInt(f(0xae))/0x9*(-parseInt(f(0xac))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xdc59b));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(0xa8)]()['search'](g(0xaf))[g(0xa8)]()[g(0x9d)](a37a)[g(0xa2)]('(((.+)+)+)+$');});a37a();import{Command}from'./command.js';function a37c(){const j=['name','logger','constructor','verb','4695316yjvBQO','1791730jgJqqC','176862OJLfml','search','description','84KBnGMs','join','Unequip\x20an\x20item.','264481xkaSEa','toString','2223905NAFpYM','1901344rszufc','12AiqRkm','273850xFUyMX','execute','333XXRAak','(((.+)+)+)+$','actor'];a37c=function(){return j;};return a37c();}function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x9d;let f=c[d];return f;},a37d(a,b);}export class UnequipCommand extends Command{static [a37h(0x9e)]='unqeuip';static [a37h(0xa3)]=a37h(0xa6);[a37h(0xad)](a){const i=a37h,b=a[i(0xa5)]('\x20')['toLowerCase'](),c=this[i(0xb0)]['unequip'](b);return this[i(0xb2)]['write']('UnequipCommand:\x20'+this[i(0xb0)][i(0xb1)]+'\x20unqeuiped\x20'+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38k=a38d;function
|
|
1
|
+
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=parseInt(h(0xb4))/0x1*(-parseInt(h(0xcf))/0x2)+-parseInt(h(0xbb))/0x3+parseInt(h(0xb7))/0x4+parseInt(h(0xc9))/0x5+-parseInt(h(0xb6))/0x6+parseInt(h(0xc6))/0x7+parseInt(h(0xbc))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x70915));function a38c(){const n=['logger','2325880DYOVgb','execute','error','actor','attemptUnlockExit','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','78654mJswkO','(((.+)+)+)+$','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','search','.\x20Result:\x20','toString','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','unlock','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','get','UnlockCommand:\x20','description','name','6AqduOJ','\x20is\x20attempted\x20to\x20unlock\x20','4452630QaPzOY','2323128ATEkrf','currentLocation','apply','length','136443xXFeDo','1475608UYuoda','constructor','Unlock\x20a\x20door.','exits','write','hasItem','There\x27s\x20no\x20door\x20named\x20\x22','toLowerCase','\x22\x20here.','UnlockCommand:\x20No\x20target\x20specified.','1779512nNpcXk','has'];a38c=function(){return n;};return a38c();}const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a38d;if(c){const e=c[i(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a[j(0xd4)]()[j(0xd2)](j(0xd0))[j(0xd4)]()[j(0xbd)](a38a)['search'](j(0xd0));});a38a();function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xb1;let f=c[d];return f;},a38d(a,b);}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static ['verb']=a38k(0xd6);static [a38k(0xb2)]=a38k(0xbe);[a38k(0xca)](a){const l=a38k;return this[l(0xd6)](a);}[a38k(0xd6)](a){const m=a38k;if(a[m(0xba)]===0x0)return this[m(0xc8)][m(0xcb)](m(0xc5)),m(0xce);const b=a[0x0][m(0xc3)](),c=this['actor'][m(0xb8)];if(this['isValidDirection'](b)&&c[m(0xbf)][m(0xc7)](b)){const d=c[m(0xbf)][m(0xd8)](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.[m(0xc3)]();if(e&&this[m(0xcc)]['inventory'][m(0xc1)](e)){const f=this['actor']['inventory']['getItem'](e);if(f){const g=c[m(0xcd)](b,f[m(0xb3)]);return this[m(0xc8)]['write'](m(0xb1)+this['actor'][m(0xb3)]+m(0xb5)+b+m(0xd3)+g),g;}}return this[m(0xc8)][m(0xc0)](m(0xb1)+this[m(0xcc)]['name']+m(0xd7)+b+'.'),m(0xd1);}else return this['logger'][m(0xc0)](m(0xb1)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c['name']+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+m(0xc4);}else return this['logger'][m(0xc0)](m(0xb1)+b+m(0xd5)+c['name']+'.'),m(0xc2)+b+m(0xc4);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0xd4))/0x1+parseInt(f(0xe2))/0x2*(parseInt(f(0xda))/0x3)+-parseInt(f(0xe6))/0x4*(parseInt(f(0xd9))/0x5)+parseInt(f(0xf0))/0x6*(-parseInt(f(0xd3))/0x7)+-parseInt(f(0xd6))/0x8*(-parseInt(f(0xe0))/0x9)+parseInt(f(0xe5))/0xa+parseInt(f(0xef))/0xb*(-parseInt(f(0xce))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xdc640));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0xeb)]()[h(0xdb)](h(0xd8))[h(0xeb)]()[h(0xde)](a39a)[h(0xdb)]('(((.+)+)+)+$');});function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xcc;let f=c[d];return f;},a39d(a,b);}a39a();function a39c(){const k=['204dIZUep','name','UseCommand:\x20','description','toLowerCase','11837cXWuPG','485095cjZSzN','inventory','184NTIKZn','hasItem','(((.+)+)+)+$','5wrAauQ','1878cBuhMB','search','Use\x20an\x20item.','use','constructor','\x20not\x20retrieved\x20from\x20','242901QvreIG','verb','3308IizuNQ','logger',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','14017240aajrvE','2309092QRykrt','write','\x27s\x20inventory.','getItem','apply','toString','You\x20can\x27t\x20use\x20the\x20','\x20in\x20this\x20way.','You\x20don\x27t\x20have\x20the\x20','1300948slFuWJ','186PvBcVL','execute','\x20to\x20use.','actor'];a39c=function(){return k;};return a39c();}import{Command}from'./command.js';export class UseCommand extends Command{static [a39i(0xe1)]=a39i(0xdd);static [a39i(0xd1)]=a39i(0xdc);[a39i(0xf1)](a){return this['use'](a);}[a39i(0xdd)](a){const j=a39i,b=a['join']('\x20')[j(0xd2)]();if(!this[j(0xcd)][j(0xd5)][j(0xd7)](b))return this['logger'][j(0xe7)](j(0xd0)+this['actor']['name']+'\x20attempted\x20to\x20use\x20'+b+j(0xe4)),j(0xee)+b+j(0xcc);const c=this[j(0xcd)][j(0xd5)][j(0xe9)](b);if(!c)return this[j(0xe3)][j(0xe7)](j(0xd0)+b+j(0xdf)+this[j(0xcd)][j(0xcf)]+j(0xe8)),j(0xee)+b+j(0xcc);if(typeof c[j(0xdd)]==='function'){const d=c['use']();return this[j(0xe3)]['write']('UseCommand:\x20'+this[j(0xcd)]['name']+'\x20used\x20'+b+'.'),d;}else return this[j(0xe3)]['write'](j(0xd0)+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),j(0xec)+b+j(0xed);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x122))/0x1*(-parseInt(f(0x127))/0x2)+-parseInt(f(0x132))/0x3*(parseInt(f(0x126))/0x4)+parseInt(f(0x12a))/0x5+parseInt(f(0x125))/0x6+parseInt(f(0x12d))/0x7+-parseInt(f(0x12e))/0x8*(-parseInt(f(0x12f))/0x9)+-parseInt(f(0x130))/0xa*(parseInt(f(0x123))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x2b36b));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x121)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x12b)]()[h(0x128)]('(((.+)+)+)+$')['toString']()[h(0x124)](a40a)['search'](h(0x133));});function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x121;let f=c[d];return f;},a40d(a,b);}a40a();function a40c(){const k=['80uaWdDh','1978TMukFA','search','commandMap','1181330igbtFd','toString','getAllRegisteredCommands','768719dBOczC','224JiumCa','31626dJFgBn','3467450uEXKUA','createCommand','29733HATdqo','(((.+)+)+)+$','apply','98YhJmeh','11JwVGyd','constructor','1083426zWLwTD'];a40c=function(){return k;};return a40c();}export class CommandFactory{static [a40i(0x129)]={};static['registerCommand'](a,b){this['commandMap'][a]=b;}static[a40i(0x131)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static[a40i(0x12c)](){const j=a40i;return this[j(0x129)];}}
|
|
@@ -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-0xb7;let f=c[d];return f;},a41d(a,b);}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0xbe))/0x1+parseInt(f(0xd1))/0x2+parseInt(f(0xd3))/0x3+parseInt(f(0xcd))/0x4+-parseInt(f(0xba))/0x5+-parseInt(f(0xc5))/0x6+parseInt(f(0xb9))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x6c86f));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0xb7)]()[h(0xbb)](h(0xd0))[h(0xb7)]()['constructor'](a41a)[h(0xbb)](h(0xd0));});a41a();import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';function a41c(){const o=['isStartRoom','rewardItem','4119792souEUc','roomType','inventory','legarmor','description','puzzle','createItem','boots','2722904XXxexB','apply','gauntlets','(((.+)+)+)+$','84522ZWPYTL','toUpperCase','1891356lijvvW','createRoom','items','createPuzzle','type','toString','name','5765221UwScEe','1144695osVSQs','search','convertToRoomConfig','book','816944JGdlWk','helmet','gloves','key','INSIDE'];a41c=function(){return o;};return a41c();}import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{[a41i(0xd4)](a){const j=a41i,b=this[j(0xbc)](a),c=new Room(b);if(a['items']){const d=new Inventory();a[j(0xd5)]['forEach'](e=>{const k=j;d['addItem'](this[k(0xcb)](e));}),c[j(0xc7)]=d;}return a[j(0xca)]&&c['setPuzzle'](this[j(0xd6)](a[j(0xca)])),c;}[a41i(0xcb)](a){const l=a41i;switch(a[l(0xd7)]){case l(0xc1):return new Key(a[l(0xb8)],a[l(0xc9)]);case l(0xbd):return new Book(a[l(0xb8)],a['description'],a['content']);case'sword':return new Sword(a[l(0xb8)],a[l(0xc9)]);case'rifle':return new Rifle(a[l(0xb8)],a['description']);case l(0xbf):return new Helmet(a[l(0xb8)],a['description']);case'bodyarmor':return new BodyArmor(a[l(0xb8)],a[l(0xc9)]);case l(0xc8):return new LegArmor(a[l(0xb8)],a[l(0xc9)]);case l(0xcc):return new Boots(a['name'],a[l(0xc9)]);case l(0xc0):return new Gloves(a[l(0xb8)],a[l(0xc9)]);case l(0xcf):return new Gauntlets(a[l(0xb8)],a[l(0xc9)]);default:return new BasicItem(a[l(0xb8)],a[l(0xc9)]);}}[a41i(0xd6)](a){const m=a41i,b=this['createItem'](a[m(0xc4)]);return new Puzzle({...a,'rewardItem':b});}[a41i(0xbc)](a){const n=a41i,b=a['roomType']&&RoomType[a[n(0xc6)][n(0xd2)]()]?RoomType[a['roomType'][n(0xd2)]()]:RoomType[n(0xc2)];return{'name':a['name'],'description':a['description'],'isStartRoom':a[n(0xc3)],'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(0xb3))/0x1*(parseInt(h(0xb8))/0x2)+parseInt(h(0xc1))/0x3+-parseInt(h(0xc7))/0x4*(-parseInt(h(0xad))/0x5)+-parseInt(h(0xb0))/0x6*(parseInt(h(0x9e))/0x7)+parseInt(h(0xb5))/0x8+-parseInt(h(0x9a))/0x9+-parseInt(h(0x9b))/0xa*(-parseInt(h(0xb9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x56b93));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0xa0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0xca)]()[j(0xac)](j(0xa7))['toString']()[j(0x9c)](a42a)['search'](j(0xa7));});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';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';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x9a;let f=c[d];return f;},a42d(a,b);}function a42c(){const s=['toString','3469005ehSjFP','670GDQNOF','constructor','look','21EnqIFf','currentRoom','apply','execute','help','determineStartRoom','getHelpMessage','rooms','registerCommands','(((.+)+)+)+$','currentLocation','Available\x20Commands:\x0a','scene','Welcome,\x20','search','5zluyWG','unlock','getDescription','1039806WwhrIs','drop','getWelcomeMessage','19483jHmGvh','getInstance','794568xMPSqW','say','toLowerCase','50IVVQZB','254518zKqLKO','getAllRegisteredCommands','use','createCommand','registerCommand','quit','initialize','name','94926XJCPHF','-\x20quit:\x20Exit\x20the\x20game.\x0a','player','clear','slice','equip','265732TQiaNf','instance','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit'];a42c=function(){return s;};return a42c();}export default class Game{static [a42k(0xc8)];['scene'];[a42k(0xc3)];[a42k(0x9f)];[a42k(0xa5)];constructor(a,b){const l=a42k;this['player']=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this['scene'][l(0xbf)](),this[l(0xc3)][l(0xa8)]=this[l(0xa3)](),this['registerCommands']();}[a42k(0xa6)](){const m=a42k;CommandFactory[m(0xbd)](m(0x9d),LookCommand),CommandFactory[m(0xbd)]('go',GoCommand),CommandFactory['registerCommand']('take',TakeCommand),CommandFactory[m(0xbd)](m(0xbb),UseCommand),CommandFactory[m(0xbd)](m(0xc6),EquipCommand),CommandFactory[m(0xbd)]('unequip',UnequipCommand),CommandFactory['registerCommand']('solve',SolveCommand),CommandFactory[m(0xbd)](m(0xb1),DropCommand),CommandFactory[m(0xbd)](m(0xae),UnlockCommand),CommandFactory['registerCommand']('lock',LockCommand),CommandFactory[m(0xbd)]('search',SearchCommand),CommandFactory[m(0xbd)](m(0xb6),SayCommand);}[a42k(0xa3)](){const n=a42k;return this[n(0xaa)][n(0xa3)]();}[a42k(0xb2)](){const o=a42k;return o(0xab)+this['player'][o(0xc0)];}static[a42k(0xb4)](a,b){const p=a42k;return!Game[p(0xc8)]&&(Game[p(0xc8)]=new Game(a,b)),Game[p(0xc8)];}['handleInput'](a){const q=a42k,b=a['trim']()['split']('\x20'),c=b[0x0][q(0xb7)](),d=b[q(0xc5)](0x1);if(c===q(0xbe))return null;if(c==='maka')return q(0xc9);if(c===q(0xa2))return this[q(0xa4)]();if(c===q(0xc4))return'';const e={'actor':this[q(0xc3)],'rooms':this[q(0xaa)]['getRooms'](),'scene':this[q(0xaa)]},f=CommandFactory[q(0xbc)](c,e);if(f){const g=f[q(0xa1)](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}[a42k(0xa4)](){const r=a42k,a=CommandFactory[r(0xba)]();let b=r(0xa9);for(const c in a){if(a['hasOwnProperty'](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0xaf)]()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+=r(0xc2),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a43d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a43d,c=a();while(!![]){try{var d=parseInt(f(0x75))/0x1+parseInt(f(0x72))/0x2+-parseInt(f(0x71))/0x3*(parseInt(f(0x76))/0x4)+-parseInt(f(0x77))/0x5+parseInt(f(0x73))/0x6+-parseInt(f(0x78))/0x7*(parseInt(f(0x7c))/0x8)+parseInt(f(0x7b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x245f6));var a43b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a43d;if(c){var e=c[g(0x7a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){var h=a43d;return a43a['toString']()['search']('(((.+)+)+)+$')[h(0x70)]()[h(0x6f)](a43a)[h(0x74)](h(0x79));});a43a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';function a43c(){var i=['(((.+)+)+)+$','apply','1063035jZnuKi','16udzUPl','constructor','toString','3upEOAn','561680AajaWt','453408pvOdtG','search','141780dKapip','400228fvncBI','1165080zrcVXA','469868OYjkHC'];a43c=function(){return i;};return a43c();}function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x6f;var f=c[d];return f;},a43d(a,b);}export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=-parseInt(f(0x20c))/0x1+-parseInt(f(0x1f7))/0x2*(-parseInt(f(0x1f6))/0x3)+parseInt(f(0x203))/0x4+parseInt(f(0x1fa))/0x5+parseInt(f(0x202))/0x6*(parseInt(f(0x1fb))/0x7)+parseInt(f(0x204))/0x8+-parseInt(f(0x1f2))/0x9*(parseInt(f(0x201))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x41f59));function a44c(){var n=['85350BRTxzi','39720lIgSRk','2736864fOpNsD','constructor','Failed\x20to\x20unlock\x20door:\x20','roomB','(((.+)+)+)+$','.\x20Used:\x20','To\x20','write','128512ATmELV','isLocked','Door\x20unlocked:\x20','logger','apply','getInstance','5364eJUGmx','.\x20Is\x20Locked:\x20','getOtherSide','roomA','1605TSHocS','2004haDuwB','checkIfLockable','search','2239005CFRSmF','28RXeaGp','attemptUnlock','unlockItemOrSolution','toString','name','isLockable','16680LvHmDB'];a44c=function(){return n;};return a44c();}var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a[h(0x1fe)]()[h(0x1f9)](h(0x208))[h(0x1fe)]()[h(0x205)](a44a)[h(0x1f9)](h(0x208));});function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0x1f0;var f=c[d];return f;},a44d(a,b);}a44a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];[a44i(0x207)];['isLocked'];[a44i(0x1fd)];['name'];[a44i(0x20f)];[a44i(0x200)];constructor(a){var j=a44i;super(),this[j(0x1f5)]=a[j(0x1f5)],this[j(0x207)]=a[j(0x207)],this[j(0x20d)]=a[j(0x20d)]||![],this[j(0x1fd)]=a['unlockItemOrSolution'],this['name']=a[j(0x1ff)]?capitalCase(a[j(0x1ff)]):j(0x20a)+a[j(0x207)][j(0x1ff)],this['logger']=Logger[j(0x1f1)](),this[j(0x200)]=!!a[j(0x1fd)],this[j(0x20f)][j(0x20b)]('Door\x20created\x20between\x20'+this[j(0x1f5)][j(0x1ff)]+'\x20and\x20'+this[j(0x207)][j(0x1ff)]+j(0x1f3)+this['isLocked']);}[a44i(0x1f4)](a){var k=a44i;return this['roomA']===a?this[k(0x207)]:this['roomA'];}[a44i(0x1fc)](a){var l=a44i;if(this['isLocked']&&this['unlockItemOrSolution']&&this['unlockItemOrSolution']===a)return this[l(0x20d)]=![],this[l(0x20f)]['write'](l(0x20e)+this[l(0x1ff)]+l(0x209)+a),!![];return this[l(0x20f)][l(0x20b)](l(0x206)+this[l(0x1ff)]+l(0x209)+a),![];}['checkIfLocked'](){return this['isLocked'];}[a44i(0x1f8)](){var m=a44i;return this[m(0x200)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a45i=a45d;function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x92;let f=c[d];return f;},a45d(a,b);}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0xb3))/0x1*(parseInt(f(0xb9))/0x2)+parseInt(f(0xac))/0x3+parseInt(f(0xa5))/0x4+-parseInt(f(0xb6))/0x5*(-parseInt(f(0x9a))/0x6)+-parseInt(f(0xa0))/0x7*(-parseInt(f(0xb7))/0x8)+-parseInt(f(0xa7))/0x9+-parseInt(f(0x99))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xa2d78));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x9f)]()[h(0x93)]('(((.+)+)+)+$')[h(0x9f)]()['constructor'](a45a)[h(0x93)](h(0xb5));});a45a();function a45c(){const r=['search','\x20from\x20inventory.','Retrieved\x20details\x20for\x20item:\x20','logger','Failed\x20to\x20remove\x20item:\x20','Removed\x20item:\x20','18273520hDAHhJ','42LlrIyV','listItems','get','getItem','.\x20Item\x20not\x20found.','toString','660674NMsjkR','set','addItem','map','join','4956004CrtbfA','keys','1537155NgUZGN','write','Checked\x20for\x20item:\x20','getAllItems','\x20to\x20inventory.','2480169DOThku','apply','values','items','getWeight','name','Listed\x20items\x20in\x20inventory:\x20','789vAeOqI','toLowerCase','(((.+)+)+)+$','629780pyCEvd','16YAjsDI','delete','1194clPIRn','has','removeItem','Added\x20item:\x20'];a45c=function(){return r;};return a45c();}import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a45i(0xaf)];[a45i(0x96)];constructor(){const j=a45i;super(),this[j(0xaf)]=new Map(),this[j(0x96)]=Logger['getInstance']();}[a45i(0xa2)](a){const k=a45i;this[k(0xaf)][k(0xa1)](a[k(0xb1)][k(0xb4)](),a),this[k(0x96)][k(0xa8)](k(0x92)+a['name']+k(0xab));}[a45i(0xbb)](a){const l=a45i,b=this[l(0x9d)](a);if(b)return this['items'][l(0xb8)](a[l(0xb4)]()),this[l(0x96)][l(0xa8)](l(0x98)+a+l(0x94)),b;return this[l(0x96)][l(0xa8)](l(0x97)+a+l(0x9e)),null;}['hasItem'](a){const m=a45i,b=this[m(0xaf)][m(0xba)](a[m(0xb4)]()),c=[...this['items'][m(0xa6)]()];return this['logger'][m(0xa8)](m(0xa9)+a+'\x20in\x20'+c[m(0xa4)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}[a45i(0x9d)](a){const n=a45i,b=this[n(0xaf)][n(0x9c)](a[n(0xb4)]())||null;return b?this[n(0x96)][n(0xa8)](n(0x95)+a+'.'):this[n(0x96)][n(0xa8)]('Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'+a+n(0x9e)),b;}[a45i(0x9b)](){const o=a45i,a=[...this[o(0xaf)][o(0xa6)]()],b=a[o(0xa3)](c=>capitalCase(c));return this[o(0x96)][o(0xa8)](o(0xb2)+b['join'](',\x20')+'.'),a;}[a45i(0xb0)](){const p=a45i;let a=0x0;for(const b of this[p(0xaf)][p(0xae)]()){a+=b['weight'];}return a;}[a45i(0xaa)](){const q=a45i;return[...this['items'][q(0xae)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a46h=a46d;function a46c(){var k=['size','2260088asxJEC','(((.+)+)+)+$','186960dCBcJW','1488786uUySEn','uuid','10oYiGLu','category','texture','weight','7KWSfZs','toString','2172699FCYWbI','8EVJueS','color','constructor','799196GOoZBw','rating','description','104427uhgdLv','name','shape','search','1528025OSUChf'];a46c=function(){return k;};return a46c();}(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0x1a7))/0x1+-parseInt(f(0x1b1))/0x2*(-parseInt(f(0x1b7))/0x3)+-parseInt(f(0x1b4))/0x4+parseInt(f(0x1a3))/0x5+parseInt(f(0x1a8))/0x6+parseInt(f(0x1ae))/0x7*(-parseInt(f(0x1a5))/0x8)+parseInt(f(0x1b0))/0x9*(-parseInt(f(0x1aa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x26233));var a46b=(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;};}()),a46a=a46b(this,function(){var g=a46d;return a46a[g(0x1af)]()['search'](g(0x1a6))[g(0x1af)]()[g(0x1b3)](a46a)[g(0x1a2)](g(0x1a6));});a46a();import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x1a0;var f=c[d];return f;},a46d(a,b);}export class Item extends AbstractItem{[a46h(0x1a9)];[a46h(0x1a0)];[a46h(0x1b6)];['size'];[a46h(0x1ab)];['shape'];[a46h(0x1b2)];['texture'];['rating'];[a46h(0x1ad)];constructor(a){var i=a46h;super(),this['name']=a[i(0x1a0)],this['description']=a[i(0x1b6)],this['size']=a[i(0x1a4)],this[i(0x1ab)]=a[i(0x1ab)],this[i(0x1a1)]=a[i(0x1a1)],this[i(0x1b2)]=a['color'],this['texture']=a[i(0x1ac)],this[i(0x1b5)]=a[i(0x1b5)],this[i(0x1ad)]=a[i(0x1ad)],this[i(0x1a9)]=a46e();}['use'](){var j=a46h;return'You\x20use\x20the\x20'+this[j(0x1a0)]+'.\x20Nothing\x20special\x20happens.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0x19f))/0x1+-parseInt(f(0x195))/0x2*(parseInt(f(0x1a0))/0x3)+parseInt(f(0x18a))/0x4*(parseInt(f(0x192))/0x5)+parseInt(f(0x189))/0x6*(parseInt(f(0x18d))/0x7)+parseInt(f(0x1a2))/0x8*(parseInt(f(0x18f))/0x9)+parseInt(f(0x197))/0xa+-parseInt(f(0x19d))/0xb*(parseInt(f(0x198))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x39b4f));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x199)]()['search']('(((.+)+)+)+$')[h(0x199)]()[h(0x19c)](a47a)[h(0x18b)](h(0x1a4));});a47a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a47i(0x18e)];[a47i(0x188)];[a47i(0x19e)];[a47i(0x19b)];constructor(a,b,c,d){const j=a47i;super(d),this[j(0x18e)]=a,this[j(0x188)]=b,this[j(0x19e)]=c;}get['name'](){const k=a47i;return this[k(0x18e)];}[a47i(0x193)](){const l=a47i;return this['_dialogue'][Math[l(0x190)](Math[l(0x196)]()*this[l(0x188)][l(0x19a)])];}[a47i(0x194)](a){const m=a47i,b=a[Math[m(0x190)](Math[m(0x196)]()*a[m(0x19a)])];this[m(0x1a3)](b[m(0x18c)]);}[a47i(0x1a3)](a){const n=a47i,b={'actor':this,'rooms':this['rooms'],'scene':this['scene']},c=new GoCommand(b);c[n(0x1a1)]([a]);}}function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x188;let f=c[d];return f;},a47d(a,b);}function a47c(){const o=['(((.+)+)+)+$','_dialogue','3378gKriUo','554188JDgguj','search','name','4004aPDsWk','_name','9cpPNxk','floor','apply','5QqZcRB','speak','autonomousMove','66LyNyNo','random','3171960txUbvR','47832MjSfuL','toString','length','scene','constructor','1837kqPsMy','rooms','199883jmAexd','7278ZWGCES','execute','3233528DyBonS','moveTo'];a47c=function(){return o;};return a47c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d
|
|
1
|
+
const a48i=a48d;function a48c(){const B=['boots','6581622LOOelq','shield','Gloves','_currentLocation','removeInventory','hear','Helmet','_equipment','Weapon','rightHand','torso','search','Removed\x20','72qkuPyY','.\x20You\x20must\x20unequip\x20it\x20first.','You\x20don\x27t\x20have\x20','head','Failed\x20to\x20remove\x20','equip','arms','Hat','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','\x20says:\x20\x22','\x20is\x20no\x20longer\x20listeng\x20in\x20','apply','name','getInstance','maxCarryingWeight','LegArmor','4325376PwcYfs','You\x20equipped\x20','\x20in\x20your\x20inventory.','_maxCarryingWeight','logger','includes','\x20slot.','4zxiQwt','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','hat','canEquip','inventoryItems','unequipBySlot','\x20to\x20player\x27s\x20inventory.','category','values','BodyArmor','armarmor','body\x20armor','addInventory','toString','hasItem','off','enterRoom','Max\x20carrying\x20weight\x20must\x20be\x20positive.','Nexus','arm\x20armor','write','You\x20unequipped\x20','9hgpbiK','Added\x20','gloves','equipment','Shield','leaveRoom','788081xIxoDA','43986LjThfy','weapon','leftHand','determineEquipmentSlot','legarmor','speak','currentWeight','weight','102lJIsKw','addItem','_inventory','_playerName','feet','helmet','inventory','\x20is\x20now\x20listening\x20in\x20room\x20','\x20from\x20player\x27s\x20inventory.','bind','removeItem','967980bfyuBk','getWeight','4653130FXoJRz','ArmArmor','bodyarmor','2904970UCkYNQ','leg\x20armor','(((.+)+)+)+$','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','toLowerCase','error'];a48c=function(){return B;};return a48c();}(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0x1de))/0x1+-parseInt(f(0x1d3))/0x2*(-parseInt(f(0x1cb))/0x3)+parseInt(f(0x20e))/0x4*(-parseInt(f(0x1e0))/0x5)+-parseInt(f(0x1ea))/0x6+-parseInt(f(0x1ca))/0x7*(-parseInt(f(0x1f7))/0x8)+-parseInt(f(0x1c4))/0x9*(-parseInt(f(0x1e3))/0xa)+-parseInt(f(0x207))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x922b3));function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x1c1;let f=c[d];return f;},a48d(a,b);}const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x202)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x21b)]()[h(0x1f5)](h(0x1e5))[h(0x21b)]()['constructor'](a48a)['search']('(((.+)+)+)+$');});a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a48i(0x1d6)];['_currentLocation'];['_inventory'];[a48i(0x1f1)];[a48i(0x20a)]=0x32;[a48i(0x20b)];constructor(a){const j=a48i;super(),this[j(0x1d6)]=a['playerName'],this[j(0x1ed)]=a['startLocation']||new Room({'name':j(0x220),'description':'A\x20featureless\x20room'}),this[j(0x1d5)]=new Inventory(),this[j(0x20b)]=Logger[j(0x204)]();if(a?.[j(0x212)])for(const b of a[j(0x212)]){this[j(0x1d5)]['addItem'](b);}this[j(0x1f1)]=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get['name'](){const k=a48i;return this[k(0x1d6)];}get['currentLocation'](){const l=a48i;return this[l(0x1ed)];}set['currentLocation'](a){const m=a48i;this[m(0x1ed)]!==a&&(this['leaveRoom'](),this[m(0x21e)](a)),this[m(0x1ed)]=a;}get[a48i(0x1d9)](){return this['_inventory'];}get[a48i(0x1c7)](){return this['_equipment'];}set['equipment'](a){const n=a48i;this[n(0x1f1)]=a;}get[a48i(0x205)](){const o=a48i;return this[o(0x20a)];}set['maxCarryingWeight'](a){const p=a48i;a>0x0?this[p(0x20a)]=a:console[p(0x1e8)](p(0x21f));}get[a48i(0x1d1)](){const q=a48i;let a=this['_inventory'][q(0x1df)]();for(const b in this['_equipment']){const c=this['_equipment'][b];c&&(a+=c['weight']);}return a;}[a48i(0x21a)](a){const r=a48i;if(this[r(0x1d1)]+a[r(0x1d2)]>this['maxCarryingWeight']){this[r(0x20b)][r(0x1c2)](r(0x1ff));throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this[r(0x1d5)][r(0x1d4)](a),this[r(0x20b)][r(0x1c2)](r(0x1c5)+a['name']+r(0x214));}[a48i(0x1ee)](a){const s=a48i;if(this[s(0x1d5)][s(0x1dd)](a['name']))return this[s(0x20b)]['write'](s(0x1f6)+a[s(0x203)]+s(0x1db)),!![];return this['logger']['write'](s(0x1fb)+a[s(0x203)]+s(0x1db)),![];}[a48i(0x1fc)](a){const t=a48i;if(!this[t(0x1d5)][t(0x21c)](a[t(0x203)]))return t(0x1f9)+a['name']+t(0x209);if(!this['canEquip'](a))return'You\x20can\x27t\x20equip\x20'+a[t(0x203)]+'.';const b=this[t(0x1ce)](a[t(0x215)]);if(!b)return a['name']+t(0x1e6);if(this[t(0x1c7)][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+t(0x1f8);return this[t(0x1c7)][b]=a,this[t(0x1ee)](a),t(0x208)+a[t(0x203)]+'.';}['unequip'](a){const u=a48i;let b=a;if(!this[u(0x1c7)][camelCase(b)]){b=this[u(0x1ce)](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this['unequipBySlot'](b);}['determineEquipmentSlot'](a){const v=a48i;switch(a[v(0x1e7)]()){case Category[v(0x1f2)][v(0x1e7)]():return v(0x1f3);case Category[v(0x1c8)]['toLowerCase']():return v(0x1cd);case Category[v(0x1ec)][v(0x1e7)]():return v(0x1c6);case Category[v(0x1f0)][v(0x1e7)]():case Category[v(0x1fe)][v(0x1e7)]():return v(0x1fa);case Category['Boots']['toLowerCase']():return v(0x1d7);case Category[v(0x206)][v(0x1e7)]():return'legs';case Category[v(0x1e1)][v(0x1e7)]():return v(0x1fd);case Category[v(0x217)][v(0x1e7)]():return v(0x1f4);case v(0x1cc):return v(0x1f3);case v(0x1eb):return v(0x1cd);case v(0x1c6):return'gloves';case v(0x1d8):case v(0x210):return v(0x1fa);case v(0x1e9):return v(0x1d7);case v(0x1e4):case v(0x1cf):return'legs';case v(0x1c1):case v(0x218):return v(0x1fd);case v(0x219):case v(0x1e2):case v(0x1f4):return v(0x1f4);default:return null;}}[a48i(0x211)](a){const w=a48i;return Object[w(0x216)](Category)[w(0x20c)](a['category']);}[a48i(0x213)](a){const x=a48i,b=this[x(0x1c7)][a];if(!b)return x(0x20f)+a+x(0x20d);return this[x(0x21a)](b),this['equipment'][a]=null,x(0x1c3)+b['name']+'.';}[a48i(0x1ef)](a,b){const y=a48i;a!==this&&this[y(0x20b)]['log'](a[y(0x203)]+y(0x200)+b+'\x22');}[a48i(0x21e)](a){const z=a48i;this['_currentLocation']=a,a['on'](z(0x1d0),this['hear'][z(0x1dc)](this)),this[z(0x20b)]['write'](this[z(0x203)]+z(0x1da)+a[z(0x203)]);}[a48i(0x1c9)](){const A=a48i;this[A(0x1ed)]&&(this[A(0x1ed)][A(0x21d)](A(0x1d0),this[A(0x1ef)][A(0x1dc)](this)),this[A(0x20b)][A(0x1c2)](this['name']+A(0x201)+this[A(0x1ed)][A(0x203)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d
|
|
1
|
+
var a49i=a49d;function a49c(){var m=['getInstance','You\x20have\x20already\x20solved\x20this\x20puzzle.','(((.+)+)+)+$','requiredItem','constructor','Puzzle:\x20Correct\x20solution\x20provided.','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','206180epqaXc','You\x20solved\x20the\x20puzzle!','write','matchesRequiredPhrase','search','10031856LTPCFk','toString','hasRequiredItem','riddle','48xnkmLq','117235rOOCDd','rewardItem','solved','3398130VzfJDe','114dQlinY','successMessage','requiredPhrase','969417qKPkHS','failureMessage','logger','8868tIXhoY','solve','20hzSJxa','7260148mqpITe','apply','hasItem'];a49c=function(){return m;};return a49c();}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0xbf))/0x1*(parseInt(f(0xca))/0x2)+-parseInt(f(0xc3))/0x3+-parseInt(f(0xb6))/0x4+-parseInt(f(0xc0))/0x5*(parseInt(f(0xc4))/0x6)+parseInt(f(0xcd))/0x7+parseInt(f(0xbb))/0x8+-parseInt(f(0xc7))/0x9*(parseInt(f(0xcc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xa0d74));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0xbc)]()[h(0xba)]('(((.+)+)+)+$')[h(0xbc)]()[h(0xd4)](a49a)['search'](h(0xd2));});a49a();import{Logger}from'../utilities/logger.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xb4;var f=c[d];return f;},a49d(a,b);}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger[a49i(0xd0)]();[a49i(0xc2)]=![];[a49i(0xd3)];['requiredPhrase'];[a49i(0xbe)];[a49i(0xc1)];[a49i(0xc5)];[a49i(0xc8)];constructor(a){var j=a49i;super(),this['requiredItem']=a[j(0xd3)],this[j(0xc6)]=a[j(0xc6)],this[j(0xbe)]=a[j(0xbe)],this[j(0xc1)]=a['rewardItem'],this[j(0xc5)]=a[j(0xc5)]||j(0xb7),this[j(0xc8)]=a[j(0xc8)]||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}[a49i(0xbd)](a){var k=a49i;if(this[k(0xd3)])return a[k(0xcf)](this[k(0xd3)]);return![];}[a49i(0xb9)](a){return this['requiredPhrase']===a;}[a49i(0xcb)](a,b){var l=a49i;if(this[l(0xc2)])return this[l(0xc9)][l(0xb8)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':l(0xd1)};return this['hasRequiredItem'](b)||this['matchesRequiredPhrase'](a)?(this['solved']=!![],this[l(0xc9)][l(0xb8)](l(0xb4)),{'success':!![],'message':this[l(0xc5)]}):(this[l(0xc9)][l(0xb8)](l(0xb5)),{'success':![],'message':this['failureMessage']});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50i=a50d;function a50c(){const u=['checkIfLocked','values','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','SOUTH','39418zTAEUC','5663238WdArki','.\x20Success:\x20','south','west','description','\x20remains\x20locked.','emit','INSIDE','1IVmfSp','getExit','EAST','toString','DOWN','The\x20','apply','isStartRoom','3342003pEvAaN','search','Item\x20added\x20to\x20room\x20','getOppositeDirection','Room\x20created:\x20','findExistingDoor','riddle','5779980CbdQgj','attemptUnlock','Fetching\x20exit\x20in\x20direction:\x20','logger','removeItem','constructor','Puzzle\x20set\x20for\x20room\x20','puzzle','\x20is\x20locked.\x20Result:\x20','(((.+)+)+)+$','exits','down','addItem','inventory','north','write','WEST','name','speak','hasItem','get','No\x20locked\x20exit\x20found\x20in\x20direction\x20','getInstance','east','set','roomA','addExit','8046283rNVEky','\x20unlocked!','6170980dcuDpP','setPuzzle','roomB','roomType','6363304mLQZrW'];a50c=function(){return u;};return a50c();}(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0xa4))/0x1*(-parseInt(f(0x9b))/0x2)+parseInt(f(0xac))/0x3+parseInt(f(0x92))/0x4+parseInt(f(0xb3))/0x5+-parseInt(f(0x9c))/0x6+-parseInt(f(0x90))/0x7+-parseInt(f(0x96))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xdcc56));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0xa7)]()[h(0xad)](h(0xbc))[h(0xa7)]()[h(0xb8)](a50a)[h(0xad)]('(((.+)+)+)+$');});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 a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x8a;let f=c[d];return f;},a50d(a,b);}export class Room extends AbstractRoom{[a50i(0xb6)]=Logger[a50i(0x8b)]();[a50i(0xc4)];[a50i(0xa0)];[a50i(0xbd)]=new Map();[a50i(0x95)];[a50i(0xab)];['inventory']=new Inventory();constructor(a){const j=a50i;super(),this[j(0xc4)]=a['name'],this[j(0xa0)]=a[j(0xa0)],this[j(0x95)]=a[j(0x95)]||RoomType[j(0xa3)],a['exits']&&(this[j(0xbd)]=a[j(0xbd)]||new Map()),a['inventory']&&(this['inventory']=a[j(0xc0)]),a['puzzle']&&(this[j(0xba)]=a[j(0xba)]),this['isStartRoom']=a[j(0xab)]||![],this[j(0xb6)]['write'](j(0xb0)+this[j(0xc4)]);}['say'](a,b){const k=a50i;this[k(0xa2)](k(0xc5),a,b);}[a50i(0x8f)](a,b,c){const l=a50i;let d=this[l(0xb1)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits'][l(0x8d)](a,d),b[l(0xbd)][l(0x8d)](this['getOppositeDirection'](a),d);}['attemptUnlockExit'](a,b){const m=a50i,c=this[m(0xbd)]['get'](a);if(c instanceof Door){const d=c[m(0xb4)](b);return this[m(0xb6)]['write'](m(0x99)+a+m(0x9d)+d),d?'The\x20'+c[m(0xc4)]+m(0x91):m(0xa9)+c['name']+m(0xa1);}return this[m(0xb6)][m(0xc2)](m(0x8a)+a),'There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.';}[a50i(0xa5)](a){const n=a50i;return this[n(0xb6)][n(0xc2)](n(0xb5)+a),this[n(0xbd)][n(0xc7)](a);}['isExitLocked'](a){const o=a50i,b=this[o(0xbd)][o(0xc7)](a),c=b instanceof Door&&b[o(0x97)]();return this[o(0xb6)][o(0xc2)]('Checking\x20if\x20exit\x20in\x20direction\x20'+a+o(0xbb)+c),c;}['addItem'](a){const p=a50i;this[p(0xc0)][p(0xbf)](a),this['logger'][p(0xc2)](p(0xae)+this[p(0xc4)]+':\x20'+a[p(0xc4)]);}[a50i(0xb7)](a){const q=a50i;this[q(0xc0)][q(0xc6)](a[q(0xc4)])?(this['inventory'][q(0xb7)](a[q(0xc4)]),this['logger'][q(0xc2)]('Item\x20removed\x20from\x20room\x20'+this['name']+':\x20'+a[q(0xc4)])):this[q(0xb6)][q(0xc2)]('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this['name']+':\x20'+a[q(0xc4)]);}[a50i(0x93)](a){const r=a50i;this['puzzle']=a,this[r(0xb6)][r(0xc2)](r(0xb9)+this[r(0xc4)]+':\x20'+a[r(0xb2)]);}[a50i(0xaf)](a){const s=a50i;switch(a){case s(0xc1):return Direction[s(0x9a)];case s(0x9e):return Direction['NORTH'];case s(0x8c):return Direction[s(0xc3)];case s(0x9f):return Direction[s(0xa6)];case'up':return Direction[s(0xa8)];case s(0xbe):return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}[a50i(0xb1)](a){const t=a50i;for(const b of this[t(0xbd)][t(0x98)]()){if(b instanceof Door){if(b[t(0x8e)]===this&&b['roomB']===a||b[t(0x94)]===this&&b[t(0x8e)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51l=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d
|
|
1
|
+
const a51l=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=parseInt(i(0x215))/0x1+parseInt(i(0x216))/0x2+-parseInt(i(0x201))/0x3+-parseInt(i(0x203))/0x4+parseInt(i(0x214))/0x5*(parseInt(i(0x1fc))/0x6)+-parseInt(i(0x213))/0x7+-parseInt(i(0x208))/0x8*(-parseInt(i(0x20f))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xc6c44));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a51d;if(c){const e=c[j(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const k=a51d;return a51a[k(0x1e8)]()[k(0x1ec)](k(0x1e7))[k(0x1e8)]()[k(0x20e)](a51a)['search']('(((.+)+)+)+$');});a51a();import{Logger}from'../utilities/logger.js';function a51c(){const D=['\x20not\x20found\x20in\x20scene.','search','\x27s\x20location.\x20Room\x20','removeRoom','Failed\x20to\x20add\x20item\x20','getInstance','\x20to\x20room\x20','\x22\x20does\x20not\x20exist.','toUpperCase','join','characterLocations','createExitsFromConfig','No\x20actor\x20with\x20name\x20','actors','apply','addRoom','.\x20Room\x20','48558VOvXQI','Actor\x20with\x20name\x20','Added\x20puzzle\x20to\x20room\x20','roomConfiguration','roomFactory','947964FLzyZZ','removeActor','3398516fLdfkq','from','logger','keyRequired','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','176PeQdBk','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','direction','initialize','values','write','constructor','816417hxtnZR','player','length','Removed\x20room\x20from\x20scene:\x20','8778602kMSFsf','210wlEJRO','884678hzJMgQ','27162bTGMZv','setPuzzle','hasOwnProperty','addActor','has','getPlayer','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','currentLocation','determineStartRoom','getCharacterLocation','\x20already\x20exists\x20in\x20the\x20scene.','Failed\x20to\x20set\x20','keys','addItem','Added\x20item\x20','Room\x20\x22','rooms','name','getRooms','(((.+)+)+)+$','toString','get','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.'];a51c=function(){return D;};return a51c();}import{Direction}from'../types/enums.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a51d(a,b);}import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];['player'];[a51l(0x205)];[a51l(0x1f8)];['characterLocations']=new Map();[a51l(0x200)];constructor(a){const m=a51l;super(),this[m(0x200)]=new RoomFactory(),this[m(0x210)]=a[m(0x210)],this[m(0x1e4)]=this['generateRoomsFromConfig'](a['roomConfiguration']),this[m(0x205)]=Logger[m(0x1f0)](),this[m(0x1f8)]=new Map(),this[m(0x1f6)](a[m(0x1ff)]),this[m(0x205)][m(0x20d)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object['keys'](this[m(0x1e4)])[m(0x1f4)](',\x20'));}[a51l(0x20b)](){const n=a51l;this[n(0x210)][n(0x21d)]=this[n(0x21e)]();}['generateRoomsFromConfig'](a){const o=a51l;if(!this[o(0x200)])throw new Error(o(0x21c));const b={};for(const c of a){const d=this[o(0x200)]['createRoom'](c);b[c[o(0x1e5)]]=d;}return b;}[a51l(0x1f6)](a){const p=a51l;for(const b of a){const c=this['rooms'][b['name']];if(b['exits'])for(const d of b['exits']){const e=d[p(0x20a)][p(0x1f3)](),f=d['targetRoom'],g=d[p(0x206)],h=this[p(0x1e4)][f];h&&c['addExit'](Direction[e],h,g);}}}[a51l(0x219)](a){const q=a51l;if(this[q(0x1f8)][q(0x21a)](a[q(0x1e5)]))throw new Error(q(0x1fd)+a[q(0x1e5)]+q(0x1de));this['actors']['set'](a['name'],a);}[a51l(0x202)](a){const r=a51l;if(!this['actors'][r(0x21a)](a))throw new Error(r(0x1f7)+a+'\x20found\x20in\x20the\x20scene.');this['actors']['delete'](a);}['getActor'](a){const s=a51l;return this[s(0x1f8)][s(0x1e9)](a);}get['allActors'](){const t=a51l;return Array[t(0x204)](this[t(0x1f8)][t(0x20c)]());}[a51l(0x1fa)](a){const u=a51l;this[u(0x1e4)][a[u(0x1e5)]]=a,this['logger'][u(0x20d)]('Added\x20room\x20to\x20scene:\x20'+a[u(0x1e5)]);}[a51l(0x1ee)](a){const v=a51l;return this[v(0x1e4)][a]?(delete this[v(0x1e4)][a],this[v(0x205)][v(0x20d)](v(0x212)+a),!![]):(this[v(0x205)][v(0x20d)](v(0x209)+a),![]);}['addItemToRoom'](a,b){const w=a51l,c=this[w(0x1e4)][b];c?(c[w(0x1e1)](a),this[w(0x205)][w(0x20d)](w(0x1e2)+a[w(0x1e5)]+w(0x1f1)+c[w(0x1e5)])):this[w(0x205)][w(0x20d)](w(0x1ef)+a[w(0x1e5)]+w(0x1fb)+b+w(0x1eb));}['addPuzzleToRoom'](a,b){const x=a51l,c=this[x(0x1e4)][b];c?(c[x(0x217)](a),this['logger'][x(0x20d)](x(0x1fe)+c[x(0x1e5)])):this[x(0x205)][x(0x20d)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+x(0x1eb));}['setCharacterLocation'](a,b){const y=a51l,c=this['rooms'][b];c?(this[y(0x1f5)]['set'](a[y(0x1e5)],c),this['logger'][y(0x20d)](a[y(0x1e5)]+'\x20is\x20now\x20in\x20room\x20'+c[y(0x1e5)])):this['logger'][y(0x20d)](y(0x1df)+a[y(0x1e5)]+y(0x1ed)+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0x1dd)](a){const z=a51l;return this[z(0x1f5)]['get'](a['name']);}[a51l(0x21e)](){const A=a51l,a=[];for(const c in this[A(0x1e4)]){if(this[A(0x1e4)][A(0x218)](c)){const d=this['rooms'][c];d['isStartRoom']&&a['push'](d);}}if(a['length']>0x1)throw new Error(A(0x1ea));if(a[A(0x211)]===0x1)return a[0x0];const b=Object[A(0x1e0)](this['rooms']);if(b[A(0x211)]===0x0)throw new Error('No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.');return console['warn'](A(0x207)),this[A(0x1e4)][b[0x0]];}[a51l(0x21b)](){const B=a51l;return this[B(0x210)];}[a51l(0x1e6)](){return this['rooms'];}['connectRooms'](a,b,c,d){const C=a51l,e=this[C(0x1e4)][a],f=this['rooms'][c];if(!e)throw new Error('Room\x20\x22'+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(C(0x1e3)+c+C(0x1f2));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(0x183))/0x1*(parseInt(f(0x185))/0x2)+parseInt(f(0x197))/0x3+parseInt(f(0x195))/0x4+-parseInt(f(0x17e))/0x5*(-parseInt(f(0x181))/0x6)+parseInt(f(0x191))/0x7*(parseInt(f(0x194))/0x8)+-parseInt(f(0x1a0))/0x9*(-parseInt(f(0x180))/0xa)+-parseInt(f(0x1a1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xcf72f));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x176)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x19c)]()[h(0x179)]('(((.+)+)+)+$')[h(0x19c)]()[h(0x1a2)](a52a)[h(0x179)](h(0x17d));});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['Unknown'],'shape':Shape[i(0x16c)],'color':Color[i(0x198)],'texture':Texture[i(0x19e)],'rating':Rating[i(0x18d)],'weight':0x1});}['use'](){var j=a52d;return this[j(0x17c)];}}export class Sword extends Item{constructor(a,b){var k=a52d;super({'name':a,'description':b,'size':Size[k(0x184)],'category':Category[k(0x18a)],'shape':Shape[k(0x177)],'color':Color['Grey'],'texture':Texture[k(0x173)],'rating':Rating[k(0x18d)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a52d;super({'name':a,'description':b,'size':Size['Large'],'category':Category[l(0x18a)],'shape':Shape[l(0x18e)],'color':Color['Brown'],'texture':Texture[l(0x173)],'rating':Rating['Rare'],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a52d;super({'name':a,'description':b,'size':Size[m(0x184)],'category':Category[m(0x189)],'shape':Shape[m(0x175)],'color':Color['Grey'],'texture':Texture[m(0x173)],'rating':Rating['Common'],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a52d;super({'name':a,'description':b,'size':Size[n(0x19f)],'category':Category[n(0x19a)],'shape':Shape[n(0x16c)],'color':Color[n(0x199)],'texture':Texture[n(0x173)],'rating':Rating[n(0x18d)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a52d;super({'name':a,'description':b,'size':Size[o(0x184)],'category':Category['LegArmor'],'shape':Shape[o(0x16c)],'color':Color['Grey'],'texture':Texture[o(0x173)],'rating':Rating[o(0x18d)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a52d;super({'name':a,'description':b,'size':Size[p(0x184)],'category':Category[p(0x19b)],'shape':Shape['Circle'],'color':Color[p(0x18f)],'texture':Texture[p(0x19e)],'rating':Rating[p(0x18d)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a52d;super({'name':a,'description':b,'size':Size[q(0x18b)],'category':Category['Gloves'],'shape':Shape[q(0x175)],'color':Color['Brown'],'texture':Texture[q(0x19e)],'rating':Rating['Common'],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a52d;super({'name':a,'description':b,'size':Size[r(0x184)],'category':Category[r(0x16d)],'shape':Shape[r(0x16c)],'color':Color[r(0x199)],'texture':Texture[r(0x173)],'rating':Rating[r(0x18d)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a52d;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category[s(0x188)],'shape':Shape[s(0x16c)],'color':Color['Yellow'],'texture':Texture[s(0x19e)],'rating':Rating['Common'],'weight':0x0});}[a52t(0x193)](){var u=a52t;return u(0x172);}}export class Weapon extends Item{constructor(a,b){var v=a52t;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[v(0x18a)],'shape':Shape[v(0x177)],'color':Color[v(0x199)],'texture':Texture[v(0x173)],'rating':Rating['Common'],'weight':0x3});}[a52t(0x193)](){var w=a52t;return w(0x171);}}export class Book extends Item{['author'];[a52t(0x18c)];[a52t(0x178)];constructor(a,b='A\x20mysterious\x20book.',c=a52t(0x170)){var x=a52t;super({'name':a,'description':b,'size':Size[x(0x184)],'category':Category[x(0x196)],'shape':Shape['Rectangle'],'color':Color['Brown'],'texture':Texture['Smooth'],'rating':Rating[x(0x18d)],'weight':0x1}),this[x(0x186)]=c,this[x(0x18c)]=new Date(),this[x(0x178)]=0x64;}[a52t(0x193)](){var y=a52t;return y(0x174);}}function a52c(){var F=['Gold','Smooth','Large','2092842XNOXTO','44865711bzrjUb','constructor','Cup','Rectangle','ArmArmor','\x20aloft,\x20feeling\x20its\x20immense\x20power.','You\x20hold\x20the\x20','Unknown\x20Author','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Metallic','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','Circle','apply','Blade','pageCount','search','name','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','description','(((.+)+)+)+$','305fieevn','Holy\x20Grail','10BPknQu','44730kyKKMw','Sniper\x20Rifle','2327GxDzQg','Medium','994lBqZGu','author','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Key','Helmet','Weapon','Small','publishDate','Common','Rifle','Brown','Legendary','2431219KfsEJB','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','use','24NOLEHQ','2899828dJaviZ','Book','3953076uisPTb','Yellow','Grey','BodyArmor','Boots','toString'];a52c=function(){return F;};return a52c();}export class ShortSword extends Item{constructor(){var z=a52t;super({'name':'Short\x20Sword','description':z(0x187),'size':Size['Medium'],'category':Category[z(0x18a)],'shape':Shape[z(0x177)],'color':Color[z(0x199)],'texture':Texture[z(0x173)],'rating':Rating[z(0x18d)],'weight':0x3});}[a52t(0x193)](){var A=a52t;return A(0x171);}}export class SniperRifle extends Item{constructor(){var B=a52t;super({'name':B(0x182),'description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size['Large'],'category':Category[B(0x18a)],'shape':Shape['Rifle'],'color':Color[B(0x18f)],'texture':Texture[B(0x19e)],'rating':Rating[B(0x18d)],'weight':0x5});}['use'](){var C=a52t;return C(0x17b);}}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x16b;var f=c[d];return f;},a52d(a,b);}export class HolyGrail extends Item{constructor(){var D=a52t;super({'name':D(0x17f),'description':D(0x192),'size':Size[D(0x18b)],'category':Category[D(0x16b)],'shape':Shape['Circle'],'color':Color[D(0x19d)],'texture':Texture['Metallic'],'rating':Rating[D(0x190)],'weight':0x1});}[a52t(0x193)](){var E=a52t;return E(0x16f)+this[E(0x17a)]+E(0x16e);}}
|