@maka/maka-cli 4.5.47 → 4.5.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36i=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d=parseInt(f(0x14c))/0x1*(-parseInt(f(0x167))/0x2)+parseInt(f(0x156))/0x3+-parseInt(f(0x14f))/0x4*(-parseInt(f(0x15f))/0x5)+parseInt(f(0x155))/0x6+parseInt(f(0x175))/0x7*(-parseInt(f(0x14e))/0x8)+-parseInt(f(0x14b))/0x9*(-parseInt(f(0x16e))/0xa)+-parseInt(f(0x176))/0xb*(parseInt(f(0x153))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x5b4e5));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0x158)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a[h(0x14d)]()[h(0x166)](h(0x173))[h(0x14d)]()['constructor'](a36a)['search'](h(0x173));});function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x14a;let f=c[d];return f;},a36d(a,b);}a36a();function a36c(){const l=['logger','10FyAWow','hasItem','Error\x20during\x20\x27Take\x27\x20command:\x20','Successfully\x20removed\x20\x22','Item\x20\x22','(((.+)+)+)+$','Pick\x20up\x20an\x20item.','4812892sZjkLD','31537ynMcBM','currentLocation','580005YFRAfl','53653SsmkZX','toString','8AFRHhS','4hlSStn','take','\x20during\x20\x27Take\x27\x20command.','name','24ohqjCF','The\x20item\x20\x22','3321810iZYbJI','661638nfdboR','addInventory','apply','actor','\x22\x20in\x20this\x20room.','Successfully\x20added\x20\x22','\x22\x20not\x20retrieved\x20from\x20','join','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','2484590UniPiR','\x22\x20to\x20','You\x20have\x20taken\x20the\x20','\x22\x20not\x20found\x20in\x20','execute','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','inventory','search','10xxGhos','There\x20is\x20no\x20item\x20\x22','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','write','\x22\x20is\x20too\x20heavy\x20to\x20carry.','description'];a36c=function(){return l;};return a36c();}import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']=a36i(0x150);static [a36i(0x16c)]=a36i(0x174);[a36i(0x163)](a){const j=a36i;return this[j(0x16d)]['write'](j(0x169)+a['join']('\x20')),this[j(0x150)](a);}[a36i(0x150)](a){const k=a36i,b=a[k(0x15d)]('\x20')['toLowerCase'](),c=this[k(0x159)][k(0x14a)];if(!c['inventory'][k(0x16f)](b))return this[k(0x16d)][k(0x16a)](k(0x172)+b+k(0x162)+c[k(0x152)]+k(0x151)),k(0x168)+b+k(0x15a);const d=c[k(0x165)]['getItem'](b);if(!d)return this[k(0x16d)][k(0x16a)](k(0x172)+b+k(0x15c)+c[k(0x152)]+k(0x164)),k(0x168)+b+k(0x15a);try{return this[k(0x159)][k(0x157)](d),this[k(0x16d)][k(0x16a)](k(0x15b)+b+k(0x160)+this[k(0x159)][k(0x152)]+k(0x15e)),c['inventory']['removeItem'](b),this['logger'][k(0x16a)](k(0x171)+b+'\x22\x20from\x20'+c['name']+k(0x164)),k(0x161)+b+'.';}catch(e){return this['logger'][k(0x16a)](k(0x170)+e['message']),k(0x154)+b+k(0x16b);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-
|
|
1
|
+
const a37i=a37d;function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a37d(a,b);}(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x1b8))/0x1+-parseInt(f(0x1ba))/0x2*(parseInt(f(0x1b9))/0x3)+parseInt(f(0x1c7))/0x4*(parseInt(f(0x1c6))/0x5)+parseInt(f(0x1b6))/0x6*(-parseInt(f(0x1b3))/0x7)+parseInt(f(0x1b7))/0x8*(parseInt(f(0x1b5))/0x9)+-parseInt(f(0x1c2))/0xa+parseInt(f(0x1aa))/0xb*(parseInt(f(0x1ac))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x254d4));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x1b4)]()['search'](h(0x1b0))[h(0x1b4)]()[h(0x1c1)](a37a)[h(0x1bb)](h(0x1b0));});a37a();import{Command}from'./command.js';function a37c(){const k=['name','UnequipCommand:\x20','execute','actor','apply','constructor','2439690IQhmbl','unqeuip','description','\x20unqeuiped\x20','15IvMIaS','84148zZMcSQ','11CbWIpQ','unequip','6474372Vejsxp','join','write','Unequip\x20an\x20item.','(((.+)+)+)+$','toLowerCase','logger','5614cglEgF','toString','600795utRJNe','1932GMPiGq','32RgeXnq','43602nRHpaZ','3lUTUmm','516526zfKSFx','search'];a37c=function(){return k;};return a37c();}export class UnequipCommand extends Command{static ['verb']=a37i(0x1c3);static [a37i(0x1c4)]=a37i(0x1af);[a37i(0x1be)](a){const j=a37i,b=a[j(0x1ad)]('\x20')[j(0x1b1)](),c=this[j(0x1bf)][j(0x1ab)](b);return this[j(0x1b2)][j(0x1ae)](j(0x1bd)+this[j(0x1bf)][j(0x1bc)]+j(0x1c5)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d
|
|
1
|
+
const a38k=a38d;function a38c(){const n=['logger','execute','verb','actor','attemptUnlockExit','search','isValidDirection','2029032ESFvYF','unlock','description','10tcXQur','exits','Unlock\x20a\x20door.','UnlockCommand:\x20','132450sOgVQO','169841lOwfDr','apply','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','unlockItemOrSolution','toString','name','420958eIJsKM','There\x27s\x20no\x20door\x20named\x20\x22','\x22\x20here.','3vslGwW','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','error','221572xinjST','328720itRkYV','write','1799010UsNheG','currentLocation','getItem','get','UnlockCommand:\x20No\x20target\x20specified.','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','inventory','toLowerCase','16MyuHzO','\x20is\x20attempted\x20to\x20unlock\x20'];a38c=function(){return n;};return a38c();}(function(a,b){const h=a38d,c=a();while(!![]){try{const d=parseInt(h(0x208))/0x1+parseInt(h(0x202))/0x2*(-parseInt(h(0x205))/0x3)+parseInt(h(0x209))/0x4+parseInt(h(0x1f7))/0x5*(parseInt(h(0x1fb))/0x6)+-parseInt(h(0x1fc))/0x7*(parseInt(h(0x1eb))/0x8)+parseInt(h(0x1f4))/0x9+-parseInt(h(0x20b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x20d2c));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a38d;if(c){const e=c[i(0x1fd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a['toString']()[j(0x1f2)]('(((.+)+)+)+$')[j(0x200)]()['constructor'](a38a)[j(0x1f2)]('(((.+)+)+)+$');});a38a();function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x1e4;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 [a38k(0x1ef)]='unlock';static [a38k(0x1f6)]=a38k(0x1f9);[a38k(0x1ee)](a){const l=a38k;return this[l(0x1f5)](a);}['unlock'](a){const m=a38k;if(a['length']===0x0)return this[m(0x1ed)][m(0x207)](m(0x1e7)),m(0x206);const b=a[0x0][m(0x1ea)](),c=this[m(0x1f0)][m(0x1e4)];if(this[m(0x1f3)](b)&&c[m(0x1f8)]['has'](b)){const d=c[m(0x1f8)][m(0x1e6)](b);if(d instanceof Door){const e=d[m(0x1ff)]?.[m(0x1ea)]();if(e&&this[m(0x1f0)][m(0x1e9)]['hasItem'](e)){const f=this[m(0x1f0)][m(0x1e9)][m(0x1e5)](e);if(f){const g=c[m(0x1f1)](b,f[m(0x201)]);return this[m(0x1ed)]['write'](m(0x1fa)+this[m(0x1f0)][m(0x201)]+m(0x1ec)+b+'.\x20Result:\x20'+g),g;}}return this['logger'][m(0x20a)]('UnlockCommand:\x20'+this[m(0x1f0)][m(0x201)]+m(0x1fe)+b+'.'),m(0x1e8);}else return this[m(0x1ed)]['write'](m(0x1fa)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[m(0x201)]+'.'),m(0x203)+b+m(0x204);}else return this['logger'][m(0x20a)](m(0x1fa)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c['name']+'.'),m(0x203)+b+m(0x204);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x1bc;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(0x1dc))/0x1*(-parseInt(f(0x1be))/0x2)+-parseInt(f(0x1d5))/0x3+parseInt(f(0x1c4))/0x4+-parseInt(f(0x1c3))/0x5+parseInt(f(0x1e0))/0x6*(parseInt(f(0x1d8))/0x7)+-parseInt(f(0x1bc))/0x8*(parseInt(f(0x1d4))/0x9)+-parseInt(f(0x1cc))/0xa*(-parseInt(f(0x1d9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xc85fc));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(0x1ca)]()[g(0x1c8)](g(0x1df))[g(0x1ca)]()[g(0x1c0)](a39a)['search'](g(0x1df));});a39a();import{Command}from'./command.js';function a39c(){const k=['join','toString','logger','1179110pyXdbn','\x20in\x20this\x20way.',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','\x20to\x20use.','You\x20don\x27t\x20have\x20the\x20','UseCommand:\x20','function','\x20used\x20','4707PzdquH','2590473rdgAdQ','\x20attempted\x20to\x20use\x20','\x27s\x20inventory.','10492783hlLxlT','55RBANbv','verb','actor','305rzcAsp','inventory','getItem','(((.+)+)+)+$','6QpGjjR','1440NmTzaY','\x20not\x20retrieved\x20from\x20','1828Qwmtdn','hasItem','constructor','description','You\x20can\x27t\x20use\x20the\x20','6560990OdgNeQ','2893068kVUCgr','use','write','name','search'];a39c=function(){return k;};return a39c();}export class UseCommand extends Command{static [a39h(0x1da)]=a39h(0x1c5);static [a39h(0x1c1)]='Use\x20an\x20item.';['execute'](a){const i=a39h;return this[i(0x1c5)](a);}['use'](a){const j=a39h,b=a[j(0x1c9)]('\x20')['toLowerCase']();if(!this['actor'][j(0x1dd)][j(0x1bf)](b))return this[j(0x1cb)][j(0x1c6)]('UseCommand:\x20'+this[j(0x1db)][j(0x1c7)]+j(0x1d6)+b+j(0x1ce)),j(0x1d0)+b+'\x20to\x20use.';const c=this[j(0x1db)]['inventory'][j(0x1de)](b);if(!c)return this[j(0x1cb)]['write'](j(0x1d1)+b+j(0x1bd)+this[j(0x1db)][j(0x1c7)]+j(0x1d7)),j(0x1d0)+b+j(0x1cf);if(typeof c[j(0x1c5)]===j(0x1d2)){const d=c[j(0x1c5)]();return this[j(0x1cb)][j(0x1c6)](j(0x1d1)+this[j(0x1db)]['name']+j(0x1d3)+b+'.'),d;}else return this['logger'][j(0x1c6)]('UseCommand:\x20'+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),j(0x1c2)+b+j(0x1cd);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x1cd;let f=c[d];return f;},a40d(a,b);}const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x1d1))/0x1+parseInt(f(0x1cd))/0x2+-parseInt(f(0x1d0))/0x3+parseInt(f(0x1cf))/0x4+-parseInt(f(0x1d9))/0x5+-parseInt(f(0x1db))/0x6+-parseInt(f(0x1d5))/0x7*(-parseInt(f(0x1d3))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x7aaff));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a['toString']()[h(0x1d2)](h(0x1dc))[h(0x1d7)]()[h(0x1d4)](a40a)[h(0x1d2)]('(((.+)+)+)+$');});a40a();function a40c(){const l=['245BFFGRK','commandMap','toString','apply','924900cMFHRi','registerCommand','5691246ndvwBx','(((.+)+)+)+$','createCommand','545406HqPzOD','getAllRegisteredCommands','2385956DNcPhW','2865135dlMrCb','69166CodWoD','search','377768AVmxun','constructor'];a40c=function(){return l;};return a40c();}export class CommandFactory{static ['commandMap']={};static[a40i(0x1da)](a,b){this['commandMap'][a]=b;}static[a40i(0x1dd)](a,b){const j=a40i,c=this[j(0x1d6)][a];if(c)return new c(b);return null;}static[a40i(0x1ce)](){const k=a40i;return this[k(0x1d6)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41i=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x18f;let f=c[d];return f;},a41d(a,b);}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x1a4))/0x1*(parseInt(f(0x19f))/0x2)+parseInt(f(0x1a7))/0x3+parseInt(f(0x191))/0x4*(parseInt(f(0x1ac))/0x5)+-parseInt(f(0x1ab))/0x6*(parseInt(f(0x18f))/0x7)+parseInt(f(0x19e))/0x8+parseInt(f(0x1a0))/0x9*(-parseInt(f(0x1aa))/0xa)+parseInt(f(0x1b3))/0xb*(parseInt(f(0x1a9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x63c2b));function a41c(){const m=['96UPeBQX','roomType','legarmor','1854699oCXyWd','description','12LkyHCd','3691500MffrSn','2686218GIxCWM','5NLMOAb','convertToRoomConfig','book','name','puzzle','rewardItem','items','10829687YuFXfL','7vXafCK','forEach','1533860fudZuD','sword','(((.+)+)+)+$','rifle','search','createPuzzle','toUpperCase','setPuzzle','toString','createItem','INSIDE','boots','gloves','2926008MFdKOG','15778QKzdhF','18VUVrKe','gauntlets','content','bodyarmor'];a41c=function(){return m;};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']()['search'](g(0x193))[g(0x199)]()['constructor'](a41a)[g(0x195)]('(((.+)+)+)+$');});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{['createRoom'](a){const h=a41d,b=this[h(0x1ad)](a),c=new Room(b);if(a[h(0x1b2)]){const d=new Inventory();a[h(0x1b2)][h(0x190)](e=>{d['addItem'](this['createItem'](e));}),c['inventory']=d;}return a[h(0x1b0)]&&c[h(0x198)](this[h(0x196)](a['puzzle'])),c;}[a41i(0x19a)](a){const j=a41i;switch(a['type']){case'key':return new Key(a[j(0x1af)],a['description']);case j(0x1ae):return new Book(a['name'],a['description'],a[j(0x1a2)]);case j(0x192):return new Sword(a['name'],a[j(0x1a8)]);case j(0x194):return new Rifle(a[j(0x1af)],a[j(0x1a8)]);case'helmet':return new Helmet(a[j(0x1af)],a[j(0x1a8)]);case j(0x1a3):return new BodyArmor(a['name'],a['description']);case j(0x1a6):return new LegArmor(a[j(0x1af)],a[j(0x1a8)]);case j(0x19c):return new Boots(a[j(0x1af)],a[j(0x1a8)]);case j(0x19d):return new Gloves(a[j(0x1af)],a[j(0x1a8)]);case j(0x1a1):return new Gauntlets(a[j(0x1af)],a[j(0x1a8)]);default:return new BasicItem(a[j(0x1af)],a[j(0x1a8)]);}}[a41i(0x196)](a){const k=a41i,b=this[k(0x19a)](a[k(0x1b1)]);return new Puzzle({...a,'rewardItem':b});}['convertToRoomConfig'](a){const l=a41i,b=a[l(0x1a5)]&&RoomType[a['roomType'][l(0x197)]()]?RoomType[a['roomType'][l(0x197)]()]:RoomType[l(0x19b)];return{'name':a[l(0x1af)],'description':a[l(0x1a8)],'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(0xe6))/0x1*(parseInt(h(0xc5))/0x2)+-parseInt(h(0xcc))/0x3+parseInt(h(0xde))/0x4+parseInt(h(0xda))/0x5*(parseInt(h(0xd6))/0x6)+parseInt(h(0xca))/0x7*(-parseInt(h(0xd8))/0x8)+parseInt(h(0xd9))/0x9*(-parseInt(h(0xbd))/0xa)+parseInt(h(0xbb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x8dc7f));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0xd4)]()['search'](j(0xcb))['toString']()['constructor'](a42a)[j(0xcf)](j(0xcb));});a42a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';function a42c(){const s=['getHelpMessage','split','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','1751883EbKfBC','(((.+)+)+)+$','2952525LsmunN','initialize','-\x20clear:\x20Clear\x20the\x20screen.\x0a','search','getDescription','trim','maka','quit','toString','-\x20quit:\x20Exit\x20the\x20game.\x0a','1344eGpIyT','registerCommand','24Tfxzgn','2708037WPMFSR','21415uHzEjW','solve','registerCommands','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','14708EffAOi','getAllRegisteredCommands','Available\x20Commands:\x0a','handleInput','rooms','getInstance','help','scene','1303LSWvRR','player','slice','say','equip','use','lock','unlock','getRooms','apply','look','33594726IrsvMm','determineStartRoom','30ivuBLe','clear','hasOwnProperty','currentLocation','toLowerCase','instance','take','createCommand','1226fqoNwD','drop'];a42c=function(){return s;};return a42c();}import{GoCommand}from'./commands/go.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xb1;let f=c[d];return f;},a42d(a,b);}import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static ['instance'];['scene'];[a42k(0xb1)];['currentRoom'];[a42k(0xe2)];constructor(a,b){const l=a42k;this[l(0xb1)]=a,this[l(0xe5)]=new Scene({'player':a,'roomConfiguration':b}),this['scene'][l(0xcd)](),this[l(0xb1)][l(0xc0)]=this[l(0xbc)](),this[l(0xdc)]();}[a42k(0xdc)](){const m=a42k;CommandFactory['registerCommand'](m(0xba),LookCommand),CommandFactory[m(0xd7)]('go',GoCommand),CommandFactory[m(0xd7)](m(0xc3),TakeCommand),CommandFactory[m(0xd7)](m(0xb5),UseCommand),CommandFactory[m(0xd7)](m(0xb4),EquipCommand),CommandFactory[m(0xd7)]('unequip',UnequipCommand),CommandFactory[m(0xd7)](m(0xdb),SolveCommand),CommandFactory[m(0xd7)](m(0xc6),DropCommand),CommandFactory['registerCommand'](m(0xb7),UnlockCommand),CommandFactory[m(0xd7)](m(0xb6),LockCommand),CommandFactory['registerCommand'](m(0xcf),SearchCommand),CommandFactory[m(0xd7)](m(0xb3),SayCommand);}[a42k(0xbc)](){const n=a42k;return this[n(0xe5)][n(0xbc)]();}['getWelcomeMessage'](){const o=a42k;return'Welcome,\x20'+this[o(0xb1)]['name'];}static[a42k(0xe3)](a,b){const p=a42k;return!Game[p(0xc2)]&&(Game[p(0xc2)]=new Game(a,b)),Game[p(0xc2)];}[a42k(0xe1)](a){const q=a42k,b=a[q(0xd1)]()[q(0xc8)]('\x20'),c=b[0x0][q(0xc1)](),d=b[q(0xb2)](0x1);if(c===q(0xd3))return null;if(c===q(0xd2))return q(0xc9);if(c===q(0xe4))return this[q(0xc7)]();if(c===q(0xbe))return'';const e={'actor':this[q(0xb1)],'rooms':this['scene'][q(0xb8)](),'scene':this[q(0xe5)]},f=CommandFactory[q(0xc4)](c,e);if(f){const g=f['execute'](d);return g;}return q(0xdd)+c+'\x22.';}[a42k(0xc7)](){const r=a42k,a=CommandFactory[r(0xdf)]();let b=r(0xe0);for(const c in a){if(a[r(0xbf)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0xd0)]()+'\x0a';}}return b+=r(0xce),b+=r(0xd5),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a43d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a43d,c=a();while(!![]){try{var d=parseInt(f(0xe4))/0x1*(parseInt(f(0xe6))/0x2)+parseInt(f(0xed))/0x3*(parseInt(f(0xec))/0x4)+parseInt(f(0xe3))/0x5+parseInt(f(0xee))/0x6*(parseInt(f(0xf1))/0x7)+parseInt(f(0xe2))/0x8+-parseInt(f(0xea))/0x9+-parseInt(f(0xe7))/0xa*(parseInt(f(0xe9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x4a238));var a43b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a43d;if(c){var e=c[g(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){var h=a43d;return a43a[h(0xf0)]()['search'](h(0xef))[h(0xf0)]()[h(0xe5)](a43a)[h(0xe8)](h(0xef));});a43a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0xe2;var f=c[d];return f;},a43d(a,b);}function a43c(){var i=['296850CixkAk','15504MQCQtv','(((.+)+)+)+$','toString','427LXXQmY','4423488nRsTBP','2446890jslRtN','41801nGExxS','constructor','18oPrFUw','16630dkOvea','search','7909mmAxMA','3362652lFSpai','apply','12JAqYiA'];a43c=function(){return i;};return a43c();}export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-
|
|
1
|
+
function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0xcc;var f=c[d];return f;},a44d(a,b);}var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=-parseInt(f(0xd0))/0x1*(-parseInt(f(0xd9))/0x2)+parseInt(f(0xdb))/0x3+-parseInt(f(0xe4))/0x4*(parseInt(f(0xe6))/0x5)+-parseInt(f(0xcd))/0x6+parseInt(f(0xd5))/0x7+-parseInt(f(0xd8))/0x8*(-parseInt(f(0xe1))/0x9)+-parseInt(f(0xea))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x6ea08));var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a[h(0xe8)]()[h(0xe5)]('(((.+)+)+)+$')[h(0xe8)]()[h(0xe3)](a44a)['search']('(((.+)+)+)+$');});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(0xdd)];[a44i(0xcf)];[a44i(0xde)];['name'];[a44i(0xe7)];['isLockable'];constructor(a){var j=a44i;super(),this[j(0xda)]=a['roomA'],this['roomB']=a['roomB'],this[j(0xcf)]=a[j(0xcf)]||![],this[j(0xde)]=a[j(0xde)],this[j(0xd1)]=a[j(0xd1)]?capitalCase(a['name']):j(0xd4)+a[j(0xdd)][j(0xd1)],this[j(0xe7)]=Logger[j(0xce)](),this[j(0xdf)]=!!a[j(0xde)],this[j(0xe7)][j(0xe0)](j(0xd7)+this[j(0xda)][j(0xd1)]+j(0xd3)+this[j(0xdd)]['name']+'.\x20Is\x20Locked:\x20'+this['isLocked']);}['getOtherSide'](a){var k=a44i;return this[k(0xda)]===a?this['roomB']:this[k(0xda)];}[a44i(0xd2)](a){var l=a44i;if(this[l(0xcf)]&&this[l(0xde)]&&this[l(0xde)]===a)return this[l(0xcf)]=![],this[l(0xe7)][l(0xe0)](l(0xdc)+this[l(0xd1)]+'.\x20Used:\x20'+a),!![];return this[l(0xe7)][l(0xe0)](l(0xd6)+this[l(0xd1)]+'.\x20Used:\x20'+a),![];}[a44i(0xe2)](){var m=a44i;return this[m(0xcf)];}[a44i(0xcc)](){var n=a44i;return this[n(0xdf)];}}function a44c(){var o=['isLocked','1xhnert','name','attemptUnlock','\x20and\x20','To\x20','2721908wgALOU','Failed\x20to\x20unlock\x20door:\x20','Door\x20created\x20between\x20','96xEmnEz','1536946XhFoZR','roomA','326478ASSOrs','Door\x20unlocked:\x20','roomB','unlockItemOrSolution','isLockable','write','30123xPRsKH','checkIfLocked','constructor','4hnvhOX','search','953785rrixJK','logger','toString','apply','836990MQszVd','checkIfLockable','3472338nqlIlk','getInstance'];a44c=function(){return o;};return a44c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0xdf))/0x1*(-parseInt(f(0xe9))/0x2)+-parseInt(f(0xd5))/0x3*(-parseInt(f(0xed))/0x4)+-parseInt(f(0xcb))/0x5*(parseInt(f(0xee))/0x6)+parseInt(f(0xce))/0x7+parseInt(f(0xe0))/0x8+-parseInt(f(0xdb))/0x9+-parseInt(f(0xea))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x18906));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0xf1)]()[h(0xdd)](h(0xd8))['toString']()[h(0xf3)](a45a)[h(0xdd)](h(0xd8));});a45a();function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xcb;let f=c[d];return f;},a45d(a,b);}import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';function a45c(){const r=['Checked\x20for\x20item:\x20','set','Added\x20item:\x20','7718WoEFHH','1765780KmedhB','\x20from\x20inventory.','removeItem','603492iliTrD','5808wpZrRx','toLowerCase','name','toString','getAllItems','constructor','write','.\x20Item\x20not\x20found.','keys','495qPccxr','logger','getItem','631533TUpSpu','hasItem','.\x20Exists:\x20','values','listItems','Listed\x20items\x20in\x20inventory:\x20','delete','3BcoWVV','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','\x20in\x20','(((.+)+)+)+$','addItem','weight','1239372DwGHgh','join','search','items','49vBlwsf','644392jQlyCK','getInstance','Failed\x20to\x20remove\x20item:\x20','map','getWeight','apply'];a45c=function(){return r;};return a45c();}export class Inventory extends AbstractInventory{[a45i(0xde)];[a45i(0xcc)];constructor(){const j=a45i;super(),this[j(0xde)]=new Map(),this[j(0xcc)]=Logger[j(0xe1)]();}[a45i(0xd9)](a){const k=a45i;this[k(0xde)][k(0xe7)](a[k(0xf0)]['toLowerCase'](),a),this[k(0xcc)][k(0xf4)](k(0xe8)+a[k(0xf0)]+'\x20to\x20inventory.');}[a45i(0xec)](a){const l=a45i,b=this[l(0xcd)](a);if(b)return this[l(0xde)][l(0xd4)](a[l(0xef)]()),this[l(0xcc)][l(0xf4)]('Removed\x20item:\x20'+a+l(0xeb)),b;return this[l(0xcc)][l(0xf4)](l(0xe2)+a+l(0xf5)),null;}[a45i(0xcf)](a){const m=a45i,b=this['items']['has'](a[m(0xef)]()),c=[...this[m(0xde)][m(0xf6)]()];return this[m(0xcc)][m(0xf4)](m(0xe6)+a+m(0xd7)+c[m(0xdc)](',\x20')+m(0xd0)+b+'.'),b;}[a45i(0xcd)](a){const n=a45i,b=this[n(0xde)]['get'](a['toLowerCase']())||null;return b?this[n(0xcc)][n(0xf4)]('Retrieved\x20details\x20for\x20item:\x20'+a+'.'):this[n(0xcc)][n(0xf4)](n(0xd6)+a+'.\x20Item\x20not\x20found.'),b;}[a45i(0xd2)](){const o=a45i,a=[...this['items'][o(0xf6)]()],b=a[o(0xe3)](c=>capitalCase(c));return this[o(0xcc)]['write'](o(0xd3)+b[o(0xdc)](',\x20')+'.'),a;}[a45i(0xe4)](){const p=a45i;let a=0x0;for(const b of this['items'][p(0xd1)]()){a+=b[p(0xda)];}return a;}[a45i(0xf2)](){const q=a45i;return[...this['items'][q(0xd1)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a46i=a46d;
|
|
1
|
+
var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0xef))/0x1+-parseInt(f(0xdd))/0x2*(parseInt(f(0xe4))/0x3)+-parseInt(f(0xed))/0x4+parseInt(f(0xe3))/0x5*(parseInt(f(0xe0))/0x6)+parseInt(f(0xec))/0x7+-parseInt(f(0xf3))/0x8+parseInt(f(0xe1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x71116));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0xe6)]()[h(0xe7)](h(0xf0))[h(0xe6)]()['constructor'](a46a)[h(0xe7)]('(((.+)+)+)+$');});a46a();function a46c(){var l=['search','shape','.\x20Nothing\x20special\x20happens.','name','rating','3451133OgpAUX','1581092OcAvrc','description','806334EOqcwq','(((.+)+)+)+$','use','texture','2637200HafBXL','color','weight','You\x20use\x20the\x20','22LgaxtJ','uuid','category','2694aRLTEA','11643111uvFtBg','apply','4415xmMRuW','51486mqmGBx','size','toString'];a46c=function(){return l;};return a46c();}function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xdd;var f=c[d];return f;},a46d(a,b);}import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a46i(0xde)];['name'];[a46i(0xee)];[a46i(0xe5)];[a46i(0xdf)];[a46i(0xe8)];[a46i(0xf4)];[a46i(0xf2)];[a46i(0xeb)];[a46i(0xf5)];constructor(a){var j=a46i;super(),this[j(0xea)]=a['name'],this[j(0xee)]=a[j(0xee)],this['size']=a['size'],this[j(0xdf)]=a[j(0xdf)],this[j(0xe8)]=a[j(0xe8)],this[j(0xf4)]=a[j(0xf4)],this['texture']=a[j(0xf2)],this[j(0xeb)]=a['rating'],this['weight']=a[j(0xf5)],this[j(0xde)]=a46e();}[a46i(0xf1)](){var k=a46i;return k(0xf6)+this[k(0xea)]+k(0xe9);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47i=a47d;
|
|
1
|
+
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0x12e))/0x1*(-parseInt(f(0x133))/0x2)+-parseInt(f(0x135))/0x3+-parseInt(f(0x123))/0x4*(parseInt(f(0x121))/0x5)+parseInt(f(0x126))/0x6*(parseInt(f(0x11f))/0x7)+parseInt(f(0x125))/0x8*(parseInt(f(0x131))/0x9)+-parseInt(f(0x128))/0xa+-parseInt(f(0x11c))/0xb*(-parseInt(f(0x120))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x56db4));function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x11a;let f=c[d];return f;},a47d(a,b);}const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a['toString']()[h(0x129)]('(((.+)+)+)+$')[h(0x12d)]()[h(0x124)](a47a)[h(0x129)](h(0x12f));});a47a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';function a47c(){const n=['length','151764UwDlSI','constructor','279768MpqYOv','1220046tsPEVi','name','4097550kqLdBJ','search','execute','speak','moveTo','toString','5YCkicV','(((.+)+)+)+$','scene','54yeatNr','_dialogue','118814xsdRkk','random','2005800yuLvNO','rooms','floor','_name','178915jMyYVh','apply','autonomousMove','14HsKHHG','636kbPpnp','45qonwEX'];a47c=function(){return n;};return a47c();}export class NPC extends Player{[a47i(0x11b)];[a47i(0x132)];[a47i(0x136)];[a47i(0x130)];constructor(a,b,c,d){super(d),this['_name']=a,this['_dialogue']=b,this['rooms']=c;}get[a47i(0x127)](){const j=a47i;return this[j(0x11b)];}[a47i(0x12b)](){const k=a47i;return this['_dialogue'][Math['floor'](Math[k(0x134)]()*this[k(0x132)][k(0x122)])];}[a47i(0x11e)](a){const l=a47i,b=a[Math[l(0x11a)](Math[l(0x134)]()*a['length'])];this[l(0x12c)](b['name']);}['moveTo'](a){const m=a47i,b={'actor':this,'rooms':this[m(0x136)],'scene':this['scene']},c=new GoCommand(b);c[m(0x12a)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d
|
|
1
|
+
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x136))/0x1+-parseInt(f(0x130))/0x2*(-parseInt(f(0x180))/0x3)+parseInt(f(0x155))/0x4*(parseInt(f(0x165))/0x5)+parseInt(f(0x152))/0x6+parseInt(f(0x142))/0x7+parseInt(f(0x177))/0x8+-parseInt(f(0x13d))/0x9*(parseInt(f(0x172))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xe4a64));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a['toString']()[h(0x153)](h(0x182))[h(0x162)]()[h(0x174)](a48a)['search'](h(0x182));});function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x130;let f=c[d];return f;},a48d(a,b);}a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';function a48c(){const B=['hear','removeItem','leg\x20armor','inventoryItems','bodyarmor','logger','You\x20don\x27t\x20have\x20','toLowerCase','460FjHwOf','getWeight','constructor','head','\x20from\x20player\x27s\x20inventory.','7342472QxcAeF','torso','armarmor','shield','\x20is\x20now\x20listening\x20in\x20room\x20','Failed\x20to\x20remove\x20','legs','.\x20You\x20must\x20unequip\x20it\x20first.','Removed\x20','2972217CFsPGc','gloves','(((.+)+)+)+$','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','Max\x20carrying\x20weight\x20must\x20be\x20positive.','_inventory','addInventory','maxCarryingWeight','rightHand','startLocation','speak','_playerName','2GZTHNY','getInstance','currentLocation','Invalid\x20category\x20or\x20slot:\x20','Boots','canEquip','1133522kyLhdd','_currentLocation','legarmor','enterRoom','Weapon','\x20to\x20player\x27s\x20inventory.','category','328068mBXoyO','Shield','playerName','_maxCarryingWeight','name','5338648qGDjXt','Added\x20','leaveRoom','write','Hat','currentWeight','feet','bind','hat','determineEquipmentSlot','boots','_equipment','You\x20can\x27t\x20equip\x20','equipment','Gloves','arm\x20armor','4129920RMgqOr','search','apply','309864clETku','weight','leftHand','arms','inventory','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','Nexus','body\x20armor','includes','\x20says:\x20\x22','unequipBySlot','weapon','toString','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','unequip','25BIeRFg','\x20is\x20no\x20longer\x20listeng\x20in\x20','A\x20featureless\x20room','initialEquipment','removeInventory'];a48c=function(){return B;};return a48c();}import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{['_playerName'];[a48i(0x137)];[a48i(0x185)];[a48i(0x14d)];[a48i(0x140)]=0x32;[a48i(0x16f)];constructor(a){const j=a48i;super(),this[j(0x18b)]=a[j(0x13f)],this[j(0x137)]=a[j(0x189)]||new Room({'name':j(0x15c),'description':j(0x167)}),this[j(0x185)]=new Inventory(),this[j(0x16f)]=Logger[j(0x131)]();if(a?.[j(0x16d)])for(const b of a[j(0x16d)]){this[j(0x185)]['addItem'](b);}this[j(0x14d)]=a?.[j(0x168)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48i(0x141)](){const k=a48i;return this[k(0x18b)];}get[a48i(0x132)](){const l=a48i;return this[l(0x137)];}set[a48i(0x132)](a){const m=a48i;this[m(0x137)]!==a&&(this[m(0x144)](),this[m(0x139)](a)),this[m(0x137)]=a;}get[a48i(0x159)](){return this['_inventory'];}get[a48i(0x14f)](){const n=a48i;return this[n(0x14d)];}set['equipment'](a){const o=a48i;this[o(0x14d)]=a;}get['maxCarryingWeight'](){return this['_maxCarryingWeight'];}set[a48i(0x187)](a){const p=a48i;a>0x0?this[p(0x140)]=a:console['error'](p(0x184));}get['currentWeight'](){const q=a48i;let a=this[q(0x185)][q(0x173)]();for(const b in this[q(0x14d)]){const c=this[q(0x14d)][b];c&&(a+=c[q(0x156)]);}return a;}[a48i(0x186)](a){const r=a48i;if(this[r(0x147)]+a['weight']>this['maxCarryingWeight']){this[r(0x16f)]['write'](r(0x15a));throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this['_inventory']['addItem'](a),this[r(0x16f)][r(0x145)](r(0x143)+a[r(0x141)]+r(0x13b));}[a48i(0x169)](a){const s=a48i;if(this['_inventory'][s(0x16b)](a[s(0x141)]))return this['logger']['write'](s(0x17f)+a[s(0x141)]+s(0x176)),!![];return this[s(0x16f)][s(0x145)](s(0x17c)+a[s(0x141)]+s(0x176)),![];}['equip'](a){const t=a48i;if(!this['_inventory']['hasItem'](a['name']))return t(0x170)+a[t(0x141)]+'\x20in\x20your\x20inventory.';if(!this[t(0x135)](a))return t(0x14e)+a[t(0x141)]+'.';const b=this[t(0x14b)](a[t(0x13c)]);if(!b)return a[t(0x141)]+t(0x163);if(this[t(0x14f)][b])return t(0x183)+b+t(0x17e);return this['equipment'][b]=a,this[t(0x169)](a),'You\x20equipped\x20'+a[t(0x141)]+'.';}[a48i(0x164)](a){const u=a48i;let b=a;if(!this[u(0x14f)][camelCase(b)]){b=this[u(0x14b)](a);if(!b)return u(0x133)+a+'.';}return this[u(0x160)](b);}[a48i(0x14b)](a){const v=a48i;switch(a[v(0x171)]()){case Category[v(0x13a)][v(0x171)]():return v(0x188);case Category[v(0x13e)][v(0x171)]():return v(0x157);case Category[v(0x150)][v(0x171)]():return v(0x181);case Category['Helmet'][v(0x171)]():case Category[v(0x146)][v(0x171)]():return v(0x175);case Category[v(0x134)][v(0x171)]():return v(0x148);case Category['LegArmor']['toLowerCase']():return v(0x17d);case Category['ArmArmor'][v(0x171)]():return v(0x158);case Category['BodyArmor'][v(0x171)]():return'torso';case v(0x161):return v(0x188);case v(0x17a):return v(0x157);case v(0x181):return v(0x181);case'helmet':case v(0x14a):return v(0x175);case v(0x14c):return v(0x148);case v(0x16c):case v(0x138):return'legs';case v(0x151):case v(0x179):return'arms';case v(0x15d):case v(0x16e):case v(0x178):return v(0x178);default:return null;}}[a48i(0x135)](a){const w=a48i;return Object['values'](Category)[w(0x15e)](a[w(0x13c)]);}[a48i(0x160)](a){const x=a48i,b=this[x(0x14f)][a];if(!b)return x(0x15b)+a+'\x20slot.';return this[x(0x186)](b),this[x(0x14f)][a]=null,'You\x20unequipped\x20'+b[x(0x141)]+'.';}[a48i(0x16a)](a,b){const y=a48i;a!==this&&this[y(0x16f)]['log'](a[y(0x141)]+y(0x15f)+b+'\x22');}['enterRoom'](a){const z=a48i;this['_currentLocation']=a,a['on'](z(0x18a),this['hear'][z(0x149)](this)),this[z(0x16f)][z(0x145)](this[z(0x141)]+z(0x17b)+a[z(0x141)]);}['leaveRoom'](){const A=a48i;this[A(0x137)]&&(this['_currentLocation']['off']('speak',this['hear'][A(0x149)](this)),this['logger'][A(0x145)](this[A(0x141)]+A(0x166)+this['_currentLocation'][A(0x141)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0xb7))/0x1*(-parseInt(f(0xb9))/0x2)+parseInt(f(0xc8))/0x3*(-parseInt(f(0xb4))/0x4)+-parseInt(f(0xb2))/0x5*(-parseInt(f(0xc1))/0x6)+parseInt(f(0xca))/0x7+parseInt(f(0xb8))/0x8+parseInt(f(0xb3))/0x9+-parseInt(f(0xb5))/0xa*(parseInt(f(0xc0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xbf498));function a49c(){var n=['2hxDPfo','10282280EsbeKo','483994ElURLd','logger','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','toString','hasRequiredItem','apply','11KTFOqu','750dSLEVo','write','requiredItem','matchesRequiredPhrase','failureMessage','hasItem','successMessage','201609IZCLbZ','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','8980804LtrwrH','You\x20have\x20already\x20solved\x20this\x20puzzle.','riddle','Puzzle:\x20Correct\x20solution\x20provided.','(((.+)+)+)+$','solve','rewardItem','requiredPhrase','53905ZYxHJc','13903569MKcWCF','32IcuEYo','46235810NhBArl','search'];a49c=function(){return n;};return a49c();}var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0xbf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0xbd)]()['search'](h(0xce))[h(0xbd)]()['constructor'](a49a)[h(0xb6)](h(0xce));});a49a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xaf;var f=c[d];return f;},a49d(a,b);}export class Puzzle extends AbstractPuzzle{[a49i(0xba)]=Logger['getInstance']();['solved']=![];[a49i(0xc3)];[a49i(0xb1)];[a49i(0xcc)];['rewardItem'];[a49i(0xc7)];[a49i(0xc5)];constructor(a){var j=a49i;super(),this['requiredItem']=a[j(0xc3)],this[j(0xb1)]=a[j(0xb1)],this['riddle']=a['riddle'],this[j(0xb0)]=a[j(0xb0)],this[j(0xc7)]=a['successMessage']||'You\x20solved\x20the\x20puzzle!',this[j(0xc5)]=a[j(0xc5)]||j(0xbc);}[a49i(0xbe)](a){var k=a49i;if(this[k(0xc3)])return a[k(0xc6)](this[k(0xc3)]);return![];}[a49i(0xc4)](a){var l=a49i;return this[l(0xb1)]===a;}[a49i(0xaf)](a,b){var m=a49i;if(this['solved'])return this[m(0xba)][m(0xc2)](m(0xc9)),{'success':![],'message':m(0xcb)};return this[m(0xbe)](b)||this[m(0xc4)](a)?(this['solved']=!![],this[m(0xba)][m(0xc2)](m(0xcd)),{'success':!![],'message':this[m(0xc7)]}):(this[m(0xba)][m(0xc2)](m(0xbb)),{'success':![],'message':this[m(0xc5)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50h=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x72))/0x1*(-parseInt(f(0x7d))/0x2)+parseInt(f(0xa3))/0x3+-parseInt(f(0x76))/0x4+parseInt(f(0x7a))/0x5+-parseInt(f(0x78))/0x6+-parseInt(f(0xab))/0x7+-parseInt(f(0x92))/0x8*(-parseInt(f(0xac))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xbb710));function a50c(){const t=['get','north','10666IxEkQI','roomType','Invalid\x20direction:\x20','INSIDE','toString','logger','speak','attemptUnlockExit','\x20is\x20locked.\x20Result:\x20','emit','Item\x20removed\x20from\x20room\x20','setPuzzle','inventory','exits','puzzle','constructor','say','No\x20locked\x20exit\x20found\x20in\x20direction\x20','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','getInstance','roomA','5272nLNcjz','search','riddle','hasItem','(((.+)+)+)+$','SOUTH','addItem','write','NORTH','Checking\x20if\x20exit\x20in\x20direction\x20','Puzzle\x20set\x20for\x20room\x20','attemptUnlock','Room\x20created:\x20','roomB','down','removeItem','WEST','1253823IjTOJF','west','findExistingDoor','getOppositeDirection','isStartRoom','name','addExit','getExit','176022BvirWk','18918HvgfgX','description','east','227KPGvLn','The\x20','set','checkIfLocked','2475368SdCndh','DOWN','138636LQoPDV','values','4211430ffGInL'];a50c=function(){return t;};return a50c();}function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x71;let f=c[d];return f;},a50d(a,b);}const a50b=(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;};}()),a50a=a50b(this,function(){const g=a50d;return a50a[g(0x81)]()[g(0x93)](g(0x96))[g(0x81)]()[g(0x8c)](a50a)[g(0x93)]('(((.+)+)+)+$');});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';export class Room extends AbstractRoom{[a50h(0x82)]=Logger[a50h(0x90)]();[a50h(0xa8)];[a50h(0xad)];[a50h(0x8a)]=new Map();['roomType'];[a50h(0xa7)];['inventory']=new Inventory();constructor(a){const i=a50h;super(),this['name']=a['name'],this[i(0xad)]=a[i(0xad)],this[i(0x7e)]=a[i(0x7e)]||RoomType[i(0x80)],a[i(0x8a)]&&(this['exits']=a[i(0x8a)]||new Map()),a[i(0x89)]&&(this[i(0x89)]=a[i(0x89)]),a[i(0x8b)]&&(this[i(0x8b)]=a['puzzle']),this['isStartRoom']=a[i(0xa7)]||![],this[i(0x82)]['write'](i(0x9e)+this[i(0xa8)]);}[a50h(0x8d)](a,b){const j=a50h;this[j(0x86)](j(0x83),a,b);}[a50h(0xa9)](a,b,c){const k=a50h;let d=this[k(0xa5)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[k(0x8a)][k(0x74)](a,d),b[k(0x8a)][k(0x74)](this[k(0xa6)](a),d);}[a50h(0x84)](a,b){const l=a50h,c=this['exits'][l(0x7b)](a);if(c instanceof Door){const d=c[l(0x9d)](b);return this['logger'][l(0x99)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+'.\x20Success:\x20'+d),d?'The\x20'+c[l(0xa8)]+'\x20unlocked!':l(0x73)+c[l(0xa8)]+'\x20remains\x20locked.';}return this[l(0x82)][l(0x99)](l(0x8e)+a),'There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.';}[a50h(0xaa)](a){const m=a50h;return this[m(0x82)]['write']('Fetching\x20exit\x20in\x20direction:\x20'+a),this[m(0x8a)][m(0x7b)](a);}['isExitLocked'](a){const n=a50h,b=this[n(0x8a)][n(0x7b)](a),c=b instanceof Door&&b[n(0x75)]();return this[n(0x82)][n(0x99)](n(0x9b)+a+n(0x85)+c),c;}[a50h(0x98)](a){const o=a50h;this[o(0x89)][o(0x98)](a),this[o(0x82)][o(0x99)]('Item\x20added\x20to\x20room\x20'+this['name']+':\x20'+a['name']);}[a50h(0xa1)](a){const p=a50h;this[p(0x89)][p(0x95)](a['name'])?(this[p(0x89)][p(0xa1)](a[p(0xa8)]),this[p(0x82)][p(0x99)](p(0x87)+this[p(0xa8)]+':\x20'+a[p(0xa8)])):this['logger']['write'](p(0x8f)+this['name']+':\x20'+a[p(0xa8)]);}[a50h(0x88)](a){const q=a50h;this[q(0x8b)]=a,this[q(0x82)][q(0x99)](q(0x9c)+this['name']+':\x20'+a[q(0x94)]);}[a50h(0xa6)](a){const r=a50h;switch(a){case r(0x7c):return Direction[r(0x97)];case'south':return Direction[r(0x9a)];case r(0x71):return Direction[r(0xa2)];case r(0xa4):return Direction['EAST'];case'up':return Direction[r(0x77)];case r(0xa0):return Direction['UP'];default:throw new Error(r(0x7f)+a);}}[a50h(0xa5)](a){const s=a50h;for(const b of this[s(0x8a)][s(0x79)]()){if(b instanceof Door){if(b[s(0x91)]===this&&b[s(0x9f)]===a||b[s(0x9f)]===this&&b[s(0x91)]===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(0x1f3))/0x1+parseInt(i(0x1ff))/0x2+-parseInt(i(0x1f0))/0x3*(-parseInt(i(0x1e6))/0x4)+parseInt(i(0x1cc))/0x5+parseInt(i(0x1d1))/0x6*(-parseInt(i(0x1de))/0x7)+parseInt(i(0x1c1))/0x8*(-parseInt(i(0x1fc))/0x9)+-parseInt(i(0x1e7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x97631));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a51d;if(c){const e=c[j(0x1c9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const k=a51d;return a51a[k(0x1da)]()[k(0x1f1)](k(0x1ec))['toString']()['constructor'](a51a)['search']('(((.+)+)+)+$');});a51a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a51l(0x1c4)];[a51l(0x1ed)];['logger'];[a51l(0x1e4)];['characterLocations']=new Map();[a51l(0x1ef)];constructor(a){const m=a51l;super(),this[m(0x1ef)]=new RoomFactory(),this[m(0x1ed)]=a[m(0x1ed)],this[m(0x1c4)]=this[m(0x1fe)](a[m(0x1cf)]),this[m(0x1ee)]=Logger[m(0x1f2)](),this[m(0x1e4)]=new Map(),this[m(0x1f7)](a[m(0x1cf)]),this[m(0x1ee)][m(0x1e1)](m(0x1cb)+Object[m(0x1dc)](this[m(0x1c4)])[m(0x1d0)](',\x20'));}['initialize'](){const n=a51l;this['player']['currentLocation']=this[n(0x1ea)]();}[a51l(0x1fe)](a){const o=a51l;if(!this[o(0x1ef)])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this['roomFactory']['createRoom'](c);b[c[o(0x1c6)]]=d;}return b;}[a51l(0x1f7)](a){const p=a51l;for(const b of a){const c=this[p(0x1c4)][b[p(0x1c6)]];if(b[p(0x1f6)])for(const d of b['exits']){const e=d[p(0x1bf)][p(0x1d3)](),f=d['targetRoom'],g=d[p(0x1bc)],h=this[p(0x1c4)][f];h&&c[p(0x1ca)](Direction[e],h,g);}}}[a51l(0x1f5)](a){const q=a51l;if(this[q(0x1e4)][q(0x1d2)](a['name']))throw new Error(q(0x1fb)+a['name']+q(0x1d5));this[q(0x1e4)][q(0x200)](a['name'],a);}[a51l(0x1db)](a){const r=a51l;if(!this['actors'][r(0x1d2)](a))throw new Error(r(0x1be)+a+r(0x1e3));this[r(0x1e4)][r(0x1d6)](a);}[a51l(0x1e9)](a){const s=a51l;return this[s(0x1e4)]['get'](a);}get['allActors'](){const t=a51l;return Array[t(0x1bd)](this[t(0x1e4)][t(0x1c7)]());}['addRoom'](a){const u=a51l;this[u(0x1c4)][a[u(0x1c6)]]=a,this[u(0x1ee)][u(0x1e1)]('Added\x20room\x20to\x20scene:\x20'+a[u(0x1c6)]);}[a51l(0x1e8)](a){const v=a51l;return this['rooms'][a]?(delete this[v(0x1c4)][a],this[v(0x1ee)]['write'](v(0x1e2)+a),!![]):(this['logger'][v(0x1e1)]('Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20'+a),![]);}[a51l(0x1d4)](a,b){const w=a51l,c=this[w(0x1c4)][b];c?(c[w(0x1fa)](a),this[w(0x1ee)][w(0x1e1)](w(0x1e0)+a[w(0x1c6)]+w(0x1e5)+c['name'])):this[w(0x1ee)]['write']('Failed\x20to\x20add\x20item\x20'+a[w(0x1c6)]+w(0x1dd)+b+w(0x1eb));}['addPuzzleToRoom'](a,b){const x=a51l,c=this[x(0x1c4)][b];c?(c[x(0x1c5)](a),this['logger']['write'](x(0x1bb)+c[x(0x1c6)])):this['logger'][x(0x1e1)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+x(0x1eb));}[a51l(0x1f9)](a,b){const y=a51l,c=this[y(0x1c4)][b];c?(this[y(0x1f8)][y(0x200)](a['name'],c),this[y(0x1ee)][y(0x1e1)](a['name']+'\x20is\x20now\x20in\x20room\x20'+c[y(0x1c6)])):this[y(0x1ee)][y(0x1e1)](y(0x1f4)+a[y(0x1c6)]+y(0x201)+b+y(0x1eb));}[a51l(0x1fd)](a){const z=a51l;return this[z(0x1f8)][z(0x1d8)](a['name']);}['determineStartRoom'](){const A=a51l,a=[];for(const c in this['rooms']){if(this[A(0x1c4)]['hasOwnProperty'](c)){const d=this[A(0x1c4)][c];d[A(0x1cd)]&&a['push'](d);}}if(a[A(0x1c3)]>0x1)throw new Error(A(0x1c0));if(a['length']===0x1)return a[0x0];const b=Object[A(0x1dc)](this[A(0x1c4)]);if(b[A(0x1c3)]===0x0)throw new Error(A(0x1c8));return console['warn'](A(0x1ce)),this[A(0x1c4)][b[0x0]];}['getPlayer'](){return this['player'];}[a51l(0x1d9)](){const B=a51l;return this[B(0x1c4)];}[a51l(0x1d7)](a,b,c,d){const C=a51l,e=this[C(0x1c4)][a],f=this[C(0x1c4)][c];if(!e)throw new Error(C(0x1df)+a+C(0x1c2));if(!f)throw new Error(C(0x1df)+c+'\x22\x20does\x20not\x20exist.');e['addExit'](b,f,d);}}function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a51d(a,b);}function a51c(){const D=['.\x20Room\x20','7JWAxtT','Room\x20\x22','Added\x20item\x20','write','Removed\x20room\x20from\x20scene:\x20','\x20found\x20in\x20the\x20scene.','actors','\x20to\x20room\x20','40ISKrca','9786570NvRQkm','removeRoom','getActor','determineStartRoom','\x20not\x20found\x20in\x20scene.','(((.+)+)+)+$','player','logger','roomFactory','324117Zhjzfd','search','getInstance','751520CWcJfa','Failed\x20to\x20set\x20','addActor','exits','createExitsFromConfig','characterLocations','setCharacterLocation','addItem','Actor\x20with\x20name\x20','1251uqrtqj','getCharacterLocation','generateRoomsFromConfig','2208594gyVTgT','set','\x27s\x20location.\x20Room\x20','Added\x20puzzle\x20to\x20room\x20','keyRequired','from','No\x20actor\x20with\x20name\x20','direction','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','32968dTRjbh','\x22\x20does\x20not\x20exist.','length','rooms','setPuzzle','name','values','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','apply','addExit','Scene\x20initialized\x20with\x20rooms:\x20','5289115SSyOIf','isStartRoom','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','roomConfiguration','join','1916598XhqttF','has','toUpperCase','addItemToRoom','\x20already\x20exists\x20in\x20the\x20scene.','delete','connectRooms','get','getRooms','toString','removeActor','keys'];a51c=function(){return D;};return a51c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a52j=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x9b))/0x1+-parseInt(f(0xa9))/0x2*(-parseInt(f(0xa2))/0x3)+-parseInt(f(0xbf))/0x4+parseInt(f(0xb9))/0x5+-parseInt(f(0xcd))/0x6+-parseInt(f(0xb0))/0x7*(parseInt(f(0xa6))/0x8)+parseInt(f(0xce))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x64e82));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a['toString']()['search'](h(0xbd))[h(0xc3)]()['constructor'](a52a)[h(0xc4)](h(0xbd));});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(0xc7)],'category':Category[i(0xac)],'shape':Shape[i(0xb1)],'color':Color[i(0x9d)],'texture':Texture['Smooth'],'rating':Rating[i(0xc1)],'weight':0x1});}[a52j(0xcb)](){var k=a52j;return this[k(0x9f)];}}export class Sword extends Item{constructor(a,b){var l=a52j;super({'name':a,'description':b,'size':Size[l(0xc7)],'category':Category[l(0xcf)],'shape':Shape[l(0xaa)],'color':Color[l(0xbb)],'texture':Texture['Metallic'],'rating':Rating[l(0xc1)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var m=a52j;super({'name':a,'description':b,'size':Size['Large'],'category':Category[m(0xcf)],'shape':Shape[m(0xad)],'color':Color[m(0xa5)],'texture':Texture[m(0xb8)],'rating':Rating[m(0xc8)],'weight':0x7});}}function a52c(){var E=['This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','21bSrDpS','Rectangle','pageCount','name','BodyArmor','apply','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','Boots','Metallic','1989890kHaPNH','publishDate','Grey','Small','(((.+)+)+)+$','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','2287480GLDVAE','Circle','Common','Gold','toString','search','Legendary','Large','Medium','Rare','Unknown\x20Author','Smooth','use','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','2463918YGTphb','3198195vfuSDi','Weapon','589114HWrJEF','Gloves','Yellow','A\x20mysterious\x20book.','description','Short\x20Sword','Cup','385701xuGHgz','\x20aloft,\x20feeling\x20its\x20immense\x20power.','author','Brown','200472hRmVMh','Sniper\x20Rifle','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','2QAfGOP','Blade','Helmet','Unknown','Rifle','Key'];a52c=function(){return E;};return a52c();}export class Helmet extends Item{constructor(a,b){var n=a52j;super({'name':a,'description':b,'size':Size[n(0xc7)],'category':Category[n(0xab)],'shape':Shape[n(0xc0)],'color':Color[n(0xbb)],'texture':Texture[n(0xb8)],'rating':Rating[n(0xc1)],'weight':0x2});}}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x9b;var f=c[d];return f;},a52d(a,b);}export class BodyArmor extends Item{constructor(a,b){var o=a52j;super({'name':a,'description':b,'size':Size[o(0xc6)],'category':Category[o(0xb4)],'shape':Shape[o(0xb1)],'color':Color['Grey'],'texture':Texture[o(0xb8)],'rating':Rating[o(0xc1)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var p=a52j;super({'name':a,'description':b,'size':Size[p(0xc7)],'category':Category['LegArmor'],'shape':Shape[p(0xb1)],'color':Color[p(0xbb)],'texture':Texture[p(0xb8)],'rating':Rating[p(0xc1)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var q=a52j;super({'name':a,'description':b,'size':Size[q(0xc7)],'category':Category[q(0xb7)],'shape':Shape[q(0xc0)],'color':Color[q(0xa5)],'texture':Texture[q(0xca)],'rating':Rating['Common'],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var r=a52j;super({'name':a,'description':b,'size':Size[r(0xbc)],'category':Category[r(0x9c)],'shape':Shape[r(0xc0)],'color':Color[r(0xa5)],'texture':Texture['Smooth'],'rating':Rating[r(0xc1)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a52j;super({'name':a,'description':b,'size':Size[s(0xc7)],'category':Category['ArmArmor'],'shape':Shape[s(0xb1)],'color':Color[s(0xbb)],'texture':Texture[s(0xb8)],'rating':Rating[s(0xc1)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var t=a52j;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category[t(0xae)],'shape':Shape[t(0xb1)],'color':Color['Yellow'],'texture':Texture[t(0xca)],'rating':Rating[t(0xc1)],'weight':0x0});}[a52j(0xcb)](){var u=a52j;return u(0xaf);}}export class Weapon extends Item{constructor(a,b){var v=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[v(0xcf)],'shape':Shape[v(0xaa)],'color':Color[v(0xbb)],'texture':Texture[v(0xb8)],'rating':Rating['Common'],'weight':0x3});}[a52j(0xcb)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class Book extends Item{[a52j(0xa4)];[a52j(0xba)];[a52j(0xb2)];constructor(a,b=a52j(0x9e),c=a52j(0xc9)){var w=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Book'],'shape':Shape[w(0xb1)],'color':Color[w(0xa5)],'texture':Texture[w(0xca)],'rating':Rating[w(0xc1)],'weight':0x1}),this[w(0xa4)]=c,this[w(0xba)]=new Date(),this['pageCount']=0x64;}[a52j(0xcb)](){var x=a52j;return x(0xbe);}}export class ShortSword extends Item{constructor(){var y=a52j;super({'name':y(0xa0),'description':'A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','size':Size[y(0xc7)],'category':Category[y(0xcf)],'shape':Shape[y(0xaa)],'color':Color[y(0xbb)],'texture':Texture['Metallic'],'rating':Rating[y(0xc1)],'weight':0x3});}[a52j(0xcb)](){var z=a52j;return z(0xa8);}}export class SniperRifle extends Item{constructor(){var A=a52j;super({'name':A(0xa7),'description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size[A(0xc6)],'category':Category['Weapon'],'shape':Shape[A(0xad)],'color':Color[A(0xa5)],'texture':Texture[A(0xca)],'rating':Rating[A(0xc1)],'weight':0x5});}['use'](){var B=a52j;return B(0xcc);}}export class HolyGrail extends Item{constructor(){var C=a52j;super({'name':'Holy\x20Grail','description':C(0xb6),'size':Size['Small'],'category':Category[C(0xa1)],'shape':Shape[C(0xc0)],'color':Color[C(0xc2)],'texture':Texture['Metallic'],'rating':Rating[C(0xc5)],'weight':0x1});}['use'](){var D=a52j;return'You\x20hold\x20the\x20'+this[D(0xb3)]+D(0xa3);}}
|