@maka/maka-cli 4.7.10 → 4.7.12
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/gitignore +1 -0
- 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
|
|
1
|
+
const a37h=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0x1e8))/0x1+-parseInt(f(0x1dd))/0x2*(-parseInt(f(0x1e9))/0x3)+parseInt(f(0x1db))/0x4+parseInt(f(0x1e5))/0x5+-parseInt(f(0x1d6))/0x6*(parseInt(f(0x1da))/0x7)+-parseInt(f(0x1e1))/0x8+parseInt(f(0x1e4))/0x9*(-parseInt(f(0x1d3))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xbd2ac));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const g=a37d;return a37a[g(0x1e3)]()[g(0x1d5)](g(0x1e2))['toString']()[g(0x1d7)](a37a)[g(0x1d5)]('(((.+)+)+)+$');});a37a();import{Command}from'./command.js';function a37c(){const j=['search','1849026sKDAKA','constructor','actor','listItems','7UsdlAF','4883756rCGtbV','write','110lLCFjC','description','SearchCommand:\x20','execute','7017744afKdsy','(((.+)+)+)+$','toString','108MkBmaW','604445qISkGu','Search\x20for\x20items\x20in\x20your\x20area','logger','157714nnBRaB','61227fGaRFG','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','name','length','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','288660DHqetf','verb'];a37c=function(){return j;};return a37c();}function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x1d1;let f=c[d];return f;},a37d(a,b);}export class SearchCommand extends Command{static [a37h(0x1d4)]=a37h(0x1d5);static [a37h(0x1de)]=a37h(0x1e6);[a37h(0x1e0)](){const i=a37h,a=this[i(0x1d8)]['currentLocation']['inventory'][i(0x1d9)]();if(a[i(0x1d1)]===0x0)return this['logger'][i(0x1dc)](i(0x1df)+this['actor'][i(0x1eb)]+i(0x1ea)),i(0x1d2);const b=a['join'](',\x20');return this[i(0x1e7)]['write'](i(0x1df)+this[i(0x1d8)][i(0x1eb)]+'\x20found\x20the\x20following\x20items:\x20'+b),'You\x20search\x20the\x20area\x20and\x20find:\x20'+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x1d9;let f=c[d];return f;},a38d(a,b);}const a38i=a38d;function a38c(){const k=['Attempt\x20to\x20solve\x20a\x20puzzle.','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','addItem','18130824yvjqZS','inventory','2214237sgdqaS','verb','message','write','actor','constructor','2350664MJkxTL','apply','555468yafbgK','35MxzzwY','solve','5482672lsQFXS','toLowerCase','rewardItem','puzzle','toString','success','currentLocation','join','(((.+)+)+)+$','9308556aWiQjJ','execute','search','logger','4lVvJtk','6064005lMagwI'];a38c=function(){return k;};return a38c();}(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0x1dd))/0x1+parseInt(f(0x1ed))/0x2*(-parseInt(f(0x1f4))/0x3)+-parseInt(f(0x1e0))/0x4+parseInt(f(0x1ee))/0x5+-parseInt(f(0x1e9))/0x6+parseInt(f(0x1de))/0x7*(parseInt(f(0x1db))/0x8)+parseInt(f(0x1f2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xd06d6));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x1dc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x1e4)]()[h(0x1eb)](h(0x1e8))[h(0x1e4)]()[h(0x1da)](a38a)[h(0x1eb)]('(((.+)+)+)+$');});a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a38i(0x1f5)]=a38i(0x1df);static ['description']=a38i(0x1ef);[a38i(0x1ea)](a){const j=a38i,b=a[j(0x1e7)]('\x20')[j(0x1e1)](),c=this[j(0x1d9)][j(0x1e6)];if(!c||!c[j(0x1e3)])return this[j(0x1ec)][j(0x1f7)](j(0x1f0)),'There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.';const d=c[j(0x1e3)]['solve'](b,this[j(0x1d9)][j(0x1f3)]);return d[j(0x1e5)]&&c[j(0x1e3)]['rewardItem']&&this[j(0x1d9)][j(0x1f3)][j(0x1f1)](c[j(0x1e3)][j(0x1e2)]),this[j(0x1ec)][j(0x1f7)]('SolveCommand:\x20'+d[j(0x1f6)]),d[j(0x1f6)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a39c(){const k=['1697418ePwsAm','32nyEvpX','143997HYqFXa','name','103464HpyOCX','\x22\x20not\x20found\x20in\x20','2643832fUhuBM','There\x20is\x20no\x20item\x20\x22','search','toString','4231611wotzZH','Error\x20during\x20\x27Take\x27\x20command:\x20','\x22\x20in\x20this\x20room.','The\x20item\x20\x22','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','write','\x22\x20not\x20retrieved\x20from\x20','350LMLSGo','constructor','Pick\x20up\x20an\x20item.','removeItem','logger','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','message','inventory','addInventory','(((.+)+)+)+$','\x22\x20from\x20','take','4928260HzMEAW','getItem','Successfully\x20removed\x20\x22','Item\x20\x22','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','hasItem','3145604INPkkS','join','actor','\x22\x20to\x20'];a39c=function(){return k;};return a39c();}function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x12b;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(0x132))/0x1+-parseInt(f(0x136))/0x2+-parseInt(f(0x130))/0x3+parseInt(f(0x12c))/0x4+-parseInt(f(0x14d))/0x5+-parseInt(f(0x134))/0x6*(-parseInt(f(0x141))/0x7)+parseInt(f(0x131))/0x8*(parseInt(f(0x13a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xc34c4));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(0x139)]()[g(0x138)](g(0x14a))[g(0x139)]()[g(0x142)](a39a)[g(0x138)](g(0x14a));});a39a();import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']=a39h(0x14c);static ['description']=a39h(0x143);['execute'](a){const i=a39h;return this[i(0x145)]['write'](i(0x13e)+a[i(0x12d)]('\x20')),this[i(0x14c)](a);}[a39h(0x14c)](a){const j=a39h,b=a[j(0x12d)]('\x20')['toLowerCase'](),c=this[j(0x12e)]['currentLocation'];if(!c[j(0x148)][j(0x12b)](b))return this[j(0x145)][j(0x13f)](j(0x150)+b+j(0x135)+c[j(0x133)]+'\x20during\x20\x27Take\x27\x20command.'),j(0x137)+b+j(0x13c);const d=c[j(0x148)][j(0x14e)](b);if(!d)return this[j(0x145)][j(0x13f)]('Item\x20\x22'+b+j(0x140)+c[j(0x133)]+j(0x151)),'There\x20is\x20no\x20item\x20\x22'+b+j(0x13c);try{return this[j(0x12e)][j(0x149)](d),this[j(0x145)]['write']('Successfully\x20added\x20\x22'+b+j(0x12f)+this[j(0x12e)][j(0x133)]+j(0x146)),c['inventory'][j(0x144)](b),this[j(0x145)][j(0x13f)](j(0x14f)+b+j(0x14b)+c[j(0x133)]+j(0x151)),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this[j(0x145)][j(0x13f)](j(0x13b)+e[j(0x147)]),j(0x13d)+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40h=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x18b))/0x1*(parseInt(f(0x19c))/0x2)+parseInt(f(0x1a2))/0x3*(-parseInt(f(0x199))/0x4)+parseInt(f(0x19a))/0x5*(-parseInt(f(0x194))/0x6)+-parseInt(f(0x193))/0x7+parseInt(f(0x191))/0x8+parseInt(f(0x195))/0x9+parseInt(f(0x190))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x92fcc));function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x18a;let f=c[d];return f;},a40d(a,b);}const a40b=(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;};}()),a40a=a40b(this,function(){const g=a40d;return a40a[g(0x19d)]()[g(0x196)]('(((.+)+)+)+$')['toString']()[g(0x18a)](a40a)['search']('(((.+)+)+)+$');});function a40c(){const j=['1285109lKNxBR','1108518jDlIaQ','9049059LTioxA','search','\x20unqeuiped\x20','join','4UJBxca','25IdhApk','description','2uHjxYb','toString','name','Unequip\x20an\x20item.','verb','logger','936273IZPYle','constructor','714671JbSOEM','unqeuip','toLowerCase','write','execute','10917250CTjqxy','5111984xeHTRE','actor'];a40c=function(){return j;};return a40c();}a40a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a40h(0x1a0)]=a40h(0x18c);static [a40h(0x19b)]=a40h(0x19f);[a40h(0x18f)](a){const i=a40h,b=a[i(0x198)]('\x20')[i(0x18d)](),c=this[i(0x192)]['unequip'](b);return this[i(0x1a1)][i(0x18e)]('UnequipCommand:\x20'+this[i(0x192)][i(0x19e)]+i(0x197)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=-parseInt(h(0x145))/0x1*(-parseInt(h(0x14e))/0x2)+parseInt(h(0x161))/0x3+-parseInt(h(0x147))/0x4+parseInt(h(0x144))/0x5*(-parseInt(h(0x15b))/0x6)+-parseInt(h(0x164))/0x7+parseInt(h(0x158))/0x8*(parseInt(h(0x15c))/0x9)+parseInt(h(0x14f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xa497e));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a41d;if(c){const e=c[i(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a[j(0x163)]()['search']('(((.+)+)+)+$')[j(0x163)]()['constructor'](a41a)[j(0x16f)]('(((.+)+)+)+$');});function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x144;let f=c[d];return f;},a41d(a,b);}function a41c(){const m=['There\x27s\x20no\x20door\x20named\x20\x22','get','actor','description','871101fyDFHf','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','toString','8395779eSwyiC','\x20is\x20attempted\x20to\x20unlock\x20','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','\x22\x20here.','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','apply','verb','unlock','UnlockCommand:\x20','length','search','971785uPUWmF','307583FcCTBB','currentLocation','3931220xOOwoT','exits','inventory','execute','name','.\x20Result:\x20','isValidDirection','2OJqCHc','25701740FqBcye','getItem','attemptUnlockExit','write','Unlock\x20a\x20door.','unlockItemOrSolution','has','error','hasItem','723528VURakc','toLowerCase','logger','18PRrGSQ','27wNPlFr'];a41c=function(){return m;};return a41c();}a41a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a41k(0x16b)]=a41k(0x16c);static [a41k(0x160)]=a41k(0x153);[a41k(0x14a)](a){return this['unlock'](a);}[a41k(0x16c)](a){const l=a41k;if(a[l(0x16e)]===0x0)return this[l(0x15a)][l(0x156)]('UnlockCommand:\x20No\x20target\x20specified.'),l(0x162);const b=a[0x0][l(0x159)](),c=this[l(0x15f)][l(0x146)];if(this[l(0x14d)](b)&&c[l(0x148)][l(0x155)](b)){const d=c[l(0x148)][l(0x15e)](b);if(d instanceof Door){const e=d[l(0x154)]?.[l(0x159)]();if(e&&this['actor'][l(0x149)][l(0x157)](e)){const f=this[l(0x15f)][l(0x149)][l(0x150)](e);if(f){const g=c[l(0x151)](b,f['name']);return this['logger']['write'](l(0x16d)+this['actor'][l(0x14b)]+l(0x165)+b+l(0x14c)+g),g;}}return this['logger'][l(0x152)](l(0x16d)+this['actor'][l(0x14b)]+l(0x166)+b+'.'),l(0x168);}else return this['logger'][l(0x152)](l(0x16d)+b+l(0x169)+c[l(0x14b)]+'.'),l(0x15d)+b+'\x22\x20here.';}else return this['logger'][l(0x152)]('UnlockCommand:\x20'+b+l(0x169)+c[l(0x14b)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+l(0x167);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42h=a42d;function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-
|
|
1
|
+
function a42c(){const j=['721593NsLFLG','61428hRQbax','name','Use\x20an\x20item.','\x20to\x20use.','10434hhECMA','38WXGvKo','use','actor','You\x20can\x27t\x20use\x20the\x20','\x20attempted\x20to\x20use\x20','constructor','logger','execute','toLowerCase','771208DQcMpa','\x20doesn\x27t\x20have\x20a\x20use\x20method.','\x20in\x20this\x20way.',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','834036FqokDG','search','getItem','\x20used\x20','(((.+)+)+)+$','UseCommand:\x20','description','257604xsFaQR','10epkKep','86499KMuwWL','\x27s\x20inventory.','write','hasItem','55YpjxYE','You\x20don\x27t\x20have\x20the\x20','verb','inventory'];a42c=function(){return j;};return a42c();}const a42h=a42d;function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xdc;let f=c[d];return f;},a42d(a,b);}(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0xfe))/0x1+parseInt(f(0xe8))/0x2*(-parseInt(f(0xe7))/0x3)+parseInt(f(0xfc))/0x4+parseInt(f(0xde))/0x5*(parseInt(f(0xe3))/0x6)+parseInt(f(0xf5))/0x7+-parseInt(f(0xf1))/0x8+-parseInt(f(0xe2))/0x9*(-parseInt(f(0xfd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x1f182));const a42b=(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;};}()),a42a=a42b(this,function(){const g=a42d;return a42a['toString']()[g(0xf6)](g(0xf9))['toString']()[g(0xed)](a42a)[g(0xf6)](g(0xf9));});a42a();import{Command}from'./command.js';export class UseCommand extends Command{static [a42h(0xe0)]='use';static [a42h(0xfb)]=a42h(0xe5);[a42h(0xef)](a){return this['use'](a);}[a42h(0xe9)](a){const i=a42h,b=a['join']('\x20')[i(0xf0)]();if(!this[i(0xea)][i(0xe1)][i(0xdd)](b))return this[i(0xee)]['write'](i(0xfa)+this[i(0xea)][i(0xe4)]+i(0xec)+b+i(0xf4)),i(0xdf)+b+i(0xe6);const c=this[i(0xea)][i(0xe1)][i(0xf7)](b);if(!c)return this['logger'][i(0xdc)](i(0xfa)+b+'\x20not\x20retrieved\x20from\x20'+this[i(0xea)][i(0xe4)]+i(0xff)),i(0xdf)+b+i(0xe6);if(typeof c[i(0xe9)]==='function'){const d=c['use']();return this[i(0xee)]['write'](i(0xfa)+this['actor'][i(0xe4)]+i(0xf8)+b+'.'),d;}else return this['logger']['write'](i(0xfa)+b+i(0xf2)),i(0xeb)+b+i(0xf3);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x87))/0x1*(parseInt(f(0x83))/0x2)+-parseInt(f(0x7f))/0x3+parseInt(f(0x88))/0x4+parseInt(f(0x82))/0x5+parseInt(f(0x89))/0x6+-parseInt(f(0x80))/0x7+-parseInt(f(0x85))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x695e7));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x8a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x81)]()[h(0x8c)]('(((.+)+)+)+$')[h(0x81)]()['constructor'](a43a)['search']('(((.+)+)+)+$');});a43a();function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x7f;let f=c[d];return f;},a43d(a,b);}export class CommandFactory{static ['commandMap']={};static[a43i(0x86)](a,b){const j=a43i;this[j(0x8b)][a]=b;}static['createCommand'](a,b){const k=a43i,c=this[k(0x8b)][a];if(c)return new c(b);return null;}static[a43i(0x84)](){const l=a43i;return this[l(0x8b)];}}function a43c(){const m=['5072753CyYkoA','toString','3347415lQptIj','2820ihECqa','getAllRegisteredCommands','6896376fTyTqS','registerCommand','211CQjYSG','2508272Lnhusk','2949612jliOWI','apply','commandMap','search','202038HnmbJY'];a43c=function(){return m;};return a43c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a44j=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(0xf0))/0x1+parseInt(f(0x108))/0x2+parseInt(f(0xef))/0x3+-parseInt(f(0xf5))/0x4+parseInt(f(0xf3))/0x5*(-parseInt(f(0x103))/0x6)+-parseInt(f(0x10e))/0x7*(parseInt(f(0xf4))/0x8)+parseInt(f(0x10c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x8a551));function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xea;let f=c[d];return f;},a44d(a,b);}const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0xfa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0xfe)]()[h(0xf1)](h(0x105))[h(0xfe)]()[h(0xff)](a44a)[h(0xf1)](h(0x105));});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 a44c(){const n=['rewardItem','forEach','setPuzzle','roomType','bodyarmor','book','3218118nCvmms','690470CmzOan','search','boots','26395EafOkQ','8XqZspi','2077972NqXzgl','INSIDE','createPuzzle','legarmor','key','apply','description','rifle','convertToRoomConfig','toString','constructor','name','inventory','toUpperCase','114yiatgK','createItem','(((.+)+)+)+$','isStartRoom','items','1506616GzCLVd','puzzle','type','content','3752397yFGhCL','helmet','2562518FYtxDn'];a44c=function(){return n;};return a44c();}export class RoomFactory{['createRoom'](a){const i=a44d,b=this['convertToRoomConfig'](a),c=new Room(b);if(a[i(0x107)]){const d=new Inventory();a[i(0x107)][i(0xea)](e=>{d['addItem'](this['createItem'](e));}),c[i(0x101)]=d;}return a[i(0x109)]&&c[i(0xeb)](this[i(0xf7)](a[i(0x109)])),c;}[a44j(0x104)](a){const k=a44j;switch(a[k(0x10a)]){case k(0xf9):return new Key(a[k(0x100)],a['description']);case k(0xee):return new Book(a[k(0x100)],a['description'],a[k(0x10b)]);case'sword':return new Sword(a[k(0x100)],a[k(0xfb)]);case k(0xfc):return new Rifle(a[k(0x100)],a[k(0xfb)]);case k(0x10d):return new Helmet(a[k(0x100)],a[k(0xfb)]);case k(0xed):return new BodyArmor(a[k(0x100)],a['description']);case k(0xf8):return new LegArmor(a['name'],a[k(0xfb)]);case k(0xf2):return new Boots(a[k(0x100)],a[k(0xfb)]);case'gloves':return new Gloves(a[k(0x100)],a[k(0xfb)]);case'gauntlets':return new Gauntlets(a['name'],a[k(0xfb)]);default:return new BasicItem(a['name'],a[k(0xfb)]);}}['createPuzzle'](a){const l=a44j,b=this[l(0x104)](a[l(0x10f)]);return new Puzzle({...a,'rewardItem':b});}[a44j(0xfd)](a){const m=a44j,b=a[m(0xec)]&&RoomType[a[m(0xec)][m(0x102)]()]?RoomType[a[m(0xec)]['toUpperCase']()]:RoomType[m(0xf6)];return{'name':a[m(0x100)],'description':a[m(0xfb)],'isStartRoom':a[m(0x106)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a45k=a45d;function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a45d(a,b);}(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(0x1ea))/0x1*(-parseInt(h(0x1bd))/0x2)+-parseInt(h(0x1cc))/0x3+-parseInt(h(0x1ba))/0x4+-parseInt(h(0x1c3))/0x5*(parseInt(h(0x1be))/0x6)+parseInt(h(0x1b7))/0x7*(-parseInt(h(0x1dc))/0x8)+-parseInt(h(0x1d7))/0x9+parseInt(h(0x1c8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x36466));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a45d;if(c){const e=c[i(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const j=a45d;return a45a[j(0x1e9)]()[j(0x1d0)](j(0x1e6))[j(0x1e9)]()[j(0x1b8)](a45a)['search'](j(0x1e6));});a45a();function a45c(){const s=['search','name','take','unequip','trim','lock','clear','1828710CypzUI','apply','initialize','getHelpMessage','Available\x20Commands:\x0a','14936BVrosN','slice','createCommand','registerCommands','instance','split','registerCommand','drop','player','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','(((.+)+)+)+$','unlock','help','toString','412578JppVtZ','determineStartRoom','1582IWOQeI','constructor','maka','1407940ILYANZ','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','scene','2wsdJgv','6vEAFis','toLowerCase','currentLocation','currentRoom','execute','2114210kfOgZQ','look','quit','getAllRegisteredCommands','-\x20clear:\x20Clear\x20the\x20screen.\x0a','21648170BmicTC','getInstance','handleInput','-\x20quit:\x20Exit\x20the\x20game.\x0a','389910ooxVsJ','rooms','hasOwnProperty','solve'];a45c=function(){return s;};return a45c();}import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a45k(0x1e0)];[a45k(0x1bc)];[a45k(0x1e4)];[a45k(0x1c1)];[a45k(0x1cd)];constructor(a,b){const l=a45k;this[l(0x1e4)]=a,this[l(0x1bc)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x1bc)][l(0x1d9)](),this[l(0x1e4)][l(0x1c0)]=this[l(0x1b6)](),this[l(0x1df)]();}[a45k(0x1df)](){const m=a45k;CommandFactory[m(0x1e2)](m(0x1c4),LookCommand),CommandFactory[m(0x1e2)]('go',GoCommand),CommandFactory[m(0x1e2)](m(0x1d2),TakeCommand),CommandFactory[m(0x1e2)]('use',UseCommand),CommandFactory[m(0x1e2)]('equip',EquipCommand),CommandFactory[m(0x1e2)](m(0x1d3),UnequipCommand),CommandFactory[m(0x1e2)](m(0x1cf),SolveCommand),CommandFactory[m(0x1e2)](m(0x1e3),DropCommand),CommandFactory[m(0x1e2)](m(0x1e7),UnlockCommand),CommandFactory['registerCommand'](m(0x1d5),LockCommand),CommandFactory[m(0x1e2)](m(0x1d0),SearchCommand),CommandFactory[m(0x1e2)]('say',SayCommand);}[a45k(0x1b6)](){const n=a45k;return this[n(0x1bc)][n(0x1b6)]();}['getWelcomeMessage'](){const o=a45k;return'Welcome,\x20'+this[o(0x1e4)][o(0x1d1)];}static[a45k(0x1c9)](a,b){const p=a45k;return!Game[p(0x1e0)]&&(Game[p(0x1e0)]=new Game(a,b)),Game[p(0x1e0)];}[a45k(0x1ca)](a){const q=a45k,b=a[q(0x1d4)]()[q(0x1e1)]('\x20'),c=b[0x0][q(0x1bf)](),d=b[q(0x1dd)](0x1);if(c===q(0x1c5))return null;if(c===q(0x1b9))return q(0x1bb);if(c===q(0x1e8))return this[q(0x1da)]();if(c===q(0x1d6))return'';const e={'actor':this[q(0x1e4)],'rooms':this[q(0x1bc)]['getRooms'](),'scene':this['scene']},f=CommandFactory[q(0x1de)](c,e);if(f){const g=f[q(0x1c2)](d);return g;}return q(0x1e5)+c+'\x22.';}['getHelpMessage'](){const r=a45k,a=CommandFactory[r(0x1c6)]();let b=r(0x1db);for(const c in a){if(a[r(0x1ce)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d['getDescription']()+'\x0a';}}return b+=r(0x1c7),b+=r(0x1cb),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-
|
|
1
|
+
function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x14f;var f=c[d];return f;},a46d(a,b);}(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0x15b))/0x1*(parseInt(f(0x158))/0x2)+parseInt(f(0x154))/0x3*(-parseInt(f(0x155))/0x4)+parseInt(f(0x157))/0x5+parseInt(f(0x156))/0x6*(-parseInt(f(0x151))/0x7)+-parseInt(f(0x15e))/0x8+-parseInt(f(0x15a))/0x9*(-parseInt(f(0x152))/0xa)+parseInt(f(0x150))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xae99f));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x15c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0x14f)]()[h(0x15d)](h(0x159))[h(0x14f)]()[h(0x153)](a46a)['search'](h(0x159));});a46a();function a46c(){var i=['22115AAbeiV','2554yPCjjW','(((.+)+)+)+$','1044WmEDoJ','699tLKzhH','apply','search','2993672jaAcNu','toString','19665910BDHaYK','464072zXHIow','15230kQFpXX','constructor','9129VVuWBN','848gQECUl','102NMckkD'];a46c=function(){return i;};return a46c();}export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';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(0x1e5))/0x1+parseInt(f(0x1d8))/0x2*(parseInt(f(0x1f2))/0x3)+parseInt(f(0x1d9))/0x4+parseInt(f(0x1da))/0x5*(-parseInt(f(0x1f1))/0x6)+-parseInt(f(0x1dc))/0x7*(-parseInt(f(0x1de))/0x8)+parseInt(f(0x1eb))/0x9*(-parseInt(f(0x1e3))/0xa)+parseInt(f(0x1ec))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xe6627));function a47c(){var n=['11020248JWSVOU','9395595ltGdUe','getInstance','roomB','.\x20Is\x20Locked:\x20','write','1602RYCTFh','408957zOOlUQ','Door\x20created\x20between\x20','Failed\x20to\x20unlock\x20door:\x20','isLockable','name','isLocked','Door\x20unlocked:\x20','20CILWfR','779380kSjpyq','2235HtKiXv','.\x20Used:\x20','7ApMJEy','search','2708680xQzcfS','(((.+)+)+)+$','unlockItemOrSolution','To\x20','roomA','10ekkEpZ','checkIfLocked','463289GBzYLN','getOtherSide','toString','logger','checkIfLockable','apply'];a47c=function(){return n;};return a47c();}var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a47d;if(c){var e=c[g(0x1ea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var h=a47d;return a47a[h(0x1e7)]()[h(0x1dd)]('(((.+)+)+)+$')[h(0x1e7)]()['constructor'](a47a)[h(0x1dd)](h(0x1df));});a47a();function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x1d5;var f=c[d];return f;},a47d(a,b);}import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];['roomB'];[a47i(0x1d6)];[a47i(0x1e0)];[a47i(0x1d5)];[a47i(0x1e8)];[a47i(0x1f5)];constructor(a){var j=a47i;super(),this[j(0x1e2)]=a[j(0x1e2)],this[j(0x1ee)]=a[j(0x1ee)],this[j(0x1d6)]=a['isLocked']||![],this[j(0x1e0)]=a['unlockItemOrSolution'],this[j(0x1d5)]=a[j(0x1d5)]?capitalCase(a[j(0x1d5)]):j(0x1e1)+a[j(0x1ee)][j(0x1d5)],this[j(0x1e8)]=Logger[j(0x1ed)](),this['isLockable']=!!a['unlockItemOrSolution'],this['logger'][j(0x1f0)](j(0x1f3)+this[j(0x1e2)][j(0x1d5)]+'\x20and\x20'+this[j(0x1ee)][j(0x1d5)]+j(0x1ef)+this[j(0x1d6)]);}[a47i(0x1e6)](a){var k=a47i;return this[k(0x1e2)]===a?this[k(0x1ee)]:this[k(0x1e2)];}['attemptUnlock'](a){var l=a47i;if(this[l(0x1d6)]&&this[l(0x1e0)]&&this[l(0x1e0)]===a)return this[l(0x1d6)]=![],this['logger'][l(0x1f0)](l(0x1d7)+this['name']+'.\x20Used:\x20'+a),!![];return this[l(0x1e8)][l(0x1f0)](l(0x1f4)+this[l(0x1d5)]+l(0x1db)+a),![];}[a47i(0x1e4)](){return this['isLocked'];}[a47i(0x1e9)](){var m=a47i;return this[m(0x1f5)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48i=a48d;
|
|
1
|
+
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0xae))/0x1+-parseInt(f(0xad))/0x2+parseInt(f(0xc2))/0x3*(parseInt(f(0xab))/0x4)+parseInt(f(0xb5))/0x5+parseInt(f(0xbb))/0x6*(-parseInt(f(0xac))/0x7)+parseInt(f(0xa8))/0x8*(-parseInt(f(0xb3))/0x9)+parseInt(f(0xc3))/0xa*(-parseInt(f(0xb1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xeaef2));function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x97;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(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x9e)]()['search']('(((.+)+)+)+$')['toString']()[h(0xb4)](a48a)[h(0xa2)]('(((.+)+)+)+$');});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';function a48c(){const r=['write','toLowerCase','10244456KbXaHw','weight','items','12bmAjOs','504567aKSXmL','934972gQcLXd','1496627cYrERP','getInstance','\x20to\x20inventory.','407lchrSp','map','9VkhsGf','constructor','4643885HqwdZX','values','join','.\x20Item\x20not\x20found.','removeItem','getItem','6TtsTBL','keys','Listed\x20items\x20in\x20inventory:\x20','\x20from\x20inventory.','set','Added\x20item:\x20','apply','527691ZrYkib','46130rAjBdL','Retrieved\x20details\x20for\x20item:\x20','listItems','Checked\x20for\x20item:\x20','getAllItems','logger','.\x20Exists:\x20','has','toString','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','Removed\x20item:\x20','getWeight','search','hasItem','Failed\x20to\x20remove\x20item:\x20','get'];a48c=function(){return r;};return a48c();}export class Inventory extends AbstractInventory{[a48i(0xaa)];[a48i(0x9b)];constructor(){const j=a48i;super(),this['items']=new Map(),this[j(0x9b)]=Logger[j(0xaf)]();}['addItem'](a){const k=a48i;this[k(0xaa)][k(0xbf)](a['name'][k(0xa7)](),a),this[k(0x9b)][k(0xa6)](k(0xc0)+a['name']+k(0xb0));}[a48i(0xb9)](a){const l=a48i,b=this[l(0xba)](a);if(b)return this[l(0xaa)]['delete'](a[l(0xa7)]()),this[l(0x9b)]['write'](l(0xa0)+a+l(0xbe)),b;return this['logger'][l(0xa6)](l(0xa4)+a+l(0xb8)),null;}[a48i(0xa3)](a){const m=a48i,b=this['items'][m(0x9d)](a[m(0xa7)]()),c=[...this['items'][m(0xbc)]()];return this[m(0x9b)][m(0xa6)](m(0x99)+a+'\x20in\x20'+c['join'](',\x20')+m(0x9c)+b+'.'),b;}[a48i(0xba)](a){const n=a48i,b=this[n(0xaa)][n(0xa5)](a[n(0xa7)]())||null;return b?this['logger'][n(0xa6)](n(0x97)+a+'.'):this[n(0x9b)][n(0xa6)](n(0x9f)+a+n(0xb8)),b;}[a48i(0x98)](){const o=a48i,a=[...this['items'][o(0xbc)]()],b=a[o(0xb2)](c=>capitalCase(c));return this['logger'][o(0xa6)](o(0xbd)+b[o(0xb7)](',\x20')+'.'),a;}[a48i(0xa1)](){const p=a48i;let a=0x0;for(const b of this[p(0xaa)][p(0xb6)]()){a+=b[p(0xa9)];}return a;}[a48i(0x9a)](){const q=a48i;return[...this[q(0xaa)][q(0xb6)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a49c(){var l=['199191BElQIV','10nQcZer','rating','309184wkDNhO','description','30mSZuTR','constructor','texture','apply','toString','605028XzZirX','7TerohO','2AoDhlM','search','name','.\x20Nothing\x20special\x20happens.','587169jGiqbu','weight','shape','6239904WOgCRA','color','95901TrojnP','uuid','You\x20use\x20the\x20','520200zQuUdW','size','category'];a49c=function(){return l;};return a49c();}function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x160;var f=c[d];return f;},a49d(a,b);}var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x164))/0x1+parseInt(f(0x176))/0x2*(-parseInt(f(0x16a))/0x3)+-parseInt(f(0x167))/0x4+parseInt(f(0x16b))/0x5*(-parseInt(f(0x174))/0x6)+parseInt(f(0x175))/0x7*(parseInt(f(0x16d))/0x8)+-parseInt(f(0x17a))/0x9*(parseInt(f(0x16f))/0xa)+parseInt(f(0x162))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x1a5bf));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x173)]()[h(0x177)]('(((.+)+)+)+$')[h(0x173)]()[h(0x170)](a49a)[h(0x177)]('(((.+)+)+)+$');});a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a49i(0x165)];['name'];['description'];[a49i(0x168)];['category'];[a49i(0x161)];[a49i(0x163)];[a49i(0x171)];[a49i(0x16c)];[a49i(0x160)];constructor(a){var j=a49i;super(),this[j(0x178)]=a[j(0x178)],this[j(0x16e)]=a[j(0x16e)],this['size']=a[j(0x168)],this[j(0x169)]=a[j(0x169)],this[j(0x161)]=a['shape'],this['color']=a[j(0x163)],this[j(0x171)]=a[j(0x171)],this[j(0x16c)]=a['rating'],this[j(0x160)]=a[j(0x160)],this['uuid']=a49e();}['use'](){var k=a49i;return k(0x166)+this[k(0x178)]+k(0x179);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0xe4))/0x1+-parseInt(f(0xf5))/0x2*(parseInt(f(0xe9))/0x3)+parseInt(f(0xeb))/0x4*(parseInt(f(0xf4))/0x5)+-parseInt(f(0xf0))/0x6+parseInt(f(0xed))/0x7*(-parseInt(f(0xea))/0x8)+parseInt(f(0xe8))/0x9*(-parseInt(f(0xe7))/0xa)+parseInt(f(0xe1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xf4183));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0xf1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0xf3)]()[h(0xde)](h(0xf7))[h(0xf3)]()[h(0xf6)](a50a)['search'](h(0xf7));});a50a();import{Player}from'./player.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xde;let f=c[d];return f;},a50d(a,b);}import{GoCommand}from'../commands/go.js';export class NPC extends Player{['_name'];[a50i(0xe2)];[a50i(0xe6)];[a50i(0xe3)];constructor(a,b,c,d){const j=a50i;super(d),this[j(0xdf)]=a,this[j(0xe2)]=b,this[j(0xe6)]=c;}get[a50i(0xee)](){return this['_name'];}[a50i(0xf2)](){const k=a50i;return this[k(0xe2)][Math[k(0xe0)](Math[k(0xec)]()*this[k(0xe2)][k(0xef)])];}['autonomousMove'](a){const l=a50i,b=a[Math[l(0xe0)](Math[l(0xec)]()*a[l(0xef)])];this[l(0xe5)](b[l(0xee)]);}['moveTo'](a){const m=a50i,b={'actor':this,'rooms':this[m(0xe6)],'scene':this[m(0xe3)]},c=new GoCommand(b);c['execute']([a]);}}function a50c(){const n=['(((.+)+)+)+$','search','_name','floor','57017433ebVDdH','_dialogue','scene','443463DRrDwd','moveTo','rooms','70BJvtfi','1102563AyiOHB','83901IOcYrv','1112uHOQIZ','5108ARXlKL','random','55531kAxEPd','name','length','9733950CTwzGH','apply','speak','toString','1495mPjuyM','102Aygkcl','constructor'];a50c=function(){return n;};return a50c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51h=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0xe7))/0x1+parseInt(f(0xe2))/0x2*(-parseInt(f(0x12d))/0x3)+-parseInt(f(0xf3))/0x4*(-parseInt(f(0x11b))/0x5)+-parseInt(f(0xe6))/0x6*(parseInt(f(0xfa))/0x7)+parseInt(f(0x102))/0x8*(parseInt(f(0x136))/0x9)+parseInt(f(0xfd))/0xa+parseInt(f(0xee))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x2634e));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['toString']()[g(0xfb)](g(0x110))[g(0x106)]()[g(0x127)](a51a)[g(0xfb)](g(0x110));});function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0xdf;let f=c[d];return f;},a51d(a,b);}a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';function a51c(){const A=['getInstance','\x20is\x20no\x20longer\x20listeng\x20in\x20','initialEquipment','Hat','2503314yvLleT','Invalid\x20category\x20or\x20slot:\x20','hasItem','head','unequipBySlot','4WFWEXo','legarmor','arms','You\x20don\x27t\x20have\x20','bodyarmor','Removed\x20','\x20is\x20now\x20listening\x20in\x20room\x20','1834FtUvuN','search','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','1432690hxtPLU','Boots','arm\x20armor','body\x20armor','Max\x20carrying\x20weight\x20must\x20be\x20positive.','16iYCOLB','removeItem','determineEquipmentSlot','category','toString','_playerName','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','inventory','feet','\x20in\x20your\x20inventory.','LegArmor','inventoryItems','log','boots','(((.+)+)+)+$','leaveRoom','\x20from\x20player\x27s\x20inventory.','Weapon','_inventory','unequip','Nexus','weapon','Failed\x20to\x20remove\x20','equipment','You\x20equipped\x20','381265XtRKYa','hear','_equipment','getWeight','leftHand','_currentLocation','You\x20can\x27t\x20equip\x20','bind','ArmArmor','You\x20unequipped\x20','_maxCarryingWeight','BodyArmor','constructor','addItem','weight','\x20slot.','enterRoom','shield','311367beSPAm','addInventory','off','maxCarryingWeight','armarmor','\x20to\x20player\x27s\x20inventory.','name','currentLocation','includes','517446dgecFn','write','toLowerCase','rightHand','gloves','canEquip','torso','removeInventory','speak','playerName','legs','6GXOYlC','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','A\x20featureless\x20room','values','426EjEgcN','75621aFGaMM','logger','equip'];a51c=function(){return A;};return a51c();}import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a51h(0x107)];[a51h(0x120)];[a51h(0x114)];[a51h(0x11d)];[a51h(0x125)]=0x32;[a51h(0xe8)];constructor(a){const i=a51h;super(),this[i(0x107)]=a[i(0xe0)],this['_currentLocation']=a['startLocation']||new Room({'name':i(0x116),'description':i(0xe4)}),this[i(0x114)]=new Inventory(),this[i(0xe8)]=Logger[i(0xea)]();if(a?.[i(0x10d)])for(const b of a[i(0x10d)]){this[i(0x114)][i(0x128)](b);}this[i(0x11d)]=a?.[i(0xec)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51h(0x133)](){const j=a51h;return this[j(0x107)];}get['currentLocation'](){const k=a51h;return this[k(0x120)];}set[a51h(0x134)](a){const l=a51h;this[l(0x120)]!==a&&(this['leaveRoom'](),this[l(0x12b)](a)),this['_currentLocation']=a;}get[a51h(0x109)](){const m=a51h;return this[m(0x114)];}get[a51h(0x119)](){return this['_equipment'];}set['equipment'](a){const n=a51h;this[n(0x11d)]=a;}get['maxCarryingWeight'](){return this['_maxCarryingWeight'];}set[a51h(0x130)](a){const o=a51h;a>0x0?this[o(0x125)]=a:console['error'](o(0x101));}get['currentWeight'](){const p=a51h;let a=this['_inventory'][p(0x11e)]();for(const b in this[p(0x11d)]){const c=this['_equipment'][b];c&&(a+=c['weight']);}return a;}[a51h(0x12e)](a){const q=a51h;if(this['currentWeight']+a[q(0x129)]>this[q(0x130)]){this[q(0xe8)][q(0x137)](q(0x108));throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this['_inventory'][q(0x128)](a),this[q(0xe8)][q(0x137)]('Added\x20'+a[q(0x133)]+q(0x132));}[a51h(0x13d)](a){const r=a51h;if(this['_inventory'][r(0x103)](a[r(0x133)]))return this[r(0xe8)][r(0x137)](r(0xf8)+a[r(0x133)]+r(0x112)),!![];return this[r(0xe8)][r(0x137)](r(0x118)+a[r(0x133)]+r(0x112)),![];}[a51h(0xe9)](a){const s=a51h;if(!this[s(0x114)][s(0xf0)](a['name']))return s(0xf6)+a['name']+s(0x10b);if(!this[s(0x13b)](a))return s(0x121)+a[s(0x133)]+'.';const b=this[s(0x104)](a['category']);if(!b)return a[s(0x133)]+s(0xe3);if(this['equipment'][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this[s(0x119)][b]=a,this[s(0x13d)](a),s(0x11a)+a[s(0x133)]+'.';}[a51h(0x115)](a){const t=a51h;let b=a;if(!this[t(0x119)][camelCase(b)]){b=this[t(0x104)](a);if(!b)return t(0xef)+a+'.';}return this[t(0xf2)](b);}['determineEquipmentSlot'](a){const u=a51h;switch(a[u(0x138)]()){case Category[u(0x113)][u(0x138)]():return u(0x139);case Category['Shield'][u(0x138)]():return u(0x11f);case Category['Gloves'][u(0x138)]():return u(0x13a);case Category['Helmet'][u(0x138)]():case Category[u(0xed)][u(0x138)]():return'head';case Category[u(0xfe)][u(0x138)]():return u(0x10a);case Category[u(0x10c)][u(0x138)]():return u(0xe1);case Category[u(0x123)]['toLowerCase']():return u(0xf5);case Category[u(0x126)][u(0x138)]():return u(0x13c);case u(0x117):return'rightHand';case u(0x12c):return'leftHand';case u(0x13a):return u(0x13a);case'helmet':case'hat':return u(0xf1);case u(0x10f):return u(0x10a);case'leg\x20armor':case u(0xf4):return u(0xe1);case u(0xff):case u(0x131):return u(0xf5);case u(0x100):case u(0xf7):case u(0x13c):return u(0x13c);default:return null;}}[a51h(0x13b)](a){const v=a51h;return Object[v(0xe5)](Category)[v(0x135)](a[v(0x105)]);}[a51h(0xf2)](a){const w=a51h,b=this['equipment'][a];if(!b)return w(0xfc)+a+w(0x12a);return this[w(0x12e)](b),this['equipment'][a]=null,w(0x124)+b[w(0x133)]+'.';}[a51h(0x11c)](a,b){const x=a51h;a!==this&&this[x(0xe8)][x(0x10e)](a[x(0x133)]+'\x20says:\x20\x22'+b+'\x22');}[a51h(0x12b)](a){const y=a51h;this[y(0x120)]=a,a['on']('speak',this[y(0x11c)][y(0x122)](this)),this['logger'][y(0x137)](this[y(0x133)]+y(0xf9)+a[y(0x133)]);}[a51h(0x111)](){const z=a51h;this[z(0x120)]&&(this[z(0x120)][z(0x12f)](z(0xdf),this['hear'][z(0x122)](this)),this['logger']['write'](this[z(0x133)]+z(0xeb)+this['_currentLocation'][z(0x133)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x14d))/0x1*(-parseInt(f(0x141))/0x2)+parseInt(f(0x144))/0x3+parseInt(f(0x12e))/0x4*(parseInt(f(0x13a))/0x5)+parseInt(f(0x14c))/0x6*(parseInt(f(0x136))/0x7)+-parseInt(f(0x13e))/0x8+parseInt(f(0x13c))/0x9*(parseInt(f(0x135))/0xa)+-parseInt(f(0x146))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xb33e4));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x13f)]()[h(0x14a)](h(0x134))['toString']()[h(0x148)](a52a)['search'](h(0x134));});a52a();function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x12e;var f=c[d];return f;},a52d(a,b);}function a52c(){var n=['You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','getInstance','solve','solved','riddle','(((.+)+)+)+$','7310peoGyQ','77mBfwbs','successMessage','apply','failureMessage','15llxjVV','requiredItem','864sllomh','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','1896616HSgbsN','toString','You\x20have\x20already\x20solved\x20this\x20puzzle.','2hhzNHx','hasItem','You\x20solved\x20the\x20puzzle!','3750861WASdEC','write','16846797MbAKTJ','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','constructor','Puzzle:\x20Correct\x20solution\x20provided.','search','matchesRequiredPhrase','472914JukXyd','246021IeKHZi','rewardItem','logger','requiredPhrase','748444kqbcyI'];a52c=function(){return n;};return a52c();}import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52i(0x14f)]=Logger[a52i(0x130)]();[a52i(0x132)]=![];[a52i(0x13b)];[a52i(0x150)];[a52i(0x133)];['rewardItem'];['successMessage'];['failureMessage'];constructor(a){var j=a52i;super(),this[j(0x13b)]=a[j(0x13b)],this[j(0x150)]=a['requiredPhrase'],this[j(0x133)]=a[j(0x133)],this[j(0x14e)]=a[j(0x14e)],this['successMessage']=a[j(0x137)]||j(0x143),this[j(0x139)]=a[j(0x139)]||j(0x12f);}['hasRequiredItem'](a){var k=a52i;if(this[k(0x13b)])return a[k(0x142)](this[k(0x13b)]);return![];}[a52i(0x14b)](a){var l=a52i;return this[l(0x150)]===a;}[a52i(0x131)](a,b){var m=a52i;if(this['solved'])return this[m(0x14f)][m(0x145)](m(0x13d)),{'success':![],'message':m(0x140)};return this['hasRequiredItem'](b)||this[m(0x14b)](a)?(this[m(0x132)]=!![],this['logger'][m(0x145)](m(0x149)),{'success':!![],'message':this[m(0x137)]}):(this[m(0x14f)]['write'](m(0x147)),{'success':![],'message':this[m(0x139)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53i=a53d;function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-
|
|
1
|
+
const a53i=a53d;function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x100;let f=c[d];return f;},a53d(a,b);}(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x113))/0x1*(parseInt(f(0x12d))/0x2)+-parseInt(f(0x129))/0x3+-parseInt(f(0x120))/0x4*(parseInt(f(0x10d))/0x5)+parseInt(f(0x139))/0x6*(parseInt(f(0x108))/0x7)+-parseInt(f(0x104))/0x8+parseInt(f(0x131))/0x9+parseInt(f(0x12b))/0xa*(parseInt(f(0x10a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xda9a0));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0x111)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a53a)[h(0x100)](h(0x109));});a53a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';function a53c(){const u=['getExit','getInstance','findExistingDoor','south','475612JWxERR','The\x20','No\x20locked\x20exit\x20found\x20in\x20direction\x20','DOWN','roomType','north','name','Invalid\x20direction:\x20','NORTH','4628196NSNuVZ','Item\x20added\x20to\x20room\x20','50DkAIKK','riddle','46020athYNR','write','hasItem','puzzle','11691144JZbCgs','removeItem','logger','isExitLocked','emit','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','apply','west','36wFeuoV','get','WEST','addItem','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','isStartRoom','speak','east','SOUTH','search','exits','values','setPuzzle','3570552PYqlFI','say','down','\x20is\x20locked.\x20Result:\x20','1626877AZtYvE','(((.+)+)+)+$','5136912mCMBMZ','set','.\x20Success:\x20','65updjhC','Room\x20created:\x20','Fetching\x20exit\x20in\x20direction:\x20','inventory','toString','Item\x20removed\x20from\x20room\x20','26vujCWF','Checking\x20if\x20exit\x20in\x20direction\x20','\x20unlocked!','roomA','getOppositeDirection','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','EAST','attemptUnlockExit','attemptUnlock'];a53c=function(){return u;};return a53c();}import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a53i(0x133)]=Logger[a53i(0x11d)]();[a53i(0x126)];['description'];[a53i(0x101)]=new Map();[a53i(0x124)];[a53i(0x13e)];[a53i(0x110)]=new Inventory();constructor(a){const j=a53i;super(),this[j(0x126)]=a[j(0x126)],this['description']=a['description'],this['roomType']=a[j(0x124)]||RoomType['INSIDE'],a[j(0x101)]&&(this[j(0x101)]=a[j(0x101)]||new Map()),a[j(0x110)]&&(this[j(0x110)]=a[j(0x110)]),a[j(0x130)]&&(this['puzzle']=a[j(0x130)]),this[j(0x13e)]=a[j(0x13e)]||![],this[j(0x133)]['write'](j(0x10e)+this[j(0x126)]);}[a53i(0x105)](a,b){const k=a53i;this[k(0x135)](k(0x13f),a,b);}['addExit'](a,b,c){const l=a53i;let d=this[l(0x11e)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits'][l(0x10b)](a,d),b[l(0x101)][l(0x10b)](this[l(0x117)](a),d);}[a53i(0x11a)](a,b){const m=a53i,c=this['exits'][m(0x13a)](a);if(c instanceof Door){const d=c[m(0x11b)](b);return this['logger'][m(0x12e)](m(0x136)+a+m(0x10c)+d),d?'The\x20'+c[m(0x126)]+m(0x115):m(0x121)+c['name']+'\x20remains\x20locked.';}return this['logger'][m(0x12e)](m(0x122)+a),m(0x118);}[a53i(0x11c)](a){const n=a53i;return this[n(0x133)][n(0x12e)](n(0x10f)+a),this[n(0x101)][n(0x13a)](a);}[a53i(0x134)](a){const o=a53i,b=this[o(0x101)][o(0x13a)](a),c=b instanceof Door&&b['checkIfLocked']();return this[o(0x133)][o(0x12e)](o(0x114)+a+o(0x107)+c),c;}[a53i(0x13c)](a){const p=a53i;this[p(0x110)][p(0x13c)](a),this[p(0x133)][p(0x12e)](p(0x12a)+this[p(0x126)]+':\x20'+a['name']);}[a53i(0x132)](a){const q=a53i;this[q(0x110)][q(0x12f)](a['name'])?(this[q(0x110)][q(0x132)](a['name']),this[q(0x133)][q(0x12e)](q(0x112)+this['name']+':\x20'+a['name'])):this[q(0x133)][q(0x12e)](q(0x13d)+this[q(0x126)]+':\x20'+a['name']);}[a53i(0x103)](a){const r=a53i;this[r(0x130)]=a,this[r(0x133)][r(0x12e)]('Puzzle\x20set\x20for\x20room\x20'+this[r(0x126)]+':\x20'+a[r(0x12c)]);}[a53i(0x117)](a){const s=a53i;switch(a){case s(0x125):return Direction[s(0x141)];case s(0x11f):return Direction[s(0x128)];case s(0x140):return Direction[s(0x13b)];case s(0x138):return Direction[s(0x119)];case'up':return Direction[s(0x123)];case s(0x106):return Direction['UP'];default:throw new Error(s(0x127)+a);}}['findExistingDoor'](a){const t=a53i;for(const b of this[t(0x101)][t(0x102)]()){if(b instanceof Door){if(b[t(0x116)]===this&&b['roomB']===a||b['roomB']===this&&b[t(0x116)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-
|
|
1
|
+
const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d=parseInt(i(0x1ae))/0x1*(parseInt(i(0x1c9))/0x2)+-parseInt(i(0x1cb))/0x3+parseInt(i(0x1d2))/0x4+-parseInt(i(0x1c6))/0x5*(parseInt(i(0x195))/0x6)+-parseInt(i(0x1cd))/0x7*(-parseInt(i(0x1ca))/0x8)+parseInt(i(0x1ba))/0x9*(parseInt(i(0x18f))/0xa)+-parseInt(i(0x1c0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x51666));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a[k(0x1bd)]()['search']('(((.+)+)+)+$')[k(0x1bd)]()['constructor'](a54a)[k(0x1bf)](k(0x1ce));});a54a();function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x18e;let f=c[d];return f;},a54d(a,b);}import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';function a54c(){const D=['allActors','Added\x20item\x20','2655nJbYsL','addExit','No\x20actor\x20with\x20name\x20','4KZRKoc','320752cMZZej','383004UxLnZL','keyRequired','105wZDSVW','(((.+)+)+)+$','\x20already\x20exists\x20in\x20the\x20scene.','getPlayer','exits','2437524XUHNuq','determineStartRoom','removeActor','1130QSmXFs','apply','addActor','actors','Room\x20\x22','\x20found\x20in\x20the\x20scene.','5838PcLudL','isStartRoom','Actor\x20with\x20name\x20','set','toUpperCase','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','\x20is\x20now\x20in\x20room\x20','get','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','\x20not\x20found\x20in\x20scene.','rooms','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','getCharacterLocation','Added\x20puzzle\x20to\x20room\x20','keys','createExitsFromConfig','Scene\x20initialized\x20with\x20rooms:\x20','values','length','Failed\x20to\x20add\x20puzzle.\x20Room\x20','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','roomFactory','write','getRooms','28641GmFScs','\x22\x20does\x20not\x20exist.','warn','from','Failed\x20to\x20add\x20item\x20','setPuzzle','currentLocation','push','characterLocations','generateRoomsFromConfig','initialize','logger','108XFOIVS','Failed\x20to\x20set\x20','name','toString','removeRoom','search','3208524eeNZri','\x20to\x20room\x20','player','roomConfiguration'];a54c=function(){return D;};return a54c();}import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a54l(0x1a0)];[a54l(0x1c2)];[a54l(0x1b9)];[a54l(0x192)];[a54l(0x1b6)]=new Map();[a54l(0x1ab)];constructor(a){const m=a54l;super(),this['roomFactory']=new RoomFactory(),this['player']=a[m(0x1c2)],this[m(0x1a0)]=this[m(0x1b7)](a['roomConfiguration']),this['logger']=Logger['getInstance'](),this[m(0x192)]=new Map(),this[m(0x1a5)](a[m(0x1c3)]),this['logger'][m(0x1ac)](m(0x1a6)+Object[m(0x1a4)](this[m(0x1a0)])['join'](',\x20'));}[a54l(0x1b8)](){const n=a54l;this['player'][n(0x1b4)]=this[n(0x1d3)]();}['generateRoomsFromConfig'](a){const o=a54l;if(!this[o(0x1ab)])throw new Error(o(0x19d));const b={};for(const c of a){const d=this[o(0x1ab)]['createRoom'](c);b[c[o(0x1bc)]]=d;}return b;}[a54l(0x1a5)](a){const p=a54l;for(const b of a){const c=this['rooms'][b[p(0x1bc)]];if(b[p(0x1d1)])for(const d of b['exits']){const e=d['direction'][p(0x199)](),f=d['targetRoom'],g=d[p(0x1cc)],h=this[p(0x1a0)][f];h&&c['addExit'](Direction[e],h,g);}}}[a54l(0x191)](a){const q=a54l;if(this['actors']['has'](a[q(0x1bc)]))throw new Error(q(0x197)+a[q(0x1bc)]+q(0x1cf));this[q(0x192)][q(0x198)](a[q(0x1bc)],a);}[a54l(0x18e)](a){const r=a54l;if(!this['actors']['has'](a))throw new Error(r(0x1c8)+a+r(0x194));this[r(0x192)]['delete'](a);}['getActor'](a){const s=a54l;return this[s(0x192)][s(0x19c)](a);}get[a54l(0x1c4)](){const t=a54l;return Array[t(0x1b1)](this['actors'][t(0x1a7)]());}['addRoom'](a){const u=a54l;this[u(0x1a0)][a[u(0x1bc)]]=a,this[u(0x1b9)][u(0x1ac)]('Added\x20room\x20to\x20scene:\x20'+a['name']);}[a54l(0x1be)](a){const v=a54l;return this[v(0x1a0)][a]?(delete this['rooms'][a],this[v(0x1b9)][v(0x1ac)]('Removed\x20room\x20from\x20scene:\x20'+a),!![]):(this[v(0x1b9)][v(0x1ac)](v(0x19a)+a),![]);}['addItemToRoom'](a,b){const w=a54l,c=this['rooms'][b];c?(c['addItem'](a),this[w(0x1b9)][w(0x1ac)](w(0x1c5)+a[w(0x1bc)]+w(0x1c1)+c[w(0x1bc)])):this[w(0x1b9)]['write'](w(0x1b2)+a[w(0x1bc)]+'.\x20Room\x20'+b+w(0x19f));}['addPuzzleToRoom'](a,b){const x=a54l,c=this[x(0x1a0)][b];c?(c[x(0x1b3)](a),this['logger'][x(0x1ac)](x(0x1a3)+c[x(0x1bc)])):this[x(0x1b9)][x(0x1ac)](x(0x1a9)+b+x(0x19f));}['setCharacterLocation'](a,b){const y=a54l,c=this['rooms'][b];c?(this['characterLocations'][y(0x198)](a[y(0x1bc)],c),this[y(0x1b9)]['write'](a['name']+y(0x19b)+c[y(0x1bc)])):this['logger']['write'](y(0x1bb)+a[y(0x1bc)]+'\x27s\x20location.\x20Room\x20'+b+y(0x19f));}[a54l(0x1a2)](a){const z=a54l;return this[z(0x1b6)]['get'](a[z(0x1bc)]);}[a54l(0x1d3)](){const A=a54l,a=[];for(const c in this[A(0x1a0)]){if(this[A(0x1a0)]['hasOwnProperty'](c)){const d=this[A(0x1a0)][c];d[A(0x196)]&&a[A(0x1b5)](d);}}if(a[A(0x1a8)]>0x1)throw new Error(A(0x1a1));if(a[A(0x1a8)]===0x1)return a[0x0];const b=Object['keys'](this['rooms']);if(b[A(0x1a8)]===0x0)throw new Error(A(0x1aa));return console[A(0x1b0)](A(0x19e)),this[A(0x1a0)][b[0x0]];}[a54l(0x1d0)](){const B=a54l;return this[B(0x1c2)];}[a54l(0x1ad)](){return this['rooms'];}['connectRooms'](a,b,c,d){const C=a54l,e=this['rooms'][a],f=this['rooms'][c];if(!e)throw new Error('Room\x20\x22'+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(C(0x193)+c+C(0x1af));e[C(0x1c7)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d
|
|
1
|
+
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x200))/0x1+parseInt(f(0x209))/0x2*(parseInt(f(0x20b))/0x3)+-parseInt(f(0x20a))/0x4+parseInt(f(0x1f3))/0x5+-parseInt(f(0x214))/0x6*(-parseInt(f(0x203))/0x7)+parseInt(f(0x1fe))/0x8+parseInt(f(0x217))/0x9*(-parseInt(f(0x1f1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x657f7));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var g=a55d;return a55a[g(0x1ff)]()[g(0x210)](g(0x205))[g(0x1ff)]()[g(0x1f8)](a55a)[g(0x210)](g(0x205));});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 h=a55d;super({'name':a,'description':b,'size':Size[h(0x213)],'category':Category[h(0x212)],'shape':Shape[h(0x201)],'color':Color[h(0x20d)],'texture':Texture[h(0x1f6)],'rating':Rating['Common'],'weight':0x1});}[a55i(0x1fd)](){var j=a55i;return this[j(0x20e)];}}export class Sword extends Item{constructor(a,b){var k=a55i;super({'name':a,'description':b,'size':Size[k(0x213)],'category':Category['Weapon'],'shape':Shape[k(0x20c)],'color':Color[k(0x216)],'texture':Texture[k(0x218)],'rating':Rating[k(0x21c)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a55i;super({'name':a,'description':b,'size':Size[l(0x1fa)],'category':Category['Weapon'],'shape':Shape[l(0x207)],'color':Color[l(0x1f9)],'texture':Texture[l(0x218)],'rating':Rating[l(0x204)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a55i;super({'name':a,'description':b,'size':Size[m(0x213)],'category':Category['Helmet'],'shape':Shape[m(0x1f5)],'color':Color['Grey'],'texture':Texture[m(0x218)],'rating':Rating[m(0x21c)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a55i;super({'name':a,'description':b,'size':Size[n(0x1fa)],'category':Category['BodyArmor'],'shape':Shape[n(0x201)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating[n(0x21c)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['LegArmor'],'shape':Shape[o(0x201)],'color':Color[o(0x216)],'texture':Texture[o(0x218)],'rating':Rating[o(0x21c)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a55i;super({'name':a,'description':b,'size':Size[p(0x213)],'category':Category[p(0x211)],'shape':Shape[p(0x1f5)],'color':Color['Brown'],'texture':Texture['Smooth'],'rating':Rating[p(0x21c)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a55i;super({'name':a,'description':b,'size':Size[q(0x1f0)],'category':Category[q(0x1fb)],'shape':Shape[q(0x1f5)],'color':Color[q(0x1f9)],'texture':Texture['Smooth'],'rating':Rating[q(0x21c)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a55i;super({'name':a,'description':b,'size':Size[r(0x213)],'category':Category['ArmArmor'],'shape':Shape['Rectangle'],'color':Color[r(0x216)],'texture':Texture[r(0x218)],'rating':Rating[r(0x21c)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a55i;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category[s(0x21a)],'shape':Shape['Rectangle'],'color':Color[s(0x20d)],'texture':Texture[s(0x1f6)],'rating':Rating[s(0x21c)],'weight':0x0});}[a55i(0x1fd)](){var t=a55i;return t(0x1fc);}}export class Weapon extends Item{constructor(a,b){var u=a55i;super({'name':a,'description':b,'size':Size[u(0x213)],'category':Category[u(0x21b)],'shape':Shape[u(0x20c)],'color':Color['Grey'],'texture':Texture[u(0x218)],'rating':Rating[u(0x21c)],'weight':0x3});}[a55i(0x1fd)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x1ed;var f=c[d];return f;},a55d(a,b);}export class Book extends Item{[a55i(0x220)];[a55i(0x21e)];['pageCount'];constructor(a,b=a55i(0x20f),c=a55i(0x206)){var v=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[v(0x1ee)],'shape':Shape['Rectangle'],'color':Color['Brown'],'texture':Texture[v(0x1f6)],'rating':Rating['Common'],'weight':0x1}),this[v(0x220)]=c,this[v(0x21e)]=new Date(),this['pageCount']=0x64;}['use'](){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 w=a55i;super({'name':w(0x215),'description':'A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','size':Size['Medium'],'category':Category[w(0x21b)],'shape':Shape[w(0x20c)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating[w(0x21c)],'weight':0x3});}['use'](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}function a55c(){var B=['2176296oRYxEQ','3cscVbp','Blade','Yellow','description','A\x20mysterious\x20book.','search','Boots','Unknown','Medium','6jdJdaL','Short\x20Sword','Grey','130149oZZNjA','Metallic','Gold','Key','Weapon','Common','\x20aloft,\x20feeling\x20its\x20immense\x20power.','publishDate','name','author','Cup','Book','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','Small','620IVexII','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','2130545pRpUYx','You\x20hold\x20the\x20','Circle','Smooth','Holy\x20Grail','constructor','Brown','Large','Gloves','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','use','6532376aFpzRh','toString','230617lraywd','Rectangle','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','4079803NaeSCF','Rare','(((.+)+)+)+$','Unknown\x20Author','Rifle','Legendary','523046dzVkPb'];a55c=function(){return B;};return a55c();}export class SniperRifle extends Item{constructor(){var x=a55i;super({'name':'Sniper\x20Rifle','description':x(0x202),'size':Size[x(0x1fa)],'category':Category[x(0x21b)],'shape':Shape['Rifle'],'color':Color[x(0x1f9)],'texture':Texture[x(0x1f6)],'rating':Rating[x(0x21c)],'weight':0x5});}[a55i(0x1fd)](){var y=a55i;return y(0x1f2);}}export class HolyGrail extends Item{constructor(){var z=a55i;super({'name':z(0x1f7),'description':z(0x1ef),'size':Size['Small'],'category':Category[z(0x1ed)],'shape':Shape['Circle'],'color':Color[z(0x219)],'texture':Texture['Metallic'],'rating':Rating[z(0x208)],'weight':0x1});}[a55i(0x1fd)](){var A=a55i;return A(0x1f4)+this[A(0x21f)]+A(0x21d);}}
|