@maka/maka-cli 4.7.29 → 4.8.0
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/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/package.json +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a37i=a37d;function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x1dc;let f=c[d];return f;},a37d(a,b);}(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x1ed))/0x1+-parseInt(f(0x1e2))/0x2+-parseInt(f(0x1e6))/0x3+-parseInt(f(0x1f7))/0x4+-parseInt(f(0x1f0))/0x5+parseInt(f(0x1ec))/0x6*(-parseInt(f(0x1e0))/0x7)+-parseInt(f(0x1e9))/0x8*(-parseInt(f(0x1de))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x5e568));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x1e3)]()[h(0x1e1)]('(((.+)+)+)+$')['toString']()['constructor'](a37a)[h(0x1e1)](h(0x1dc));});a37a();import{Command}from'./command.js';function a37c(){const k=['write','1179YLBVeI','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','447860GlqBgw','search','109194gryVNv','toString','description','verb','2016504dHZgiw','inventory','join','142936HDNaoP','You\x20search\x20the\x20area\x20and\x20find:\x20','\x20found\x20the\x20following\x20items:\x20','12BlNjdo','272167vYcXGM','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','name','3736610zrqcAv','currentLocation','execute','SearchCommand:\x20','logger','actor','apply','2497156rGpjzm','listItems','(((.+)+)+)+$'];a37c=function(){return k;};return a37c();}export class SearchCommand extends Command{static [a37i(0x1e5)]=a37i(0x1e1);static [a37i(0x1e4)]='Search\x20for\x20items\x20in\x20your\x20area';[a37i(0x1f2)](){const j=a37i,a=this[j(0x1f5)][j(0x1f1)][j(0x1e7)][j(0x1f8)]();if(a['length']===0x0)return this[j(0x1f4)][j(0x1dd)](j(0x1f3)+this[j(0x1f5)][j(0x1ef)]+j(0x1df)),j(0x1ee);const b=a[j(0x1e8)](',\x20');return this[j(0x1f4)]['write'](j(0x1f3)+this[j(0x1f5)]['name']+j(0x1eb)+b),j(0x1ea)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38h=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0xaf))/0x1*(-parseInt(f(0xb8))/0x2)+-parseInt(f(0xc1))/0x3*(parseInt(f(0xc7))/0x4)+parseInt(f(0xcc))/0x5+parseInt(f(0xb7))/0x6+parseInt(f(0xb5))/0x7+parseInt(f(0xb2))/0x8*(-parseInt(f(0xbd))/0x9)+parseInt(f(0xbc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xcd13b));function a38c(){const j=['56232NpBBBF','execute','logger','solve','505089TCOHyp','inventory','write','Attempt\x20to\x20solve\x20a\x20puzzle.','success','message','28TXbMLS','puzzle','toString','join','addItem','6342365PQyUfd','constructor','(((.+)+)+)+$','343WfvmZZ','actor','verb','624cApsCs','toLowerCase','search','4191117MHSWSc','description','7815624IoCZfi','3952Rpifhk','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','SolveCommand:\x20','rewardItem','138400niSuWH'];a38c=function(){return j;};return a38c();}const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const g=a38d;return a38a[g(0xc9)]()[g(0xb4)](g(0xae))[g(0xc9)]()[g(0xcd)](a38a)[g(0xb4)](g(0xae));});a38a();import{Command}from'./command.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xae;let f=c[d];return f;},a38d(a,b);}export class SolveCommand extends Command{static [a38h(0xb1)]=a38h(0xc0);static [a38h(0xb6)]=a38h(0xc4);[a38h(0xbe)](a){const i=a38h,b=a[i(0xca)]('\x20')[i(0xb3)](),c=this[i(0xb0)]['currentLocation'];if(!c||!c['puzzle'])return this[i(0xbf)][i(0xc3)](i(0xb9)),'There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.';const d=c[i(0xc8)][i(0xc0)](b,this[i(0xb0)]['inventory']);return d[i(0xc5)]&&c['puzzle'][i(0xbb)]&&this['actor'][i(0xc2)][i(0xcb)](c[i(0xc8)]['rewardItem']),this[i(0xbf)][i(0xc3)](i(0xba)+d[i(0xc6)]),d['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39h=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x1cb))/0x1+-parseInt(f(0x1c4))/0x2*(-parseInt(f(0x1c1))/0x3)+parseInt(f(0x1c0))/0x4+parseInt(f(0x1cc))/0x5+-parseInt(f(0x1d0))/0x6+parseInt(f(0x1c3))/0x7+-parseInt(f(0x1b5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x79372));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(0x1bc)]()['search'](g(0x1b9))[g(0x1bc)]()[g(0x1bb)](a39a)['search']('(((.+)+)+)+$');});a39a();function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a39d(a,b);}import{Command}from'./command.js';function a39c(){const k=['574278AlZEBK','join','description','\x22\x20in\x20this\x20room.','execute','actor','\x20during\x20\x27Take\x27\x20command.','take','getItem','logger','addInventory','name','16488944ijNHvH','\x22\x20is\x20too\x20heavy\x20to\x20carry.','\x22\x20not\x20retrieved\x20from\x20','write','(((.+)+)+)+$','There\x20is\x20no\x20item\x20\x22','constructor','toString','inventory','The\x20item\x20\x22','currentLocation','2677012vVUflH','1221TSNETK','message','2383822oNXyyO','3378qhgRWY','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','\x22\x20not\x20found\x20in\x20','toLowerCase','\x22\x20to\x20','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','You\x20have\x20taken\x20the\x20','166179JrWwHX','3949640VhSlOY','Item\x20\x22','Pick\x20up\x20an\x20item.','removeItem'];a39c=function(){return k;};return a39c();}export class TakeCommand extends Command{static ['verb']='take';static [a39h(0x1d2)]=a39h(0x1ce);[a39h(0x1ad)](a){const i=a39h;return this[i(0x1b2)][i(0x1b8)]('Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20'+a['join']('\x20')),this[i(0x1b0)](a);}[a39h(0x1b0)](a){const j=a39h,b=a[j(0x1d1)]('\x20')[j(0x1c7)](),c=this[j(0x1ae)][j(0x1bf)];if(!c[j(0x1bd)]['hasItem'](b))return this[j(0x1b2)]['write'](j(0x1cd)+b+j(0x1c6)+c[j(0x1b4)]+j(0x1af)),j(0x1ba)+b+j(0x1ac);const d=c[j(0x1bd)][j(0x1b1)](b);if(!d)return this[j(0x1b2)][j(0x1b8)](j(0x1cd)+b+j(0x1b7)+c[j(0x1b4)]+j(0x1c5)),j(0x1ba)+b+j(0x1ac);try{return this[j(0x1ae)][j(0x1b3)](d),this['logger'][j(0x1b8)]('Successfully\x20added\x20\x22'+b+j(0x1c8)+this[j(0x1ae)][j(0x1b4)]+j(0x1c9)),c[j(0x1bd)][j(0x1cf)](b),this[j(0x1b2)][j(0x1b8)]('Successfully\x20removed\x20\x22'+b+'\x22\x20from\x20'+c[j(0x1b4)]+j(0x1c5)),j(0x1ca)+b+'.';}catch(e){return this[j(0x1b2)]['write']('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[j(0x1c2)]),j(0x1be)+b+j(0x1b6);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a40i=a40d;function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x99;let f=c[d];return f;},a40d(a,b);}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0xa0))/0x1*(parseInt(f(0xa8))/0x2)+-parseInt(f(0xa2))/0x3*(parseInt(f(0x99))/0x4)+-parseInt(f(0xaa))/0x5+-parseInt(f(0x9b))/0x6+parseInt(f(0xaf))/0x7*(-parseInt(f(0xb0))/0x8)+parseInt(f(0x9c))/0x9+-parseInt(f(0x9e))/0xa*(-parseInt(f(0x9d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x7f481));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0xae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0xad)]()[h(0xa4)](h(0x9f))[h(0xad)]()[h(0xac)](a40a)[h(0xa4)]('(((.+)+)+)+$');});a40a();import{Command}from'./command.js';export class UnequipCommand extends Command{static ['verb']='unqeuip';static [a40i(0x9a)]=a40i(0xa7);['execute'](a){const j=a40i,b=a[j(0xa5)]('\x20')[j(0xa6)](),c=this['actor'][j(0xa1)](b);return this[j(0xab)]['write']('UnequipCommand:\x20'+this[j(0xa3)][j(0xa9)]+'\x20unqeuiped\x20'+c),c;}}function a40c(){const k=['search','join','toLowerCase','Unequip\x20an\x20item.','2xsalRy','name','2591715JgPQpl','logger','constructor','toString','apply','14343jnTHIS','2360ooDWNv','8zAtVwU','description','479814TjEfFD','3313926CrcTfi','22EVOeSX','11664880Dnykmn','(((.+)+)+)+$','209094FjXuzo','unequip','1151976tosKGx','actor'];a40c=function(){return k;};return a40c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41j=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=parseInt(h(0x132))/0x1*(parseInt(h(0x124))/0x2)+-parseInt(h(0x113))/0x3*(-parseInt(h(0x11a))/0x4)+parseInt(h(0x12c))/0x5+-parseInt(h(0x118))/0x6*(parseInt(h(0x126))/0x7)+parseInt(h(0x120))/0x8+-parseInt(h(0x128))/0x9*(-parseInt(h(0x11e))/0xa)+-parseInt(h(0x135))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x5f162));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 i=a41d;return a41a[i(0x117)]()[i(0x129)](i(0x131))[i(0x117)]()[i(0x11b)](a41a)[i(0x129)](i(0x131));});a41a();function a41c(){const m=['Unlock\x20a\x20door.','1078kdrXJC','logger','9aYqLJM','search','get','write','2955395rQlFQv','attemptUnlockExit','UnlockCommand:\x20No\x20target\x20specified.','\x22\x20here.','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','(((.+)+)+)+$','1KNwyFF','\x20is\x20attempted\x20to\x20unlock\x20','getItem','21733129mvHgFz','There\x27s\x20no\x20door\x20named\x20\x22','inventory','exits','1132899FAnBKI','error','.\x20Result:\x20','unlock','toString','1764sOVXWs','toLowerCase','4mZRdzo','constructor','has','verb','5224690oItBxu','actor','4798184HhVdDg','UnlockCommand:\x20','isValidDirection','name','639070RqCANm'];a41c=function(){return m;};return a41c();}function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x112;let f=c[d];return f;},a41d(a,b);}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a41j(0x11d)]=a41j(0x116);static ['description']=a41j(0x125);['execute'](a){const k=a41j;return this[k(0x116)](a);}['unlock'](a){const l=a41j;if(a['length']===0x0)return this[l(0x127)][l(0x114)](l(0x12e)),'Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.';const b=a[0x0]['toLowerCase'](),c=this['actor']['currentLocation'];if(this[l(0x122)](b)&&c[l(0x112)][l(0x11c)](b)){const d=c[l(0x112)][l(0x12a)](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.[l(0x119)]();if(e&&this['actor'][l(0x137)]['hasItem'](e)){const f=this[l(0x11f)][l(0x137)][l(0x134)](e);if(f){const g=c[l(0x12d)](b,f[l(0x123)]);return this[l(0x127)][l(0x12b)](l(0x121)+this[l(0x11f)][l(0x123)]+l(0x133)+b+l(0x115)+g),g;}}return this['logger'][l(0x12b)](l(0x121)+this['actor'][l(0x123)]+l(0x130)+b+'.'),'You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.';}else return this[l(0x127)]['write'](l(0x121)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[l(0x123)]+'.'),l(0x136)+b+l(0x12f);}else return this[l(0x127)][l(0x12b)](l(0x121)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c['name']+'.'),l(0x136)+b+l(0x12f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0x18c))/0x1*(-parseInt(f(0x194))/0x2)+-parseInt(f(0x197))/0x3*(parseInt(f(0x179))/0x4)+-parseInt(f(0x18f))/0x5+parseInt(f(0x192))/0x6+parseInt(f(0x190))/0x7*(parseInt(f(0x18e))/0x8)+parseInt(f(0x17b))/0x9+-parseInt(f(0x196))/0xa*(parseInt(f(0x199))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x34463));function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x178;let f=c[d];return f;},a42d(a,b);}const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x19c)]()[h(0x182)](h(0x17f))[h(0x19c)]()[h(0x17c)](a42a)[h(0x182)](h(0x17f));});a42a();function a42c(){const l=['\x20in\x20this\x20way.','2036472DhlQsg','use','304DsbaDT','execute','30WYSPRl','12rJuVkm','\x20not\x20retrieved\x20from\x20','2128005VCTqnd','Use\x20an\x20item.','name','toString','logger','298912TdYLBm','hasItem','2787714SvqCQT','constructor','apply','UseCommand:\x20','(((.+)+)+)+$','getItem','\x20doesn\x27t\x20have\x20a\x20use\x20method.','search','verb','join','function','\x20to\x20use.','write',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','actor','You\x20can\x27t\x20use\x20the\x20','inventory','2666wgAymC','You\x20don\x27t\x20have\x20the\x20','2720712uJhoZr','1505435iojykd','7rjZZFn'];a42c=function(){return l;};return a42c();}import{Command}from'./command.js';export class UseCommand extends Command{static [a42i(0x183)]=a42i(0x193);static ['description']=a42i(0x19a);[a42i(0x195)](a){const j=a42i;return this[j(0x193)](a);}['use'](a){const k=a42i,b=a[k(0x184)]('\x20')['toLowerCase']();if(!this[k(0x189)][k(0x18b)][k(0x17a)](b))return this[k(0x178)]['write'](k(0x17e)+this[k(0x189)][k(0x19b)]+'\x20attempted\x20to\x20use\x20'+b+k(0x188)),'You\x20don\x27t\x20have\x20the\x20'+b+'\x20to\x20use.';const c=this[k(0x189)]['inventory'][k(0x180)](b);if(!c)return this[k(0x178)][k(0x187)]('UseCommand:\x20'+b+k(0x198)+this[k(0x189)][k(0x19b)]+'\x27s\x20inventory.'),k(0x18d)+b+k(0x186);if(typeof c[k(0x193)]===k(0x185)){const d=c['use']();return this[k(0x178)][k(0x187)]('UseCommand:\x20'+this[k(0x189)][k(0x19b)]+'\x20used\x20'+b+'.'),d;}else return this[k(0x178)]['write'](k(0x17e)+b+k(0x181)),k(0x18a)+b+k(0x191);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x151;let f=c[d];return f;},a43d(a,b);}const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x15c))/0x1+-parseInt(f(0x159))/0x2+-parseInt(f(0x15b))/0x3*(parseInt(f(0x154))/0x4)+parseInt(f(0x152))/0x5+-parseInt(f(0x15d))/0x6*(-parseInt(f(0x15a))/0x7)+-parseInt(f(0x15f))/0x8*(-parseInt(f(0x151))/0x9)+parseInt(f(0x155))/0xa*(parseInt(f(0x158))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x91cf4));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x153)]()[h(0x156)](h(0x162))['toString']()[h(0x164)](a43a)['search'](h(0x162));});a43a();export class CommandFactory{static [a43i(0x161)]={};static[a43i(0x163)](a,b){const j=a43i;this[j(0x161)][a]=b;}static[a43i(0x157)](a,b){const k=a43i,c=this[k(0x161)][a];if(c)return new c(b);return null;}static[a43i(0x15e)](){const l=a43i;return this[l(0x161)];}}function a43c(){const m=['(((.+)+)+)+$','registerCommand','constructor','1704555HmnlLs','2383120RcDxzo','toString','3113276sbdKxR','10PzWMPo','search','createCommand','7235437MINWZx','1564306ynogrs','2380Kcznbi','3hIotyC','10722fGuDlH','1158TWOfba','getAllRegisteredCommands','40IcBMrR','apply','commandMap'];a43c=function(){return m;};return a43c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44k=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=parseInt(f(0x150))/0x1*(parseInt(f(0x15f))/0x2)+-parseInt(f(0x15c))/0x3+parseInt(f(0x172))/0x4+-parseInt(f(0x173))/0x5+parseInt(f(0x169))/0x6+-parseInt(f(0x176))/0x7+parseInt(f(0x15d))/0x8*(parseInt(f(0x157))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x67c71));function a44c(){const o=['legarmor','roomType','3911264XxBJJw','1201BVVdtY','gauntlets','sword','key','content','name','addItem','867528jkSmnv','puzzle','apply','createItem','toUpperCase','1604424qTrzoC','56bvvVGW','book','1142BrWuYd','bodyarmor','gloves','constructor','description','(((.+)+)+)+$','forEach','boots','setPuzzle','createPuzzle','3617292Qfkqos','toString','helmet','items','type','rifle','convertToRoomConfig','rewardItem','search','1375364itlvVb','3943025dErnnx'];a44c=function(){return o;};return a44c();}const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a['toString']()[h(0x171)](h(0x164))[h(0x16a)]()[h(0x162)](a44a)[h(0x171)](h(0x164));});a44a();import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x150;let f=c[d];return f;},a44d(a,b);}export class RoomFactory{['createRoom'](a){const i=a44d,b=this[i(0x16f)](a),c=new Room(b);if(a['items']){const d=new Inventory();a[i(0x16c)][i(0x165)](e=>{const j=i;d[j(0x156)](this[j(0x15a)](e));}),c['inventory']=d;}return a['puzzle']&&c[i(0x167)](this['createPuzzle'](a[i(0x158)])),c;}[a44k(0x15a)](a){const l=a44k;switch(a[l(0x16d)]){case l(0x153):return new Key(a['name'],a['description']);case l(0x15e):return new Book(a[l(0x155)],a[l(0x163)],a[l(0x154)]);case l(0x152):return new Sword(a[l(0x155)],a['description']);case l(0x16e):return new Rifle(a['name'],a[l(0x163)]);case l(0x16b):return new Helmet(a[l(0x155)],a[l(0x163)]);case l(0x160):return new BodyArmor(a[l(0x155)],a[l(0x163)]);case l(0x174):return new LegArmor(a[l(0x155)],a[l(0x163)]);case l(0x166):return new Boots(a['name'],a[l(0x163)]);case l(0x161):return new Gloves(a[l(0x155)],a[l(0x163)]);case l(0x151):return new Gauntlets(a[l(0x155)],a['description']);default:return new BasicItem(a[l(0x155)],a['description']);}}[a44k(0x168)](a){const m=a44k,b=this['createItem'](a[m(0x170)]);return new Puzzle({...a,'rewardItem':b});}[a44k(0x16f)](a){const n=a44k,b=a[n(0x175)]&&RoomType[a[n(0x175)]['toUpperCase']()]?RoomType[a[n(0x175)][n(0x15b)]()]:RoomType['INSIDE'];return{'name':a['name'],'description':a[n(0x163)],'isStartRoom':a['isStartRoom'],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45j=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a45j=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(0xdb))/0x1*(parseInt(h(0xde))/0x2)+-parseInt(h(0xc9))/0x3*(-parseInt(h(0xbd))/0x4)+parseInt(h(0xbc))/0x5+parseInt(h(0xd0))/0x6*(parseInt(h(0xbf))/0x7)+parseInt(h(0xd9))/0x8+-parseInt(h(0xe6))/0x9*(-parseInt(h(0xd4))/0xa)+-parseInt(h(0xe5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xf1341));const a45b=(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;};}()),a45a=a45b(this,function(){const i=a45d;return a45a['toString']()[i(0xe4)](i(0xc0))[i(0xe2)]()['constructor'](a45a)[i(0xe4)](i(0xc0));});a45a();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 a45c(){const r=['player','clear','name','drop','solve','Available\x20Commands:\x0a','309162psvDGv','help','trim','currentRoom','30xrVWxl','initialize','Welcome,\x20','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','getAllRegisteredCommands','3664192UDbvVv','execute','491272WiEOKh','rooms','getHelpMessage','8ftgxVV','getInstance','unlock','getWelcomeMessage','toString','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','search','83997892emmZyD','5499747jBXWEv','scene','split','getRooms','currentLocation','maka','9231520EqlJQg','9804bxFGYm','unequip','231JpDBIv','(((.+)+)+)+$','lock','registerCommand','look','instance','take','handleInput','-\x20quit:\x20Exit\x20the\x20game.\x0a','determineStartRoom','1005TPqtok'];a45c=function(){return r;};return a45c();}import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xb9;let f=c[d];return f;},a45d(a,b);}export default class Game{static [a45j(0xc4)];[a45j(0xe7)];[a45j(0xca)];[a45j(0xd3)];[a45j(0xdc)];constructor(a,b){const k=a45j;this[k(0xca)]=a,this[k(0xe7)]=new Scene({'player':a,'roomConfiguration':b}),this['scene'][k(0xd5)](),this['player'][k(0xba)]=this[k(0xc8)](),this['registerCommands']();}['registerCommands'](){const l=a45j;CommandFactory[l(0xc2)](l(0xc3),LookCommand),CommandFactory[l(0xc2)]('go',GoCommand),CommandFactory[l(0xc2)](l(0xc5),TakeCommand),CommandFactory['registerCommand']('use',UseCommand),CommandFactory[l(0xc2)]('equip',EquipCommand),CommandFactory[l(0xc2)](l(0xbe),UnequipCommand),CommandFactory[l(0xc2)](l(0xce),SolveCommand),CommandFactory['registerCommand'](l(0xcd),DropCommand),CommandFactory['registerCommand'](l(0xe0),UnlockCommand),CommandFactory[l(0xc2)](l(0xc1),LockCommand),CommandFactory[l(0xc2)](l(0xe4),SearchCommand),CommandFactory[l(0xc2)]('say',SayCommand);}[a45j(0xc8)](){const m=a45j;return this[m(0xe7)][m(0xc8)]();}[a45j(0xe1)](){const n=a45j;return n(0xd6)+this[n(0xca)][n(0xcc)];}static[a45j(0xdf)](a,b){const o=a45j;return!Game[o(0xc4)]&&(Game[o(0xc4)]=new Game(a,b)),Game['instance'];}[a45j(0xc6)](a){const p=a45j,b=a[p(0xd2)]()[p(0xe8)]('\x20'),c=b[0x0]['toLowerCase'](),d=b['slice'](0x1);if(c==='quit')return null;if(c===p(0xbb))return p(0xe3);if(c===p(0xd1))return this['getHelpMessage']();if(c===p(0xcb))return'';const e={'actor':this[p(0xca)],'rooms':this[p(0xe7)][p(0xb9)](),'scene':this[p(0xe7)]},f=CommandFactory['createCommand'](c,e);if(f){const g=f[p(0xda)](d);return g;}return p(0xd7)+c+'\x22.';}[a45j(0xdd)](){const q=a45j,a=CommandFactory[q(0xd8)]();let b=q(0xcf);for(const c in a){if(a['hasOwnProperty'](c)){const d=a[c];b+='-\x20'+c+':\x20'+d['getDescription']()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+=q(0xc7),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a46d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0xeb))/0x1*(parseInt(f(0xe8))/0x2)+parseInt(f(0xed))/0x3+parseInt(f(0xee))/0x4+-parseInt(f(0xe1))/0x5*(parseInt(f(0xea))/0x6)+parseInt(f(0xe9))/0x7+parseInt(f(0xe3))/0x8*(-parseInt(f(0xe2))/0x9)+parseInt(f(0xec))/0xa*(parseInt(f(0xe7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x6398e));function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xe1;var f=c[d];return f;},a46d(a,b);}var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0xf0)]()[h(0xef)](h(0xe4))[h(0xf0)]()[h(0xe6)](a46a)['search']('(((.+)+)+)+$');});a46a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';function a46c(){var i=['304733GKGluY','332ZhoWbi','4006688EuadSo','6LXpCbj','1223PsrTzL','230tSQjly','36681ugBGAW','1974872HhtpRA','search','toString','2129475JayTbD','1221543iXwrvq','40GZSMzG','(((.+)+)+)+$','apply','constructor'];a46c=function(){return i;};return a46c();}export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a47i=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=-parseInt(f(0x88))/0x1*(parseInt(f(0x89))/0x2)+parseInt(f(0x92))/0x3*(-parseInt(f(0x8f))/0x4)+parseInt(f(0xa3))/0x5+-parseInt(f(0x8c))/0x6+parseInt(f(0x87))/0x7+-parseInt(f(0x86))/0x8*(-parseInt(f(0xa0))/0x9)+parseInt(f(0x8d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x4b2b8));var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a47d;if(c){var e=c[g(0x99)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var h=a47d;return a47a[h(0x8e)]()[h(0x96)](h(0x9b))[h(0x8e)]()[h(0x9a)](a47a)[h(0x96)](h(0x9b));});a47a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x84;var f=c[d];return f;},a47d(a,b);}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];[a47i(0x84)];[a47i(0x95)];[a47i(0xa4)];[a47i(0x91)];[a47i(0x8a)];[a47i(0x9d)];constructor(a){var j=a47i;super(),this['roomA']=a[j(0x9e)],this[j(0x84)]=a[j(0x84)],this[j(0x95)]=a[j(0x95)]||![],this['unlockItemOrSolution']=a[j(0xa4)],this[j(0x91)]=a[j(0x91)]?capitalCase(a[j(0x91)]):j(0x90)+a['roomB']['name'],this[j(0x8a)]=Logger[j(0x98)](),this[j(0x9d)]=!!a[j(0xa4)],this[j(0x8a)][j(0x8b)](j(0xa1)+this[j(0x9e)][j(0x91)]+j(0x9f)+this[j(0x84)][j(0x91)]+j(0x9c)+this[j(0x95)]);}[a47i(0x97)](a){var k=a47i;return this['roomA']===a?this[k(0x84)]:this[k(0x9e)];}['attemptUnlock'](a){var l=a47i;if(this[l(0x95)]&&this['unlockItemOrSolution']&&this[l(0xa4)]===a)return this[l(0x95)]=![],this[l(0x8a)][l(0x8b)](l(0x93)+this[l(0x91)]+l(0xa2)+a),!![];return this[l(0x8a)][l(0x8b)]('Failed\x20to\x20unlock\x20door:\x20'+this[l(0x91)]+l(0xa2)+a),![];}[a47i(0x85)](){var m=a47i;return this[m(0x95)];}[a47i(0x94)](){var n=a47i;return this[n(0x9d)];}}function a47c(){var o=['4PplwUR','To\x20','name','1100205gNVxED','Door\x20unlocked:\x20','checkIfLockable','isLocked','search','getOtherSide','getInstance','apply','constructor','(((.+)+)+)+$','.\x20Is\x20Locked:\x20','isLockable','roomA','\x20and\x20','135477ayoRLx','Door\x20created\x20between\x20','.\x20Used:\x20','577050IDBiwC','unlockItemOrSolution','roomB','checkIfLocked','120ECGusa','133896IyztTO','1329xUGwFu','772clvhsp','logger','write','705180iePqWx','9448220dxeoJL','toString'];a47c=function(){return o;};return a47c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d
|
|
1
|
+
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x111))/0x1+-parseInt(f(0x120))/0x2*(parseInt(f(0x11e))/0x3)+parseInt(f(0x126))/0x4*(-parseInt(f(0x116))/0x5)+parseInt(f(0x112))/0x6*(-parseInt(f(0x137))/0x7)+parseInt(f(0x12a))/0x8+-parseInt(f(0x114))/0x9*(parseInt(f(0x131))/0xa)+parseInt(f(0x121))/0xb*(parseInt(f(0x118))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xf2d46));function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x110;let f=c[d];return f;},a48d(a,b);}const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x124)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a['toString']()[h(0x11a)](h(0x134))[h(0x128)]()[h(0x122)](a48a)['search'](h(0x134));});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48i(0x135)];[a48i(0x12f)];constructor(){const j=a48i;super(),this[j(0x135)]=new Map(),this[j(0x12f)]=Logger[j(0x117)]();}[a48i(0x11b)](a){const k=a48i;this[k(0x135)][k(0x129)](a[k(0x138)]['toLowerCase'](),a),this[k(0x12f)][k(0x130)](k(0x133)+a[k(0x138)]+'\x20to\x20inventory.');}[a48i(0x125)](a){const l=a48i,b=this[l(0x12b)](a);if(b)return this[l(0x135)]['delete'](a[l(0x136)]()),this['logger'][l(0x130)](l(0x12c)+a+'\x20from\x20inventory.'),b;return this['logger'][l(0x130)](l(0x123)+a+'.\x20Item\x20not\x20found.'),null;}['hasItem'](a){const m=a48i,b=this[m(0x135)]['has'](a[m(0x136)]()),c=[...this['items'][m(0x127)]()];return this['logger'][m(0x130)]('Checked\x20for\x20item:\x20'+a+m(0x132)+c[m(0x119)](',\x20')+m(0x11f)+b+'.'),b;}['getItem'](a){const n=a48i,b=this[n(0x135)]['get'](a['toLowerCase']())||null;return b?this[n(0x12f)][n(0x130)]('Retrieved\x20details\x20for\x20item:\x20'+a+'.'):this[n(0x12f)][n(0x130)](n(0x115)+a+n(0x11d)),b;}[a48i(0x12d)](){const o=a48i,a=[...this['items'][o(0x127)]()],b=a[o(0x11c)](c=>capitalCase(c));return this['logger']['write']('Listed\x20items\x20in\x20inventory:\x20'+b[o(0x119)](',\x20')+'.'),a;}[a48i(0x113)](){const p=a48i;let a=0x0;for(const b of this['items'][p(0x12e)]()){a+=b[p(0x110)];}return a;}['getAllItems'](){const q=a48i;return[...this[q(0x135)]['values']()];}}function a48c(){const r=['(((.+)+)+)+$','items','toLowerCase','14616Yrzrqr','name','weight','857806CWuSkj','2304EJJdah','getWeight','27hfeYrV','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','1113580kTAWOy','getInstance','24HVcpLd','join','search','addItem','map','.\x20Item\x20not\x20found.','30PayZMo','.\x20Exists:\x20','328010ewkYmO','21869397DPZBof','constructor','Failed\x20to\x20remove\x20item:\x20','apply','removeItem','12cnaIWs','keys','toString','set','15493416GBqkDS','getItem','Removed\x20item:\x20','listItems','values','logger','write','3168350hDushs','\x20in\x20','Added\x20item:\x20'];a48c=function(){return r;};return a48c();}
|
|
@@ -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(0x90))/0x1*(-parseInt(f(0x82))/0x2)+-parseInt(f(0x80))/0x3+-parseInt(f(0x93))/0x4*(-parseInt(f(0x81))/0x5)+-parseInt(f(0x89))/0x6*(parseInt(f(0x96))/0x7)+-parseInt(f(0x87))/0x8*(parseInt(f(0x95))/0x9)+parseInt(f(0x94))/0xa+parseInt(f(0x9a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x316be));function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x80;var f=c[d];return f;},a49d(a,b);}function a49c(){var l=['apply','texture','constructor','weight','3IhEmLv','shape','(((.+)+)+)+$','28qmUepx','2091510iEWdVP','369bdhaJZ','1895026GdMeMe','toString','use','size','7396862YyPemn','search','You\x20use\x20the\x20','847962HwcAjg','64265qvzqCh','53778ESibkK','uuid','color','name','description','26360KSnDTJ','category','6OIhyjg','rating','.\x20Nothing\x20special\x20happens.'];a49c=function(){return l;};return a49c();}var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x8c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a['toString']()['search'](h(0x92))[h(0x97)]()[h(0x8e)](a49a)[h(0x9b)]('(((.+)+)+)+$');});a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{['uuid'];[a49i(0x85)];['description'];[a49i(0x99)];[a49i(0x88)];[a49i(0x91)];[a49i(0x84)];[a49i(0x8d)];[a49i(0x8a)];[a49i(0x8f)];constructor(a){var j=a49i;super(),this[j(0x85)]=a['name'],this[j(0x86)]=a[j(0x86)],this['size']=a['size'],this['category']=a[j(0x88)],this[j(0x91)]=a[j(0x91)],this[j(0x84)]=a[j(0x84)],this[j(0x8d)]=a['texture'],this['rating']=a[j(0x8a)],this[j(0x8f)]=a[j(0x8f)],this[j(0x83)]=a49e();}[a49i(0x98)](){var k=a49i;return k(0x9c)+this['name']+k(0x8b);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50i=a50d;
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=-parseInt(f(0x192))/0x1*(-parseInt(f(0x18d))/0x2)+-parseInt(f(0x185))/0x3*(-parseInt(f(0x188))/0x4)+-parseInt(f(0x186))/0x5+-parseInt(f(0x184))/0x6*(parseInt(f(0x17d))/0x7)+-parseInt(f(0x18b))/0x8+-parseInt(f(0x190))/0x9*(parseInt(f(0x193))/0xa)+-parseInt(f(0x187))/0xb*(-parseInt(f(0x17b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x596dc));function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x17a;let f=c[d];return f;},a50d(a,b);}const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0x17a)]()[h(0x180)](h(0x189))[h(0x17a)]()[h(0x18e)](a50a)[h(0x180)](h(0x189));});a50a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{['_name'];['_dialogue'];['rooms'];[a50i(0x17e)];constructor(a,b,c,d){const j=a50i;super(d),this['_name']=a,this[j(0x17f)]=b,this[j(0x183)]=c;}get[a50i(0x182)](){return this['_name'];}['speak'](){const k=a50i;return this[k(0x17f)][Math[k(0x18a)](Math[k(0x18f)]()*this[k(0x17f)][k(0x18c)])];}['autonomousMove'](a){const l=a50i,b=a[Math['floor'](Math['random']()*a['length'])];this['moveTo'](b[l(0x182)]);}[a50i(0x181)](a){const m=a50i,b={'actor':this,'rooms':this[m(0x183)],'scene':this[m(0x17e)]},c=new GoCommand(b);c[m(0x17c)]([a]);}}function a50c(){const n=['scene','_dialogue','search','moveTo','name','rooms','154242PqrJzt','2247oYdUjP','2666720PpbVBx','11wUDRxG','3676ybJZxK','(((.+)+)+)+$','floor','621560OfJfct','length','4BkxgIf','constructor','random','1170YtSXdg','apply','88142lGGqGq','22210uYTUuJ','toString','6976836gwQtRD','execute','49RIllgH'];a50c=function(){return n;};return a50c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a51c(){const C=['leaveRoom','Boots','_maxCarryingWeight','canEquip','200koTJZx','inventory','gloves','bodyarmor','weapon','208QHWuEX','_equipment','176858uRvEDF','head','Invalid\x20category\x20or\x20slot:\x20','currentWeight','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','You\x20equipped\x20','log','Helmet','boots','1928802IcISbf','5WLoYpU','hear','equipment','helmet','name','leftHand','Weapon','114548WMRoaM','legarmor','inventoryItems','arms','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','weight','removeItem','648188NVmWeI','legs','maxCarryingWeight','Nexus','category','133860FZhlqc','addItem','equip','bind','Added\x20','body\x20armor','A\x20featureless\x20room','search','_playerName','playerName','.\x20You\x20must\x20unequip\x20it\x20first.','write','shield','toLowerCase','initialEquipment','getInstance','values','You\x20don\x27t\x20have\x20','unequipBySlot','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','leg\x20armor','Failed\x20to\x20remove\x20','\x20says:\x20\x22','getWeight','Removed\x20','_currentLocation','ArmArmor','2000271FhKhGl','Hat','enterRoom','BodyArmor','\x20is\x20now\x20listening\x20in\x20room\x20','unequip','toString','_inventory','8ZZbggF','\x20to\x20player\x27s\x20inventory.','includes','startLocation','off','550DPYXFr','determineEquipmentSlot','error','\x20from\x20player\x27s\x20inventory.','\x20slot.','currentLocation','torso','speak','logger','removeInventory','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','294093dRBOKT','rightHand'];a51c=function(){return C;};return a51c();}const a51h=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0xd1))/0x1*(parseInt(f(0xee))/0x2)+-parseInt(f(0xc9))/0x3+parseInt(f(0xa9))/0x4+parseInt(f(0xf8))/0x5*(-parseInt(f(0xf7))/0x6)+-parseInt(f(0xa2))/0x7*(-parseInt(f(0xec))/0x8)+-parseInt(f(0xe1))/0x9*(-parseInt(f(0xe7))/0xa)+-parseInt(f(0xd6))/0xb*(parseInt(f(0xae))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x6244d));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const g=a51d;return a51a[g(0xcf)]()[g(0xb5)]('(((.+)+)+)+$')[g(0xcf)]()['constructor'](a51a)[g(0xb5)]('(((.+)+)+)+$');});a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x9c;let f=c[d];return f;},a51d(a,b);}import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a51h(0xb6)];[a51h(0xc7)];[a51h(0xd0)];[a51h(0xed)];[a51h(0xe5)]=0x32;[a51h(0xde)];constructor(a){const i=a51h;super(),this[i(0xb6)]=a[i(0xb7)],this[i(0xc7)]=a[i(0xd4)]||new Room({'name':i(0xac),'description':i(0xb4)}),this['_inventory']=new Inventory(),this[i(0xde)]=Logger[i(0xbd)]();if(a?.['inventoryItems'])for(const b of a[i(0xa4)]){this[i(0xd0)][i(0xaf)](b);}this['_equipment']=a?.[i(0xbc)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51h(0x9f)](){const j=a51h;return this[j(0xb6)];}get[a51h(0xdb)](){const k=a51h;return this[k(0xc7)];}set[a51h(0xdb)](a){const l=a51h;this[l(0xc7)]!==a&&(this['leaveRoom'](),this[l(0xcb)](a)),this[l(0xc7)]=a;}get[a51h(0xe8)](){const m=a51h;return this[m(0xd0)];}get[a51h(0x9d)](){const n=a51h;return this[n(0xed)];}set['equipment'](a){const o=a51h;this[o(0xed)]=a;}get[a51h(0xab)](){const p=a51h;return this[p(0xe5)];}set[a51h(0xab)](a){const q=a51h;a>0x0?this[q(0xe5)]=a:console[q(0xd8)]('Max\x20carrying\x20weight\x20must\x20be\x20positive.');}get[a51h(0xf1)](){const r=a51h;let a=this[r(0xd0)][r(0xc5)]();for(const b in this[r(0xed)]){const c=this[r(0xed)][b];c&&(a+=c[r(0xa7)]);}return a;}['addInventory'](a){const s=a51h;if(this['currentWeight']+a[s(0xa7)]>this['maxCarryingWeight']){this['logger'][s(0xb9)](s(0xf2));throw new Error(s(0xc1));}this[s(0xd0)][s(0xaf)](a),this['logger'][s(0xb9)](s(0xb2)+a[s(0x9f)]+s(0xd2));}[a51h(0xdf)](a){const t=a51h;if(this[t(0xd0)][t(0xa8)](a[t(0x9f)]))return this['logger'][t(0xb9)](t(0xc6)+a[t(0x9f)]+t(0xd9)),!![];return this[t(0xde)][t(0xb9)](t(0xc3)+a[t(0x9f)]+t(0xd9)),![];}[a51h(0xb0)](a){const u=a51h;if(!this[u(0xd0)]['hasItem'](a[u(0x9f)]))return u(0xbf)+a[u(0x9f)]+'\x20in\x20your\x20inventory.';if(!this[u(0xe6)](a))return'You\x20can\x27t\x20equip\x20'+a[u(0x9f)]+'.';const b=this[u(0xd7)](a['category']);if(!b)return a[u(0x9f)]+'\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.';if(this[u(0x9d)][b])return u(0xa6)+b+u(0xb8);return this[u(0x9d)][b]=a,this['removeInventory'](a),u(0xf3)+a[u(0x9f)]+'.';}[a51h(0xce)](a){const v=a51h;let b=a;if(!this[v(0x9d)][camelCase(b)]){b=this[v(0xd7)](a);if(!b)return v(0xf0)+a+'.';}return this[v(0xc0)](b);}[a51h(0xd7)](a){const w=a51h;switch(a[w(0xbb)]()){case Category[w(0xa1)]['toLowerCase']():return'rightHand';case Category['Shield'][w(0xbb)]():return w(0xa0);case Category['Gloves'][w(0xbb)]():return w(0xe9);case Category[w(0xf5)][w(0xbb)]():case Category[w(0xca)][w(0xbb)]():return w(0xef);case Category[w(0xe4)]['toLowerCase']():return'feet';case Category['LegArmor'][w(0xbb)]():return'legs';case Category[w(0xc8)][w(0xbb)]():return'arms';case Category[w(0xcc)][w(0xbb)]():return w(0xdc);case w(0xeb):return w(0xe2);case w(0xba):return w(0xa0);case w(0xe9):return w(0xe9);case w(0x9e):case'hat':return w(0xef);case w(0xf6):return'feet';case w(0xc2):case w(0xa3):return w(0xaa);case'arm\x20armor':case'armarmor':return w(0xa5);case w(0xb3):case w(0xea):case w(0xdc):return'torso';default:return null;}}[a51h(0xe6)](a){const x=a51h;return Object[x(0xbe)](Category)[x(0xd3)](a[x(0xad)]);}[a51h(0xc0)](a){const y=a51h,b=this['equipment'][a];if(!b)return y(0xe0)+a+y(0xda);return this['addInventory'](b),this[y(0x9d)][a]=null,'You\x20unequipped\x20'+b[y(0x9f)]+'.';}['hear'](a,b){const z=a51h;a!==this&&this['logger'][z(0xf4)](a['name']+z(0xc4)+b+'\x22');}[a51h(0xcb)](a){const A=a51h;this[A(0xc7)]=a,a['on']('speak',this[A(0x9c)][A(0xb1)](this)),this[A(0xde)]['write'](this[A(0x9f)]+A(0xcd)+a['name']);}[a51h(0xe3)](){const B=a51h;this[B(0xc7)]&&(this[B(0xc7)][B(0xd5)](B(0xdd),this[B(0x9c)][B(0xb1)](this)),this[B(0xde)][B(0xb9)](this[B(0x9f)]+'\x20is\x20no\x20longer\x20listeng\x20in\x20'+this[B(0xc7)][B(0x9f)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0xf5))/0x1*(parseInt(f(0xdd))/0x2)+-parseInt(f(0xe8))/0x3*(parseInt(f(0xda))/0x4)+-parseInt(f(0xf0))/0x5+-parseInt(f(0xe4))/0x6*(parseInt(f(0xe6))/0x7)+-parseInt(f(0xf9))/0x8+parseInt(f(0xe3))/0x9+parseInt(f(0xf1))/0xa*(parseInt(f(0xec))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x56912));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0xed)]()[h(0xdc)](h(0xe7))[h(0xed)]()['constructor'](a52a)[h(0xdc)](h(0xe7));});a52a();import{Logger}from'../utilities/logger.js';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xda;var f=c[d];return f;},a52d(a,b);}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52i(0xf8)]=Logger[a52i(0xef)]();[a52i(0xf6)]=![];[a52i(0xdb)];[a52i(0xee)];['riddle'];[a52i(0xe2)];[a52i(0xde)];[a52i(0xe0)];constructor(a){var j=a52i;super(),this[j(0xdb)]=a[j(0xdb)],this['requiredPhrase']=a['requiredPhrase'],this[j(0xf3)]=a[j(0xf3)],this[j(0xe2)]=a[j(0xe2)],this[j(0xde)]=a[j(0xde)]||'You\x20solved\x20the\x20puzzle!',this[j(0xe0)]=a['failureMessage']||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}['hasRequiredItem'](a){var k=a52i;if(this[k(0xdb)])return a[k(0xdf)](this[k(0xdb)]);return![];}[a52i(0xf2)](a){return this['requiredPhrase']===a;}[a52i(0xf4)](a,b){var l=a52i;if(this[l(0xf6)])return this['logger'][l(0xeb)](l(0xe1)),{'success':![],'message':l(0xe5)};return this[l(0xf7)](b)||this[l(0xf2)](a)?(this[l(0xf6)]=!![],this[l(0xf8)]['write'](l(0xea)),{'success':!![],'message':this[l(0xde)]}):(this[l(0xf8)][l(0xeb)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[l(0xe0)]});}}function a52c(){var m=['failureMessage','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','rewardItem','5799654hvFJCo','594192dTXduV','You\x20have\x20already\x20solved\x20this\x20puzzle.','7xJMQRP','(((.+)+)+)+$','15RGCcEa','apply','Puzzle:\x20Correct\x20solution\x20provided.','write','116314AddNGh','toString','requiredPhrase','getInstance','1159780LqfuyS','1270cyEYPk','matchesRequiredPhrase','riddle','solve','130931svTAHj','solved','hasRequiredItem','logger','4238024VtUaXG','93864YCfiRm','requiredItem','search','10ptgHNV','successMessage','hasItem'];a52c=function(){return m;};return a52c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0x164))/0x1*(-parseInt(f(0x198))/0x2)+parseInt(f(0x165))/0x3*(-parseInt(f(0x18b))/0x4)+-parseInt(f(0x17a))/0x5*(parseInt(f(0x18e))/0x6)+-parseInt(f(0x180))/0x7*(-parseInt(f(0x17d))/0x8)+parseInt(f(0x159))/0x9+-parseInt(f(0x195))/0xa*(-parseInt(f(0x187))/0xb)+parseInt(f(0x18a))/0xc*(parseInt(f(0x18f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x1ab98));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x193)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0x15f)]()[h(0x173)](h(0x189))['toString']()[h(0x172)](a53a)[h(0x173)](h(0x189));});a53a();import{Logger}from'../utilities/logger.js';function a53c(){const u=['values','west','Fetching\x20exit\x20in\x20direction:\x20','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','addExit','11kvQcKW','south','(((.+)+)+)+$','123252iMgFZU','23468nrGMpD','Checking\x20if\x20exit\x20in\x20direction\x20','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','6uiaMbo','13ICzTFv','addItem','isStartRoom','write','apply','INSIDE','780590iyshOf','name','setPuzzle','18ybRBhE','EAST','1754019SrppHF','riddle','say','speak','roomA','getExit','toString','north','roomType','inventory','SOUTH','18443OKeErY','36nlCAUQ','findExistingDoor','The\x20','puzzle','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','roomB','Invalid\x20direction:\x20','exits','Room\x20created:\x20','.\x20Success:\x20','hasItem','checkIfLocked','get','constructor','search','attemptUnlock','logger','down','east','removeItem','description','221555AyvzKS','Puzzle\x20set\x20for\x20room\x20','WEST','171112hqeHbk','getOppositeDirection','DOWN','35Zcmzep','isExitLocked'];a53c=function(){return u;};return a53c();}function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x158;let f=c[d];return f;},a53d(a,b);}import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{['logger']=Logger['getInstance']();[a53i(0x196)];[a53i(0x179)];[a53i(0x16c)]=new Map();[a53i(0x161)];[a53i(0x191)];[a53i(0x162)]=new Inventory();constructor(a){const j=a53i;super(),this['name']=a[j(0x196)],this[j(0x179)]=a['description'],this[j(0x161)]=a[j(0x161)]||RoomType[j(0x194)],a[j(0x16c)]&&(this['exits']=a[j(0x16c)]||new Map()),a[j(0x162)]&&(this['inventory']=a[j(0x162)]),a[j(0x168)]&&(this['puzzle']=a[j(0x168)]),this[j(0x191)]=a[j(0x191)]||![],this['logger']['write'](j(0x16d)+this[j(0x196)]);}[a53i(0x15b)](a,b){const k=a53i;this['emit'](k(0x15c),a,b);}[a53i(0x186)](a,b,c){const l=a53i;let d=this[l(0x166)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits']['set'](a,d),b[l(0x16c)]['set'](this[l(0x17e)](a),d);}['attemptUnlockExit'](a,b){const m=a53i,c=this[m(0x16c)][m(0x171)](a);if(c instanceof Door){const d=c[m(0x174)](b);return this[m(0x175)]['write'](m(0x185)+a+m(0x16e)+d),d?m(0x167)+c[m(0x196)]+'\x20unlocked!':'The\x20'+c[m(0x196)]+'\x20remains\x20locked.';}return this[m(0x175)][m(0x192)]('No\x20locked\x20exit\x20found\x20in\x20direction\x20'+a),m(0x18d);}[a53i(0x15e)](a){const n=a53i;return this[n(0x175)][n(0x192)](n(0x184)+a),this[n(0x16c)][n(0x171)](a);}[a53i(0x181)](a){const o=a53i,b=this[o(0x16c)]['get'](a),c=b instanceof Door&&b[o(0x170)]();return this[o(0x175)][o(0x192)](o(0x18c)+a+'\x20is\x20locked.\x20Result:\x20'+c),c;}[a53i(0x190)](a){const p=a53i;this[p(0x162)]['addItem'](a),this[p(0x175)]['write']('Item\x20added\x20to\x20room\x20'+this[p(0x196)]+':\x20'+a['name']);}[a53i(0x178)](a){const q=a53i;this[q(0x162)][q(0x16f)](a['name'])?(this['inventory'][q(0x178)](a[q(0x196)]),this['logger'][q(0x192)]('Item\x20removed\x20from\x20room\x20'+this['name']+':\x20'+a[q(0x196)])):this['logger']['write'](q(0x169)+this[q(0x196)]+':\x20'+a[q(0x196)]);}[a53i(0x197)](a){const r=a53i;this[r(0x168)]=a,this['logger'][r(0x192)](r(0x17b)+this[r(0x196)]+':\x20'+a[r(0x15a)]);}[a53i(0x17e)](a){const s=a53i;switch(a){case s(0x160):return Direction[s(0x163)];case s(0x188):return Direction['NORTH'];case s(0x177):return Direction[s(0x17c)];case s(0x183):return Direction[s(0x158)];case'up':return Direction[s(0x17f)];case s(0x176):return Direction['UP'];default:throw new Error(s(0x16b)+a);}}[a53i(0x166)](a){const t=a53i;for(const b of this['exits'][t(0x182)]()){if(b instanceof Door){if(b[t(0x15d)]===this&&b[t(0x16a)]===a||b[t(0x16a)]===this&&b[t(0x15d)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54l=a54d;
|
|
1
|
+
const a54l=a54d;function a54c(){const E=['Failed\x20to\x20add\x20puzzle.\x20Room\x20','No\x20actor\x20with\x20name\x20','get','rooms','6067278GIgTbY','Failed\x20to\x20set\x20','actors','.\x20Room\x20','Scene\x20initialized\x20with\x20rooms:\x20','roomConfiguration','warn','push','initialize','length','toString','setPuzzle','name','targetRoom','removeActor','currentLocation','setCharacterLocation','determineStartRoom','Room\x20\x22','characterLocations','keys','delete','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','getInstance','allActors','Added\x20puzzle\x20to\x20room\x20','25642qtNEIQ','values','createExitsFromConfig','getPlayer','from','direction','toUpperCase','apply','isStartRoom','has','Failed\x20to\x20add\x20item\x20','addItem','addActor','set','2GiwTBO','exits','4897971nRLxfo','225282LZVnEg','player','addExit','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','\x20not\x20found\x20in\x20scene.','generateRoomsFromConfig','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','1064795RlGqtD','23772ymfydx','Removed\x20room\x20from\x20scene:\x20','getCharacterLocation','\x20to\x20room\x20','getActor','logger','(((.+)+)+)+$','addRoom','roomFactory','\x20is\x20now\x20in\x20room\x20','join','write','addPuzzleToRoom','constructor','4sxgULZ','addItemToRoom','\x22\x20does\x20not\x20exist.','connectRooms','keyRequired','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','5428872Gjsakb'];a54c=function(){return E;};return a54c();}(function(a,b){const i=a54d,c=a();while(!![]){try{const d=-parseInt(i(0x8b))/0x1*(parseInt(i(0xc9))/0x2)+-parseInt(i(0x8e))/0x3+-parseInt(i(0xa4))/0x4*(-parseInt(i(0x95))/0x5)+-parseInt(i(0x96))/0x6+-parseInt(i(0xaf))/0x7+parseInt(i(0xaa))/0x8+parseInt(i(0x8d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x715cf));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a['toString']()['search']('(((.+)+)+)+$')[k(0xb9)]()[k(0xa3)](a54a)['search'](k(0x9c));});a54a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x87;let f=c[d];return f;},a54d(a,b);}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];['player'];[a54l(0x9b)];[a54l(0xb1)];[a54l(0xc2)]=new Map();['roomFactory'];constructor(a){const m=a54l;super(),this[m(0x9e)]=new RoomFactory(),this[m(0x8f)]=a[m(0x8f)],this[m(0xae)]=this[m(0x93)](a[m(0xb4)]),this['logger']=Logger[m(0xc6)](),this[m(0xb1)]=new Map(),this['createExitsFromConfig'](a['roomConfiguration']),this[m(0x9b)][m(0xa1)](m(0xb3)+Object['keys'](this[m(0xae)])[m(0xa0)](',\x20'));}[a54l(0xb7)](){const n=a54l;this[n(0x8f)][n(0xbe)]=this[n(0xc0)]();}[a54l(0x93)](a){const o=a54l;if(!this[o(0x9e)])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this[o(0x9e)]['createRoom'](c);b[c[o(0xbb)]]=d;}return b;}[a54l(0xcb)](a){const p=a54l;for(const b of a){const c=this[p(0xae)][b[p(0xbb)]];if(b[p(0x8c)])for(const d of b[p(0x8c)]){const e=d[p(0xce)][p(0xcf)](),f=d[p(0xbc)],g=d[p(0xa8)],h=this[p(0xae)][f];h&&c[p(0x90)](Direction[e],h,g);}}}[a54l(0x89)](a){const q=a54l;if(this[q(0xb1)][q(0xd2)](a[q(0xbb)]))throw new Error('Actor\x20with\x20name\x20'+a['name']+'\x20already\x20exists\x20in\x20the\x20scene.');this[q(0xb1)][q(0x8a)](a['name'],a);}[a54l(0xbd)](a){const r=a54l;if(!this[r(0xb1)][r(0xd2)](a))throw new Error(r(0xac)+a+'\x20found\x20in\x20the\x20scene.');this[r(0xb1)][r(0xc4)](a);}[a54l(0x9a)](a){const s=a54l;return this[s(0xb1)][s(0xad)](a);}get[a54l(0xc7)](){const t=a54l;return Array[t(0xcd)](this[t(0xb1)][t(0xca)]());}[a54l(0x9d)](a){const u=a54l;this[u(0xae)][a['name']]=a,this[u(0x9b)]['write']('Added\x20room\x20to\x20scene:\x20'+a['name']);}['removeRoom'](a){const v=a54l;return this['rooms'][a]?(delete this[v(0xae)][a],this[v(0x9b)][v(0xa1)](v(0x97)+a),!![]):(this[v(0x9b)]['write'](v(0x94)+a),![]);}[a54l(0xa5)](a,b){const w=a54l,c=this[w(0xae)][b];c?(c[w(0x88)](a),this[w(0x9b)][w(0xa1)]('Added\x20item\x20'+a[w(0xbb)]+w(0x99)+c[w(0xbb)])):this[w(0x9b)]['write'](w(0x87)+a[w(0xbb)]+w(0xb2)+b+w(0x92));}[a54l(0xa2)](a,b){const x=a54l,c=this[x(0xae)][b];c?(c[x(0xba)](a),this[x(0x9b)][x(0xa1)](x(0xc8)+c[x(0xbb)])):this[x(0x9b)][x(0xa1)](x(0xab)+b+x(0x92));}[a54l(0xbf)](a,b){const y=a54l,c=this[y(0xae)][b];c?(this['characterLocations'][y(0x8a)](a[y(0xbb)],c),this[y(0x9b)][y(0xa1)](a[y(0xbb)]+y(0x9f)+c[y(0xbb)])):this[y(0x9b)][y(0xa1)](y(0xb0)+a[y(0xbb)]+'\x27s\x20location.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a54l(0x98)](a){const z=a54l;return this[z(0xc2)][z(0xad)](a[z(0xbb)]);}[a54l(0xc0)](){const A=a54l,a=[];for(const c in this[A(0xae)]){if(this[A(0xae)]['hasOwnProperty'](c)){const d=this[A(0xae)][c];d[A(0xd1)]&&a[A(0xb6)](d);}}if(a[A(0xb8)]>0x1)throw new Error(A(0xa9));if(a['length']===0x1)return a[0x0];const b=Object[A(0xc3)](this[A(0xae)]);if(b[A(0xb8)]===0x0)throw new Error(A(0xc5));return console[A(0xb5)](A(0x91)),this['rooms'][b[0x0]];}[a54l(0xcc)](){const B=a54l;return this[B(0x8f)];}['getRooms'](){const C=a54l;return this[C(0xae)];}[a54l(0xa7)](a,b,c,d){const D=a54l,e=this['rooms'][a],f=this[D(0xae)][c];if(!e)throw new Error(D(0xc1)+a+D(0xa6));if(!f)throw new Error(D(0xc1)+c+D(0xa6));e[D(0x90)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x172;var f=c[d];return f;},a55d(a,b);}var a55j=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(0x1a5))/0x1*(-parseInt(f(0x185))/0x2)+parseInt(f(0x194))/0x3*(parseInt(f(0x196))/0x4)+-parseInt(f(0x176))/0x5+parseInt(f(0x1a2))/0x6*(-parseInt(f(0x17a))/0x7)+-parseInt(f(0x183))/0x8*(-parseInt(f(0x177))/0x9)+parseInt(f(0x18d))/0xa+parseInt(f(0x179))/0xb*(parseInt(f(0x174))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x43cee));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x18a)]()['search'](h(0x195))[h(0x18a)]()['constructor'](a55a)[h(0x197)](h(0x195));});a55a();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=a55d;super({'name':a,'description':b,'size':Size[i(0x182)],'category':Category[i(0x19f)],'shape':Shape[i(0x186)],'color':Color[i(0x18c)],'texture':Texture[i(0x17f)],'rating':Rating[i(0x19a)],'weight':0x1});}[a55j(0x190)](){var k=a55j;return this[k(0x17c)];}}export class Sword extends Item{constructor(a,b){var l=a55j;super({'name':a,'description':b,'size':Size[l(0x182)],'category':Category[l(0x1aa)],'shape':Shape[l(0x1a0)],'color':Color[l(0x1a7)],'texture':Texture[l(0x1a4)],'rating':Rating[l(0x19a)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var m=a55j;super({'name':a,'description':b,'size':Size['Large'],'category':Category['Weapon'],'shape':Shape[m(0x178)],'color':Color[m(0x19e)],'texture':Texture[m(0x1a4)],'rating':Rating[m(0x18f)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var n=a55j;super({'name':a,'description':b,'size':Size[n(0x182)],'category':Category[n(0x187)],'shape':Shape[n(0x191)],'color':Color[n(0x1a7)],'texture':Texture[n(0x1a4)],'rating':Rating['Common'],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var o=a55j;super({'name':a,'description':b,'size':Size[o(0x1a6)],'category':Category['BodyArmor'],'shape':Shape[o(0x186)],'color':Color[o(0x1a7)],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var p=a55j;super({'name':a,'description':b,'size':Size[p(0x182)],'category':Category[p(0x175)],'shape':Shape[p(0x186)],'color':Color['Grey'],'texture':Texture[p(0x1a4)],'rating':Rating[p(0x19a)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var q=a55j;super({'name':a,'description':b,'size':Size[q(0x182)],'category':Category[q(0x189)],'shape':Shape['Circle'],'color':Color['Brown'],'texture':Texture['Smooth'],'rating':Rating[q(0x19a)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var r=a55j;super({'name':a,'description':b,'size':Size[r(0x193)],'category':Category[r(0x19d)],'shape':Shape['Circle'],'color':Color[r(0x19e)],'texture':Texture[r(0x17f)],'rating':Rating[r(0x19a)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a55j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['ArmArmor'],'shape':Shape[s(0x186)],'color':Color[s(0x1a7)],'texture':Texture[s(0x1a4)],'rating':Rating['Common'],'weight':0x3});}}export class Key extends Item{constructor(a,b){var t=a55j;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category[t(0x1a9)],'shape':Shape[t(0x186)],'color':Color[t(0x18c)],'texture':Texture[t(0x17f)],'rating':Rating['Common'],'weight':0x0});}['use'](){var u=a55j;return u(0x172);}}export class Weapon extends Item{constructor(a,b){var v=a55j;super({'name':a,'description':b,'size':Size[v(0x182)],'category':Category[v(0x1aa)],'shape':Shape['Blade'],'color':Color[v(0x1a7)],'texture':Texture[v(0x1a4)],'rating':Rating['Common'],'weight':0x3});}[a55j(0x190)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class Book extends Item{[a55j(0x19b)];[a55j(0x17b)];[a55j(0x198)];constructor(a,b=a55j(0x192),c=a55j(0x19c)){var w=a55j;super({'name':a,'description':b,'size':Size[w(0x182)],'category':Category[w(0x18b)],'shape':Shape['Rectangle'],'color':Color[w(0x19e)],'texture':Texture[w(0x17f)],'rating':Rating[w(0x19a)],'weight':0x1}),this['author']=c,this[w(0x17b)]=new Date(),this[w(0x198)]=0x64;}[a55j(0x190)](){return'There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22';}}export class ShortSword extends Item{constructor(){var x=a55j;super({'name':x(0x18e),'description':x(0x1a1),'size':Size[x(0x182)],'category':Category[x(0x1aa)],'shape':Shape[x(0x1a0)],'color':Color[x(0x1a7)],'texture':Texture['Metallic'],'rating':Rating[x(0x19a)],'weight':0x3});}[a55j(0x190)](){var y=a55j;return y(0x1a3);}}export class SniperRifle extends Item{constructor(){var z=a55j;super({'name':z(0x188),'description':z(0x184),'size':Size[z(0x1a6)],'category':Category[z(0x1aa)],'shape':Shape[z(0x178)],'color':Color['Brown'],'texture':Texture[z(0x17f)],'rating':Rating[z(0x19a)],'weight':0x5});}['use'](){return'You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22';}}export class HolyGrail extends Item{constructor(){var A=a55j;super({'name':'Holy\x20Grail','description':A(0x17d),'size':Size['Small'],'category':Category[A(0x1a8)],'shape':Shape[A(0x191)],'color':Color[A(0x173)],'texture':Texture[A(0x1a4)],'rating':Rating['Legendary'],'weight':0x1});}[a55j(0x190)](){var B=a55j;return B(0x17e)+this[B(0x180)]+B(0x181);}}function a55c(){var C=['Gloves','Brown','Unknown','Blade','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','308058BhKNIR','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Metallic','77BXsMrq','Large','Grey','Cup','Key','Weapon','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Gold','5904sdFXXC','LegArmor','2031325FTOyvA','207pnsQnf','Rifle','15037SOgBcG','49jYkXVs','publishDate','description','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','You\x20hold\x20the\x20','Smooth','name','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Medium','78536XcArJA','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','10538Qrssaj','Rectangle','Helmet','Sniper\x20Rifle','Boots','toString','Book','Yellow','39090dExtrZ','Short\x20Sword','Rare','use','Circle','A\x20mysterious\x20book.','Small','1401vKBOSY','(((.+)+)+)+$','4684mdPIKI','search','pageCount','apply','Common','author','Unknown\x20Author'];a55c=function(){return C;};return a55c();}
|