@maka/maka-cli 4.6.20 → 4.6.21
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/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/layout.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/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
|
-
|
|
1
|
+
const a37h=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0x89))/0x1*(parseInt(f(0x8f))/0x2)+-parseInt(f(0x90))/0x3*(parseInt(f(0x9a))/0x4)+-parseInt(f(0x86))/0x5+-parseInt(f(0x96))/0x6*(-parseInt(f(0x9f))/0x7)+-parseInt(f(0x93))/0x8*(parseInt(f(0xa0))/0x9)+parseInt(f(0x87))/0xa*(-parseInt(f(0x8d))/0xb)+parseInt(f(0xa1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x539ae));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(0x9b)]()[g(0x8c)](g(0x97))[g(0x9b)]()['constructor'](a37a)['search'](g(0x97));});a37a();function a37c(){const j=['actor','description','2020130UbRSCu','10467HAAAEO','18444852gLRIky','name','3228070mWogyM','1489670nNhHpp','SearchCommand:\x20','409949VykfZV','logger','execute','search','11uJWisF','join','2JEPhRb','183NpWpWU','Search\x20for\x20items\x20in\x20your\x20area','\x20found\x20the\x20following\x20items:\x20','2024KxhpRJ','inventory','write','12rZSVjA','(((.+)+)+)+$','listItems','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','17904ouqXzs','toString','verb'];a37c=function(){return j;};return a37c();}function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x86;let f=c[d];return f;},a37d(a,b);}import{Command}from'./command.js';export class SearchCommand extends Command{static [a37h(0x9c)]=a37h(0x8c);static [a37h(0x9e)]=a37h(0x91);[a37h(0x8b)](){const i=a37h,a=this['actor']['currentLocation'][i(0x94)][i(0x98)]();if(a['length']===0x0)return this['logger']['write']('SearchCommand:\x20'+this[i(0x9d)][i(0xa2)]+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),i(0x99);const b=a[i(0x8e)](',\x20');return this[i(0x8a)][i(0x95)](i(0x88)+this[i(0x9d)][i(0xa2)]+i(0x92)+b),'You\x20search\x20the\x20area\x20and\x20find:\x20'+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0xca))/0x1*(parseInt(f(0xbe))/0x2)+parseInt(f(0xb8))/0x3+-parseInt(f(0xc2))/0x4*(-parseInt(f(0xbd))/0x5)+parseInt(f(0xc3))/0x6*(parseInt(f(0xc5))/0x7)+parseInt(f(0xc0))/0x8*(parseInt(f(0xd4))/0x9)+parseInt(f(0xce))/0xa+parseInt(f(0xcf))/0xb*(-parseInt(f(0xd3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x620b4));function a38c(){const k=['actor','description','15wlppii','16738tvKQBy','constructor','9312pYIfYj','apply','443028EJJviF','36GsqEQS','verb','541079AhqkmP','toString','rewardItem','join','execute','74JIpvXm','success','solve','write','595730MpqhzD','11QiUHyW','Attempt\x20to\x20solve\x20a\x20puzzle.','puzzle','inventory','30211248HdBztg','5418MRlEyG','(((.+)+)+)+$','2230596Lsoxtk','addItem','logger'];a38c=function(){return k;};return a38c();}function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xb7;let f=c[d];return f;},a38d(a,b);}const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0xc6)]()['search']('(((.+)+)+)+$')[h(0xc6)]()[h(0xbf)](a38a)['search'](h(0xb7));});a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a38i(0xc4)]=a38i(0xcc);static [a38i(0xbc)]=a38i(0xd0);[a38i(0xc9)](a){const j=a38i,b=a[j(0xc8)]('\x20')['toLowerCase'](),c=this[j(0xbb)]['currentLocation'];if(!c||!c['puzzle'])return this[j(0xba)][j(0xcd)]('SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.'),'There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.';const d=c[j(0xd1)][j(0xcc)](b,this['actor'][j(0xd2)]);return d[j(0xcb)]&&c[j(0xd1)]['rewardItem']&&this[j(0xbb)]['inventory'][j(0xb9)](c['puzzle'][j(0xc7)]),this[j(0xba)]['write']('SolveCommand:\x20'+d['message']),d['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-
|
|
1
|
+
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x14e;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(0x160))/0x1+parseInt(f(0x178))/0x2*(parseInt(f(0x176))/0x3)+parseInt(f(0x15d))/0x4+parseInt(f(0x150))/0x5+parseInt(f(0x171))/0x6*(-parseInt(f(0x151))/0x7)+-parseInt(f(0x161))/0x8+-parseInt(f(0x172))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xf2cad));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(0x14f)]()[g(0x163)]('(((.+)+)+)+$')[g(0x14f)]()[g(0x156)](a39a)[g(0x163)](g(0x170));});function a39c(){const k=['hasItem','36141fyaVeL','\x22\x20to\x20','32zXyghF','Successfully\x20removed\x20\x22','There\x20is\x20no\x20item\x20\x22','toString','7200320rwdhfF','63UDeHxK','join','inventory','\x22\x20in\x20this\x20room.','take','constructor','actor','Successfully\x20added\x20\x22','The\x20item\x20\x22','verb','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','\x22\x20not\x20found\x20in\x20','7920IsEPOE','description','logger','1524482wVwyBO','13851208XscXmj','removeItem','search','Item\x20\x22','getItem','\x20during\x20\x27Take\x27\x20command.','\x22\x20not\x20retrieved\x20from\x20','name','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','write','Error\x20during\x20\x27Take\x27\x20command:\x20','execute','\x22\x20from\x20','\x22\x20is\x20too\x20heavy\x20to\x20carry.','Pick\x20up\x20an\x20item.','(((.+)+)+)+$','65040sorbEZ','3022560RtmjOV','You\x20have\x20taken\x20the\x20','message'];a39c=function(){return k;};return a39c();}a39a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a39h(0x15a)]=a39h(0x155);static [a39h(0x15e)]=a39h(0x16f);[a39h(0x16c)](a){const i=a39h;return this[i(0x15f)]['write'](i(0x169)+a[i(0x152)]('\x20')),this[i(0x155)](a);}['take'](a){const j=a39h,b=a['join']('\x20')['toLowerCase'](),c=this[j(0x157)]['currentLocation'];if(!c[j(0x153)][j(0x175)](b))return this['logger'][j(0x16a)](j(0x164)+b+j(0x15c)+c[j(0x168)]+j(0x166)),'There\x20is\x20no\x20item\x20\x22'+b+j(0x154);const d=c[j(0x153)][j(0x165)](b);if(!d)return this[j(0x15f)][j(0x16a)]('Item\x20\x22'+b+j(0x167)+c[j(0x168)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),j(0x14e)+b+j(0x154);try{return this[j(0x157)]['addInventory'](d),this['logger']['write'](j(0x158)+b+j(0x177)+this[j(0x157)][j(0x168)]+j(0x15b)),c[j(0x153)][j(0x162)](b),this[j(0x15f)][j(0x16a)](j(0x179)+b+j(0x16d)+c[j(0x168)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),j(0x173)+b+'.';}catch(e){return this[j(0x15f)][j(0x16a)](j(0x16b)+e[j(0x174)]),j(0x159)+b+j(0x16e);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a40c(){const k=['35718570XapeTP','write','UnequipCommand:\x20','30POiiil','Unequip\x20an\x20item.','7lfpsjK','join','212112CPbXwv','toString','5406496OmSSHQ','1462686zyZXQB','4052298wQjMTM','search','1778218cHpYKP','apply','execute','6123448lEGsNc','description','constructor','actor'];a40c=function(){return k;};return a40c();}const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x1e0))/0x1+parseInt(f(0x1e6))/0x2+parseInt(f(0x1e4))/0x3+parseInt(f(0x1e9))/0x4+parseInt(f(0x1dc))/0x5*(parseInt(f(0x1e3))/0x6)+-parseInt(f(0x1de))/0x7*(parseInt(f(0x1e2))/0x8)+-parseInt(f(0x1ed))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xc38e1));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x1e7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x1e1)]()[h(0x1e5)]('(((.+)+)+)+$')[h(0x1e1)]()[h(0x1eb)](a40a)[h(0x1e5)]('(((.+)+)+)+$');});a40a();import{Command}from'./command.js';function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x1da;let f=c[d];return f;},a40d(a,b);}export class UnequipCommand extends Command{static ['verb']='unqeuip';static [a40i(0x1ea)]=a40i(0x1dd);[a40i(0x1e8)](a){const j=a40i,b=a[j(0x1df)]('\x20')['toLowerCase'](),c=this[j(0x1ec)]['unequip'](b);return this['logger'][j(0x1da)](j(0x1db)+this['actor']['name']+'\x20unqeuiped\x20'+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a41d(a,b);}const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=parseInt(h(0x1ae))/0x1*(-parseInt(h(0x1c8))/0x2)+parseInt(h(0x1cb))/0x3*(parseInt(h(0x1ca))/0x4)+parseInt(h(0x1c2))/0x5+-parseInt(h(0x1a6))/0x6*(-parseInt(h(0x1c3))/0x7)+-parseInt(h(0x1ac))/0x8*(-parseInt(h(0x1b7))/0x9)+-parseInt(h(0x1bc))/0xa+parseInt(h(0x1ab))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xac065));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a41d;if(c){const e=c[i(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a[j(0x1a3)]()[j(0x1b2)]('(((.+)+)+)+$')['toString']()['constructor'](a41a)[j(0x1b2)](j(0x1cd));});function a41c(){const n=['currentLocation','13990710WliVdk','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','toLowerCase','logger','actor','error','1940200jXVzAe','23044vCHEor','length','getItem','name','verb','2139898XxNHms','hasItem','4rnmQVY','338442riZcrG','inventory','(((.+)+)+)+$','execute','write','toString','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','exits','1092hHFXTQ','description','UnlockCommand:\x20No\x20target\x20specified.','apply','UnlockCommand:\x20','21591075ZwQswa','112fhGjDV','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','1COwMco','attemptUnlockExit','unlock','There\x27s\x20no\x20door\x20named\x20\x22','search','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','\x22\x20here.','has','.\x20Result:\x20','71235ityHmU','Unlock\x20a\x20door.','get','unlockItemOrSolution'];a41c=function(){return n;};return a41c();}a41a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a41k(0x1c7)]=a41k(0x1b0);static [a41k(0x1a7)]=a41k(0x1b8);[a41k(0x1ce)](a){const l=a41k;return this[l(0x1b0)](a);}[a41k(0x1b0)](a){const m=a41k;if(a[m(0x1c4)]===0x0)return this[m(0x1bf)][m(0x1c1)](m(0x1a8)),m(0x1b3);const b=a[0x0][m(0x1be)](),c=this[m(0x1c0)][m(0x1bb)];if(this['isValidDirection'](b)&&c[m(0x1a5)][m(0x1b5)](b)){const d=c[m(0x1a5)][m(0x1b9)](b);if(d instanceof Door){const e=d[m(0x1ba)]?.[m(0x1be)]();if(e&&this['actor'][m(0x1cc)][m(0x1c9)](e)){const f=this['actor'][m(0x1cc)][m(0x1c5)](e);if(f){const g=c[m(0x1af)](b,f['name']);return this[m(0x1bf)][m(0x1cf)](m(0x1aa)+this[m(0x1c0)][m(0x1c6)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+m(0x1b6)+g),g;}}return this[m(0x1bf)][m(0x1cf)](m(0x1aa)+this[m(0x1c0)][m(0x1c6)]+m(0x1a4)+b+'.'),m(0x1ad);}else return this['logger']['write']('UnlockCommand:\x20'+b+m(0x1bd)+c[m(0x1c6)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+'\x22\x20here.';}else return this[m(0x1bf)]['write'](m(0x1aa)+b+m(0x1bd)+c[m(0x1c6)]+'.'),m(0x1b1)+b+m(0x1b4);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42i=a42d;function a42c(){const l=['(((.+)+)+)+$','write','\x20not\x20retrieved\x20from\x20','973773IWIVEx','getItem','4132208lqDvbS','actor','UseCommand:\x20','You\x20don\x27t\x20have\x20the\x20','use','138uZZBeY','\x20to\x20use.','join','160SyqKoN','404MlTPsB','\x27s\x20inventory.','description','211540Ujenlv','1425474VtGCmX','constructor','toString','Use\x20an\x20item.',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','You\x20can\x27t\x20use\x20the\x20','hasItem','\x20doesn\x27t\x20have\x20a\x20use\x20method.','5406709xsHbXQ','14FEmPrU','logger','search','inventory','apply','\x20attempted\x20to\x20use\x20','4235qPTKrd','verb','execute','function','name','117pYaMsr','toLowerCase'];a42c=function(){return l;};return a42c();}(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x133))/0x1+parseInt(f(0x13d))/0x2*(-parseInt(f(0x13a))/0x3)+parseInt(f(0x116))/0x4*(-parseInt(f(0x129))/0x5)+parseInt(f(0x11a))/0x6*(-parseInt(f(0x123))/0x7)+-parseInt(f(0x135))/0x8+-parseInt(f(0x12e))/0x9*(-parseInt(f(0x119))/0xa)+parseInt(f(0x122))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xa0fb7));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x11c)]()[h(0x125)](h(0x130))[h(0x11c)]()[h(0x11b)](a42a)['search'](h(0x130));});a42a();import{Command}from'./command.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x116;let f=c[d];return f;},a42d(a,b);}export class UseCommand extends Command{static [a42i(0x12a)]=a42i(0x139);static [a42i(0x118)]=a42i(0x11d);[a42i(0x12b)](a){const j=a42i;return this[j(0x139)](a);}[a42i(0x139)](a){const k=a42i,b=a[k(0x13c)]('\x20')[k(0x12f)]();if(!this[k(0x136)][k(0x126)][k(0x120)](b))return this['logger'][k(0x131)]('UseCommand:\x20'+this[k(0x136)]['name']+k(0x128)+b+k(0x11e)),k(0x138)+b+k(0x13b);const c=this[k(0x136)]['inventory'][k(0x134)](b);if(!c)return this[k(0x124)][k(0x131)](k(0x137)+b+k(0x132)+this['actor'][k(0x12d)]+k(0x117)),k(0x138)+b+k(0x13b);if(typeof c['use']===k(0x12c)){const d=c[k(0x139)]();return this[k(0x124)][k(0x131)](k(0x137)+this['actor'][k(0x12d)]+'\x20used\x20'+b+'.'),d;}else return this['logger'][k(0x131)](k(0x137)+b+k(0x121)),k(0x11f)+b+'\x20in\x20this\x20way.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a43c(){const
|
|
1
|
+
function a43c(){const m=['63RAtpcK','commandMap','registerCommand','2000253nfQBPD','(((.+)+)+)+$','81688FhMqri','25819220ByMAnW','search','apply','112468sExnxa','246VfFaNT','1032516RvYtUL','getAllRegisteredCommands','toString','23611fMszUT','5053150QgLuBw','2nHYPup'];a43c=function(){return m;};return a43c();}const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x176))/0x1+-parseInt(f(0x16c))/0x2*(parseInt(f(0x170))/0x3)+-parseInt(f(0x178))/0x4+-parseInt(f(0x16b))/0x5+-parseInt(f(0x177))/0x6*(parseInt(f(0x17b))/0x7)+parseInt(f(0x172))/0x8*(-parseInt(f(0x16d))/0x9)+parseInt(f(0x173))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x860f6));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x175)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a['toString']()[h(0x174)](h(0x171))[h(0x17a)]()['constructor'](a43a)['search'](h(0x171));});function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x16b;let f=c[d];return f;},a43d(a,b);}a43a();export class CommandFactory{static [a43i(0x16e)]={};static[a43i(0x16f)](a,b){const j=a43i;this[j(0x16e)][a]=b;}static['createCommand'](a,b){const k=a43i,c=this[k(0x16e)][a];if(c)return new c(b);return null;}static[a43i(0x179)](){const l=a43i;return this[l(0x16e)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44i=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d
|
|
1
|
+
const a44i=a44d;function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xfc;let f=c[d];return f;},a44d(a,b);}(function(a,b){const f=a44d,c=a();while(!![]){try{const d=parseInt(f(0xfe))/0x1*(parseInt(f(0x116))/0x2)+parseInt(f(0x11d))/0x3+-parseInt(f(0x107))/0x4*(-parseInt(f(0x105))/0x5)+-parseInt(f(0x121))/0x6+-parseInt(f(0x100))/0x7+-parseInt(f(0x11c))/0x8*(-parseInt(f(0x114))/0x9)+-parseInt(f(0x110))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xc2c11));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0x11f)]()[h(0x108)]('(((.+)+)+)+$')[h(0x11f)]()[h(0x10b)](a44a)['search']('(((.+)+)+)+$');});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';export class RoomFactory{[a44i(0x119)](a){const j=a44i,b=this[j(0x103)](a),c=new Room(b);if(a['items']){const d=new Inventory();a['items'][j(0x106)](e=>{const k=j;d[k(0x109)](this['createItem'](e));}),c['inventory']=d;}return a[j(0x11b)]&&c['setPuzzle'](this[j(0x117)](a[j(0x11b)])),c;}[a44i(0x111)](a){const l=a44i;switch(a[l(0x118)]){case l(0x120):return new Key(a['name'],a[l(0x10e)]);case l(0xfc):return new Book(a[l(0x10d)],a['description'],a[l(0x112)]);case l(0x10f):return new Sword(a['name'],a['description']);case'rifle':return new Rifle(a[l(0x10d)],a[l(0x10e)]);case l(0x11a):return new Helmet(a[l(0x10d)],a[l(0x10e)]);case l(0x11e):return new BodyArmor(a[l(0x10d)],a['description']);case l(0x101):return new LegArmor(a['name'],a['description']);case'boots':return new Boots(a[l(0x10d)],a[l(0x10e)]);case l(0xfd):return new Gloves(a[l(0x10d)],a[l(0x10e)]);case l(0x113):return new Gauntlets(a[l(0x10d)],a[l(0x10e)]);default:return new BasicItem(a['name'],a[l(0x10e)]);}}[a44i(0x117)](a){const m=a44i,b=this['createItem'](a[m(0x104)]);return new Puzzle({...a,'rewardItem':b});}['convertToRoomConfig'](a){const n=a44i,b=a['roomType']&&RoomType[a[n(0x10c)][n(0x115)]()]?RoomType[a[n(0x10c)]['toUpperCase']()]:RoomType[n(0x102)];return{'name':a['name'],'description':a[n(0x10e)],'isStartRoom':a[n(0x10a)],'roomType':b};}}function a44c(){const o=['addItem','isStartRoom','constructor','roomType','name','description','sword','5305750aRUzIQ','createItem','content','gauntlets','2028987qMYBlQ','toUpperCase','86962HweMit','createPuzzle','type','createRoom','helmet','puzzle','8RErnAH','1133127zhkvIb','bodyarmor','toString','key','828774FWMrtn','book','gloves','32eqhEhs','apply','7372806kGBZIu','legarmor','INSIDE','convertToRoomConfig','rewardItem','2625655blydTj','forEach','4RHXLEq','search'];a44c=function(){return o;};return a44c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(0xb1))/0x1+parseInt(h(0xb8))/0x2+-parseInt(h(0xb9))/0x3+parseInt(h(0xcd))/0x4+-parseInt(h(0xc0))/0x5+parseInt(h(0xb4))/0x6+-parseInt(h(0xbe))/0x7*(parseInt(h(0xc1))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xa62b0));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a45d;if(c){const e=c[i(0xc6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const j=a45d;return a45a['toString']()[j(0xd2)](j(0xc9))[j(0xd4)]()[j(0xbd)](a45a)[j(0xd2)](j(0xc9));});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';function a45c(){const s=['1058315TvsSWm','9904cnJABT','instance','getHelpMessage','getDescription','Available\x20Commands:\x0a','apply','look','trim','(((.+)+)+)+$','lock','getAllRegisteredCommands','toLowerCase','2226508IOPpMl','getInstance','name','take','clear','search','handleInput','toString','maka','player','rooms','scene','unlock','solve','hasOwnProperty','registerCommands','drop','execute','createCommand','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','-\x20quit:\x20Exit\x20the\x20game.\x0a','781724oodcDG','getWelcomeMessage','registerCommand','4382754eoYGWv','-\x20clear:\x20Clear\x20the\x20screen.\x0a','Welcome,\x20','use','2309204dgyGHq','2867121bVvMYQ','getRooms','currentLocation','determineStartRoom','constructor','7777GKeWbf','quit'];a45c=function(){return s;};return a45c();}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';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xae;let f=c[d];return f;},a45d(a,b);}import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a45k(0xc2)];['scene'];[a45k(0xd6)];['currentRoom'];[a45k(0xd7)];constructor(a,b){const l=a45k;this[l(0xd6)]=a,this[l(0xd8)]=new Scene({'player':a,'roomConfiguration':b}),this['scene']['initialize'](),this['player'][l(0xbb)]=this[l(0xbc)](),this[l(0xdc)]();}[a45k(0xdc)](){const m=a45k;CommandFactory[m(0xb3)](m(0xc7),LookCommand),CommandFactory[m(0xb3)]('go',GoCommand),CommandFactory[m(0xb3)](m(0xd0),TakeCommand),CommandFactory[m(0xb3)](m(0xb7),UseCommand),CommandFactory[m(0xb3)]('equip',EquipCommand),CommandFactory['registerCommand']('unequip',UnequipCommand),CommandFactory[m(0xb3)](m(0xda),SolveCommand),CommandFactory[m(0xb3)](m(0xdd),DropCommand),CommandFactory[m(0xb3)](m(0xd9),UnlockCommand),CommandFactory['registerCommand'](m(0xca),LockCommand),CommandFactory[m(0xb3)](m(0xd2),SearchCommand),CommandFactory[m(0xb3)]('say',SayCommand);}['determineStartRoom'](){const n=a45k;return this[n(0xd8)]['determineStartRoom']();}[a45k(0xb2)](){const o=a45k;return o(0xb6)+this[o(0xd6)][o(0xcf)];}static[a45k(0xce)](a,b){const p=a45k;return!Game[p(0xc2)]&&(Game[p(0xc2)]=new Game(a,b)),Game[p(0xc2)];}[a45k(0xd3)](a){const q=a45k,b=a[q(0xc8)]()['split']('\x20'),c=b[0x0][q(0xcc)](),d=b['slice'](0x1);if(c===q(0xbf))return null;if(c===q(0xd5))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c==='help')return this[q(0xc3)]();if(c===q(0xd1))return'';const e={'actor':this[q(0xd6)],'rooms':this['scene'][q(0xba)](),'scene':this[q(0xd8)]},f=CommandFactory[q(0xae)](c,e);if(f){const g=f[q(0xde)](d);return g;}return q(0xaf)+c+'\x22.';}[a45k(0xc3)](){const r=a45k,a=CommandFactory[r(0xcb)]();let b=r(0xc5);for(const c in a){if(a[r(0xdb)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0xc4)]()+'\x0a';}}return b+=r(0xb5),b+=r(0xb0),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0x15a))/0x1+-parseInt(f(0x156))/0x2*(-parseInt(f(0x159))/0x3)+-parseInt(f(0x164))/0x4+parseInt(f(0x15b))/0x5*(-parseInt(f(0x15c))/0x6)+parseInt(f(0x161))/0x7+parseInt(f(0x160))/0x8*(-parseInt(f(0x15f))/0x9)+parseInt(f(0x158))/0xa*(parseInt(f(0x15e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x7ef42));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var g=a46d;return a46a[g(0x157)]()[g(0x163)](g(0x15d))[g(0x157)]()[g(0x162)](a46a)['search'](g(0x15d));});a46a();function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x156;var f=c[d];return f;},a46d(a,b);}export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';function a46c(){var h=['9198ANyJGk','272DveiNW','7226086vsSQVs','constructor','search','3119756YbGXxB','403014CXEYEv','toString','36620LFIFWI','3ddoYRE','110145ScFEEf','85snIdBm','226866aoPVfs','(((.+)+)+)+$','1903apdnkz'];a46c=function(){return h;};return a46c();}export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a47i=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=-parseInt(f(0x11b))/0x1*(parseInt(f(0x12f))/0x2)+-parseInt(f(0x133))/0x3+parseInt(f(0x114))/0x4+-parseInt(f(0x128))/0x5+-parseInt(f(0x120))/0x6*(parseInt(f(0x12c))/0x7)+parseInt(f(0x12a))/0x8*(-parseInt(f(0x12d))/0x9)+parseInt(f(0x117))/0xa*(parseInt(f(0x129))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x8c420));function a47c(){var o=['524685BjRkve','1882143wxmkpr','(((.+)+)+)+$','606vIAHsM','isLocked','search','.\x20Used:\x20','1244805zkASJF','2888164XEpJoN','roomB','logger','7790nURaHR','attemptUnlock','checkIfLocked','name','251qJRmwy','Failed\x20to\x20unlock\x20door:\x20','toString','getInstance','apply','42bgCakd','checkIfLockable','isLockable','\x20and\x20','write','getOtherSide','roomA','Door\x20unlocked:\x20','3370375tBFLyE','36542WTNRPg','40kIpRqP','unlockItemOrSolution'];a47c=function(){return o;};return a47c();}var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a47d;if(c){var e=c[g(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var h=a47d;return a47a[h(0x11d)]()[h(0x131)](h(0x12e))[h(0x11d)]()['constructor'](a47a)[h(0x131)](h(0x12e));});a47a();import{Logger}from'../utilities/logger.js';function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x114;var f=c[d];return f;},a47d(a,b);}import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a47i(0x126)];[a47i(0x115)];[a47i(0x130)];['unlockItemOrSolution'];[a47i(0x11a)];[a47i(0x116)];[a47i(0x122)];constructor(a){var j=a47i;super(),this[j(0x126)]=a['roomA'],this[j(0x115)]=a[j(0x115)],this[j(0x130)]=a['isLocked']||![],this['unlockItemOrSolution']=a[j(0x12b)],this['name']=a['name']?capitalCase(a[j(0x11a)]):'To\x20'+a[j(0x115)][j(0x11a)],this[j(0x116)]=Logger[j(0x11e)](),this[j(0x122)]=!!a['unlockItemOrSolution'],this[j(0x116)][j(0x124)]('Door\x20created\x20between\x20'+this['roomA'][j(0x11a)]+j(0x123)+this[j(0x115)]['name']+'.\x20Is\x20Locked:\x20'+this[j(0x130)]);}[a47i(0x125)](a){var k=a47i;return this['roomA']===a?this[k(0x115)]:this['roomA'];}[a47i(0x118)](a){var l=a47i;if(this[l(0x130)]&&this['unlockItemOrSolution']&&this[l(0x12b)]===a)return this['isLocked']=![],this[l(0x116)][l(0x124)](l(0x127)+this[l(0x11a)]+l(0x132)+a),!![];return this['logger'][l(0x124)](l(0x11c)+this[l(0x11a)]+l(0x132)+a),![];}[a47i(0x119)](){var m=a47i;return this[m(0x130)];}[a47i(0x121)](){var n=a47i;return this[n(0x122)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48h=a48d;function a48c(){const q=['set','Checked\x20for\x20item:\x20','504493ygqpiq','9027736AGEnuC','Retrieved\x20details\x20for\x20item:\x20','10629890DVJzEX','weight','2469330JNenTW','\x20to\x20inventory.','Removed\x20item:\x20','.\x20Item\x20not\x20found.','write','getInstance','toLowerCase','776468rBKBgj','828cHGxwN','removeItem','(((.+)+)+)+$','1577GLBWQM','.\x20Exists:\x20','search','66aUgvWI','Listed\x20items\x20in\x20inventory:\x20','getWeight','toString','items','1087329ZSMLvH','12ZoiogU','1330NxqNov','Failed\x20to\x20remove\x20item:\x20','name','join','get','getAllItems','\x20from\x20inventory.','9QABdhw','getItem','has','addItem','keys','delete','listItems','map','logger','values'];a48c=function(){return q;};return a48c();}(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x127))/0x1*(-parseInt(f(0x131))/0x2)+parseInt(f(0x12f))/0x3*(parseInt(f(0x130))/0x4)+parseInt(f(0x11c))/0x5+parseInt(f(0x12a))/0x6*(parseInt(f(0x123))/0x7)+-parseInt(f(0x118))/0x8+-parseInt(f(0x138))/0x9*(-parseInt(f(0x11a))/0xa)+parseInt(f(0x117))/0xb*(-parseInt(f(0x124))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x97607));const a48b=(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;};}()),a48a=a48b(this,function(){const g=a48d;return a48a[g(0x12d)]()[g(0x129)](g(0x126))[g(0x12d)]()['constructor'](a48a)[g(0x129)]('(((.+)+)+)+$');});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x10e;let f=c[d];return f;},a48d(a,b);}import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48h(0x12e)];['logger'];constructor(){const i=a48h;super(),this[i(0x12e)]=new Map(),this[i(0x113)]=Logger[i(0x121)]();}[a48h(0x10e)](a){const j=a48h;this[j(0x12e)][j(0x115)](a[j(0x133)][j(0x122)](),a),this[j(0x113)][j(0x120)]('Added\x20item:\x20'+a[j(0x133)]+j(0x11d));}[a48h(0x125)](a){const k=a48h,b=this[k(0x139)](a);if(b)return this[k(0x12e)][k(0x110)](a['toLowerCase']()),this['logger']['write'](k(0x11e)+a+k(0x137)),b;return this[k(0x113)][k(0x120)](k(0x132)+a+k(0x11f)),null;}['hasItem'](a){const l=a48h,b=this[l(0x12e)][l(0x13a)](a[l(0x122)]()),c=[...this[l(0x12e)][l(0x10f)]()];return this[l(0x113)][l(0x120)](l(0x116)+a+'\x20in\x20'+c[l(0x134)](',\x20')+l(0x128)+b+'.'),b;}[a48h(0x139)](a){const m=a48h,b=this[m(0x12e)][m(0x135)](a['toLowerCase']())||null;return b?this[m(0x113)][m(0x120)](m(0x119)+a+'.'):this[m(0x113)]['write']('Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'+a+m(0x11f)),b;}[a48h(0x111)](){const n=a48h,a=[...this[n(0x12e)][n(0x10f)]()],b=a[n(0x112)](c=>capitalCase(c));return this[n(0x113)][n(0x120)](n(0x12b)+b[n(0x134)](',\x20')+'.'),a;}[a48h(0x12c)](){const o=a48h;let a=0x0;for(const b of this[o(0x12e)][o(0x114)]()){a+=b[o(0x11b)];}return a;}[a48h(0x136)](){const p=a48h;return[...this[p(0x12e)]['values']()];}}
|
|
@@ -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(0x133))/0x1*(parseInt(f(0x145))/0x2)+parseInt(f(0x141))/0x3*(parseInt(f(0x137))/0x4)+-parseInt(f(0x144))/0x5*(-parseInt(f(0x14b))/0x6)+-parseInt(f(0x13c))/0x7+parseInt(f(0x131))/0x8+-parseInt(f(0x134))/0x9*(parseInt(f(0x143))/0xa)+-parseInt(f(0x149))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x831fd));function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x131;var f=c[d];return f;},a49d(a,b);}function a49c(){var l=['uuid','texture','4097404blGiNA','apply','constructor','size','.\x20Nothing\x20special\x20happens.','827904WdcIfr','(((.+)+)+)+$','rating','shape','category','3yTJYqx','name','38790jLUxZF','472715HkTDba','14HECzxe','toString','color','description','5555924uQNhEe','weight','18QYHVnf','You\x20use\x20the\x20','7138840hIRhaB','search','120295tMCrcy','459TTnUgs'];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(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x146)]()[h(0x132)](h(0x13d))[h(0x146)]()[h(0x139)](a49a)[h(0x132)](h(0x13d));});a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a49i(0x135)];[a49i(0x142)];[a49i(0x148)];[a49i(0x13a)];[a49i(0x140)];['shape'];[a49i(0x147)];[a49i(0x136)];[a49i(0x13e)];[a49i(0x14a)];constructor(a){var j=a49i;super(),this[j(0x142)]=a[j(0x142)],this[j(0x148)]=a[j(0x148)],this[j(0x13a)]=a[j(0x13a)],this[j(0x140)]=a[j(0x140)],this[j(0x13f)]=a[j(0x13f)],this[j(0x147)]=a[j(0x147)],this[j(0x136)]=a['texture'],this['rating']=a[j(0x13e)],this[j(0x14a)]=a[j(0x14a)],this[j(0x135)]=a49e();}['use'](){var k=a49i;return k(0x14c)+this['name']+k(0x13b);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a50c(){const o=['24wqpXfb','floor','name','autonomousMove','moveTo','_name','1055388AWyzDY','22138344jvfFBY','(((.+)+)+)+$','random','2207457HYOJQh','apply','execute','speak','constructor','152964YuPkVR','113075dhpnmJ','scene','10rjOrLX','_dialogue','3598728qLdpDE','839209AkLEJu'];a50c=function(){return o;};return a50c();}const a50i=a50d;function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x160;let f=c[d];return f;},a50d(a,b);}(function(a,b){const f=a50d,c=a();while(!![]){try{const d=-parseInt(f(0x167))/0x1+-parseInt(f(0x164))/0x2*(parseInt(f(0x161))/0x3)+parseInt(f(0x168))/0x4*(-parseInt(f(0x162))/0x5)+-parseInt(f(0x16e))/0x6+parseInt(f(0x172))/0x7+-parseInt(f(0x166))/0x8+parseInt(f(0x16f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xe0825));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a['toString']()['search']('(((.+)+)+)+$')['toString']()[h(0x160)](a50a)['search'](h(0x170));});a50a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a50i(0x16d)];['_dialogue'];['rooms'];[a50i(0x163)];constructor(a,b,c,d){const j=a50i;super(d),this['_name']=a,this[j(0x165)]=b,this['rooms']=c;}get[a50i(0x16a)](){const k=a50i;return this[k(0x16d)];}[a50i(0x175)](){const l=a50i;return this[l(0x165)][Math['floor'](Math[l(0x171)]()*this[l(0x165)]['length'])];}[a50i(0x16b)](a){const m=a50i,b=a[Math[m(0x169)](Math['random']()*a['length'])];this[m(0x16c)](b['name']);}['moveTo'](a){const n=a50i,b={'actor':this,'rooms':this['rooms'],'scene':this[n(0x163)]},c=new GoCommand(b);c[n(0x174)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d
|
|
1
|
+
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x17b))/0x1*(parseInt(f(0x171))/0x2)+-parseInt(f(0x159))/0x3*(parseInt(f(0x158))/0x4)+parseInt(f(0x17e))/0x5*(parseInt(f(0x14d))/0x6)+-parseInt(f(0x15b))/0x7*(-parseInt(f(0x13e))/0x8)+-parseInt(f(0x181))/0x9+parseInt(f(0x136))/0xa+-parseInt(f(0x14c))/0xb*(-parseInt(f(0x18a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x48020));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a['toString']()['search'](h(0x15c))['toString']()[h(0x157)](a51a)[h(0x166)](h(0x15c));});function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x132;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';function a51c(){const D=['getWeight','\x20to\x20player\x27s\x20inventory.','leftHand','Removed\x20','8854764QHdyMQ','values','BodyArmor','shield','Helmet','determineEquipmentSlot','3406520Rfwdil','inventory','bind','removeInventory','enterRoom','inventoryItems','\x20slot.','error','502376ZBnobv','playerName','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','\x20from\x20player\x27s\x20inventory.','speak','currentWeight','_inventory','armarmor','You\x20don\x27t\x20have\x20','ArmArmor','leaveRoom','startLocation','Gloves','hear','11IqaRRe','6YlPajX','torso','helmet','arms','A\x20featureless\x20room','_currentLocation','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','hat','gloves','unequipBySlot','constructor','9116CdqynE','687USCWuL','Added\x20','7ihyJqG','(((.+)+)+)+$','equipment','\x20is\x20no\x20longer\x20listeng\x20in\x20','unequip','currentLocation','arm\x20armor','leg\x20armor','legarmor','addInventory','head','search','\x20is\x20now\x20listening\x20in\x20room\x20','feet','body\x20armor','rightHand','addItem','Weapon','You\x20unequipped\x20','_maxCarryingWeight','category','Max\x20carrying\x20weight\x20must\x20be\x20positive.','202kysnkI','apply','legs','maxCarryingWeight','write','.\x20You\x20must\x20unequip\x20it\x20first.','Failed\x20to\x20remove\x20','_equipment','removeItem','logger','2447lWPJpD','canEquip','initialEquipment','441665frvJjF','weapon','\x20says:\x20\x22','1491273SwuzMF','_playerName','name','hasItem','toLowerCase'];a51c=function(){return D;};return a51c();}import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{['_playerName'];[a51i(0x152)];[a51i(0x144)];[a51i(0x178)];[a51i(0x16e)]=0x32;[a51i(0x17a)];constructor(a){const j=a51i;super(),this[j(0x182)]=a[j(0x13f)],this[j(0x152)]=a[j(0x149)]||new Room({'name':'Nexus','description':j(0x151)}),this[j(0x144)]=new Inventory(),this[j(0x17a)]=Logger['getInstance']();if(a?.[j(0x13b)])for(const b of a[j(0x13b)]){this[j(0x144)]['addItem'](b);}this[j(0x178)]=a?.[j(0x17d)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51i(0x183)](){const k=a51i;return this[k(0x182)];}get[a51i(0x160)](){const l=a51i;return this[l(0x152)];}set[a51i(0x160)](a){const m=a51i;this[m(0x152)]!==a&&(this[m(0x148)](),this[m(0x13a)](a)),this['_currentLocation']=a;}get[a51i(0x137)](){const n=a51i;return this[n(0x144)];}get[a51i(0x15d)](){const o=a51i;return this[o(0x178)];}set[a51i(0x15d)](a){const p=a51i;this[p(0x178)]=a;}get[a51i(0x174)](){const q=a51i;return this[q(0x16e)];}set[a51i(0x174)](a){const r=a51i;a>0x0?this['_maxCarryingWeight']=a:console[r(0x13d)](r(0x170));}get['currentWeight'](){const s=a51i;let a=this[s(0x144)][s(0x186)]();for(const b in this['_equipment']){const c=this['_equipment'][b];c&&(a+=c['weight']);}return a;}['addInventory'](a){const t=a51i;if(this[t(0x143)]+a['weight']>this[t(0x174)]){this[t(0x17a)][t(0x175)](t(0x153));throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this['_inventory'][t(0x16b)](a),this[t(0x17a)][t(0x175)](t(0x15a)+a[t(0x183)]+t(0x187));}[a51i(0x139)](a){const u=a51i;if(this['_inventory'][u(0x179)](a[u(0x183)]))return this['logger']['write'](u(0x189)+a[u(0x183)]+u(0x141)),!![];return this[u(0x17a)][u(0x175)](u(0x177)+a[u(0x183)]+'\x20from\x20player\x27s\x20inventory.'),![];}['equip'](a){const v=a51i;if(!this['_inventory'][v(0x184)](a[v(0x183)]))return v(0x146)+a[v(0x183)]+'\x20in\x20your\x20inventory.';if(!this[v(0x17c)](a))return'You\x20can\x27t\x20equip\x20'+a[v(0x183)]+'.';const b=this[v(0x135)](a[v(0x16f)]);if(!b)return a[v(0x183)]+v(0x140);if(this[v(0x15d)][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+v(0x176);return this['equipment'][b]=a,this[v(0x139)](a),'You\x20equipped\x20'+a[v(0x183)]+'.';}[a51i(0x15f)](a){const w=a51i;let b=a;if(!this['equipment'][camelCase(b)]){b=this[w(0x135)](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this[w(0x156)](b);}[a51i(0x135)](a){const x=a51i;switch(a[x(0x185)]()){case Category[x(0x16c)][x(0x185)]():return'rightHand';case Category['Shield'][x(0x185)]():return x(0x188);case Category[x(0x14a)][x(0x185)]():return x(0x155);case Category[x(0x134)]['toLowerCase']():case Category['Hat'][x(0x185)]():return x(0x165);case Category['Boots']['toLowerCase']():return x(0x168);case Category['LegArmor']['toLowerCase']():return x(0x173);case Category[x(0x147)][x(0x185)]():return x(0x150);case Category[x(0x132)][x(0x185)]():return x(0x14e);case x(0x17f):return x(0x16a);case x(0x133):return x(0x188);case x(0x155):return'gloves';case x(0x14f):case x(0x154):return'head';case'boots':return'feet';case x(0x162):case x(0x163):return x(0x173);case x(0x161):case x(0x145):return x(0x150);case x(0x169):case'bodyarmor':case'torso':return x(0x14e);default:return null;}}[a51i(0x17c)](a){const y=a51i;return Object[y(0x18b)](Category)['includes'](a[y(0x16f)]);}[a51i(0x156)](a){const z=a51i,b=this['equipment'][a];if(!b)return'You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20'+a+z(0x13c);return this[z(0x164)](b),this[z(0x15d)][a]=null,z(0x16d)+b['name']+'.';}[a51i(0x14b)](a,b){const A=a51i;a!==this&&this['logger']['log'](a[A(0x183)]+A(0x180)+b+'\x22');}['enterRoom'](a){const B=a51i;this[B(0x152)]=a,a['on'](B(0x142),this['hear'][B(0x138)](this)),this[B(0x17a)][B(0x175)](this[B(0x183)]+B(0x167)+a[B(0x183)]);}['leaveRoom'](){const C=a51i;this[C(0x152)]&&(this[C(0x152)]['off'](C(0x142),this[C(0x14b)][C(0x138)](this)),this[C(0x17a)]['write'](this[C(0x183)]+C(0x15e)+this['_currentLocation']['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0xbc))/0x1*(parseInt(f(0xc0))/0x2)+parseInt(f(0xc6))/0x3+parseInt(f(0xb5))/0x4*(parseInt(f(0xbb))/0x5)+parseInt(f(0xc8))/0x6+parseInt(f(0xbf))/0x7+-parseInt(f(0xca))/0x8+parseInt(f(0xb6))/0x9*(parseInt(f(0xbd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x48ef8));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0xc2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0xcb)]()[h(0xcc)](h(0xc7))[h(0xcb)]()[h(0xb0)](a52a)['search']('(((.+)+)+)+$');});a52a();function a52c(){var n=['rewardItem','matchesRequiredPhrase','solve','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','5ZJvtZo','1KycQpU','3645580SFCtWz','logger','1229389cQpFNP','463948vZLSRH','hasItem','apply','failureMessage','solved','You\x20solved\x20the\x20puzzle!','83436OlSWvk','(((.+)+)+)+$','114408lzMGJF','successMessage','1624912YxyXWB','toString','search','write','hasRequiredItem','constructor','riddle','requiredPhrase','requiredItem','getInstance','587068HrrHVR','9JiAQrA'];a52c=function(){return n;};return a52c();}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xae;var f=c[d];return f;},a52d(a,b);}import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger[a52i(0xb4)]();['solved']=![];[a52i(0xb3)];[a52i(0xb2)];['riddle'];[a52i(0xb7)];['successMessage'];['failureMessage'];constructor(a){var j=a52i;super(),this['requiredItem']=a[j(0xb3)],this[j(0xb2)]=a[j(0xb2)],this[j(0xb1)]=a[j(0xb1)],this['rewardItem']=a[j(0xb7)],this[j(0xc9)]=a[j(0xc9)]||j(0xc5),this[j(0xc3)]=a[j(0xc3)]||j(0xba);}[a52i(0xaf)](a){var k=a52i;if(this[k(0xb3)])return a[k(0xc1)](this['requiredItem']);return![];}[a52i(0xb8)](a){var l=a52i;return this[l(0xb2)]===a;}[a52i(0xb9)](a,b){var m=a52i;if(this[m(0xc4)])return this[m(0xbe)][m(0xae)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this[m(0xaf)](b)||this[m(0xb8)](a)?(this[m(0xc4)]=!![],this['logger'][m(0xae)]('Puzzle:\x20Correct\x20solution\x20provided.'),{'success':!![],'message':this[m(0xc9)]}):(this[m(0xbe)][m(0xae)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[m(0xc3)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53h=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0x1c3))/0x1*(-parseInt(f(0x1c2))/0x2)+-parseInt(f(0x1a4))/0x3*(-parseInt(f(0x1d4))/0x4)+-parseInt(f(0x1a7))/0x5+-parseInt(f(0x1d3))/0x6+parseInt(f(0x1d5))/0x7+parseInt(f(0x1cd))/0x8*(-parseInt(f(0x1cc))/0x9)+parseInt(f(0x1bc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xa69b8));const a53b=(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;};}()),a53a=a53b(this,function(){const g=a53d;return a53a[g(0x1bb)]()[g(0x1b3)]('(((.+)+)+)+$')[g(0x1bb)]()[g(0x1cb)](a53a)[g(0x1b3)](g(0x1b4));});a53a();import{Logger}from'../utilities/logger.js';function a53c(){const t=['hasItem','57fOHJhd','exits','values','2246940cZSBUZ','Item\x20added\x20to\x20room\x20','say','getOppositeDirection','name','setPuzzle','getExit','isStartRoom','Item\x20removed\x20from\x20room\x20','emit','riddle','attemptUnlock','search','(((.+)+)+)+$','Fetching\x20exit\x20in\x20direction:\x20','get','Invalid\x20direction:\x20','description','roomA','SOUTH','toString','9290620QNjeag','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','getInstance','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','No\x20locked\x20exit\x20found\x20in\x20direction\x20','The\x20','6998XjCHMI','87kuPfOp','\x20remains\x20locked.','isExitLocked','DOWN','findExistingDoor','roomType','Room\x20created:\x20','down','constructor','1503351NiSANM','8IDxRdI','EAST','removeItem','addItem','logger','Checking\x20if\x20exit\x20in\x20direction\x20','3371652UAISth','21652GxsebY','7933079sSMgAR','write','checkIfLocked','set','\x20unlocked!','inventory','.\x20Success:\x20','speak','west','puzzle','WEST','NORTH'];a53c=function(){return t;};return a53c();}import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x19b;let f=c[d];return f;},a53d(a,b);}import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a53h(0x1d1)]=Logger[a53h(0x1be)]();[a53h(0x1ab)];['description'];['exits']=new Map();[a53h(0x1c8)];[a53h(0x1ae)];['inventory']=new Inventory();constructor(a){const i=a53h;super(),this[i(0x1ab)]=a['name'],this[i(0x1b8)]=a[i(0x1b8)],this[i(0x1c8)]=a['roomType']||RoomType['INSIDE'],a['exits']&&(this[i(0x1a5)]=a['exits']||new Map()),a['inventory']&&(this['inventory']=a[i(0x19c)]),a[i(0x1a0)]&&(this[i(0x1a0)]=a[i(0x1a0)]),this['isStartRoom']=a[i(0x1ae)]||![],this['logger']['write'](i(0x1c9)+this['name']);}[a53h(0x1a9)](a,b){const j=a53h;this[j(0x1b0)](j(0x19e),a,b);}['addExit'](a,b,c){const k=a53h;let d=this[k(0x1c7)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[k(0x1a5)]['set'](a,d),b[k(0x1a5)][k(0x1d8)](this[k(0x1aa)](a),d);}['attemptUnlockExit'](a,b){const l=a53h,c=this[l(0x1a5)][l(0x1b6)](a);if(c instanceof Door){const d=c[l(0x1b2)](b);return this['logger'][l(0x1d6)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+l(0x19d)+d),d?l(0x1c1)+c[l(0x1ab)]+l(0x19b):l(0x1c1)+c[l(0x1ab)]+l(0x1c4);}return this['logger'][l(0x1d6)](l(0x1c0)+a),l(0x1bf);}[a53h(0x1ad)](a){const m=a53h;return this[m(0x1d1)]['write'](m(0x1b5)+a),this[m(0x1a5)]['get'](a);}[a53h(0x1c5)](a){const n=a53h,b=this['exits'][n(0x1b6)](a),c=b instanceof Door&&b[n(0x1d7)]();return this[n(0x1d1)]['write'](n(0x1d2)+a+'\x20is\x20locked.\x20Result:\x20'+c),c;}[a53h(0x1d0)](a){const o=a53h;this[o(0x19c)][o(0x1d0)](a),this[o(0x1d1)][o(0x1d6)](o(0x1a8)+this['name']+':\x20'+a[o(0x1ab)]);}[a53h(0x1cf)](a){const p=a53h;this[p(0x19c)][p(0x1a3)](a['name'])?(this[p(0x19c)]['removeItem'](a['name']),this[p(0x1d1)][p(0x1d6)](p(0x1af)+this[p(0x1ab)]+':\x20'+a[p(0x1ab)])):this[p(0x1d1)][p(0x1d6)](p(0x1bd)+this[p(0x1ab)]+':\x20'+a[p(0x1ab)]);}[a53h(0x1ac)](a){const q=a53h;this[q(0x1a0)]=a,this[q(0x1d1)][q(0x1d6)]('Puzzle\x20set\x20for\x20room\x20'+this[q(0x1ab)]+':\x20'+a[q(0x1b1)]);}['getOppositeDirection'](a){const r=a53h;switch(a){case'north':return Direction[r(0x1ba)];case'south':return Direction[r(0x1a2)];case'east':return Direction[r(0x1a1)];case r(0x19f):return Direction[r(0x1ce)];case'up':return Direction[r(0x1c6)];case r(0x1ca):return Direction['UP'];default:throw new Error(r(0x1b7)+a);}}[a53h(0x1c7)](a){const s=a53h;for(const b of this[s(0x1a5)][s(0x1a6)]()){if(b instanceof Door){if(b[s(0x1b9)]===this&&b['roomB']===a||b['roomB']===this&&b[s(0x1b9)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a54c(){const
|
|
1
|
+
const a54l=a54d;function a54c(){const E=['constructor','characterLocations','determineStartRoom','join','createExitsFromConfig','roomConfiguration','9084YkofUC','removeRoom','get','setPuzzle','toUpperCase','Added\x20room\x20to\x20scene:\x20','from','rooms','getPlayer','toString','delete','No\x20actor\x20with\x20name\x20','\x20found\x20in\x20the\x20scene.','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','26976otKzbE','actors','removeActor','apply','logger','generateRoomsFromConfig','getCharacterLocation','direction','currentLocation','hasOwnProperty','Added\x20puzzle\x20to\x20room\x20','exits','values','setCharacterLocation','length','keyRequired','keys','1410dcgtAu','getRooms','8lcTDDq','\x27s\x20location.\x20Room\x20','Removed\x20room\x20from\x20scene:\x20','86liGgfR','\x20not\x20found\x20in\x20scene.','Failed\x20to\x20add\x20item\x20','set','addExit','933292KZHbDT','roomFactory','addRoom','push','player','addItem','targetRoom','\x22\x20does\x20not\x20exist.','allActors','addPuzzleToRoom','7055158tEcaUb','545uuglpG','\x20to\x20room\x20','(((.+)+)+)+$','19722468RrtdWU','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','search','has','name','addActor','1688183XxBfsK','write','24057lSMHJA','Actor\x20with\x20name\x20','6unLJYc','Failed\x20to\x20add\x20puzzle.\x20Room\x20'];a54c=function(){return E;};return a54c();}(function(a,b){const i=a54d,c=a();while(!![]){try{const d=parseInt(i(0x1de))/0x1*(-parseInt(i(0x1c8))/0x2)+-parseInt(i(0x1b2))/0x3*(-parseInt(i(0x1e3))/0x4)+-parseInt(i(0x1ee))/0x5*(-parseInt(i(0x1ba))/0x6)+parseInt(i(0x1ae))/0x7*(-parseInt(i(0x1db))/0x8)+-parseInt(i(0x1b0))/0x9*(-parseInt(i(0x1d9))/0xa)+-parseInt(i(0x1ed))/0xb+parseInt(i(0x1a7))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x94d35));function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a54d(a,b);}const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a[k(0x1c3)]()[k(0x1aa)](k(0x1a6))[k(0x1c3)]()[k(0x1b4)](a54a)[k(0x1aa)](k(0x1a6));});a54a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a54l(0x1c1)];['player'];[a54l(0x1cc)];[a54l(0x1c9)];[a54l(0x1b5)]=new Map();[a54l(0x1e4)];constructor(a){const m=a54l;super(),this[m(0x1e4)]=new RoomFactory(),this[m(0x1e7)]=a[m(0x1e7)],this[m(0x1c1)]=this[m(0x1cd)](a[m(0x1b9)]),this['logger']=Logger['getInstance'](),this[m(0x1c9)]=new Map(),this[m(0x1b8)](a[m(0x1b9)]),this['logger'][m(0x1af)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[m(0x1d8)](this[m(0x1c1)])[m(0x1b7)](',\x20'));}['initialize'](){const n=a54l;this[n(0x1e7)][n(0x1d0)]=this[n(0x1b6)]();}[a54l(0x1cd)](a){const o=a54l;if(!this['roomFactory'])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this[o(0x1e4)]['createRoom'](c);b[c['name']]=d;}return b;}['createExitsFromConfig'](a){const p=a54l;for(const b of a){const c=this[p(0x1c1)][b[p(0x1ac)]];if(b[p(0x1d3)])for(const d of b[p(0x1d3)]){const e=d[p(0x1cf)][p(0x1be)](),f=d[p(0x1e9)],g=d[p(0x1d7)],h=this['rooms'][f];h&&c[p(0x1e2)](Direction[e],h,g);}}}[a54l(0x1ad)](a){const q=a54l;if(this[q(0x1c9)][q(0x1ab)](a['name']))throw new Error(q(0x1b1)+a[q(0x1ac)]+'\x20already\x20exists\x20in\x20the\x20scene.');this[q(0x1c9)]['set'](a[q(0x1ac)],a);}[a54l(0x1ca)](a){const r=a54l;if(!this['actors']['has'](a))throw new Error(r(0x1c5)+a+r(0x1c6));this[r(0x1c9)][r(0x1c4)](a);}['getActor'](a){const s=a54l;return this['actors'][s(0x1bc)](a);}get[a54l(0x1eb)](){const t=a54l;return Array[t(0x1c0)](this[t(0x1c9)][t(0x1d4)]());}[a54l(0x1e5)](a){const u=a54l;this[u(0x1c1)][a[u(0x1ac)]]=a,this[u(0x1cc)][u(0x1af)](u(0x1bf)+a[u(0x1ac)]);}[a54l(0x1bb)](a){const v=a54l;return this[v(0x1c1)][a]?(delete this['rooms'][a],this[v(0x1cc)][v(0x1af)](v(0x1dd)+a),!![]):(this[v(0x1cc)][v(0x1af)](v(0x1a9)+a),![]);}['addItemToRoom'](a,b){const w=a54l,c=this[w(0x1c1)][b];c?(c[w(0x1e8)](a),this['logger']['write']('Added\x20item\x20'+a[w(0x1ac)]+w(0x1a5)+c['name'])):this[w(0x1cc)]['write'](w(0x1e0)+a[w(0x1ac)]+'.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a54l(0x1ec)](a,b){const x=a54l,c=this[x(0x1c1)][b];c?(c[x(0x1bd)](a),this['logger']['write'](x(0x1d2)+c['name'])):this['logger'][x(0x1af)](x(0x1b3)+b+x(0x1df));}[a54l(0x1d5)](a,b){const y=a54l,c=this[y(0x1c1)][b];c?(this['characterLocations'][y(0x1e1)](a[y(0x1ac)],c),this[y(0x1cc)]['write'](a['name']+'\x20is\x20now\x20in\x20room\x20'+c[y(0x1ac)])):this[y(0x1cc)][y(0x1af)]('Failed\x20to\x20set\x20'+a[y(0x1ac)]+y(0x1dc)+b+'\x20not\x20found\x20in\x20scene.');}[a54l(0x1ce)](a){const z=a54l;return this[z(0x1b5)]['get'](a['name']);}[a54l(0x1b6)](){const A=a54l,a=[];for(const c in this[A(0x1c1)]){if(this[A(0x1c1)][A(0x1d1)](c)){const d=this[A(0x1c1)][c];d['isStartRoom']&&a[A(0x1e6)](d);}}if(a[A(0x1d6)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a[A(0x1d6)]===0x1)return a[0x0];const b=Object[A(0x1d8)](this[A(0x1c1)]);if(b[A(0x1d6)]===0x0)throw new Error(A(0x1a8));return console['warn'](A(0x1c7)),this[A(0x1c1)][b[0x0]];}[a54l(0x1c2)](){const B=a54l;return this[B(0x1e7)];}[a54l(0x1da)](){const C=a54l;return this[C(0x1c1)];}['connectRooms'](a,b,c,d){const D=a54l,e=this[D(0x1c1)][a],f=this[D(0x1c1)][c];if(!e)throw new Error('Room\x20\x22'+a+D(0x1ea));if(!f)throw new Error('Room\x20\x22'+c+'\x22\x20does\x20not\x20exist.');e[D(0x1e2)](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(0x165))/0x1+parseInt(f(0x16f))/0x2*(-parseInt(f(0x16a))/0x3)+-parseInt(f(0x170))/0x4*(-parseInt(f(0x162))/0x5)+-parseInt(f(0x143))/0x6+-parseInt(f(0x14e))/0x7+parseInt(f(0x151))/0x8*(parseInt(f(0x15b))/0x9)+parseInt(f(0x150))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x6a1fb));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(0x169)]()['search'](g(0x160))['toString']()['constructor'](a55a)[g(0x14b)](g(0x160));});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['Medium'],'category':Category[h(0x173)],'shape':Shape[h(0x16e)],'color':Color[h(0x164)],'texture':Texture[h(0x15f)],'rating':Rating[h(0x159)],'weight':0x1});}[a55i(0x14c)](){var j=a55i;return this[j(0x14a)];}}export class Sword extends Item{constructor(a,b){var k=a55i;super({'name':a,'description':b,'size':Size[k(0x15a)],'category':Category[k(0x176)],'shape':Shape['Blade'],'color':Color[k(0x16c)],'texture':Texture[k(0x14d)],'rating':Rating[k(0x159)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a55i;super({'name':a,'description':b,'size':Size['Large'],'category':Category['Weapon'],'shape':Shape[l(0x16d)],'color':Color[l(0x174)],'texture':Texture[l(0x14d)],'rating':Rating['Rare'],'weight':0x7});}}function a55c(){var D=['(((.+)+)+)+$','Boots','128655vXGern','Legendary','Yellow','524200btGlYV','publishDate','Gloves','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','toString','6GmhBbb','Sniper\x20Rifle','Grey','Rifle','Rectangle','691718mofgGt','108JNwzKJ','Holy\x20Grail','Helmet','Unknown','Brown','Short\x20Sword','Weapon','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Cup','BodyArmor','Gold','A\x20mysterious\x20book.','4002930bBYyUG','pageCount','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','LegArmor','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Small','name','description','search','use','Metallic','3651970bLqOFt','You\x20hold\x20the\x20','20318220HpbRDs','8AAzpsy','Unknown\x20Author','Circle','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','Large','author','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Book','Common','Medium','1016163Keozkc','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Blade','ArmArmor','Smooth'];a55c=function(){return D;};return a55c();}export class Helmet extends Item{constructor(a,b){var m=a55i;super({'name':a,'description':b,'size':Size[m(0x15a)],'category':Category[m(0x172)],'shape':Shape['Circle'],'color':Color[m(0x16c)],'texture':Texture[m(0x14d)],'rating':Rating[m(0x159)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a55i;super({'name':a,'description':b,'size':Size[n(0x155)],'category':Category[n(0x179)],'shape':Shape[n(0x16e)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating[n(0x159)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[o(0x146)],'shape':Shape['Rectangle'],'color':Color[o(0x16c)],'texture':Texture[o(0x14d)],'rating':Rating['Common'],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a55i;super({'name':a,'description':b,'size':Size[p(0x15a)],'category':Category[p(0x161)],'shape':Shape[p(0x153)],'color':Color[p(0x174)],'texture':Texture['Smooth'],'rating':Rating[p(0x159)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a55i;super({'name':a,'description':b,'size':Size[q(0x148)],'category':Category[q(0x167)],'shape':Shape['Circle'],'color':Color[q(0x174)],'texture':Texture[q(0x15f)],'rating':Rating[q(0x159)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a55i;super({'name':a,'description':b,'size':Size[r(0x15a)],'category':Category[r(0x15e)],'shape':Shape[r(0x16e)],'color':Color['Grey'],'texture':Texture[r(0x14d)],'rating':Rating['Common'],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a55i;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category['Key'],'shape':Shape[s(0x16e)],'color':Color[s(0x164)],'texture':Texture[s(0x15f)],'rating':Rating['Common'],'weight':0x0});}[a55i(0x14c)](){var t=a55i;return t(0x157);}}export class Weapon extends Item{constructor(a,b){var u=a55i;super({'name':a,'description':b,'size':Size[u(0x15a)],'category':Category[u(0x176)],'shape':Shape[u(0x15d)],'color':Color['Grey'],'texture':Texture[u(0x14d)],'rating':Rating['Common'],'weight':0x3});}[a55i(0x14c)](){var v=a55i;return v(0x168);}}function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x142;var f=c[d];return f;},a55d(a,b);}export class Book extends Item{[a55i(0x156)];[a55i(0x166)];['pageCount'];constructor(a,b=a55i(0x142),c=a55i(0x152)){var w=a55i;super({'name':a,'description':b,'size':Size[w(0x15a)],'category':Category[w(0x158)],'shape':Shape[w(0x16e)],'color':Color[w(0x174)],'texture':Texture['Smooth'],'rating':Rating[w(0x159)],'weight':0x1}),this['author']=c,this['publishDate']=new Date(),this[w(0x144)]=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 x=a55i;super({'name':x(0x175),'description':x(0x177),'size':Size[x(0x15a)],'category':Category[x(0x176)],'shape':Shape[x(0x15d)],'color':Color[x(0x16c)],'texture':Texture[x(0x14d)],'rating':Rating[x(0x159)],'weight':0x3});}[a55i(0x14c)](){var y=a55i;return y(0x168);}}export class SniperRifle extends Item{constructor(){var z=a55i;super({'name':z(0x16b),'description':z(0x154),'size':Size[z(0x155)],'category':Category[z(0x176)],'shape':Shape[z(0x16d)],'color':Color['Brown'],'texture':Texture[z(0x15f)],'rating':Rating[z(0x159)],'weight':0x5});}[a55i(0x14c)](){var A=a55i;return A(0x147);}}export class HolyGrail extends Item{constructor(){var B=a55i;super({'name':B(0x171),'description':B(0x145),'size':Size['Small'],'category':Category[B(0x178)],'shape':Shape['Circle'],'color':Color[B(0x17a)],'texture':Texture[B(0x14d)],'rating':Rating[B(0x163)],'weight':0x1});}[a55i(0x14c)](){var C=a55i;return C(0x14f)+this[C(0x149)]+C(0x15c);}}
|