@maka/maka-cli 4.5.31 → 4.5.33
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 -0
- 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/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 a36i=a36d;function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x7d;let f=c[d];return f;},a36d(a,b);}(function(a,b){const f=a36d,c=a();while(!![]){try{const d=parseInt(f(0x8c))/0x1+parseInt(f(0x98))/0x2+-parseInt(f(0x99))/0x3*(parseInt(f(0x86))/0x4)+parseInt(f(0x8f))/0x5+-parseInt(f(0x7e))/0x6+-parseInt(f(0x7f))/0x7+parseInt(f(0xa6))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0xda957));function a36c(){const l=['1650128ThTMJB','write','\x20during\x20\x27Take\x27\x20command.','2059600vhWaFQ','name','Item\x20\x22','Pick\x20up\x20an\x20item.','hasItem','Successfully\x20added\x20\x22','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','(((.+)+)+)+$','message','3159380kgdORi','3nnNUVo','search','verb','addInventory','apply','take','toLowerCase','join','toString','\x22\x20in\x20this\x20room.','\x22\x20to\x20','actor','removeItem','16097408vszfhC','execute','8325606IaTodS','12199992nRZGuA','logger','getItem','\x22\x20not\x20retrieved\x20from\x20','There\x20is\x20no\x20item\x20\x22','You\x20have\x20taken\x20the\x20','inventory','6512552COMGuD','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','Error\x20during\x20\x27Take\x27\x20command:\x20','The\x20item\x20\x22','Successfully\x20removed\x20\x22','currentLocation'];a36c=function(){return l;};return a36c();}const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0x9d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a[h(0xa1)]()[h(0x9a)](h(0x96))[h(0xa1)]()['constructor'](a36a)[h(0x9a)](h(0x96));});a36a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a36i(0x9b)]=a36i(0x9e);static ['description']=a36i(0x92);[a36i(0x7d)](a){const j=a36i;return this['logger'][j(0x8d)]('Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20'+a[j(0xa0)]('\x20')),this['take'](a);}['take'](a){const k=a36i,b=a['join']('\x20')[k(0x9f)](),c=this[k(0xa4)][k(0x8b)];if(!c[k(0x85)][k(0x93)](b))return this[k(0x80)][k(0x8d)](k(0x91)+b+'\x22\x20not\x20found\x20in\x20'+c[k(0x90)]+k(0x8e)),k(0x83)+b+'\x22\x20in\x20this\x20room.';const d=c[k(0x85)][k(0x81)](b);if(!d)return this[k(0x80)]['write'](k(0x91)+b+k(0x82)+c[k(0x90)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),'There\x20is\x20no\x20item\x20\x22'+b+k(0xa2);try{return this['actor'][k(0x9c)](d),this['logger'][k(0x8d)](k(0x94)+b+k(0xa3)+this['actor'][k(0x90)]+k(0x95)),c[k(0x85)][k(0xa5)](b),this[k(0x80)][k(0x8d)](k(0x8a)+b+'\x22\x20from\x20'+c[k(0x90)]+k(0x87)),k(0x84)+b+'.';}catch(e){return this[k(0x80)][k(0x8d)](k(0x88)+e[k(0x97)]),k(0x89)+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x143))/0x1*(parseInt(f(0x14a))/0x2)+parseInt(f(0x141))/0x3+parseInt(f(0x142))/0x4+parseInt(f(0x149))/0x5+-parseInt(f(0x14b))/0x6+-parseInt(f(0x14d))/0x7+-parseInt(f(0x154))/0x8*(parseInt(f(0x145))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x9eee0));function a37c(){const k=['(((.+)+)+)+$','actor','\x20unqeuiped\x20','search','constructor','UnequipCommand:\x20','6889584AlIBnd','logger','description','apply','toLowerCase','execute','1873968ifBcBw','3999412MKbiyx','1ovuwTo','Unequip\x20an\x20item.','9dlWTGZ','unqeuip','toString','name','5603140SaRDLN','575788VrETDG','4412184YOGUzy','write','5498451lUWjdt'];a37c=function(){return k;};return a37c();}const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a['toString']()[h(0x151)](h(0x14e))[h(0x147)]()[h(0x152)](a37a)[h(0x151)]('(((.+)+)+)+$');});a37a();import{Command}from'./command.js';function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x13f;let f=c[d];return f;},a37d(a,b);}export class UnequipCommand extends Command{static ['verb']=a37i(0x146);static [a37i(0x156)]=a37i(0x144);[a37i(0x140)](a){const j=a37i,b=a['join']('\x20')[j(0x13f)](),c=this['actor']['unequip'](b);return this[j(0x155)][j(0x14c)](j(0x153)+this[j(0x14f)][j(0x148)]+j(0x150)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=parseInt(h(0x16c))/0x1+-parseInt(h(0x15f))/0x2*(-parseInt(h(0x161))/0x3)+parseInt(h(0x165))/0x4*(parseInt(h(0x166))/0x5)+-parseInt(h(0x175))/0x6*(-parseInt(h(0x178))/0x7)+parseInt(h(0x167))/0x8+parseInt(h(0x17c))/0x9*(-parseInt(h(0x15e))/0xa)+parseInt(h(0x169))/0xb*(-parseInt(h(0x155))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x7ad5b));function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x152;let f=c[d];return f;},a38d(a,b);}function a38c(){const n=['868757pgGZoj','inventory','isValidDirection','exits','unlock','There\x27s\x20no\x20door\x20named\x20\x22','hasItem','toLowerCase','get','103308HdBrXi','error','name','84JBvbkt','write','execute','.\x20Result:\x20','4014513SOzaVL','search','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','constructor','verb','currentLocation','unlockItemOrSolution','logger','36JhBLwy','Unlock\x20a\x20door.','length','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','(((.+)+)+)+$','toString','\x22\x20here.','attemptUnlockExit','20yQAWiH','3922DwSBFg','\x20is\x20attempted\x20to\x20unlock\x20','579gpEkfd','actor','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','has','292snHwzc','575rLnXei','1362744heHbKt','UnlockCommand:\x20','870243iKINsO','getItem','apply'];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(0x16b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a[j(0x15b)]()['search'](j(0x15a))[j(0x15b)]()[j(0x17f)](a38a)[j(0x17d)](j(0x15a));});a38a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a38k(0x180)]='unlock';static ['description']=a38k(0x156);[a38k(0x17a)](a){const l=a38k;return this[l(0x170)](a);}['unlock'](a){const m=a38k;if(a[m(0x157)]===0x0)return this['logger'][m(0x176)]('UnlockCommand:\x20No\x20target\x20specified.'),m(0x163);const b=a[0x0][m(0x173)](),c=this[m(0x162)][m(0x152)];if(this[m(0x16e)](b)&&c[m(0x16f)][m(0x164)](b)){const d=c[m(0x16f)][m(0x174)](b);if(d instanceof Door){const e=d[m(0x153)]?.[m(0x173)]();if(e&&this['actor'][m(0x16d)][m(0x172)](e)){const f=this[m(0x162)]['inventory'][m(0x16a)](e);if(f){const g=c[m(0x15d)](b,f['name']);return this[m(0x154)][m(0x179)](m(0x168)+this[m(0x162)][m(0x177)]+m(0x160)+b+m(0x17b)+g),g;}}return this[m(0x154)]['write'](m(0x168)+this['actor'][m(0x177)]+m(0x17e)+b+'.'),m(0x159);}else return this[m(0x154)][m(0x179)](m(0x168)+b+m(0x158)+c['name']+'.'),m(0x171)+b+m(0x15c);}else return this['logger'][m(0x179)]('UnlockCommand:\x20'+b+m(0x158)+c[m(0x177)]+'.'),m(0x171)+b+m(0x15c);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x1b3;let f=c[d];return f;},a39d(a,b);}const a39h=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x1c9))/0x1*(parseInt(f(0x1b7))/0x2)+-parseInt(f(0x1cb))/0x3*(-parseInt(f(0x1c3))/0x4)+-parseInt(f(0x1ce))/0x5+parseInt(f(0x1b8))/0x6*(-parseInt(f(0x1d6))/0x7)+parseInt(f(0x1c4))/0x8+parseInt(f(0x1b9))/0x9*(parseInt(f(0x1d4))/0xa)+-parseInt(f(0x1b5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x3ba28));const a39b=(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;};}()),a39a=a39b(this,function(){const g=a39d;return a39a[g(0x1b6)]()[g(0x1d5)](g(0x1ca))[g(0x1b6)]()[g(0x1b4)](a39a)[g(0x1d5)]('(((.+)+)+)+$');});a39a();function a39c(){const k=['Use\x20an\x20item.','\x20doesn\x27t\x20have\x20a\x20use\x20method.','23psSJdo','(((.+)+)+)+$','9OeWvaG','description','hasItem','393565rMJYpg','You\x20don\x27t\x20have\x20the\x20','actor','\x20used\x20','\x27s\x20inventory.','verb','10Hwciru','search','7OWAsSh','use','constructor','7978168gvhDZM','toString','37446kVdDXb','347418bsVZsC','2861631znsgtr','\x20to\x20use.','name','inventory','logger','UseCommand:\x20','\x20attempted\x20to\x20use\x20','getItem','join',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','39020mUWTPA','2626520bQigZD','write','You\x20can\x27t\x20use\x20the\x20'];a39c=function(){return k;};return a39c();}import{Command}from'./command.js';export class UseCommand extends Command{static [a39h(0x1d3)]='use';static [a39h(0x1cc)]=a39h(0x1c7);['execute'](a){const i=a39h;return this[i(0x1b3)](a);}[a39h(0x1b3)](a){const j=a39h,b=a[j(0x1c1)]('\x20')['toLowerCase']();if(!this[j(0x1d0)][j(0x1bc)][j(0x1cd)](b))return this[j(0x1bd)][j(0x1c5)](j(0x1be)+this[j(0x1d0)][j(0x1bb)]+j(0x1bf)+b+j(0x1c2)),j(0x1cf)+b+j(0x1ba);const c=this[j(0x1d0)][j(0x1bc)][j(0x1c0)](b);if(!c)return this['logger'][j(0x1c5)]('UseCommand:\x20'+b+'\x20not\x20retrieved\x20from\x20'+this[j(0x1d0)]['name']+j(0x1d2)),j(0x1cf)+b+'\x20to\x20use.';if(typeof c['use']==='function'){const d=c[j(0x1b3)]();return this[j(0x1bd)][j(0x1c5)](j(0x1be)+this[j(0x1d0)][j(0x1bb)]+j(0x1d1)+b+'.'),d;}else return this['logger'][j(0x1c5)](j(0x1be)+b+j(0x1c8)),j(0x1c6)+b+'\x20in\x20this\x20way.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x125))/0x1*(-parseInt(f(0x11e))/0x2)+parseInt(f(0x11d))/0x3+parseInt(f(0x12a))/0x4+-parseInt(f(0x128))/0x5*(-parseInt(f(0x122))/0x6)+parseInt(f(0x11b))/0x7*(parseInt(f(0x126))/0x8)+parseInt(f(0x123))/0x9*(-parseInt(f(0x127))/0xa)+-parseInt(f(0x124))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x542a0));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x129)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x121)]()[h(0x11c)]('(((.+)+)+)+$')[h(0x121)]()[h(0x11f)](a40a)[h(0x11c)]('(((.+)+)+)+$');});function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x11b;let f=c[d];return f;},a40d(a,b);}function a40c(){const l=['registerCommand','toString','60ETxxXZ','1763919lkAgdO','109879joWMGh','1WTfeyn','1152080DULlZS','30DQMCLd','224295cLxGyO','apply','757200wevlJT','commandMap','21fCBqwQ','search','216780dTZVGQ','398964Tzusyn','constructor'];a40c=function(){return l;};return a40c();}a40a();export class CommandFactory{static [a40i(0x12b)]={};static[a40i(0x120)](a,b){const j=a40i;this[j(0x12b)][a]=b;}static['createCommand'](a,b){const k=a40i,c=this[k(0x12b)][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){return this['commandMap'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a41h=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x167;let f=c[d];return f;},a41d(a,b);}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=parseInt(f(0x16a))/0x1*(-parseInt(f(0x169))/0x2)+-parseInt(f(0x172))/0x3+-parseInt(f(0x184))/0x4+parseInt(f(0x173))/0x5*(parseInt(f(0x17b))/0x6)+parseInt(f(0x182))/0x7+parseInt(f(0x17a))/0x8*(-parseInt(f(0x189))/0x9)+parseInt(f(0x176))/0xa*(parseInt(f(0x18c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xe9f50));function a41c(){const n=['152414fnbtIU','8IsYgiv','content','constructor','helmet','toUpperCase','forEach','key','convertToRoomConfig','1523979WJbGUY','25NTUieF','legarmor','roomType','290fLXnJo','createPuzzle','createItem','inventory','1880GtTmlw','1410834KsUIQU','rewardItem','toString','search','description','setPuzzle','addItem','4178713beInVV','name','1023136vIJoMI','bodyarmor','gauntlets','boots','createRoom','69237TsxMsN','puzzle','items','897798eJqGac','rifle','(((.+)+)+)+$'];a41c=function(){return n;};return a41c();}const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const g=a41d;return a41a['toString']()[g(0x17e)]('(((.+)+)+)+$')[g(0x17d)]()[g(0x16c)](a41a)[g(0x17e)](g(0x168));});a41a();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{[a41h(0x188)](a){const i=a41h,b=this[i(0x171)](a),c=new Room(b);if(a[i(0x18b)]){const d=new Inventory();a[i(0x18b)][i(0x16f)](e=>{const j=i;d[j(0x181)](this[j(0x178)](e));}),c[i(0x179)]=d;}return a[i(0x18a)]&&c[i(0x180)](this[i(0x177)](a['puzzle'])),c;}[a41h(0x178)](a){const k=a41h;switch(a['type']){case k(0x170):return new Key(a[k(0x183)],a['description']);case'book':return new Book(a[k(0x183)],a[k(0x17f)],a[k(0x16b)]);case'sword':return new Sword(a[k(0x183)],a[k(0x17f)]);case k(0x167):return new Rifle(a[k(0x183)],a['description']);case k(0x16d):return new Helmet(a[k(0x183)],a[k(0x17f)]);case k(0x185):return new BodyArmor(a[k(0x183)],a['description']);case k(0x174):return new LegArmor(a[k(0x183)],a['description']);case k(0x187):return new Boots(a[k(0x183)],a[k(0x17f)]);case'gloves':return new Gloves(a[k(0x183)],a['description']);case k(0x186):return new Gauntlets(a[k(0x183)],a[k(0x17f)]);default:return new BasicItem(a[k(0x183)],a[k(0x17f)]);}}[a41h(0x177)](a){const l=a41h,b=this[l(0x178)](a[l(0x17c)]);return new Puzzle({...a,'rewardItem':b});}[a41h(0x171)](a){const m=a41h,b=a[m(0x175)]&&RoomType[a['roomType'][m(0x16e)]()]?RoomType[a[m(0x175)][m(0x16e)]()]:RoomType['INSIDE'];return{'name':a[m(0x183)],'description':a[m(0x17f)],'isStartRoom':a['isStartRoom'],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=-parseInt(h(0xfe))/0x1+-parseInt(h(0xfd))/0x2*(parseInt(h(0xed))/0x3)+parseInt(h(0x119))/0x4+parseInt(h(0xee))/0x5+parseInt(h(0xf6))/0x6+parseInt(h(0x108))/0x7*(-parseInt(h(0x116))/0x8)+parseInt(h(0xf0))/0x9*(-parseInt(h(0x10c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xb709d));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0x110)]()[j(0x102)](j(0xf7))[j(0x110)]()['constructor'](a42a)[j(0x102)](j(0xf7));});function a42c(){const s=['drop','rooms','464fdYgAT','use','scene','3999036PgFgqE','registerCommand','initialize','lock','look','getInstance','60234oXrlwz','1959510oIkuQm','help','4125987Yettsg','currentLocation','-\x20quit:\x20Exit\x20the\x20game.\x0a','getWelcomeMessage','apply','createCommand','5830548ubyuJL','(((.+)+)+)+$','getHelpMessage','registerCommands','slice','handleInput','determineStartRoom','12pMImni','531633UHIAls','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','execute','player','search','unequip','Welcome,\x20','instance','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','maka','60725XIsmlC','getRooms','hasOwnProperty','say','10DYVOcQ','trim','equip','toLowerCase','toString','Available\x20Commands:\x0a','name','solve'];a42c=function(){return s;};return a42c();}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-0xe9;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';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a42k(0x105)];[a42k(0x118)];[a42k(0x101)];['currentRoom'];[a42k(0x115)];constructor(a,b){const l=a42k;this[l(0x101)]=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this['scene'][l(0xe9)](),this[l(0x101)][l(0xf1)]=this[l(0xfc)](),this[l(0xf9)]();}[a42k(0xf9)](){const m=a42k;CommandFactory[m(0x11a)](m(0xeb),LookCommand),CommandFactory[m(0x11a)]('go',GoCommand),CommandFactory[m(0x11a)]('take',TakeCommand),CommandFactory[m(0x11a)](m(0x117),UseCommand),CommandFactory['registerCommand'](m(0x10e),EquipCommand),CommandFactory[m(0x11a)](m(0x103),UnequipCommand),CommandFactory[m(0x11a)](m(0x113),SolveCommand),CommandFactory[m(0x11a)](m(0x114),DropCommand),CommandFactory[m(0x11a)]('unlock',UnlockCommand),CommandFactory[m(0x11a)](m(0xea),LockCommand),CommandFactory[m(0x11a)]('search',SearchCommand),CommandFactory[m(0x11a)](m(0x10b),SayCommand);}[a42k(0xfc)](){const n=a42k;return this[n(0x118)][n(0xfc)]();}[a42k(0xf3)](){const o=a42k;return o(0x104)+this[o(0x101)][o(0x112)];}static[a42k(0xec)](a,b){const p=a42k;return!Game[p(0x105)]&&(Game[p(0x105)]=new Game(a,b)),Game['instance'];}[a42k(0xfb)](a){const q=a42k,b=a[q(0x10d)]()['split']('\x20'),c=b[0x0][q(0x10f)](),d=b[q(0xfa)](0x1);if(c==='quit')return null;if(c===q(0x107))return q(0xff);if(c===q(0xef))return this[q(0xf8)]();if(c==='clear')return'';const e={'actor':this[q(0x101)],'rooms':this[q(0x118)][q(0x109)](),'scene':this[q(0x118)]},f=CommandFactory[q(0xf5)](c,e);if(f){const g=f[q(0x100)](d);return g;}return q(0x106)+c+'\x22.';}[a42k(0xf8)](){const r=a42k,a=CommandFactory['getAllRegisteredCommands']();let b=r(0x111);for(const c in a){if(a[r(0x10a)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d['getDescription']()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+=r(0xf2),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x1ca;var f=c[d];return f;},a43d(a,b);}(function(a,b){var f=a43d,c=a();while(!![]){try{var d=-parseInt(f(0x1ce))/0x1+-parseInt(f(0x1d3))/0x2+-parseInt(f(0x1d2))/0x3*(parseInt(f(0x1d0))/0x4)+-parseInt(f(0x1d4))/0x5+parseInt(f(0x1cd))/0x6*(-parseInt(f(0x1ca))/0x7)+-parseInt(f(0x1cb))/0x8*(-parseInt(f(0x1d6))/0x9)+parseInt(f(0x1cf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xefba2));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[g(0x1cc)]()[g(0x1d1)](g(0x1d5))[g(0x1cc)]()['constructor'](a43a)[g(0x1d1)](g(0x1d5));});a43a();export*from'./door.js';function a43c(){var h=['44852620BBgRnz','12544GrNUMx','search','1194YfMWVi','2412076UZtkHa','1278045ymZIHr','(((.+)+)+)+$','36eDAUUN','49GblygM','2375672XNTAcI','toString','932898iCalwZ','893020modnvA'];a43c=function(){return h;};return a43c();}export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a44h=a44d;function a44c(){var n=['.\x20Is\x20Locked:\x20','.\x20Used:\x20','checkIfLocked','3245128FTZvPL','2269128rLyCue','4314290OdzZUw','logger','Door\x20unlocked:\x20','21vKfqSr','(((.+)+)+)+$','isLocked','attemptUnlock','roomB','toString','unlockItemOrSolution','14759rMqOfz','search','name','Failed\x20to\x20unlock\x20door:\x20','\x20and\x20','To\x20','3864699WtyilZ','23964309ZVWEmE','18fjQKeJ','isLockable','constructor','8656140rOIaVl','roomA'];a44c=function(){return n;};return a44c();}function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0xba;var f=c[d];return f;},a44d(a,b);}(function(a,b){var f=a44d,c=a();while(!![]){try{var d=parseInt(f(0xc5))/0x1*(parseInt(f(0xcd))/0x2)+-parseInt(f(0xcb))/0x3+parseInt(f(0xd5))/0x4+parseInt(f(0xbb))/0x5+-parseInt(f(0xd0))/0x6+parseInt(f(0xbe))/0x7*(-parseInt(f(0xba))/0x8)+parseInt(f(0xcc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xd8c12));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['toString']()['search'](g(0xbf))[g(0xc3)]()[g(0xcf)](a44a)[g(0xc6)](g(0xbf));});a44a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a44h(0xd1)];[a44h(0xc2)];[a44h(0xc0)];['unlockItemOrSolution'];['name'];[a44h(0xbc)];['isLockable'];constructor(a){var i=a44h;super(),this[i(0xd1)]=a[i(0xd1)],this[i(0xc2)]=a[i(0xc2)],this[i(0xc0)]=a[i(0xc0)]||![],this[i(0xc4)]=a[i(0xc4)],this[i(0xc7)]=a[i(0xc7)]?capitalCase(a['name']):i(0xca)+a['roomB']['name'],this['logger']=Logger['getInstance'](),this[i(0xce)]=!!a[i(0xc4)],this[i(0xbc)]['write']('Door\x20created\x20between\x20'+this[i(0xd1)][i(0xc7)]+i(0xc9)+this['roomB'][i(0xc7)]+i(0xd2)+this[i(0xc0)]);}['getOtherSide'](a){var j=a44h;return this[j(0xd1)]===a?this[j(0xc2)]:this[j(0xd1)];}[a44h(0xc1)](a){var k=a44h;if(this['isLocked']&&this[k(0xc4)]&&this[k(0xc4)]===a)return this[k(0xc0)]=![],this[k(0xbc)]['write'](k(0xbd)+this[k(0xc7)]+'.\x20Used:\x20'+a),!![];return this[k(0xbc)]['write'](k(0xc8)+this[k(0xc7)]+k(0xd3)+a),![];}[a44h(0xd4)](){var l=a44h;return this[l(0xc0)];}['checkIfLockable'](){var m=a44h;return this[m(0xce)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0x196))/0x1+parseInt(f(0x1a7))/0x2*(parseInt(f(0x1b6))/0x3)+-parseInt(f(0x18f))/0x4*(parseInt(f(0x1a5))/0x5)+parseInt(f(0x1b5))/0x6*(parseInt(f(0x18e))/0x7)+parseInt(f(0x1ae))/0x8+parseInt(f(0x1ac))/0x9+parseInt(f(0x195))/0xa*(parseInt(f(0x1b1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xd3575));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x1ab)]()[h(0x1af)](h(0x1a1))[h(0x1ab)]()[h(0x19c)](a45a)['search']('(((.+)+)+)+$');});a45a();function a45c(){const r=['3143691nKRXSy','Listed\x20items\x20in\x20inventory:\x20','281720CAZier','search','name','33kOBPuN','addItem','Retrieved\x20details\x20for\x20item:\x20','getWeight','30054pQPiwy','6729xWGXqH','map','2177KnvzhX','8RaEQcR','items','listItems','weight','\x20to\x20inventory.','logger','72910OTLcdJ','956278TBuDwQ','write','set','delete','getInstance','join','constructor','Added\x20item:\x20','getItem','\x20from\x20inventory.','toLowerCase','(((.+)+)+)+$','hasItem','Failed\x20to\x20remove\x20item:\x20','has','4151915eHpnAD','keys','1354nXMLDV','getAllItems','.\x20Item\x20not\x20found.','apply','toString'];a45c=function(){return r;};return a45c();}import{capitalCase}from'change-case';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x18e;let f=c[d];return f;},a45d(a,b);}import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{['items'];[a45i(0x194)];constructor(){const j=a45i;super(),this[j(0x190)]=new Map(),this[j(0x194)]=Logger[j(0x19a)]();}[a45i(0x1b2)](a){const k=a45i;this[k(0x190)][k(0x198)](a[k(0x1b0)][k(0x1a0)](),a),this[k(0x194)]['write'](k(0x19d)+a['name']+k(0x193));}['removeItem'](a){const l=a45i,b=this['getItem'](a);if(b)return this[l(0x190)][l(0x199)](a[l(0x1a0)]()),this[l(0x194)][l(0x197)]('Removed\x20item:\x20'+a+l(0x19f)),b;return this['logger'][l(0x197)](l(0x1a3)+a+l(0x1a9)),null;}[a45i(0x1a2)](a){const m=a45i,b=this[m(0x190)][m(0x1a4)](a['toLowerCase']()),c=[...this[m(0x190)][m(0x1a6)]()];return this[m(0x194)]['write']('Checked\x20for\x20item:\x20'+a+'\x20in\x20'+c[m(0x19b)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}[a45i(0x19e)](a){const n=a45i,b=this[n(0x190)]['get'](a['toLowerCase']())||null;return b?this[n(0x194)]['write'](n(0x1b3)+a+'.'):this[n(0x194)][n(0x197)]('Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'+a+n(0x1a9)),b;}[a45i(0x191)](){const o=a45i,a=[...this['items'][o(0x1a6)]()],b=a[o(0x1b7)](c=>capitalCase(c));return this['logger'][o(0x197)](o(0x1ad)+b[o(0x19b)](',\x20')+'.'),a;}[a45i(0x1b4)](){const p=a45i;let a=0x0;for(const b of this[p(0x190)]['values']()){a+=b[p(0x192)];}return a;}[a45i(0x1a8)](){const q=a45i;return[...this[q(0x190)]['values']()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0x177))/0x1*(parseInt(f(0x17a))/0x2)+-parseInt(f(0x18a))/0x3*(-parseInt(f(0x178))/0x4)+-parseInt(f(0x16f))/0x5*(-parseInt(f(0x17f))/0x6)+parseInt(f(0x170))/0x7*(parseInt(f(0x183))/0x8)+parseInt(f(0x186))/0x9*(-parseInt(f(0x180))/0xa)+parseInt(f(0x188))/0xb+-parseInt(f(0x172))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x58317));function a46c(){var l=['uuid','use','.\x20Nothing\x20special\x20happens.','3966gadqRY','30cppSKg','shape','apply','168YGMBEF','weight','category','1305027Rlqnux','texture','1122649nDmOKI','toString','15pclFvn','description','rating','830SMmUZr','147749zXPtPp','You\x20use\x20the\x20','3352128mJDbSR','color','(((.+)+)+)+$','name','size','135OOTYqa','255772cqlbGL','search','1494GwVkwK','constructor'];a46c=function(){return l;};return a46c();}var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0x189)]()[h(0x179)](h(0x174))['toString']()[h(0x17b)](a46a)[h(0x179)]('(((.+)+)+)+$');});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-0x16e;var f=c[d];return f;},a46d(a,b);}export class Item extends AbstractItem{['uuid'];['name'];[a46i(0x18b)];['size'];[a46i(0x185)];['shape'];[a46i(0x173)];['texture'];['rating'];[a46i(0x184)];constructor(a){var j=a46i;super(),this[j(0x175)]=a[j(0x175)],this['description']=a[j(0x18b)],this[j(0x176)]=a['size'],this[j(0x185)]=a[j(0x185)],this[j(0x181)]=a[j(0x181)],this[j(0x173)]=a[j(0x173)],this[j(0x187)]=a[j(0x187)],this[j(0x16e)]=a[j(0x16e)],this[j(0x184)]=a[j(0x184)],this[j(0x17c)]=a46e();}[a46i(0x17d)](){var k=a46i;return k(0x171)+this['name']+k(0x17e);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a47i=a47d;function a47c(){const o=['name','1872945DmtiSi','length','13XGBkFX','_dialogue','toString','search','6081003xijOmC','385878cjiuAt','(((.+)+)+)+$','_name','random','627800jqlHzB','floor','apply','constructor','1815550LzKLOD','scene','rooms','1233304UBpndy','moveTo','speak','51864qCoAEz','21WLgscu','6MpbMhm','autonomousMove'];a47c=function(){return o;};return a47c();}(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0x1f0))/0x1*(parseInt(f(0x203))/0x2)+-parseInt(f(0x1f5))/0x3+-parseInt(f(0x1f9))/0x4+-parseInt(f(0x1ee))/0x5*(-parseInt(f(0x205))/0x6)+parseInt(f(0x204))/0x7*(parseInt(f(0x200))/0x8)+parseInt(f(0x1f4))/0x9+-parseInt(f(0x1fd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xacf92));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x1fb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x1f2)]()[h(0x1f3)](h(0x1f6))['toString']()[h(0x1fc)](a47a)[h(0x1f3)](h(0x1f6));});function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a47d(a,b);}a47a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a47i(0x1f7)];[a47i(0x1f1)];['rooms'];[a47i(0x1fe)];constructor(a,b,c,d){const j=a47i;super(d),this[j(0x1f7)]=a,this['_dialogue']=b,this[j(0x1ff)]=c;}get[a47i(0x1ed)](){const k=a47i;return this[k(0x1f7)];}[a47i(0x202)](){const l=a47i;return this['_dialogue'][Math[l(0x1fa)](Math[l(0x1f8)]()*this[l(0x1f1)][l(0x1ef)])];}[a47i(0x1ec)](a){const m=a47i,b=a[Math[m(0x1fa)](Math[m(0x1f8)]()*a[m(0x1ef)])];this[m(0x201)](b[m(0x1ed)]);}[a47i(0x201)](a){const n=a47i,b={'actor':this,'rooms':this['rooms'],'scene':this[n(0x1fe)]},c=new GoCommand(b);c['execute']([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x117;let f=c[d];return f;},a48d(a,b);}const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0x146))/0x1*(-parseInt(f(0x162))/0x2)+-parseInt(f(0x122))/0x3*(parseInt(f(0x16a))/0x4)+-parseInt(f(0x131))/0x5*(-parseInt(f(0x16f))/0x6)+-parseInt(f(0x152))/0x7+-parseInt(f(0x135))/0x8+-parseInt(f(0x14c))/0x9+-parseInt(f(0x13a))/0xa*(-parseInt(f(0x173))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xd60c0));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x15c)]()[h(0x148)](h(0x174))[h(0x15c)]()[h(0x11b)](a48a)[h(0x148)](h(0x174));});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';function a48c(){const C=['currentWeight','BodyArmor','Invalid\x20category\x20or\x20slot:\x20','removeItem','hat','3MQdYaU','rightHand','currentLocation','enterRoom','head','leftHand','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','helmet','Helmet','weight','_currentLocation','\x20in\x20your\x20inventory.','shield','determineEquipmentSlot','equip','15hDKDKT','legs','getWeight','gloves','10771256eMLNuQ','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','legarmor','_playerName','\x20says:\x20\x22','3570ERpHHY','addItem','Failed\x20to\x20remove\x20','You\x20can\x27t\x20equip\x20','Max\x20carrying\x20weight\x20must\x20be\x20positive.','leaveRoom','A\x20featureless\x20room','Nexus','initialEquipment','addInventory','Hat','hasItem','1VzRDnl','arms','search','unequip','armarmor','_maxCarryingWeight','4274118ddGnto','boots','You\x20don\x27t\x20have\x20','error','\x20is\x20now\x20listening\x20in\x20room\x20','inventoryItems','3361127ajvEIN','Added\x20','includes','\x20is\x20no\x20longer\x20listeng\x20in\x20','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','apply','category','removeInventory','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','inventory','toString','You\x20unequipped\x20','Shield','log','.\x20You\x20must\x20unequip\x20it\x20first.','off','235306vWiogT','feet','logger','write','\x20from\x20player\x27s\x20inventory.','startLocation','\x20to\x20player\x27s\x20inventory.','Boots','2606668eNruVh','_inventory','canEquip','Weapon','toLowerCase','3247626ceUxyy','LegArmor','unequipBySlot','hear','71599aFtOOM','(((.+)+)+)+$','maxCarryingWeight','speak','name','_equipment','You\x20equipped\x20','leg\x20armor','\x20slot.','bind','Removed\x20','body\x20armor','torso','equipment','values','constructor','arm\x20armor'];a48c=function(){return C;};return a48c();}import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a48i(0x138)];[a48i(0x12c)];[a48i(0x16b)];[a48i(0x178)];[a48i(0x14b)]=0x32;['logger'];constructor(a){const j=a48i;super(),this[j(0x138)]=a['playerName'],this[j(0x12c)]=a[j(0x167)]||new Room({'name':j(0x141),'description':j(0x140)}),this['_inventory']=new Inventory(),this[j(0x164)]=Logger['getInstance']();if(a?.[j(0x151)])for(const b of a[j(0x151)]){this[j(0x16b)][j(0x13b)](b);}this[j(0x178)]=a?.[j(0x142)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48i(0x177)](){const k=a48i;return this[k(0x138)];}get[a48i(0x124)](){const l=a48i;return this[l(0x12c)];}set[a48i(0x124)](a){const m=a48i;this[m(0x12c)]!==a&&(this['leaveRoom'](),this[m(0x125)](a)),this[m(0x12c)]=a;}get[a48i(0x15b)](){const n=a48i;return this[n(0x16b)];}get['equipment'](){const o=a48i;return this[o(0x178)];}set[a48i(0x119)](a){const p=a48i;this[p(0x178)]=a;}get['maxCarryingWeight'](){return this['_maxCarryingWeight'];}set['maxCarryingWeight'](a){const q=a48i;a>0x0?this['_maxCarryingWeight']=a:console[q(0x14f)](q(0x13e));}get[a48i(0x11d)](){const r=a48i;let a=this[r(0x16b)][r(0x133)]();for(const b in this[r(0x178)]){const c=this['_equipment'][b];c&&(a+=c[r(0x12b)]);}return a;}[a48i(0x143)](a){const s=a48i;if(this[s(0x11d)]+a['weight']>this[s(0x175)]){this[s(0x164)][s(0x165)](s(0x15a));throw new Error(s(0x128));}this[s(0x16b)]['addItem'](a),this[s(0x164)][s(0x165)](s(0x153)+a['name']+s(0x168));}[a48i(0x159)](a){const t=a48i;if(this[t(0x16b)][t(0x120)](a['name']))return this[t(0x164)][t(0x165)](t(0x17d)+a[t(0x177)]+t(0x166)),!![];return this[t(0x164)][t(0x165)](t(0x13c)+a[t(0x177)]+t(0x166)),![];}[a48i(0x130)](a){const u=a48i;if(!this[u(0x16b)][u(0x145)](a[u(0x177)]))return u(0x14e)+a[u(0x177)]+u(0x12d);if(!this[u(0x16c)](a))return u(0x13d)+a[u(0x177)]+'.';const b=this[u(0x12f)](a[u(0x158)]);if(!b)return a[u(0x177)]+'\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.';if(this[u(0x119)][b])return u(0x156)+b+u(0x160);return this[u(0x119)][b]=a,this['removeInventory'](a),u(0x179)+a[u(0x177)]+'.';}[a48i(0x149)](a){const v=a48i;let b=a;if(!this[v(0x119)][camelCase(b)]){b=this[v(0x12f)](a);if(!b)return v(0x11f)+a+'.';}return this[v(0x171)](b);}[a48i(0x12f)](a){const w=a48i;switch(a[w(0x16e)]()){case Category[w(0x16d)]['toLowerCase']():return w(0x123);case Category[w(0x15e)][w(0x16e)]():return w(0x127);case Category['Gloves'][w(0x16e)]():return'gloves';case Category[w(0x12a)]['toLowerCase']():case Category[w(0x144)][w(0x16e)]():return w(0x126);case Category[w(0x169)][w(0x16e)]():return w(0x163);case Category[w(0x170)][w(0x16e)]():return'legs';case Category['ArmArmor'][w(0x16e)]():return w(0x147);case Category[w(0x11e)][w(0x16e)]():return'torso';case'weapon':return'rightHand';case w(0x12e):return w(0x127);case w(0x134):return'gloves';case w(0x129):case w(0x121):return w(0x126);case w(0x14d):return'feet';case w(0x17a):case w(0x137):return w(0x132);case w(0x11c):case w(0x14a):return'arms';case w(0x117):case'bodyarmor':case'torso':return w(0x118);default:return null;}}[a48i(0x16c)](a){const x=a48i;return Object[x(0x11a)](Category)[x(0x154)](a[x(0x158)]);}[a48i(0x171)](a){const y=a48i,b=this[y(0x119)][a];if(!b)return y(0x136)+a+y(0x17b);return this[y(0x143)](b),this[y(0x119)][a]=null,y(0x15d)+b[y(0x177)]+'.';}['hear'](a,b){const z=a48i;a!==this&&this[z(0x164)][z(0x15f)](a[z(0x177)]+z(0x139)+b+'\x22');}[a48i(0x125)](a){const A=a48i;this[A(0x12c)]=a,a['on']('speak',this[A(0x172)][A(0x17c)](this)),this[A(0x164)]['write'](this[A(0x177)]+A(0x150)+a[A(0x177)]);}[a48i(0x13f)](){const B=a48i;this[B(0x12c)]&&(this[B(0x12c)][B(0x161)](B(0x176),this[B(0x172)]['bind'](this)),this['logger']['write'](this['name']+B(0x155)+this['_currentLocation']['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1e5;var f=c[d];return f;},a49d(a,b);}var a49h=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x1ef))/0x1+-parseInt(f(0x1e8))/0x2*(parseInt(f(0x1e5))/0x3)+parseInt(f(0x201))/0x4+parseInt(f(0x1fa))/0x5+parseInt(f(0x200))/0x6*(-parseInt(f(0x1f7))/0x7)+-parseInt(f(0x1fe))/0x8+parseInt(f(0x1f6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xa73b3));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var g=a49d;return a49a[g(0x1f3)]()[g(0x1f1)](g(0x1eb))['toString']()[g(0x1ed)](a49a)['search']('(((.+)+)+)+$');});a49a();import{Logger}from'../utilities/logger.js';function a49c(){var m=['You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','failureMessage','35822bYDiDv','requiredPhrase','Puzzle:\x20Correct\x20solution\x20provided.','(((.+)+)+)+$','successMessage','constructor','You\x20solved\x20the\x20puzzle!','1079222xIvqXP','solve','search','matchesRequiredPhrase','toString','solved','hasItem','21336597SbBHBO','217ZIKeqE','logger','You\x20have\x20already\x20solved\x20this\x20puzzle.','1142345WMBxcb','riddle','requiredItem','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','7736648CHKPhI','write','46338gUbeuw','5283104HJSTUp','rewardItem','hasRequiredItem','159KWGElK'];a49c=function(){return m;};return a49c();}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger['getInstance']();[a49h(0x1f4)]=![];[a49h(0x1fc)];[a49h(0x1e9)];[a49h(0x1fb)];[a49h(0x202)];[a49h(0x1ec)];[a49h(0x1e7)];constructor(a){var i=a49h;super(),this[i(0x1fc)]=a['requiredItem'],this[i(0x1e9)]=a['requiredPhrase'],this[i(0x1fb)]=a['riddle'],this[i(0x202)]=a[i(0x202)],this[i(0x1ec)]=a[i(0x1ec)]||i(0x1ee),this[i(0x1e7)]=a[i(0x1e7)]||i(0x1e6);}[a49h(0x203)](a){var j=a49h;if(this[j(0x1fc)])return a[j(0x1f5)](this['requiredItem']);return![];}[a49h(0x1f2)](a){var k=a49h;return this[k(0x1e9)]===a;}[a49h(0x1f0)](a,b){var l=a49h;if(this[l(0x1f4)])return this['logger'][l(0x1ff)](l(0x1fd)),{'success':![],'message':l(0x1f9)};return this[l(0x203)](b)||this[l(0x1f2)](a)?(this[l(0x1f4)]=!![],this[l(0x1f8)][l(0x1ff)](l(0x1ea)),{'success':!![],'message':this[l(0x1ec)]}):(this[l(0x1f8)]['write']('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this['failureMessage']});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0xf4))/0x1*(-parseInt(f(0xf1))/0x2)+parseInt(f(0xf7))/0x3+-parseInt(f(0xd5))/0x4*(parseInt(f(0xd9))/0x5)+parseInt(f(0xdd))/0x6*(parseInt(f(0xef))/0x7)+-parseInt(f(0xd6))/0x8+-parseInt(f(0xde))/0x9+-parseInt(f(0x104))/0xa*(-parseInt(f(0xe0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xa4915));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0xcf)]()['search']('(((.+)+)+)+$')[h(0xcf)]()['constructor'](a50a)[h(0x107)]('(((.+)+)+)+$');});a50a();function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xcf;let f=c[d];return f;},a50d(a,b);}import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a50i(0xe6)]=Logger[a50i(0xf2)]();[a50i(0xd4)];['description'];[a50i(0xf0)]=new Map();[a50i(0xed)];['isStartRoom'];[a50i(0xe8)]=new Inventory();constructor(a){const j=a50i;super(),this['name']=a[j(0xd4)],this[j(0xe7)]=a[j(0xe7)],this[j(0xed)]=a[j(0xed)]||RoomType[j(0xda)],a[j(0xf0)]&&(this[j(0xf0)]=a['exits']||new Map()),a[j(0xe8)]&&(this[j(0xe8)]=a['inventory']),a[j(0x103)]&&(this['puzzle']=a[j(0x103)]),this['isStartRoom']=a[j(0xf8)]||![],this['logger'][j(0xe2)]('Room\x20created:\x20'+this['name']);}['say'](a,b){const k=a50i;this[k(0xec)]('speak',a,b);}['addExit'](a,b,c){const l=a50i;let d=this['findExistingDoor'](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0xf0)][l(0xfc)](a,d),b[l(0xf0)]['set'](this[l(0xe4)](a),d);}['attemptUnlockExit'](a,b){const m=a50i,c=this['exits']['get'](a);if(c instanceof Door){const d=c[m(0xe5)](b);return this[m(0xe6)]['write']('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+m(0xdb)+d),d?m(0xee)+c['name']+m(0xe1):'The\x20'+c[m(0xd4)]+m(0xe3);}return this['logger'][m(0xe2)](m(0xd2)+a),m(0xfd);}[a50i(0x101)](a){const n=a50i;return this[n(0xe6)][n(0xe2)](n(0xff)+a),this['exits'][n(0xd8)](a);}[a50i(0xfe)](a){const o=a50i,b=this[o(0xf0)][o(0xd8)](a),c=b instanceof Door&&b[o(0xd0)]();return this[o(0xe6)][o(0xe2)](o(0xfa)+a+o(0x100)+c),c;}[a50i(0x102)](a){const p=a50i;this[p(0xe8)][p(0x102)](a),this[p(0xe6)]['write'](p(0xf9)+this['name']+':\x20'+a['name']);}[a50i(0xf3)](a){const q=a50i;this['inventory'][q(0xea)](a['name'])?(this[q(0xe8)][q(0xf3)](a[q(0xd4)]),this[q(0xe6)][q(0xe2)](q(0xdc)+this['name']+':\x20'+a['name'])):this[q(0xe6)][q(0xe2)]('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this[q(0xd4)]+':\x20'+a['name']);}[a50i(0xdf)](a){const r=a50i;this[r(0x103)]=a,this[r(0xe6)][r(0xe2)]('Puzzle\x20set\x20for\x20room\x20'+this[r(0xd4)]+':\x20'+a['riddle']);}['getOppositeDirection'](a){const s=a50i;switch(a){case'north':return Direction[s(0xd1)];case s(0xfb):return Direction[s(0xeb)];case'east':return Direction['WEST'];case'west':return Direction[s(0x105)];case'up':return Direction['DOWN'];case s(0xe9):return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}[a50i(0xd3)](a){const t=a50i;for(const b of this[t(0xf0)][t(0xd7)]()){if(b instanceof Door){if(b[t(0xf6)]===this&&b['roomB']===a||b[t(0x106)]===this&&b[t(0xf6)]===a)return b;}}return undefined;}}function a50c(){const u=['roomB','search','toString','checkIfLocked','SOUTH','No\x20locked\x20exit\x20found\x20in\x20direction\x20','findExistingDoor','name','80LuDkkI','4093936XDtWWq','values','get','122090zYYFkF','INSIDE','.\x20Success:\x20','Item\x20removed\x20from\x20room\x20','239790HDfnxM','11518290FrbujN','setPuzzle','23140535AMBaLA','\x20unlocked!','write','\x20remains\x20locked.','getOppositeDirection','attemptUnlock','logger','description','inventory','down','hasItem','NORTH','emit','roomType','The\x20','14TyMJaL','exits','55532xvknOh','getInstance','removeItem','1UjcJpW','apply','roomA','2394396GsSKCN','isStartRoom','Item\x20added\x20to\x20room\x20','Checking\x20if\x20exit\x20in\x20direction\x20','south','set','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','isExitLocked','Fetching\x20exit\x20in\x20direction:\x20','\x20is\x20locked.\x20Result:\x20','getExit','addItem','puzzle','10gYfNKG','EAST'];a50c=function(){return u;};return a50c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a51c(){const E=['Added\x20item\x20','4304144kBywjW','addExit','from','keys','getActor','toString','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','exits','5MLsbbd','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','isStartRoom','toUpperCase','\x27s\x20location.\x20Room\x20','createRoom','removeRoom','Failed\x20to\x20set\x20','set','removeActor','\x20not\x20found\x20in\x20scene.','targetRoom','logger','Removed\x20room\x20from\x20scene:\x20','setPuzzle','Failed\x20to\x20add\x20item\x20','1215096NfkRxo','addItemToRoom','name','rooms','Scene\x20initialized\x20with\x20rooms:\x20','2WPbGbl','118292ljfUWZ','characterLocations','setCharacterLocation','365262ENcNQh','getPlayer','actors','has','write','1983969hKkRgu','direction','4307212cVOoGZ','addRoom','Failed\x20to\x20add\x20puzzle.\x20Room\x20','search','addPuzzleToRoom','(((.+)+)+)+$','\x20is\x20now\x20in\x20room\x20','get','connectRooms','player','hasOwnProperty','\x20found\x20in\x20the\x20scene.','getCharacterLocation','roomFactory','createExitsFromConfig','917706gjhLnB','Room\x20\x22','apply','addItem','length','constructor','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','\x20already\x20exists\x20in\x20the\x20scene.','warn','addActor','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','allActors','roomConfiguration','generateRoomsFromConfig','determineStartRoom'];a51c=function(){return E;};return a51c();}const a51l=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=parseInt(i(0x1b3))/0x1*(parseInt(i(0x1b4))/0x2)+-parseInt(i(0x1b7))/0x3+parseInt(i(0x1ae))/0x4*(parseInt(i(0x1e5))/0x5)+parseInt(i(0x1cd))/0x6+parseInt(i(0x1be))/0x7+-parseInt(i(0x1dd))/0x8+-parseInt(i(0x1bc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x4bb68));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a51d;if(c){const e=c[j(0x1cf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const k=a51d;return a51a[k(0x1e2)]()[k(0x1c1)]('(((.+)+)+)+$')[k(0x1e2)]()[k(0x1d2)](a51a)[k(0x1c1)](k(0x1c3));});a51a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a51d(a,b);}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a51l(0x1b1)];[a51l(0x1c7)];[a51l(0x1aa)];[a51l(0x1b9)];[a51l(0x1b5)]=new Map();[a51l(0x1cb)];constructor(a){const m=a51l;super(),this[m(0x1cb)]=new RoomFactory(),this[m(0x1c7)]=a['player'],this['rooms']=this[m(0x1da)](a[m(0x1d9)]),this['logger']=Logger['getInstance'](),this['actors']=new Map(),this[m(0x1cc)](a[m(0x1d9)]),this[m(0x1aa)][m(0x1bb)](m(0x1b2)+Object[m(0x1e0)](this[m(0x1b1)])['join'](',\x20'));}['initialize'](){const n=a51l;this[n(0x1c7)]['currentLocation']=this['determineStartRoom']();}[a51l(0x1da)](a){const o=a51l;if(!this['roomFactory'])throw new Error(o(0x1e3));const b={};for(const c of a){const d=this[o(0x1cb)][o(0x1a3)](c);b[c[o(0x1b0)]]=d;}return b;}[a51l(0x1cc)](a){const p=a51l;for(const b of a){const c=this[p(0x1b1)][b[p(0x1b0)]];if(b[p(0x1e4)])for(const d of b['exits']){const e=d[p(0x1bd)][p(0x1e8)](),f=d[p(0x1a9)],g=d['keyRequired'],h=this[p(0x1b1)][f];h&&c[p(0x1de)](Direction[e],h,g);}}}[a51l(0x1d6)](a){const q=a51l;if(this[q(0x1b9)][q(0x1ba)](a[q(0x1b0)]))throw new Error('Actor\x20with\x20name\x20'+a['name']+q(0x1d4));this[q(0x1b9)][q(0x1a6)](a[q(0x1b0)],a);}[a51l(0x1a7)](a){const r=a51l;if(!this[r(0x1b9)][r(0x1ba)](a))throw new Error('No\x20actor\x20with\x20name\x20'+a+r(0x1c9));this['actors']['delete'](a);}[a51l(0x1e1)](a){const s=a51l;return this['actors'][s(0x1c5)](a);}get[a51l(0x1d8)](){const t=a51l;return Array[t(0x1df)](this['actors']['values']());}[a51l(0x1bf)](a){const u=a51l;this[u(0x1b1)][a[u(0x1b0)]]=a,this[u(0x1aa)][u(0x1bb)]('Added\x20room\x20to\x20scene:\x20'+a['name']);}[a51l(0x1a4)](a){const v=a51l;return this[v(0x1b1)][a]?(delete this[v(0x1b1)][a],this['logger'][v(0x1bb)](v(0x1ab)+a),!![]):(this['logger'][v(0x1bb)]('Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20'+a),![]);}[a51l(0x1af)](a,b){const w=a51l,c=this[w(0x1b1)][b];c?(c[w(0x1d0)](a),this[w(0x1aa)][w(0x1bb)](w(0x1dc)+a['name']+'\x20to\x20room\x20'+c[w(0x1b0)])):this['logger'][w(0x1bb)](w(0x1ad)+a[w(0x1b0)]+'.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0x1c2)](a,b){const x=a51l,c=this['rooms'][b];c?(c[x(0x1ac)](a),this['logger'][x(0x1bb)]('Added\x20puzzle\x20to\x20room\x20'+c['name'])):this['logger']['write'](x(0x1c0)+b+x(0x1a8));}[a51l(0x1b6)](a,b){const y=a51l,c=this[y(0x1b1)][b];c?(this['characterLocations'][y(0x1a6)](a[y(0x1b0)],c),this[y(0x1aa)][y(0x1bb)](a[y(0x1b0)]+y(0x1c4)+c[y(0x1b0)])):this[y(0x1aa)]['write'](y(0x1a5)+a['name']+y(0x1e9)+b+y(0x1a8));}[a51l(0x1ca)](a){const z=a51l;return this[z(0x1b5)][z(0x1c5)](a['name']);}[a51l(0x1db)](){const A=a51l,a=[];for(const c in this[A(0x1b1)]){if(this['rooms'][A(0x1c8)](c)){const d=this[A(0x1b1)][c];d[A(0x1e7)]&&a['push'](d);}}if(a[A(0x1d1)]>0x1)throw new Error(A(0x1e6));if(a[A(0x1d1)]===0x1)return a[0x0];const b=Object['keys'](this[A(0x1b1)]);if(b[A(0x1d1)]===0x0)throw new Error(A(0x1d3));return console[A(0x1d5)](A(0x1d7)),this[A(0x1b1)][b[0x0]];}[a51l(0x1b8)](){const B=a51l;return this[B(0x1c7)];}['getRooms'](){const C=a51l;return this[C(0x1b1)];}[a51l(0x1c6)](a,b,c,d){const D=a51l,e=this[D(0x1b1)][a],f=this[D(0x1b1)][c];if(!e)throw new Error(D(0x1ce)+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error('Room\x20\x22'+c+'\x22\x20does\x20not\x20exist.');e[D(0x1de)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a52j=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x1bb))/0x1+parseInt(f(0x19f))/0x2*(-parseInt(f(0x1c8))/0x3)+parseInt(f(0x19b))/0x4*(-parseInt(f(0x1a9))/0x5)+-parseInt(f(0x1c7))/0x6*(parseInt(f(0x1ab))/0x7)+-parseInt(f(0x1a4))/0x8+-parseInt(f(0x1a3))/0x9+-parseInt(f(0x1a5))/0xa*(-parseInt(f(0x1a2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xad6e3));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x1c9)]()[h(0x199)](h(0x1ad))[h(0x1c9)]()[h(0x198)](a52a)['search'](h(0x1ad));});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[i(0x1b6)],'category':Category[i(0x1b9)],'shape':Shape['Rectangle'],'color':Color[i(0x19c)],'texture':Texture[i(0x1bc)],'rating':Rating[i(0x191)],'weight':0x1});}[a52j(0x1c6)](){var k=a52j;return this[k(0x193)];}}function a52c(){var F=['Metallic','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','Short\x20Sword','use','8268102Thkhit','1198245XuOpfR','toString','Key','Common','Gold','description','Weapon','Grey','BodyArmor','You\x20hold\x20the\x20','constructor','search','\x20aloft,\x20feeling\x20its\x20immense\x20power.','184XZinWe','Yellow','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','author','2EHvNxV','Legendary','ArmArmor','20053YipsWQ','12367485VVUJdg','3945640ZPRZqr','20530vAFRyr','Sniper\x20Rifle','Boots','pageCount','67700QxUbUO','Helmet','7pQUreO','Blade','(((.+)+)+)+$','Rifle','Cup','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Circle','Gloves','Brown','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','A\x20mysterious\x20book.','Medium','Rectangle','publishDate','Unknown','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','1235394HApsUx','Smooth','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Small','Large','LegArmor','name','apply'];a52c=function(){return F;};return a52c();}export class Sword extends Item{constructor(a,b){var l=a52j;super({'name':a,'description':b,'size':Size[l(0x1b6)],'category':Category['Weapon'],'shape':Shape[l(0x1ac)],'color':Color['Grey'],'texture':Texture[l(0x1c3)],'rating':Rating[l(0x191)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var m=a52j;super({'name':a,'description':b,'size':Size[m(0x1bf)],'category':Category['Weapon'],'shape':Shape[m(0x1ae)],'color':Color[m(0x1b3)],'texture':Texture[m(0x1c3)],'rating':Rating['Rare'],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var n=a52j;super({'name':a,'description':b,'size':Size[n(0x1b6)],'category':Category[n(0x1aa)],'shape':Shape[n(0x1b1)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating[n(0x191)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var o=a52j;super({'name':a,'description':b,'size':Size['Large'],'category':Category[o(0x196)],'shape':Shape[o(0x1b7)],'color':Color['Grey'],'texture':Texture[o(0x1c3)],'rating':Rating[o(0x191)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var p=a52j;super({'name':a,'description':b,'size':Size[p(0x1b6)],'category':Category[p(0x1c0)],'shape':Shape[p(0x1b7)],'color':Color[p(0x195)],'texture':Texture[p(0x1c3)],'rating':Rating[p(0x191)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var q=a52j;super({'name':a,'description':b,'size':Size[q(0x1b6)],'category':Category[q(0x1a7)],'shape':Shape[q(0x1b1)],'color':Color[q(0x1b3)],'texture':Texture[q(0x1bc)],'rating':Rating[q(0x191)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var r=a52j;super({'name':a,'description':b,'size':Size[r(0x1be)],'category':Category[r(0x1b2)],'shape':Shape[r(0x1b1)],'color':Color['Brown'],'texture':Texture[r(0x1bc)],'rating':Rating['Common'],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[s(0x1a1)],'shape':Shape[s(0x1b7)],'color':Color[s(0x195)],'texture':Texture[s(0x1c3)],'rating':Rating[s(0x191)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var t=a52j;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category[t(0x190)],'shape':Shape[t(0x1b7)],'color':Color['Yellow'],'texture':Texture[t(0x1bc)],'rating':Rating[t(0x191)],'weight':0x0});}[a52j(0x1c6)](){var u=a52j;return u(0x1ba);}}export class Weapon extends Item{constructor(a,b){var v=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Weapon'],'shape':Shape['Blade'],'color':Color[v(0x195)],'texture':Texture[v(0x1c3)],'rating':Rating['Common'],'weight':0x3});}[a52j(0x1c6)](){var w=a52j;return w(0x1b0);}}export class Book extends Item{[a52j(0x19e)];['publishDate'];[a52j(0x1a8)];constructor(a,b=a52j(0x1b5),c='Unknown\x20Author'){var x=a52j;super({'name':a,'description':b,'size':Size[x(0x1b6)],'category':Category['Book'],'shape':Shape['Rectangle'],'color':Color[x(0x1b3)],'texture':Texture[x(0x1bc)],'rating':Rating[x(0x191)],'weight':0x1}),this[x(0x19e)]=c,this[x(0x1b8)]=new Date(),this[x(0x1a8)]=0x64;}[a52j(0x1c6)](){var y=a52j;return y(0x1b4);}}export class ShortSword extends Item{constructor(){var z=a52j;super({'name':z(0x1c5),'description':z(0x19d),'size':Size[z(0x1b6)],'category':Category['Weapon'],'shape':Shape[z(0x1ac)],'color':Color[z(0x195)],'texture':Texture[z(0x1c3)],'rating':Rating[z(0x191)],'weight':0x3});}[a52j(0x1c6)](){var A=a52j;return A(0x1b0);}}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x190;var f=c[d];return f;},a52d(a,b);}export class SniperRifle extends Item{constructor(){var B=a52j;super({'name':B(0x1a6),'description':B(0x1c4),'size':Size['Large'],'category':Category[B(0x194)],'shape':Shape['Rifle'],'color':Color[B(0x1b3)],'texture':Texture[B(0x1bc)],'rating':Rating['Common'],'weight':0x5});}[a52j(0x1c6)](){var C=a52j;return C(0x1bd);}}export class HolyGrail extends Item{constructor(){var D=a52j;super({'name':'Holy\x20Grail','description':'A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','size':Size[D(0x1be)],'category':Category[D(0x1af)],'shape':Shape[D(0x1b1)],'color':Color[D(0x192)],'texture':Texture[D(0x1c3)],'rating':Rating[D(0x1a0)],'weight':0x1});}[a52j(0x1c6)](){var E=a52j;return E(0x197)+this[E(0x1c1)]+E(0x19a);}}
|