@maka/maka-cli 4.7.9 → 4.7.11
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/templates/meteor/project/package.json +20 -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 a37i=a37d;function a37c(){const k=['301pJwxxr','listItems','name','\x20found\x20the\x20following\x20items:\x20','8QNkAij','apply','logger','23804iFBqgV','2103410pQfGeK','Search\x20for\x20items\x20in\x20your\x20area','4584087ksBGpj','SearchCommand:\x20','217246aTQyVt','138516titYwz','6110AXiEgQ','5490702tzojvX','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','write','description','(((.+)+)+)+$','2vybHeJ','join','3038208JDSzoD','execute','currentLocation','actor','constructor','You\x20search\x20the\x20area\x20and\x20find:\x20','search'];a37c=function(){return k;};return a37c();}(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0xac))/0x1*(-parseInt(f(0xa4))/0x2)+parseInt(f(0xa2))/0x3+parseInt(f(0xb9))/0x4*(parseInt(f(0xa0))/0x5)+parseInt(f(0xa5))/0x6*(-parseInt(f(0xb5))/0x7)+parseInt(f(0xae))/0x8+parseInt(f(0xa7))/0x9+parseInt(f(0xa6))/0xa*(-parseInt(f(0xbc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xc9edb));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0xba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a['toString']()[h(0xb4)](h(0xab))['toString']()[h(0xb2)](a37a)[h(0xb4)](h(0xab));});a37a();function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0xa0;let f=c[d];return f;},a37d(a,b);}import{Command}from'./command.js';export class SearchCommand extends Command{static ['verb']=a37i(0xb4);static [a37i(0xaa)]=a37i(0xa1);[a37i(0xaf)](){const j=a37i,a=this[j(0xb1)][j(0xb0)]['inventory'][j(0xb6)]();if(a['length']===0x0)return this[j(0xbb)][j(0xa9)](j(0xa3)+this[j(0xb1)][j(0xb7)]+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),j(0xa8);const b=a[j(0xad)](',\x20');return this[j(0xbb)][j(0xa9)](j(0xa3)+this[j(0xb1)][j(0xb7)]+j(0xb8)+b),j(0xb3)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38i=a38d;function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a38d(a,b);}(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x1b0))/0x1*(-parseInt(f(0x1ae))/0x2)+-parseInt(f(0x1c0))/0x3*(-parseInt(f(0x1be))/0x4)+parseInt(f(0x1a6))/0x5+parseInt(f(0x1ac))/0x6+parseInt(f(0x1aa))/0x7+-parseInt(f(0x1bb))/0x8*(-parseInt(f(0x1ba))/0x9)+-parseInt(f(0x1b1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x3cab2));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x1a4)]()['search'](h(0x1ab))['toString']()[h(0x1c1)](a38a)['search']('(((.+)+)+)+$');});a38a();import{Command}from'./command.js';function a38c(){const k=['constructor','logger','toString','execute','2129635mDYtBf','write','inventory','SolveCommand:\x20','3039239uPjktt','(((.+)+)+)+$','149310PoaxJR','actor','68182drppnb','rewardItem','5wEWuJE','12754660RVeBrd','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','message','join','currentLocation','verb','Attempt\x20to\x20solve\x20a\x20puzzle.','description','apply','9pfvGdD','2188168dPFZsa','addItem','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','4yVlltC','puzzle','584997igzwzI'];a38c=function(){return k;};return a38c();}export class SolveCommand extends Command{static [a38i(0x1b6)]='solve';static [a38i(0x1b8)]=a38i(0x1b7);[a38i(0x1a5)](a){const j=a38i,b=a[j(0x1b4)]('\x20')['toLowerCase'](),c=this[j(0x1ad)][j(0x1b5)];if(!c||!c[j(0x1bf)])return this[j(0x1c2)]['write'](j(0x1b2)),j(0x1bd);const d=c[j(0x1bf)]['solve'](b,this[j(0x1ad)][j(0x1a8)]);return d['success']&&c[j(0x1bf)]['rewardItem']&&this['actor']['inventory'][j(0x1bc)](c[j(0x1bf)][j(0x1af)]),this['logger'][j(0x1a7)](j(0x1a9)+d[j(0x1b3)]),d[j(0x1b3)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a39i=a39d;function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x12b;let f=c[d];return f;},a39d(a,b);}(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x14d))/0x1+parseInt(f(0x149))/0x2*(-parseInt(f(0x14c))/0x3)+-parseInt(f(0x146))/0x4+-parseInt(f(0x134))/0x5*(parseInt(f(0x12e))/0x6)+-parseInt(f(0x133))/0x7*(-parseInt(f(0x12d))/0x8)+-parseInt(f(0x136))/0x9*(-parseInt(f(0x12c))/0xa)+-parseInt(f(0x152))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xc14e8));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x153)]()[h(0x141)](h(0x137))['toString']()[h(0x148)](a39a)[h(0x141)](h(0x137));});a39a();function a39c(){const l=['removeItem','44303dAkJmP','35015pwaUbL','actor','114471DjNsZW','(((.+)+)+)+$','logger','apply','\x22\x20from\x20','take','hasItem','Successfully\x20added\x20\x22','name','\x20during\x20\x27Take\x27\x20command.','message','search','\x22\x20in\x20this\x20room.','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','addInventory','inventory','1334652aGbUqQ','Item\x20\x22','constructor','895074SDsdlg','Error\x20during\x20\x27Take\x27\x20command:\x20','verb','3ALeYSg','996548zVfsgn','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','\x22\x20to\x20','\x22\x20not\x20found\x20in\x20','2885927DXujiN','toString','write','You\x20have\x20taken\x20the\x20','10cmtCSe','1832ftLuIK','534TqJzJN','currentLocation','\x22\x20is\x20too\x20heavy\x20to\x20carry.','The\x20item\x20\x22'];a39c=function(){return l;};return a39c();}import{Command}from'./command.js';export class TakeCommand extends Command{static [a39i(0x14b)]=a39i(0x13b);static ['description']='Pick\x20up\x20an\x20item.';['execute'](a){const j=a39i;return this[j(0x138)][j(0x154)](j(0x14e)+a['join']('\x20')),this[j(0x13b)](a);}[a39i(0x13b)](a){const k=a39i,b=a['join']('\x20')['toLowerCase'](),c=this[k(0x135)][k(0x12f)];if(!c[k(0x145)][k(0x13c)](b))return this[k(0x138)][k(0x154)](k(0x147)+b+k(0x151)+c['name']+k(0x13f)),'There\x20is\x20no\x20item\x20\x22'+b+k(0x142);const d=c[k(0x145)]['getItem'](b);if(!d)return this[k(0x138)][k(0x154)](k(0x147)+b+'\x22\x20not\x20retrieved\x20from\x20'+c['name']+k(0x143)),'There\x20is\x20no\x20item\x20\x22'+b+'\x22\x20in\x20this\x20room.';try{return this[k(0x135)][k(0x144)](d),this[k(0x138)][k(0x154)](k(0x13d)+b+k(0x150)+this[k(0x135)][k(0x13e)]+k(0x14f)),c[k(0x145)][k(0x132)](b),this[k(0x138)][k(0x154)]('Successfully\x20removed\x20\x22'+b+k(0x13a)+c[k(0x13e)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x12b)+b+'.';}catch(e){return this[k(0x138)]['write'](k(0x14a)+e[k(0x140)]),k(0x131)+b+k(0x130);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x79))/0x1+parseInt(f(0x83))/0x2+-parseInt(f(0x7b))/0x3+parseInt(f(0x8b))/0x4+-parseInt(f(0x86))/0x5+parseInt(f(0x88))/0x6+parseInt(f(0x7a))/0x7*(parseInt(f(0x7d))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x60b52));function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x79;let f=c[d];return f;},a40d(a,b);}function a40c(){const k=['1069911byziky','actor','24apQPUt','logger','apply','join','execute','name','156962OunbVF','search','\x20unqeuiped\x20','271675yxdAVB','Unequip\x20an\x20item.','4221360pIOCIG','write','UnequipCommand:\x20','765372tsfRhP','toString','unequip','(((.+)+)+)+$','toLowerCase','unqeuip','567137qtQbbH','935291IHNgFL'];a40c=function(){return k;};return a40c();}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x8c)]()['search'](h(0x8e))[h(0x8c)]()['constructor'](a40a)[h(0x84)]('(((.+)+)+)+$');});a40a();import{Command}from'./command.js';export class UnequipCommand extends Command{static ['verb']=a40i(0x90);static ['description']=a40i(0x87);[a40i(0x81)](a){const j=a40i,b=a[j(0x80)]('\x20')[j(0x8f)](),c=this[j(0x7c)][j(0x8d)](b);return this[j(0x7e)][j(0x89)](j(0x8a)+this[j(0x7c)][j(0x82)]+j(0x85)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d
|
|
1
|
+
const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=parseInt(h(0x187))/0x1*(-parseInt(h(0x184))/0x2)+parseInt(h(0x182))/0x3+parseInt(h(0x16e))/0x4+-parseInt(h(0x191))/0x5+-parseInt(h(0x173))/0x6*(parseInt(h(0x177))/0x7)+parseInt(h(0x185))/0x8+parseInt(h(0x183))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x24be8));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a41d;if(c){const e=c[i(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a[j(0x18b)]()[j(0x17c)](j(0x180))[j(0x18b)]()['constructor'](a41a)['search'](j(0x180));});a41a();function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x16c;let f=c[d];return f;},a41d(a,b);}function a41c(){const n=['1nsTPoE','There\x27s\x20no\x20door\x20named\x20\x22','attemptUnlockExit','Unlock\x20a\x20door.','toString','name','error','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','\x22\x20here.','apply','575545hvvoeT','isValidDirection','inventory','actor','logger','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','UnlockCommand:\x20No\x20target\x20specified.','108216ukXNAe','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','unlockItemOrSolution','toLowerCase','.\x20Result:\x20','307302pFfCtM','execute','getItem','\x20is\x20attempted\x20to\x20unlock\x20','28ayBrkr','description','currentLocation','UnlockCommand:\x20','exits','search','write','hasItem','verb','(((.+)+)+)+$','unlock','651225gWUMxv','2180034gbOBEC','234002scERcK','809016RCIDJz','get'];a41c=function(){return n;};return a41c();}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a41k(0x17f)]=a41k(0x181);static [a41k(0x178)]=a41k(0x18a);[a41k(0x174)](a){const l=a41k;return this[l(0x181)](a);}[a41k(0x181)](a){const m=a41k;if(a['length']===0x0)return this['logger'][m(0x18d)](m(0x16d)),m(0x16c);const b=a[0x0]['toLowerCase'](),c=this[m(0x194)][m(0x179)];if(this[m(0x192)](b)&&c[m(0x17b)]['has'](b)){const d=c[m(0x17b)][m(0x186)](b);if(d instanceof Door){const e=d[m(0x170)]?.[m(0x171)]();if(e&&this[m(0x194)]['inventory'][m(0x17e)](e)){const f=this[m(0x194)][m(0x193)][m(0x175)](e);if(f){const g=c[m(0x189)](b,f[m(0x18c)]);return this[m(0x195)][m(0x17d)](m(0x17a)+this['actor']['name']+m(0x176)+b+m(0x172)+g),g;}}return this[m(0x195)]['write']('UnlockCommand:\x20'+this[m(0x194)][m(0x18c)]+m(0x16f)+b+'.'),m(0x18e);}else return this[m(0x195)]['write'](m(0x17a)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c['name']+'.'),m(0x188)+b+m(0x18f);}else return this[m(0x195)][m(0x17d)](m(0x17a)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[m(0x18c)]+'.'),m(0x188)+b+m(0x18f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42i=a42d;
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x19f))/0x1*(-parseInt(f(0x1a5))/0x2)+-parseInt(f(0x19e))/0x3*(parseInt(f(0x194))/0x4)+parseInt(f(0x199))/0x5*(parseInt(f(0x1a0))/0x6)+-parseInt(f(0x1a8))/0x7+parseInt(f(0x193))/0x8*(parseInt(f(0x1a4))/0x9)+parseInt(f(0x192))/0xa*(-parseInt(f(0x18c))/0xb)+parseInt(f(0x196))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x73551));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x1ab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x18f)]()[h(0x1a3)](h(0x19c))['toString']()[h(0x19d)](a42a)[h(0x1a3)](h(0x19c));});function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x187;let f=c[d];return f;},a42d(a,b);}a42a();import{Command}from'./command.js';export class UseCommand extends Command{static [a42i(0x191)]='use';static [a42i(0x187)]=a42i(0x1a9);[a42i(0x188)](a){return this['use'](a);}['use'](a){const j=a42i,b=a[j(0x1a2)]('\x20')[j(0x1a6)]();if(!this[j(0x197)][j(0x18a)][j(0x1aa)](b))return this[j(0x18b)]['write'](j(0x1a1)+this[j(0x197)]['name']+j(0x18e)+b+j(0x19b)),j(0x195)+b+j(0x1af);const c=this[j(0x197)]['inventory'][j(0x198)](b);if(!c)return this[j(0x18b)][j(0x189)](j(0x1a1)+b+j(0x1ac)+this[j(0x197)][j(0x1ae)]+j(0x18d)),j(0x195)+b+'\x20to\x20use.';if(typeof c[j(0x19a)]==='function'){const d=c[j(0x19a)]();return this[j(0x18b)]['write'](j(0x1a1)+this['actor'][j(0x1ae)]+j(0x1a7)+b+'.'),d;}else return this[j(0x18b)][j(0x189)]('UseCommand:\x20'+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),j(0x1ad)+b+j(0x190);}}function a42c(){const k=['You\x20don\x27t\x20have\x20the\x20','17581248EbJSHR','actor','getItem','20915XrMDde','use',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','(((.+)+)+)+$','constructor','132ixxEdY','3AwnXbG','1128APjDvE','UseCommand:\x20','join','search','369qYguGq','163174CfrYnB','toLowerCase','\x20used\x20','5479810hhHIYT','Use\x20an\x20item.','hasItem','apply','\x20not\x20retrieved\x20from\x20','You\x20can\x27t\x20use\x20the\x20','name','\x20to\x20use.','description','execute','write','inventory','logger','8907217NyxLTv','\x27s\x20inventory.','\x20attempted\x20to\x20use\x20','toString','\x20in\x20this\x20way.','verb','10Kmujiz','31512ySGCYW','9388hxJxON'];a42c=function(){return k;};return a42c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a43c(){const l=['
|
|
1
|
+
function a43c(){const l=['commandMap','registerCommand','14701626ilNQhP','2079964mDQlnp','(((.+)+)+)+$','371kxIhnp','getAllRegisteredCommands','createCommand','2947035PmHoAI','4970922gyBudB','constructor','435790IMvheB','apply','72576SPaqCJ','toString','129RuKElD','39818cRRjKu'];a43c=function(){return l;};return a43c();}const a43i=a43d;function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0xf7;let f=c[d];return f;},a43d(a,b);}(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0xfb))/0x1+-parseInt(f(0x100))/0x2*(-parseInt(f(0xff))/0x3)+-parseInt(f(0x104))/0x4+-parseInt(f(0xf8))/0x5+-parseInt(f(0xf9))/0x6+-parseInt(f(0x106))/0x7*(-parseInt(f(0xfd))/0x8)+parseInt(f(0x103))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x91b06));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0xfc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0xfe)]()['search'](h(0x105))['toString']()[h(0xfa)](a43a)['search'](h(0x105));});a43a();export class CommandFactory{static [a43i(0x101)]={};static[a43i(0x102)](a,b){const j=a43i;this[j(0x101)][a]=b;}static[a43i(0xf7)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static[a43i(0x107)](){const k=a43i;return this[k(0x101)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a44c(){const
|
|
1
|
+
const a44j=a44d;function a44c(){const n=['convertToRoomConfig','gauntlets','puzzle','gloves','544841zrkfvf','bodyarmor','4680567pSTZYt','description','INSIDE','book','rewardItem','(((.+)+)+)+$','2152208BYjVoR','6276gcwAMp','search','constructor','items','boots','forEach','3QBcBEV','name','toUpperCase','120ywTkWs','toString','type','setPuzzle','3860144edKyAf','20OmUitT','inventory','key','2GCBXmu','content','3275570jSwGOV','createPuzzle','11429WNJNkQ','addItem','307531JlBQiT','createItem','rifle'];a44c=function(){return n;};return a44c();}function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xb3;let f=c[d];return f;},a44d(a,b);}(function(a,b){const f=a44d,c=a();while(!![]){try{const d=parseInt(f(0xcb))/0x1*(parseInt(f(0xbe))/0x2)+parseInt(f(0xb3))/0x3*(parseInt(f(0xd3))/0x4)+parseInt(f(0xc0))/0x5+parseInt(f(0xb6))/0x6*(parseInt(f(0xc4))/0x7)+-parseInt(f(0xba))/0x8+parseInt(f(0xcd))/0x9*(-parseInt(f(0xbb))/0xa)+-parseInt(f(0xc2))/0xb*(parseInt(f(0xd4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x866e2));const a44b=(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;};}()),a44a=a44b(this,function(){const g=a44d;return a44a['toString']()[g(0xd5)](g(0xd2))[g(0xb7)]()[g(0xd6)](a44a)[g(0xd5)]('(((.+)+)+)+$');});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{['createRoom'](a){const h=a44d,b=this[h(0xc7)](a),c=new Room(b);if(a[h(0xd7)]){const d=new Inventory();a['items'][h(0xd9)](e=>{const i=h;d[i(0xc3)](this['createItem'](e));}),c[h(0xbc)]=d;}return a[h(0xc9)]&&c[h(0xb9)](this[h(0xc1)](a[h(0xc9)])),c;}[a44j(0xc5)](a){const k=a44j;switch(a[k(0xb8)]){case k(0xbd):return new Key(a[k(0xb4)],a[k(0xce)]);case k(0xd0):return new Book(a['name'],a[k(0xce)],a[k(0xbf)]);case'sword':return new Sword(a[k(0xb4)],a[k(0xce)]);case k(0xc6):return new Rifle(a['name'],a[k(0xce)]);case'helmet':return new Helmet(a['name'],a['description']);case k(0xcc):return new BodyArmor(a[k(0xb4)],a['description']);case'legarmor':return new LegArmor(a[k(0xb4)],a[k(0xce)]);case k(0xd8):return new Boots(a[k(0xb4)],a[k(0xce)]);case k(0xca):return new Gloves(a[k(0xb4)],a[k(0xce)]);case k(0xc8):return new Gauntlets(a['name'],a['description']);default:return new BasicItem(a[k(0xb4)],a[k(0xce)]);}}['createPuzzle'](a){const l=a44j,b=this[l(0xc5)](a[l(0xd1)]);return new Puzzle({...a,'rewardItem':b});}[a44j(0xc7)](a){const m=a44j,b=a['roomType']&&RoomType[a['roomType'][m(0xb5)]()]?RoomType[a['roomType'][m(0xb5)]()]:RoomType[m(0xcf)];return{'name':a[m(0xb4)],'description':a[m(0xce)],'isStartRoom':a['isStartRoom'],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45j=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=-parseInt(h(0x16b))/0x1*(-parseInt(h(0x179))/0x2)+-parseInt(h(0x15e))/0x3+parseInt(h(0x16f))/0x4+parseInt(h(0x16d))/0x5*(-parseInt(h(0x187))/0x6)+parseInt(h(0x15c))/0x7+parseInt(h(0x163))/0x8*(parseInt(h(0x173))/0x9)+-parseInt(h(0x185))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x9f307));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const i=a45d;return a45a['toString']()[i(0x177)](i(0x15a))['toString']()[i(0x176)](a45a)[i(0x177)](i(0x15a));});a45a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';function a45c(){const r=['lock','23418mfdbam','use','getRooms','scene','Available\x20Commands:\x0a','(((.+)+)+)+$','currentRoom','4985547MUpwne','-\x20quit:\x20Exit\x20the\x20game.\x0a','3881379DGMOsa','help','drop','registerCommand','getDescription','16IqSiEd','look','instance','initialize','player','clear','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','quit','626699vOMbiD','Welcome,\x20','155KiKXaR','unlock','4003932idqBXA','split','currentLocation','execute','3897054lwmPvx','hasOwnProperty','say','constructor','search','-\x20clear:\x20Clear\x20the\x20screen.\x0a','2YTAIqc','slice','solve','maka','handleInput','take','unequip','createCommand','trim','registerCommands','toLowerCase','rooms','11390900XWjPJi'];a45c=function(){return r;};return a45c();}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';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x15a;let f=c[d];return f;},a45d(a,b);}import{CommandFactory}from'./factories/commandF.js';export default class Game{static ['instance'];[a45j(0x18a)];['player'];[a45j(0x15b)];[a45j(0x184)];constructor(a,b){const k=a45j;this[k(0x167)]=a,this[k(0x18a)]=new Scene({'player':a,'roomConfiguration':b}),this[k(0x18a)][k(0x166)](),this[k(0x167)][k(0x171)]=this['determineStartRoom'](),this[k(0x182)]();}[a45j(0x182)](){const l=a45j;CommandFactory[l(0x161)](l(0x164),LookCommand),CommandFactory[l(0x161)]('go',GoCommand),CommandFactory[l(0x161)](l(0x17e),TakeCommand),CommandFactory[l(0x161)](l(0x188),UseCommand),CommandFactory['registerCommand']('equip',EquipCommand),CommandFactory['registerCommand'](l(0x17f),UnequipCommand),CommandFactory['registerCommand'](l(0x17b),SolveCommand),CommandFactory[l(0x161)](l(0x160),DropCommand),CommandFactory[l(0x161)](l(0x16e),UnlockCommand),CommandFactory[l(0x161)](l(0x186),LockCommand),CommandFactory['registerCommand'](l(0x177),SearchCommand),CommandFactory['registerCommand'](l(0x175),SayCommand);}['determineStartRoom'](){const m=a45j;return this[m(0x18a)]['determineStartRoom']();}['getWelcomeMessage'](){const n=a45j;return n(0x16c)+this[n(0x167)]['name'];}static['getInstance'](a,b){const o=a45j;return!Game[o(0x165)]&&(Game['instance']=new Game(a,b)),Game[o(0x165)];}[a45j(0x17d)](a){const p=a45j,b=a[p(0x181)]()[p(0x170)]('\x20'),c=b[0x0][p(0x183)](),d=b[p(0x17a)](0x1);if(c===p(0x16a))return null;if(c===p(0x17c))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c===p(0x15f))return this['getHelpMessage']();if(c===p(0x168))return'';const e={'actor':this['player'],'rooms':this[p(0x18a)][p(0x189)](),'scene':this[p(0x18a)]},f=CommandFactory[p(0x180)](c,e);if(f){const g=f[p(0x172)](d);return g;}return p(0x169)+c+'\x22.';}['getHelpMessage'](){const q=a45j,a=CommandFactory['getAllRegisteredCommands']();let b=q(0x18b);for(const c in a){if(a[q(0x174)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[q(0x162)]()+'\x0a';}}return b+=q(0x178),b+=q(0x15d),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(0x16b))/0x1+-parseInt(f(0x16a))/0x2*(-parseInt(f(0x170))/0x3)+-parseInt(f(0x16f))/0x4+parseInt(f(0x176))/0x5+-parseInt(f(0x171))/0x6+parseInt(f(0x173))/0x7*(parseInt(f(0x16c))/0x8)+parseInt(f(0x174))/0x9*(-parseInt(f(0x168))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x3ab5a));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x175)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0x172)]()[h(0x169)](h(0x16d))[h(0x172)]()[h(0x16e)](a46a)[h(0x169)](h(0x16d));});a46a();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';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x168;var f=c[d];return f;},a46d(a,b);}export*from'./scene.js';function a46c(){var i=['(((.+)+)+)+$','constructor','981788hrNoaN','439422tAyTqK','1599582ykdNGA','toString','1720985fqpTCu','11592RauqmS','apply','1012080uwfcJG','1660kvnkTr','search','4iMianE','225107tBeWwi','8hPrKld'];a46c=function(){return i;};return a46c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a47i=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a47c(){var n=['17555032Hutcke','\x20and\x20','568NMyjpg','logger','37013639bmPPiZ','Failed\x20to\x20unlock\x20door:\x20','isLockable','(((.+)+)+)+$','constructor','apply','write','2636DkyKYl','isLocked','getOtherSide','45DxNPKW','8061YBIUpZ','unlockItemOrSolution','329922mBvohS','12kGUyKG','roomA','Door\x20unlocked:\x20','search','10TMHChB','.\x20Is\x20Locked:\x20','8044011NSmMNO','roomB','.\x20Used:\x20','attemptUnlock','name','121464jvzEIu','859948hSfNwD','checkIfLocked','1tDoqii'];a47c=function(){return n;};return a47c();}function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x83;var f=c[d];return f;},a47d(a,b);}var a47i=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=-parseInt(f(0x8a))/0x1*(parseInt(f(0x88))/0x2)+-parseInt(f(0x9a))/0x3*(-parseInt(f(0x96))/0x4)+parseInt(f(0x99))/0x5*(parseInt(f(0x9c))/0x6)+parseInt(f(0x87))/0x7*(parseInt(f(0x8d))/0x8)+parseInt(f(0xa3))/0x9*(-parseInt(f(0xa1))/0xa)+parseInt(f(0x8b))/0xb+parseInt(f(0x9d))/0xc*(-parseInt(f(0x8f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xe13c4));var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a47d;if(c){var e=c[g(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var h=a47d;return a47a['toString']()[h(0xa0)]('(((.+)+)+)+$')['toString']()[h(0x93)](a47a)[h(0xa0)](h(0x92));});a47a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];[a47i(0x83)];[a47i(0x97)];[a47i(0x9b)];[a47i(0x86)];[a47i(0x8e)];[a47i(0x91)];constructor(a){var j=a47i;super(),this['roomA']=a[j(0x9e)],this['roomB']=a[j(0x83)],this[j(0x97)]=a['isLocked']||![],this[j(0x9b)]=a[j(0x9b)],this['name']=a[j(0x86)]?capitalCase(a[j(0x86)]):'To\x20'+a[j(0x83)]['name'],this[j(0x8e)]=Logger['getInstance'](),this[j(0x91)]=!!a['unlockItemOrSolution'],this[j(0x8e)][j(0x95)]('Door\x20created\x20between\x20'+this['roomA'][j(0x86)]+j(0x8c)+this['roomB'][j(0x86)]+j(0xa2)+this[j(0x97)]);}[a47i(0x98)](a){var k=a47i;return this[k(0x9e)]===a?this['roomB']:this[k(0x9e)];}[a47i(0x85)](a){var l=a47i;if(this[l(0x97)]&&this['unlockItemOrSolution']&&this[l(0x9b)]===a)return this[l(0x97)]=![],this['logger'][l(0x95)](l(0x9f)+this[l(0x86)]+'.\x20Used:\x20'+a),!![];return this[l(0x8e)][l(0x95)](l(0x90)+this['name']+l(0x84)+a),![];}[a47i(0x89)](){var m=a47i;return this[m(0x97)];}['checkIfLockable'](){return this['isLockable'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48h=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0x1dd))/0x1+-parseInt(f(0x1f9))/0x2+parseInt(f(0x1eb))/0x3+-parseInt(f(0x1e6))/0x4*(parseInt(f(0x1e4))/0x5)+-parseInt(f(0x1ea))/0x6+parseInt(f(0x1ee))/0x7+parseInt(f(0x1f3))/0x8*(-parseInt(f(0x1f0))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xbd32e));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(0x1f7)]()[g(0x1fa)](g(0x1de))['toString']()[g(0x1f8)](a48a)[g(0x1fa)]('(((.+)+)+)+$');});function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a48d(a,b);}a48a();function a48c(){const q=['removeItem','map','\x20to\x20inventory.','getItem','getAllItems','getInstance','set','toLowerCase','1433834VfscDA','(((.+)+)+)+$','has','Failed\x20to\x20remove\x20item:\x20','values','logger','Removed\x20item:\x20','255iyJCho','write','83068Ztzoqq','getWeight','Listed\x20items\x20in\x20inventory:\x20','get','1728084RhzGJo','2000391PnuwxS','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','.\x20Item\x20not\x20found.','6316135jKKcFE','items','207uzpnQP','addItem','keys','249976ldgPEV','name','.\x20Exists:\x20','delete','toString','constructor','324332lnZvUl','search','\x20in\x20','join'];a48c=function(){return q;};return a48c();}import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{['items'];[a48h(0x1e2)];constructor(){const i=a48h;super(),this[i(0x1ef)]=new Map(),this[i(0x1e2)]=Logger[i(0x1da)]();}[a48h(0x1f1)](a){const j=a48h;this['items'][j(0x1db)](a[j(0x1f4)][j(0x1dc)](),a),this[j(0x1e2)]['write']('Added\x20item:\x20'+a['name']+j(0x1d7));}[a48h(0x1d5)](a){const k=a48h,b=this['getItem'](a);if(b)return this[k(0x1ef)][k(0x1f6)](a[k(0x1dc)]()),this[k(0x1e2)][k(0x1e5)](k(0x1e3)+a+'\x20from\x20inventory.'),b;return this[k(0x1e2)][k(0x1e5)](k(0x1e0)+a+k(0x1ed)),null;}['hasItem'](a){const l=a48h,b=this[l(0x1ef)][l(0x1df)](a[l(0x1dc)]()),c=[...this[l(0x1ef)]['keys']()];return this['logger'][l(0x1e5)]('Checked\x20for\x20item:\x20'+a+l(0x1fb)+c[l(0x1d4)](',\x20')+l(0x1f5)+b+'.'),b;}[a48h(0x1d8)](a){const m=a48h,b=this[m(0x1ef)][m(0x1e9)](a[m(0x1dc)]())||null;return b?this['logger'][m(0x1e5)]('Retrieved\x20details\x20for\x20item:\x20'+a+'.'):this[m(0x1e2)][m(0x1e5)](m(0x1ec)+a+m(0x1ed)),b;}['listItems'](){const n=a48h,a=[...this[n(0x1ef)][n(0x1f2)]()],b=a[n(0x1d6)](c=>capitalCase(c));return this[n(0x1e2)][n(0x1e5)](n(0x1e8)+b[n(0x1d4)](',\x20')+'.'),a;}[a48h(0x1e7)](){const o=a48h;let a=0x0;for(const b of this[o(0x1ef)][o(0x1e1)]()){a+=b['weight'];}return a;}[a48h(0x1d9)](){const p=a48h;return[...this[p(0x1ef)][p(0x1e1)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x1ba))/0x1*(
|
|
1
|
+
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x1ba))/0x1*(parseInt(f(0x1b7))/0x2)+parseInt(f(0x1bb))/0x3+-parseInt(f(0x1c0))/0x4+parseInt(f(0x1bd))/0x5*(-parseInt(f(0x1b4))/0x6)+-parseInt(f(0x1ac))/0x7+parseInt(f(0x1bc))/0x8+-parseInt(f(0x1a7))/0x9*(-parseInt(f(0x1b8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xe206b));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x1be)]()[h(0x1a8)](h(0x1b1))[h(0x1be)]()[h(0x1b9)](a49a)[h(0x1a8)](h(0x1b1));});a49a();function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1a7;var f=c[d];return f;},a49d(a,b);}function a49c(){var l=['search','category','name','weight','9930564GcVCtk','color','size','shape','apply','(((.+)+)+)+$','texture','description','24DzzUbV','uuid','rating','1894WeLteI','593890TQdztn','constructor','1073IuMHyO','4910535rYMtit','7451016aiQOYP','338305ypLBHo','toString','.\x20Nothing\x20special\x20happens.','3349760UuwqxG','288KSrnlX'];a49c=function(){return l;};return a49c();}import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{['uuid'];[a49i(0x1aa)];[a49i(0x1b3)];[a49i(0x1ae)];[a49i(0x1a9)];[a49i(0x1af)];['color'];[a49i(0x1b2)];[a49i(0x1b6)];[a49i(0x1ab)];constructor(a){var j=a49i;super(),this[j(0x1aa)]=a['name'],this[j(0x1b3)]=a[j(0x1b3)],this['size']=a['size'],this[j(0x1a9)]=a[j(0x1a9)],this['shape']=a['shape'],this[j(0x1ad)]=a[j(0x1ad)],this['texture']=a[j(0x1b2)],this[j(0x1b6)]=a[j(0x1b6)],this['weight']=a[j(0x1ab)],this[j(0x1b5)]=a49e();}['use'](){var k=a49i;return'You\x20use\x20the\x20'+this['name']+k(0x1bf);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50i=a50d;
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0xa7))/0x1*(parseInt(f(0xb2))/0x2)+-parseInt(f(0xb5))/0x3*(-parseInt(f(0xb1))/0x4)+parseInt(f(0xb4))/0x5*(parseInt(f(0xb3))/0x6)+-parseInt(f(0xac))/0x7+-parseInt(f(0xae))/0x8*(parseInt(f(0xb9))/0x9)+-parseInt(f(0xa9))/0xa*(-parseInt(f(0xa8))/0xb)+parseInt(f(0xb0))/0xc*(-parseInt(f(0xaf))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x9d6dd));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0xb8)]()[h(0xbf)]('(((.+)+)+)+$')['toString']()[h(0xb6)](a50a)[h(0xbf)]('(((.+)+)+)+$');});a50a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xa6;let f=c[d];return f;},a50d(a,b);}export class NPC extends Player{[a50i(0xab)];['_dialogue'];[a50i(0xbc)];[a50i(0xba)];constructor(a,b,c,d){const j=a50i;super(d),this['_name']=a,this[j(0xbe)]=b,this[j(0xbc)]=c;}get[a50i(0xaa)](){const k=a50i;return this[k(0xab)];}[a50i(0xc1)](){const l=a50i;return this[l(0xbe)][Math[l(0xa6)](Math[l(0xad)]()*this['_dialogue'][l(0xbd)])];}[a50i(0xb7)](a){const m=a50i,b=a[Math[m(0xa6)](Math['random']()*a[m(0xbd)])];this[m(0xbb)](b[m(0xaa)]);}[a50i(0xbb)](a){const n=a50i,b={'actor':this,'rooms':this[n(0xbc)],'scene':this[n(0xba)]},c=new GoCommand(b);c['execute']([a]);}}function a50c(){const o=['apply','speak','floor','16418pSPCSU','99uSFZwH','1431830Rfbmyd','name','_name','2727739MzvOPS','random','24yfwyCP','13bEHMal','21319884OrQHNV','92qoZZFm','60kUeWxH','6066ofynGA','3565GCcWNc','83337sBKSUB','constructor','autonomousMove','toString','989352IHLRWo','scene','moveTo','rooms','length','_dialogue','search'];a50c=function(){return o;};return a50c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51h=a51d;function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x166;let f=c[d];return f;},a51d(a,b);}(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x192))/0x1*(-parseInt(f(0x19f))/0x2)+-parseInt(f(0x1a4))/0x3*(parseInt(f(0x191))/0x4)+parseInt(f(0x1c0))/0x5*(-parseInt(f(0x1c3))/0x6)+parseInt(f(0x1be))/0x7*(-parseInt(f(0x1bc))/0x8)+parseInt(f(0x190))/0x9+-parseInt(f(0x184))/0xa*(-parseInt(f(0x169))/0xb)+-parseInt(f(0x17c))/0xc*(-parseInt(f(0x183))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x829c2));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const g=a51d;return a51a[g(0x168)]()[g(0x194)](g(0x1b2))[g(0x168)]()['constructor'](a51a)[g(0x194)](g(0x1b2));});a51a();import{camelCase}from'change-case';function a51c(){const B=['\x20is\x20now\x20listening\x20in\x20room\x20','legs','13iKULmd','5442610KamqTW','\x20in\x20your\x20inventory.','torso','ArmArmor','log','_maxCarryingWeight','removeItem','toLowerCase','inventory','Added\x20','Helmet','removeInventory','8999388iqugHK','1797188PkBbMQ','853YXmeFJ','logger','search','arms','leaveRoom','determineEquipmentSlot','\x20is\x20no\x20longer\x20listeng\x20in\x20','Shield','maxCarryingWeight','arm\x20armor','unequip','startLocation','currentLocation','18vcrKXA','getWeight','_equipment','weapon','A\x20featureless\x20room','6AZgUuZ','unequipBySlot','name','leg\x20armor','speak','You\x20equipped\x20','addInventory','currentWeight','You\x20can\x27t\x20equip\x20','equip','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','equipment','body\x20armor','legarmor','(((.+)+)+)+$','rightHand','Failed\x20to\x20remove\x20','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','Max\x20carrying\x20weight\x20must\x20be\x20positive.','head','write','values','off','\x20to\x20player\x27s\x20inventory.','2019040BafdEw','shield','14HPFtQh','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','5sxKsRi','_playerName','category','1172658nDMFBW','gloves','\x20from\x20player\x27s\x20inventory.','toString','11FxvnLa','hear','_inventory','weight','.\x20You\x20must\x20unequip\x20it\x20first.','\x20slot.','_currentLocation','enterRoom','inventoryItems','initialEquipment','\x20says:\x20\x22','Nexus','canEquip','feet','playerName','hasItem','error','bind','Gloves','6982860UrJNZa','helmet','Hat','leftHand','getInstance'];a51c=function(){return B;};return a51c();}import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a51h(0x1c1)];[a51h(0x16f)];[a51h(0x16b)];[a51h(0x1a1)];[a51h(0x189)]=0x32;[a51h(0x193)];constructor(a){const i=a51h;super(),this[i(0x1c1)]=a[i(0x177)],this[i(0x16f)]=a[i(0x19d)]||new Room({'name':i(0x174),'description':i(0x1a3)}),this[i(0x16b)]=new Inventory(),this[i(0x193)]=Logger[i(0x180)]();if(a?.[i(0x171)])for(const b of a['inventoryItems']){this[i(0x16b)]['addItem'](b);}this[i(0x1a1)]=a?.[i(0x172)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51h(0x1a6)](){const j=a51h;return this[j(0x1c1)];}get['currentLocation'](){return this['_currentLocation'];}set[a51h(0x19e)](a){const k=a51h;this[k(0x16f)]!==a&&(this[k(0x196)](),this[k(0x170)](a)),this[k(0x16f)]=a;}get[a51h(0x18c)](){const l=a51h;return this[l(0x16b)];}get[a51h(0x1af)](){const m=a51h;return this[m(0x1a1)];}set[a51h(0x1af)](a){const n=a51h;this[n(0x1a1)]=a;}get[a51h(0x19a)](){const o=a51h;return this[o(0x189)];}set[a51h(0x19a)](a){const p=a51h;a>0x0?this['_maxCarryingWeight']=a:console[p(0x179)](p(0x1b6));}get[a51h(0x1ab)](){const q=a51h;let a=this[q(0x16b)][q(0x1a0)]();for(const b in this['_equipment']){const c=this[q(0x1a1)][b];c&&(a+=c[q(0x16c)]);}return a;}[a51h(0x1aa)](a){const r=a51h;if(this[r(0x1ab)]+a[r(0x16c)]>this[r(0x19a)]){this[r(0x193)][r(0x1b8)](r(0x1ae));throw new Error(r(0x1b5));}this[r(0x16b)]['addItem'](a),this['logger']['write'](r(0x18d)+a[r(0x1a6)]+r(0x1bb));}['removeInventory'](a){const s=a51h;if(this[s(0x16b)][s(0x18a)](a[s(0x1a6)]))return this[s(0x193)]['write']('Removed\x20'+a[s(0x1a6)]+s(0x167)),!![];return this[s(0x193)][s(0x1b8)](s(0x1b4)+a[s(0x1a6)]+'\x20from\x20player\x27s\x20inventory.'),![];}[a51h(0x1ad)](a){const t=a51h;if(!this[t(0x16b)][t(0x178)](a[t(0x1a6)]))return'You\x20don\x27t\x20have\x20'+a[t(0x1a6)]+t(0x185);if(!this[t(0x175)](a))return t(0x1ac)+a[t(0x1a6)]+'.';const b=this[t(0x197)](a[t(0x1c2)]);if(!b)return a[t(0x1a6)]+'\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.';if(this[t(0x1af)][b])return t(0x1bf)+b+t(0x16d);return this[t(0x1af)][b]=a,this[t(0x18f)](a),t(0x1a9)+a['name']+'.';}[a51h(0x19c)](a){const u=a51h;let b=a;if(!this['equipment'][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this[u(0x1a5)](b);}[a51h(0x197)](a){const v=a51h;switch(a['toLowerCase']()){case Category['Weapon'][v(0x18b)]():return v(0x1b3);case Category[v(0x199)][v(0x18b)]():return v(0x17f);case Category[v(0x17b)][v(0x18b)]():return v(0x166);case Category[v(0x18e)][v(0x18b)]():case Category[v(0x17e)][v(0x18b)]():return v(0x1b7);case Category['Boots'][v(0x18b)]():return v(0x176);case Category['LegArmor'][v(0x18b)]():return v(0x182);case Category[v(0x187)][v(0x18b)]():return v(0x195);case Category['BodyArmor'][v(0x18b)]():return v(0x186);case v(0x1a2):return v(0x1b3);case v(0x1bd):return'leftHand';case v(0x166):return'gloves';case v(0x17d):case'hat':return v(0x1b7);case'boots':return v(0x176);case v(0x1a7):case v(0x1b1):return v(0x182);case v(0x19b):case'armarmor':return v(0x195);case v(0x1b0):case'bodyarmor':case'torso':return v(0x186);default:return null;}}['canEquip'](a){const w=a51h;return Object[w(0x1b9)](Category)['includes'](a[w(0x1c2)]);}[a51h(0x1a5)](a){const x=a51h,b=this[x(0x1af)][a];if(!b)return'You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20'+a+x(0x16e);return this['addInventory'](b),this[x(0x1af)][a]=null,'You\x20unequipped\x20'+b[x(0x1a6)]+'.';}[a51h(0x16a)](a,b){const y=a51h;a!==this&&this[y(0x193)][y(0x188)](a[y(0x1a6)]+y(0x173)+b+'\x22');}[a51h(0x170)](a){const z=a51h;this[z(0x16f)]=a,a['on'](z(0x1a8),this[z(0x16a)][z(0x17a)](this)),this[z(0x193)][z(0x1b8)](this[z(0x1a6)]+z(0x181)+a[z(0x1a6)]);}[a51h(0x196)](){const A=a51h;this[A(0x16f)]&&(this[A(0x16f)][A(0x1ba)](A(0x1a8),this[A(0x16a)][A(0x17a)](this)),this['logger'][A(0x1b8)](this['name']+A(0x198)+this[A(0x16f)]['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x15c))/0x1*(-parseInt(f(0x15d))/0x2)+-parseInt(f(0x15f))/0x3*(-parseInt(f(0x165))/0x4)+-parseInt(f(0x169))/0x5+parseInt(f(0x163))/0x6*(parseInt(f(0x16d))/0x7)+-parseInt(f(0x153))/0x8*(parseInt(f(0x15a))/0x9)+-parseInt(f(0x164))/0xa*(parseInt(f(0x151))/0xb)+parseInt(f(0x16e))/0xc*(parseInt(f(0x168))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x18cae));function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x14e;var f=c[d];return f;},a52d(a,b);}var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a['toString']()[h(0x161)](h(0x16b))[h(0x154)]()['constructor'](a52a)[h(0x161)](h(0x16b));});function a52c(){var n=['17506MolZjg','requiredPhrase','43107EyySMn','rewardItem','search','successMessage','6KJjqMf','10dayQZV','36iOYpMH','write','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','1671553QLTKan','413035aIYoJN','solved','(((.+)+)+)+$','solve','501697RbITMa','24jMIbAC','riddle','You\x20have\x20already\x20solved\x20this\x20puzzle.','logger','getInstance','apply','1320429yZEjHa','requiredItem','342928zAKeDN','toString','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','failureMessage','hasRequiredItem','Puzzle:\x20Correct\x20solution\x20provided.','matchesRequiredPhrase','36vlpqNm','hasItem','2OoobMk'];a52c=function(){return n;};return a52c();}a52a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52i(0x14e)]=Logger[a52i(0x14f)]();[a52i(0x16a)]=![];[a52i(0x152)];[a52i(0x15e)];['riddle'];[a52i(0x160)];[a52i(0x162)];[a52i(0x156)];constructor(a){var j=a52i;super(),this['requiredItem']=a[j(0x152)],this[j(0x15e)]=a[j(0x15e)],this[j(0x16f)]=a[j(0x16f)],this[j(0x160)]=a[j(0x160)],this[j(0x162)]=a[j(0x162)]||'You\x20solved\x20the\x20puzzle!',this[j(0x156)]=a[j(0x156)]||j(0x155);}[a52i(0x157)](a){var k=a52i;if(this[k(0x152)])return a[k(0x15b)](this[k(0x152)]);return![];}[a52i(0x159)](a){var l=a52i;return this[l(0x15e)]===a;}[a52i(0x16c)](a,b){var m=a52i;if(this[m(0x16a)])return this[m(0x14e)][m(0x166)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':m(0x170)};return this[m(0x157)](b)||this[m(0x159)](a)?(this[m(0x16a)]=!![],this[m(0x14e)][m(0x166)](m(0x158)),{'success':!![],'message':this['successMessage']}):(this[m(0x14e)][m(0x166)](m(0x167)),{'success':![],'message':this[m(0x156)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0x151))/0x1*(parseInt(f(0x17d))/0x2)+parseInt(f(0x156))/0x3*(parseInt(f(0x142))/0x4)+parseInt(f(0x162))/0x5+-parseInt(f(0x15c))/0x6+-parseInt(f(0x14f))/0x7*(parseInt(f(0x16b))/0x8)+parseInt(f(0x179))/0x9+-parseInt(f(0x157))/0xa*(parseInt(f(0x143))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x9ed66));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a['toString']()[h(0x153)]('(((.+)+)+)+$')[h(0x141)]()['constructor'](a53a)[h(0x153)](h(0x15b));});function a53c(){const u=['attemptUnlock','roomB','NORTH','toString','4852yJbEEk','62557AxICRf','west','say','Invalid\x20direction:\x20','puzzle','apply','speak','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','Room\x20created:\x20','removeItem','get','getOppositeDirection','7WpJLRM','logger','3lDHKUw','name','search','exits','values','3183taixDf','3830kxFcne','Fetching\x20exit\x20in\x20direction:\x20','roomA','hasItem','(((.+)+)+)+$','3301866lmCGyE','roomType','findExistingDoor','EAST','INSIDE','No\x20locked\x20exit\x20found\x20in\x20direction\x20','5860725TzxOct','write','south','set','down','\x20is\x20locked.\x20Result:\x20','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','description','getExit','6687832zrNZEg','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','setPuzzle','addItem','The\x20','isExitLocked','Item\x20added\x20to\x20room\x20','emit','east','\x20unlocked!','getInstance','riddle','north','\x20remains\x20locked.','4291902XWOopx','inventory','WEST','Checking\x20if\x20exit\x20in\x20direction\x20','852662cyFoOs','isStartRoom','checkIfLocked'];a53c=function(){return u;};return a53c();}a53a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x13d;let f=c[d];return f;},a53d(a,b);}export class Room extends AbstractRoom{[a53i(0x150)]=Logger[a53i(0x175)]();['name'];[a53i(0x169)];[a53i(0x154)]=new Map();[a53i(0x15d)];[a53i(0x17e)];[a53i(0x17a)]=new Inventory();constructor(a){const j=a53i;super(),this[j(0x152)]=a[j(0x152)],this[j(0x169)]=a[j(0x169)],this[j(0x15d)]=a['roomType']||RoomType[j(0x160)],a[j(0x154)]&&(this[j(0x154)]=a[j(0x154)]||new Map()),a[j(0x17a)]&&(this[j(0x17a)]=a[j(0x17a)]),a[j(0x147)]&&(this[j(0x147)]=a[j(0x147)]),this['isStartRoom']=a[j(0x17e)]||![],this['logger'][j(0x163)](j(0x14b)+this[j(0x152)]);}[a53i(0x145)](a,b){const k=a53i;this[k(0x172)](k(0x149),a,b);}['addExit'](a,b,c){const l=a53i;let d=this[l(0x15e)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits'][l(0x165)](a,d),b[l(0x154)]['set'](this[l(0x14e)](a),d);}['attemptUnlockExit'](a,b){const m=a53i,c=this[m(0x154)][m(0x14d)](a);if(c instanceof Door){const d=c[m(0x13e)](b);return this[m(0x150)][m(0x163)](m(0x168)+a+'.\x20Success:\x20'+d),d?m(0x16f)+c['name']+m(0x174):m(0x16f)+c[m(0x152)]+m(0x178);}return this[m(0x150)][m(0x163)](m(0x161)+a),m(0x16c);}[a53i(0x16a)](a){const n=a53i;return this[n(0x150)][n(0x163)](n(0x158)+a),this['exits']['get'](a);}[a53i(0x170)](a){const o=a53i,b=this['exits'][o(0x14d)](a),c=b instanceof Door&&b[o(0x13d)]();return this['logger'][o(0x163)](o(0x17c)+a+o(0x167)+c),c;}[a53i(0x16e)](a){const p=a53i;this[p(0x17a)][p(0x16e)](a),this[p(0x150)]['write'](p(0x171)+this[p(0x152)]+':\x20'+a[p(0x152)]);}[a53i(0x14c)](a){const q=a53i;this[q(0x17a)][q(0x15a)](a[q(0x152)])?(this['inventory'][q(0x14c)](a[q(0x152)]),this[q(0x150)][q(0x163)]('Item\x20removed\x20from\x20room\x20'+this[q(0x152)]+':\x20'+a[q(0x152)])):this[q(0x150)][q(0x163)](q(0x14a)+this['name']+':\x20'+a[q(0x152)]);}[a53i(0x16d)](a){const r=a53i;this['puzzle']=a,this['logger']['write']('Puzzle\x20set\x20for\x20room\x20'+this[r(0x152)]+':\x20'+a[r(0x176)]);}[a53i(0x14e)](a){const s=a53i;switch(a){case s(0x177):return Direction['SOUTH'];case s(0x164):return Direction[s(0x140)];case s(0x173):return Direction[s(0x17b)];case s(0x144):return Direction[s(0x15f)];case'up':return Direction['DOWN'];case s(0x166):return Direction['UP'];default:throw new Error(s(0x146)+a);}}[a53i(0x15e)](a){const t=a53i;for(const b of this[t(0x154)][t(0x155)]()){if(b instanceof Door){if(b['roomA']===this&&b[t(0x13f)]===a||b[t(0x13f)]===this&&b[t(0x159)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-
|
|
1
|
+
function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x103;let f=c[d];return f;},a54d(a,b);}const a54k=a54d;function a54c(){const B=['allActors','get','search','direction','logger','generateRoomsFromConfig','values','roomFactory','rooms','createRoom','57597UahKCR','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','keys','addItemToRoom','433900JPQYqD','No\x20actor\x20with\x20name\x20','\x27s\x20location.\x20Room\x20','connectRooms','toString','name','\x20is\x20now\x20in\x20room\x20','Failed\x20to\x20add\x20item\x20','roomConfiguration','8208639xKcMJX','addItem','Removed\x20room\x20from\x20scene:\x20','isStartRoom','characterLocations','exits','addPuzzleToRoom','toUpperCase','actors','write','set','initialize','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','addActor','226241RZbuQj','currentLocation','from','Scene\x20initialized\x20with\x20rooms:\x20','push','getActor','targetRoom','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','hasOwnProperty','168suduhp','removeRoom','Added\x20room\x20to\x20scene:\x20','\x20found\x20in\x20the\x20scene.','length','\x20not\x20found\x20in\x20scene.','60DyDYOM','player','1828704OfBzVy','\x20already\x20exists\x20in\x20the\x20scene.','addExit','createExitsFromConfig','delete','has','determineStartRoom','Room\x20\x22','getPlayer','\x22\x20does\x20not\x20exist.','addRoom','40VwBPoU','64648xhlcez','\x20to\x20room\x20','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','373722xQnAAs','Added\x20puzzle\x20to\x20room\x20'];a54c=function(){return B;};return a54c();}(function(a,b){const i=a54d,c=a();while(!![]){try{const d=-parseInt(i(0x109))/0x1+parseInt(i(0x11a))/0x2+-parseInt(i(0x135))/0x3*(-parseInt(i(0x125))/0x4)+parseInt(i(0x118))/0x5*(parseInt(i(0x129))/0x6)+-parseInt(i(0x112))/0x7*(parseInt(i(0x126))/0x8)+-parseInt(i(0x142))/0x9+-parseInt(i(0x139))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x74bbc));const a54b=(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;};}()),a54a=a54b(this,function(){const j=a54d;return a54a[j(0x13d)]()[j(0x12d)]('(((.+)+)+)+$')['toString']()['constructor'](a54a)['search']('(((.+)+)+)+$');});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{[a54k(0x133)];[a54k(0x119)];[a54k(0x12f)];[a54k(0x103)];['characterLocations']=new Map();[a54k(0x132)];constructor(a){const l=a54k;super(),this[l(0x132)]=new RoomFactory(),this[l(0x119)]=a[l(0x119)],this[l(0x133)]=this[l(0x130)](a['roomConfiguration']),this[l(0x12f)]=Logger['getInstance'](),this[l(0x103)]=new Map(),this[l(0x11d)](a[l(0x141)]),this[l(0x12f)]['write'](l(0x10c)+Object[l(0x137)](this['rooms'])['join'](',\x20'));}[a54k(0x106)](){const m=a54k;this[m(0x119)][m(0x10a)]=this[m(0x120)]();}[a54k(0x130)](a){const n=a54k;if(!this['roomFactory'])throw new Error(n(0x107));const b={};for(const c of a){const d=this[n(0x132)][n(0x134)](c);b[c[n(0x13e)]]=d;}return b;}['createExitsFromConfig'](a){const o=a54k;for(const b of a){const c=this[o(0x133)][b[o(0x13e)]];if(b[o(0x147)])for(const d of b['exits']){const e=d[o(0x12e)][o(0x149)](),f=d[o(0x10f)],g=d['keyRequired'],h=this[o(0x133)][f];h&&c[o(0x11c)](Direction[e],h,g);}}}[a54k(0x108)](a){const p=a54k;if(this[p(0x103)][p(0x11f)](a[p(0x13e)]))throw new Error('Actor\x20with\x20name\x20'+a[p(0x13e)]+p(0x11b));this[p(0x103)][p(0x105)](a[p(0x13e)],a);}['removeActor'](a){const q=a54k;if(!this['actors'][q(0x11f)](a))throw new Error(q(0x13a)+a+q(0x115));this[q(0x103)][q(0x11e)](a);}[a54k(0x10e)](a){const r=a54k;return this[r(0x103)][r(0x12c)](a);}get[a54k(0x12b)](){const s=a54k;return Array[s(0x10b)](this[s(0x103)][s(0x131)]());}[a54k(0x124)](a){const t=a54k;this['rooms'][a[t(0x13e)]]=a,this[t(0x12f)]['write'](t(0x114)+a[t(0x13e)]);}[a54k(0x113)](a){const u=a54k;return this['rooms'][a]?(delete this['rooms'][a],this['logger']['write'](u(0x144)+a),!![]):(this[u(0x12f)][u(0x104)]('Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20'+a),![]);}[a54k(0x138)](a,b){const v=a54k,c=this[v(0x133)][b];c?(c[v(0x143)](a),this[v(0x12f)][v(0x104)]('Added\x20item\x20'+a[v(0x13e)]+v(0x127)+c['name'])):this['logger'][v(0x104)](v(0x140)+a[v(0x13e)]+'.\x20Room\x20'+b+v(0x117));}[a54k(0x148)](a,b){const w=a54k,c=this[w(0x133)][b];c?(c['setPuzzle'](a),this[w(0x12f)][w(0x104)](w(0x12a)+c[w(0x13e)])):this['logger'][w(0x104)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+w(0x117));}['setCharacterLocation'](a,b){const x=a54k,c=this[x(0x133)][b];c?(this[x(0x146)][x(0x105)](a['name'],c),this[x(0x12f)]['write'](a[x(0x13e)]+x(0x13f)+c['name'])):this[x(0x12f)][x(0x104)]('Failed\x20to\x20set\x20'+a['name']+x(0x13b)+b+x(0x117));}['getCharacterLocation'](a){const y=a54k;return this[y(0x146)][y(0x12c)](a['name']);}[a54k(0x120)](){const z=a54k,a=[];for(const c in this[z(0x133)]){if(this['rooms'][z(0x111)](c)){const d=this[z(0x133)][c];d[z(0x145)]&&a[z(0x10d)](d);}}if(a[z(0x116)]>0x1)throw new Error(z(0x128));if(a['length']===0x1)return a[0x0];const b=Object[z(0x137)](this[z(0x133)]);if(b['length']===0x0)throw new Error(z(0x136));return console['warn'](z(0x110)),this[z(0x133)][b[0x0]];}[a54k(0x122)](){return this['player'];}['getRooms'](){return this['rooms'];}[a54k(0x13c)](a,b,c,d){const A=a54k,e=this[A(0x133)][a],f=this[A(0x133)][c];if(!e)throw new Error(A(0x121)+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error('Room\x20\x22'+c+A(0x123));e['addExit'](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(0x13b))/0x1+-parseInt(f(0x140))/0x2*(parseInt(f(0x12d))/0x3)+-parseInt(f(0x137))/0x4+-parseInt(f(0x123))/0x5+-parseInt(f(0x11f))/0x6*(parseInt(f(0x141))/0x7)+-parseInt(f(0x121))/0x8+parseInt(f(0x13f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xad77a));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(0x133)]()[g(0x120)](g(0x11c))[g(0x133)]()[g(0x13c)](a55a)['search']('(((.+)+)+)+$');});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(0x116)],'category':Category['Unknown'],'shape':Shape[h(0x128)],'color':Color['Yellow'],'texture':Texture[h(0x12c)],'rating':Rating[h(0x11b)],'weight':0x1});}[a55i(0x11d)](){var j=a55i;return this[j(0x13d)];}}function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x10f;var f=c[d];return f;},a55d(a,b);}export class Sword extends Item{constructor(a,b){var k=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[k(0x122)],'shape':Shape[k(0x12e)],'color':Color[k(0x139)],'texture':Texture[k(0x110)],'rating':Rating[k(0x11b)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a55i;super({'name':a,'description':b,'size':Size[l(0x118)],'category':Category[l(0x122)],'shape':Shape[l(0x12a)],'color':Color['Brown'],'texture':Texture[l(0x110)],'rating':Rating[l(0x115)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[m(0x13a)],'shape':Shape[m(0x130)],'color':Color['Grey'],'texture':Texture[m(0x110)],'rating':Rating[m(0x11b)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a55i;super({'name':a,'description':b,'size':Size[n(0x118)],'category':Category[n(0x127)],'shape':Shape['Rectangle'],'color':Color[n(0x139)],'texture':Texture['Metallic'],'rating':Rating[n(0x11b)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a55i;super({'name':a,'description':b,'size':Size[o(0x116)],'category':Category[o(0x132)],'shape':Shape['Rectangle'],'color':Color[o(0x139)],'texture':Texture['Metallic'],'rating':Rating[o(0x11b)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a55i;super({'name':a,'description':b,'size':Size[p(0x116)],'category':Category[p(0x135)],'shape':Shape[p(0x130)],'color':Color['Brown'],'texture':Texture[p(0x12c)],'rating':Rating[p(0x11b)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a55i;super({'name':a,'description':b,'size':Size['Small'],'category':Category['Gloves'],'shape':Shape['Circle'],'color':Color[q(0x113)],'texture':Texture['Smooth'],'rating':Rating[q(0x11b)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a55i;super({'name':a,'description':b,'size':Size[r(0x116)],'category':Category[r(0x112)],'shape':Shape['Rectangle'],'color':Color[r(0x139)],'texture':Texture[r(0x110)],'rating':Rating[r(0x11b)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a55i;super({'name':a,'description':b,'size':Size[s(0x12f)],'category':Category[s(0x126)],'shape':Shape['Rectangle'],'color':Color[s(0x10f)],'texture':Texture[s(0x12c)],'rating':Rating[s(0x11b)],'weight':0x0});}['use'](){return'This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22';}}export class Weapon extends Item{constructor(a,b){var t=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[t(0x122)],'shape':Shape[t(0x12e)],'color':Color[t(0x139)],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x3});}[a55i(0x11d)](){var u=a55i;return u(0x136);}}export class Book extends Item{[a55i(0x13e)];[a55i(0x124)];[a55i(0x134)];constructor(a,b=a55i(0x117),c=a55i(0x114)){var v=a55i;super({'name':a,'description':b,'size':Size[v(0x116)],'category':Category[v(0x131)],'shape':Shape[v(0x128)],'color':Color[v(0x113)],'texture':Texture['Smooth'],'rating':Rating['Common'],'weight':0x1}),this['author']=c,this[v(0x124)]=new Date(),this[v(0x134)]=0x64;}[a55i(0x11d)](){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(0x138),'description':w(0x119),'size':Size[w(0x116)],'category':Category['Weapon'],'shape':Shape['Blade'],'color':Color[w(0x139)],'texture':Texture[w(0x110)],'rating':Rating[w(0x11b)],'weight':0x3});}[a55i(0x11d)](){var x=a55i;return x(0x136);}}function a55c(){var C=['ArmArmor','Brown','Unknown\x20Author','Rare','Medium','A\x20mysterious\x20book.','Large','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Legendary','Common','(((.+)+)+)+$','use','Holy\x20Grail','426MhiyUl','search','7914072ocznzA','Weapon','4474360GltgWy','publishDate','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Key','BodyArmor','Rectangle','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','Rifle','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Smooth','7611jjBsMG','Blade','Tiny','Circle','Book','LegArmor','toString','pageCount','Boots','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','3713936sEXRJv','Short\x20Sword','Grey','Helmet','616597rGPWKd','constructor','description','author','38341737sGHYdb','706LQFTzt','45164hkifnV','name','Yellow','Metallic','You\x20hold\x20the\x20'];a55c=function(){return C;};return a55c();}export class SniperRifle extends Item{constructor(){var y=a55i;super({'name':'Sniper\x20Rifle','description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size[y(0x118)],'category':Category[y(0x122)],'shape':Shape['Rifle'],'color':Color[y(0x113)],'texture':Texture[y(0x12c)],'rating':Rating['Common'],'weight':0x5});}[a55i(0x11d)](){var z=a55i;return z(0x125);}}export class HolyGrail extends Item{constructor(){var A=a55i;super({'name':A(0x11e),'description':A(0x129),'size':Size['Small'],'category':Category['Cup'],'shape':Shape[A(0x130)],'color':Color['Gold'],'texture':Texture[A(0x110)],'rating':Rating[A(0x11a)],'weight':0x1});}[a55i(0x11d)](){var B=a55i;return B(0x111)+this[B(0x142)]+B(0x12b);}}
|