@maka/maka-cli 4.9.5 → 4.9.6
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/patreon.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/register.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/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/package.json +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36j=a36d;(function(a,b){const g=a36d,c=a();while(!![]){try{const d=-parseInt(g(0x125))/0x1*(parseInt(g(0x137))/0x2)+-parseInt(g(0x12e))/0x3*(-parseInt(g(0x130))/0x4)+-parseInt(g(0x11f))/0x5*(-parseInt(g(0x139))/0x6)+parseInt(g(0x12f))/0x7+parseInt(g(0x13b))/0x8*(parseInt(g(0x13c))/0x9)+parseInt(g(0x11e))/0xa*(parseInt(g(0x13e))/0xb)+-parseInt(g(0x13f))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x6f1cc));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a36d;if(c){const e=c[h(0x12b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const i=a36d;return a36a['toString']()['search'](i(0x136))['toString']()['constructor'](a36a)['search'](i(0x136));});a36a();function a36c(){const m=['(((.+)+)+)+$','286ifTyqT','say','6ogKbSc','Scene\x20is\x20missing\x20from\x20context.','24omRGEH','1168893RkAYnN','scene','11396xVHBQE','22024968SDUrWR','2930GsiAug','4139255KXXkMo','execute','name','actor','context','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','3331shZwFH','What\x20do\x20you\x20want\x20to\x20say?','filter',':\x20\x22','\x20says\x20to\x20','You\x20say:\x20\x22','apply','description','currentLocation','2044863bwbMcI','3949484zsdzgq','4sBvAxP','join','logger','length','allActors','log'];a36c=function(){return m;};return a36c();}function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x11e;let f=c[d];return f;},a36d(a,b);}import{Command}from'./command.js';export class SayCommand extends Command{static ['verb']=a36j(0x138);static [a36j(0x12c)]=a36j(0x124);[a36j(0x123)];constructor(a){const k=a36j;super(a),this[k(0x123)]=a;}[a36j(0x120)](a){const l=a36j;if(a[l(0x133)]===0x0)return l(0x126);const b=a[l(0x131)]('\x20'),c=this[l(0x122)],d=this['context'][l(0x13d)];if(!d)return this[l(0x132)][l(0x135)](l(0x13a)),'An\x20error\x20occurred.';const e=d[l(0x134)][l(0x127)](f=>f[l(0x12d)]===c[l(0x12d)]);for(const f of e){this[l(0x132)][l(0x135)](c[l(0x121)]+l(0x129)+f[l(0x121)]+l(0x128)+b+'\x22'),this[l(0x122)][l(0x12d)][l(0x138)](f,b);}return l(0x12a)+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37i=a37d;function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x165;let f=c[d];return f;},a37d(a,b);}(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x17d))/0x1+-parseInt(f(0x17f))/0x2+-parseInt(f(0x174))/0x3+parseInt(f(0x17c))/0x4+parseInt(f(0x171))/0x5*(parseInt(f(0x167))/0x6)+-parseInt(f(0x173))/0x7*(parseInt(f(0x179))/0x8)+parseInt(f(0x172))/0x9*(parseInt(f(0x169))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x774bb));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x175)]()[h(0x16b)](h(0x177))[h(0x175)]()['constructor'](a37a)[h(0x16b)](h(0x177));});a37a();function a37c(){const k=['81944VGjIsB','join','verb','3730764VHSFmN','763746zvmXoA','You\x20search\x20the\x20area\x20and\x20find:\x20','1601912XxRywn','logger','actor','listItems','18pkNHdh','execute','7779580ftSGRk','length','search','Search\x20for\x20items\x20in\x20your\x20area','SearchCommand:\x20','apply','inventory','write','174185YhEYvJ','9ixhKIA','294rWoPtc','2577327NSoHrE','toString','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','(((.+)+)+)+$','name'];a37c=function(){return k;};return a37c();}import{Command}from'./command.js';export class SearchCommand extends Command{static [a37i(0x17b)]=a37i(0x16b);static ['description']=a37i(0x16c);[a37i(0x168)](){const j=a37i,a=this[j(0x165)]['currentLocation'][j(0x16f)][j(0x166)]();if(a[j(0x16a)]===0x0)return this[j(0x180)][j(0x170)]('SearchCommand:\x20'+this[j(0x165)][j(0x178)]+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),j(0x176);const b=a[j(0x17a)](',\x20');return this[j(0x180)]['write'](j(0x16d)+this[j(0x165)][j(0x178)]+'\x20found\x20the\x20following\x20items:\x20'+b),j(0x17e)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d
|
|
1
|
+
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x83))/0x1*(-parseInt(f(0x99))/0x2)+-parseInt(f(0x9d))/0x3+parseInt(f(0x92))/0x4*(-parseInt(f(0x9a))/0x5)+parseInt(f(0x94))/0x6*(parseInt(f(0x95))/0x7)+parseInt(f(0x8a))/0x8+-parseInt(f(0x93))/0x9+parseInt(f(0x85))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x65354));function a38c(){const k=['addItem','1756sDSClZ','2421005GqHrOC','write','rewardItem','2448072UWRXvg','message','constructor','search','actor','548oMfStJ','execute','4242360NMZPOt','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','verb','SolveCommand:\x20','puzzle','3981776LxYIEt','description','(((.+)+)+)+$','inventory','solve','toString','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','apply','4BhWvQD','3800565ggRShG','558PpMPLE','55244HMoXcu','success','logger'];a38c=function(){return k;};return a38c();}function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x83;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(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x8f)]()[h(0xa0)](h(0x8c))[h(0x8f)]()[h(0x9f)](a38a)[h(0xa0)]('(((.+)+)+)+$');});a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a38i(0x87)]=a38i(0x8e);static [a38i(0x8b)]='Attempt\x20to\x20solve\x20a\x20puzzle.';[a38i(0x84)](a){const j=a38i,b=a['join']('\x20')['toLowerCase'](),c=this[j(0xa1)]['currentLocation'];if(!c||!c[j(0x89)])return this[j(0x97)][j(0x9b)](j(0x86)),j(0x90);const d=c[j(0x89)][j(0x8e)](b,this[j(0xa1)][j(0x8d)]);return d[j(0x96)]&&c[j(0x89)][j(0x9c)]&&this[j(0xa1)][j(0x8d)][j(0x98)](c[j(0x89)][j(0x9c)]),this['logger']['write'](j(0x88)+d['message']),d[j(0x9e)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39i=a39d;
|
|
1
|
+
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x15d))/0x1+-parseInt(f(0x14c))/0x2+-parseInt(f(0x153))/0x3+-parseInt(f(0x152))/0x4*(-parseInt(f(0x149))/0x5)+parseInt(f(0x15c))/0x6*(parseInt(f(0x144))/0x7)+parseInt(f(0x148))/0x8*(-parseInt(f(0x154))/0x9)+parseInt(f(0x157))/0xa*(parseInt(f(0x14d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xc032f));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x147)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x16f)]()['search']('(((.+)+)+)+$')[h(0x16f)]()[h(0x161)](a39a)[h(0x158)](h(0x14e));});a39a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a39i(0x15a)]=a39i(0x16e);static [a39i(0x164)]=a39i(0x16c);[a39i(0x15f)](a){const j=a39i;return this['logger'][j(0x168)](j(0x14a)+a['join']('\x20')),this[j(0x16e)](a);}[a39i(0x16e)](a){const k=a39i,b=a[k(0x16a)]('\x20')[k(0x167)](),c=this[k(0x14b)][k(0x14f)];if(!c[k(0x162)][k(0x16b)](b))return this['logger'][k(0x168)]('Item\x20\x22'+b+k(0x156)+c['name']+'\x20during\x20\x27Take\x27\x20command.'),'There\x20is\x20no\x20item\x20\x22'+b+k(0x169);const d=c[k(0x162)]['getItem'](b);if(!d)return this[k(0x15b)][k(0x168)](k(0x165)+b+k(0x155)+c[k(0x166)]+k(0x145)),k(0x151)+b+'\x22\x20in\x20this\x20room.';try{return this[k(0x14b)][k(0x150)](d),this[k(0x15b)][k(0x168)]('Successfully\x20added\x20\x22'+b+k(0x159)+this[k(0x14b)][k(0x166)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[k(0x162)]['removeItem'](b),this['logger'][k(0x168)](k(0x160)+b+k(0x146)+c['name']+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x15e)+b+'.';}catch(e){return this['logger'][k(0x168)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[k(0x16d)]),'The\x20item\x20\x22'+b+k(0x163);}}}function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x144;let f=c[d];return f;},a39d(a,b);}function a39c(){const l=['(((.+)+)+)+$','currentLocation','addInventory','There\x20is\x20no\x20item\x20\x22','92HVnJKN','4610085wqTqxz','449766AXibmK','\x22\x20not\x20retrieved\x20from\x20','\x22\x20not\x20found\x20in\x20','142170ZLPNIQ','search','\x22\x20to\x20','verb','logger','120TTGwma','1543652ipbNop','You\x20have\x20taken\x20the\x20','execute','Successfully\x20removed\x20\x22','constructor','inventory','\x22\x20is\x20too\x20heavy\x20to\x20carry.','description','Item\x20\x22','name','toLowerCase','write','\x22\x20in\x20this\x20room.','join','hasItem','Pick\x20up\x20an\x20item.','message','take','toString','199157VtzlIb','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','\x22\x20from\x20','apply','152nlKasm','184700QPzebh','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','actor','600350euydXD','473kTuzfH'];a39c=function(){return l;};return a39c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x11e;let f=c[d];return f;},a40d(a,b);}const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x11f))/0x1*(parseInt(f(0x135))/0x2)+parseInt(f(0x131))/0x3+-parseInt(f(0x12f))/0x4+parseInt(f(0x12d))/0x5+parseInt(f(0x136))/0x6*(parseInt(f(0x128))/0x7)+parseInt(f(0x12c))/0x8*(-parseInt(f(0x124))/0x9)+-parseInt(f(0x132))/0xa*(-parseInt(f(0x12b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xacfea));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a['toString']()['search'](h(0x12a))[h(0x121)]()['constructor'](a40a)['search'](h(0x12a));});a40a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a40i(0x122)]=a40i(0x11e);static [a40i(0x129)]='Unequip\x20an\x20item.';[a40i(0x127)](a){const j=a40i,b=a[j(0x125)]('\x20')[j(0x134)](),c=this[j(0x133)][j(0x126)](b);return this[j(0x12e)][j(0x130)](j(0x123)+this[j(0x133)][j(0x120)]+'\x20unqeuiped\x20'+c),c;}}function a40c(){const k=['apply','unqeuip','107623pipQGF','name','toString','verb','UnequipCommand:\x20','171gozFvr','join','unequip','execute','774032LSsvkD','description','(((.+)+)+)+$','16971394ZfILQC','577912nRBYmV','6582215iOfMEn','logger','3506648ZEpuek','write','1228647zQYPTW','10jEBeMm','actor','toLowerCase','14HdiDjW','24oYoaHH'];a40c=function(){return k;};return a40c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=parseInt(h(0x138))/0x1*(parseInt(h(0x12c))/0x2)+-parseInt(h(0x123))/0x3+parseInt(h(0x145))/0x4*(parseInt(h(0x121))/0x5)+-parseInt(h(0x136))/0x6+parseInt(h(0x12b))/0x7*(-parseInt(h(0x133))/0x8)+parseInt(h(0x12f))/0x9+parseInt(h(0x134))/0xa*(parseInt(h(0x13c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xe73ed));function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x121;let f=c[d];return f;},a41d(a,b);}const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a41d;if(c){const e=c[i(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a[j(0x124)]()[j(0x12d)]('(((.+)+)+)+$')[j(0x124)]()[j(0x12e)](a41a)[j(0x12d)]('(((.+)+)+)+$');});a41a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static ['verb']=a41k(0x144);static ['description']=a41k(0x137);['execute'](a){const l=a41k;return this[l(0x144)](a);}[a41k(0x144)](a){const m=a41k;if(a['length']===0x0)return this[m(0x126)]['error']('UnlockCommand:\x20No\x20target\x20specified.'),'Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.';const b=a[0x0][m(0x140)](),c=this[m(0x129)][m(0x128)];if(this[m(0x127)](b)&&c[m(0x13f)][m(0x131)](b)){const d=c[m(0x13f)]['get'](b);if(d instanceof Door){const e=d[m(0x142)]?.[m(0x140)]();if(e&&this[m(0x129)][m(0x13e)][m(0x141)](e)){const f=this['actor'][m(0x13e)][m(0x122)](e);if(f){const g=c[m(0x13a)](b,f[m(0x125)]);return this['logger']['write'](m(0x13d)+this[m(0x129)][m(0x125)]+m(0x130)+b+m(0x13b)+g),g;}}return this[m(0x126)][m(0x135)]('UnlockCommand:\x20'+this[m(0x129)][m(0x125)]+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),m(0x132);}else return this['logger']['write']('UnlockCommand:\x20'+b+m(0x139)+c[m(0x125)]+'.'),m(0x12a)+b+'\x22\x20here.';}else return this[m(0x126)]['write'](m(0x13d)+b+m(0x139)+c[m(0x125)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+'\x22\x20here.';}}function a41c(){const n=['10REFCJx','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','attemptUnlockExit','.\x20Result:\x20','2955117QZxrOB','UnlockCommand:\x20','inventory','exits','toLowerCase','hasItem','unlockItemOrSolution','apply','unlock','331368mXqumd','15pfpMaS','getItem','1401375sJSiIo','toString','name','logger','isValidDirection','currentLocation','actor','There\x27s\x20no\x20door\x20named\x20\x22','8799CFpLSC','190152iCZjfQ','search','constructor','2448495ZNyGcv','\x20is\x20attempted\x20to\x20unlock\x20','has','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','744ZNLwrC','10GgfaVU','write','1252686PSbpuw','Unlock\x20a\x20door.'];a41c=function(){return n;};return a41c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0x1f6))/0x1*(-parseInt(f(0x20e))/0x2)+parseInt(f(0x1ee))/0x3+parseInt(f(0x20d))/0x4+-parseInt(f(0x20b))/0x5+-parseInt(f(0x1ef))/0x6+-parseInt(f(0x208))/0x7+-parseInt(f(0x207))/0x8*(-parseInt(f(0x209))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xaf8ff));function a42c(){const l=['Use\x20an\x20item.','apply',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','(((.+)+)+)+$','You\x20don\x27t\x20have\x20the\x20','function','join','UseCommand:\x20','write','toLowerCase','constructor','logger','\x20used\x20','execute','40nGnyyS','6430137zWZTZC','565173uBaESa','use','3130540AahQAU','\x20not\x20retrieved\x20from\x20','3582780MqnxsG','14qHzlHq','\x20to\x20use.','\x20doesn\x27t\x20have\x20a\x20use\x20method.','\x20attempted\x20to\x20use\x20','2750445cktnXW','6226866CxbozV','\x20in\x20this\x20way.','inventory','hasItem','search','You\x20can\x27t\x20use\x20the\x20','actor','167874TKEuqV','toString','name'];a42c=function(){return l;};return a42c();}const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x1fa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x1f7)]()[h(0x1f3)](h(0x1fc))[h(0x1f7)]()[h(0x203)](a42a)[h(0x1f3)](h(0x1fc));});a42a();import{Command}from'./command.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a42d(a,b);}export class UseCommand extends Command{static ['verb']=a42i(0x20a);static ['description']=a42i(0x1f9);[a42i(0x206)](a){const j=a42i;return this[j(0x20a)](a);}[a42i(0x20a)](a){const k=a42i,b=a[k(0x1ff)]('\x20')[k(0x202)]();if(!this[k(0x1f5)][k(0x1f1)][k(0x1f2)](b))return this[k(0x204)][k(0x201)](k(0x200)+this[k(0x1f5)][k(0x1f8)]+k(0x1ed)+b+k(0x1fb)),k(0x1fd)+b+k(0x1eb);const c=this[k(0x1f5)]['inventory']['getItem'](b);if(!c)return this[k(0x204)][k(0x201)]('UseCommand:\x20'+b+k(0x20c)+this['actor'][k(0x1f8)]+'\x27s\x20inventory.'),k(0x1fd)+b+k(0x1eb);if(typeof c[k(0x20a)]===k(0x1fe)){const d=c[k(0x20a)]();return this[k(0x204)][k(0x201)]('UseCommand:\x20'+this[k(0x1f5)]['name']+k(0x205)+b+'.'),d;}else return this['logger'][k(0x201)](k(0x200)+b+k(0x1ec)),k(0x1f4)+b+k(0x1f0);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43j=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x172))/0x1*(-parseInt(f(0x16e))/0x2)+-parseInt(f(0x173))/0x3+parseInt(f(0x166))/0x4+-parseInt(f(0x167))/0x5+parseInt(f(0x16d))/0x6*(parseInt(f(0x170))/0x7)+-parseInt(f(0x171))/0x8+parseInt(f(0x16f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x73ade));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x174)]()[h(0x169)](h(0x16b))[h(0x174)]()['constructor'](a43a)[h(0x169)]('(((.+)+)+)+$');});function a43c(){const k=['2573728aAYqZa','2162130iumePq','getAllRegisteredCommands','search','apply','(((.+)+)+)+$','commandMap','438uwAvfD','79438uALYYj','1759383EAyXHX','78022OgWNki','2262152PKDTxX','6FLcsbD','2105622tQjprz','toString'];a43c=function(){return k;};return a43c();}function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x166;let f=c[d];return f;},a43d(a,b);}a43a();export class CommandFactory{static ['commandMap']={};static['registerCommand'](a,b){this['commandMap'][a]=b;}static['createCommand'](a,b){const i=a43d,c=this[i(0x16c)][a];if(c)return new c(b);return null;}static[a43j(0x168)](){return this['commandMap'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44h=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(0x19f))/0x1+parseInt(f(0x1ab))/0x2*(-parseInt(f(0x1ac))/0x3)+parseInt(f(0x1bd))/0x4*(parseInt(f(0x1a2))/0x5)+parseInt(f(0x1ae))/0x6*(-parseInt(f(0x1b5))/0x7)+-parseInt(f(0x1a3))/0x8*(parseInt(f(0x1a9))/0x9)+parseInt(f(0x1b6))/0xa+parseInt(f(0x1b4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xf394e));function a44c(){const n=['9uuNhgv','items','776yQbYGs','3543BwXNhR','description','96GUXkbr','helmet','gloves','toString','constructor','createItem','23986490RQDqQm','695331tBzpHo','5048480iloSqC','puzzle','content','inventory','legarmor','type','toUpperCase','24AZyJzf','createRoom','createPuzzle','roomType','name','INSIDE','forEach','convertToRoomConfig','(((.+)+)+)+$','bodyarmor','601691dROkeQ','addItem','key','1175065rtepvb','3588472HxWCWL','search','rewardItem','rifle','isStartRoom','sword'];a44c=function(){return n;};return a44c();}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(0x1a4)]('(((.+)+)+)+$')[g(0x1b1)]()[g(0x1b2)](a44a)['search'](g(0x1c5));});function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x19f;let f=c[d];return f;},a44d(a,b);}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{[a44h(0x1be)](a){const i=a44h,b=this[i(0x1c4)](a),c=new Room(b);if(a[i(0x1aa)]){const d=new Inventory();a[i(0x1aa)][i(0x1c3)](e=>{const j=i;d[j(0x1a0)](this[j(0x1b3)](e));}),c[i(0x1b9)]=d;}return a[i(0x1b7)]&&c['setPuzzle'](this[i(0x1bf)](a[i(0x1b7)])),c;}[a44h(0x1b3)](a){const k=a44h;switch(a[k(0x1bb)]){case k(0x1a1):return new Key(a[k(0x1c1)],a[k(0x1ad)]);case'book':return new Book(a['name'],a[k(0x1ad)],a[k(0x1b8)]);case k(0x1a8):return new Sword(a[k(0x1c1)],a['description']);case k(0x1a6):return new Rifle(a[k(0x1c1)],a['description']);case k(0x1af):return new Helmet(a[k(0x1c1)],a[k(0x1ad)]);case k(0x1c6):return new BodyArmor(a[k(0x1c1)],a[k(0x1ad)]);case k(0x1ba):return new LegArmor(a[k(0x1c1)],a[k(0x1ad)]);case'boots':return new Boots(a['name'],a[k(0x1ad)]);case k(0x1b0):return new Gloves(a[k(0x1c1)],a['description']);case'gauntlets':return new Gauntlets(a[k(0x1c1)],a[k(0x1ad)]);default:return new BasicItem(a[k(0x1c1)],a[k(0x1ad)]);}}['createPuzzle'](a){const l=a44h,b=this[l(0x1b3)](a[l(0x1a5)]);return new Puzzle({...a,'rewardItem':b});}[a44h(0x1c4)](a){const m=a44h,b=a[m(0x1c0)]&&RoomType[a[m(0x1c0)][m(0x1bc)]()]?RoomType[a[m(0x1c0)][m(0x1bc)]()]:RoomType[m(0x1c2)];return{'name':a[m(0x1c1)],'description':a['description'],'isStartRoom':a[m(0x1a7)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(0x1e8))/0x1*(parseInt(h(0x206))/0x2)+parseInt(h(0x1e6))/0x3*(parseInt(h(0x210))/0x4)+-parseInt(h(0x20b))/0x5*(-parseInt(h(0x1f9))/0x6)+parseInt(h(0x212))/0x7*(parseInt(h(0x216))/0x8)+parseInt(h(0x1e9))/0x9*(parseInt(h(0x208))/0xa)+-parseInt(h(0x1f5))/0xb*(-parseInt(h(0x1f4))/0xc)+-parseInt(h(0x1e5))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x268ae));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a45d;if(c){const e=c[i(0x20d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const j=a45d;return a45a[j(0x1fe)]()[j(0x1f3)]('(((.+)+)+)+$')[j(0x1fe)]()[j(0x1ff)](a45a)['search'](j(0x1f1));});a45a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';function a45c(){const s=['trim','apply','getDescription','rooms','4wGhPHG','lock','282065BVAMin','createCommand','registerCommand','Available\x20Commands:\x0a','24ztfmPR','getHelpMessage','Welcome,\x20','currentLocation','getWelcomeMessage','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','say','-\x20quit:\x20Exit\x20the\x20game.\x0a','currentRoom','7469228DDIiZS','216456HilRMO','instance','1105zEoLKA','747nKlsHx','determineStartRoom','getAllRegisteredCommands','split','getRooms','getInstance','-\x20clear:\x20Clear\x20the\x20screen.\x0a','slice','(((.+)+)+)+$','clear','search','1428ZhyslN','5962FQdPYq','drop','help','execute','314118EmVgQX','toLowerCase','unlock','player','handleInput','toString','constructor','take','registerCommands','hasOwnProperty','maka','unequip','name','254HfOaTD','use','8770ZXSaGx','scene','initialize','25hhZaqg'];a45c=function(){return s;};return a45c();}import{GoCommand}from'./commands/go.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x1de;let f=c[d];return f;},a45d(a,b);}import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a45k(0x1e7)];[a45k(0x209)];['player'];[a45k(0x1e4)];[a45k(0x20f)];constructor(a,b){const l=a45k;this[l(0x1fc)]=a,this[l(0x209)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x209)][l(0x20a)](),this['player'][l(0x1df)]=this[l(0x1ea)](),this['registerCommands']();}[a45k(0x201)](){const m=a45k;CommandFactory[m(0x214)]('look',LookCommand),CommandFactory[m(0x214)]('go',GoCommand),CommandFactory[m(0x214)](m(0x200),TakeCommand),CommandFactory[m(0x214)](m(0x207),UseCommand),CommandFactory[m(0x214)]('equip',EquipCommand),CommandFactory[m(0x214)](m(0x204),UnequipCommand),CommandFactory['registerCommand']('solve',SolveCommand),CommandFactory['registerCommand'](m(0x1f6),DropCommand),CommandFactory[m(0x214)](m(0x1fb),UnlockCommand),CommandFactory[m(0x214)](m(0x211),LockCommand),CommandFactory['registerCommand'](m(0x1f3),SearchCommand),CommandFactory[m(0x214)](m(0x1e2),SayCommand);}[a45k(0x1ea)](){const n=a45k;return this[n(0x209)][n(0x1ea)]();}[a45k(0x1e0)](){const o=a45k;return o(0x1de)+this[o(0x1fc)][o(0x205)];}static[a45k(0x1ee)](a,b){const p=a45k;return!Game['instance']&&(Game['instance']=new Game(a,b)),Game[p(0x1e7)];}[a45k(0x1fd)](a){const q=a45k,b=a[q(0x20c)]()[q(0x1ec)]('\x20'),c=b[0x0][q(0x1fa)](),d=b[q(0x1f0)](0x1);if(c==='quit')return null;if(c===q(0x203))return q(0x1e1);if(c===q(0x1f7))return this['getHelpMessage']();if(c===q(0x1f2))return'';const e={'actor':this['player'],'rooms':this[q(0x209)][q(0x1ed)](),'scene':this[q(0x209)]},f=CommandFactory[q(0x213)](c,e);if(f){const g=f[q(0x1f8)](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}[a45k(0x217)](){const r=a45k,a=CommandFactory[r(0x1eb)]();let b=r(0x215);for(const c in a){if(a[r(0x202)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x20e)]()+'\x0a';}}return b+=r(0x1ef),b+=r(0x1e3),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a46d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0xa9))/0x1*(-parseInt(f(0xa5))/0x2)+-parseInt(f(0xab))/0x3+parseInt(f(0xac))/0x4+-parseInt(f(0xa4))/0x5+parseInt(f(0xa7))/0x6*(parseInt(f(0xa6))/0x7)+parseInt(f(0xa1))/0x8*(-parseInt(f(0x9e))/0x9)+-parseInt(f(0xad))/0xa*(-parseInt(f(0xa0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xaa5d5));function a46c(){var i=['apply','toString','2248495GvYrOZ','2434454GEgdix','3253453YPZTOb','18wNzure','(((.+)+)+)+$','1PnASGv','constructor','1986072AGIJYb','2818836TTmzic','118970EmBHyp','9uyXjWI','search','1430HLSMYB','4951144pClaXb'];a46c=function(){return i;};return a46c();}var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0xa3)]()[h(0x9f)](h(0xa8))['toString']()[h(0xaa)](a46a)['search'](h(0xa8));});a46a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x9e;var f=c[d];return f;},a46d(a,b);}export*from'./player.js';export*from'./puzzle.js';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(0x137))/0x1*(-parseInt(f(0x136))/0x2)+parseInt(f(0x13f))/0x3*(-parseInt(f(0x146))/0x4)+-parseInt(f(0x13c))/0x5*(parseInt(f(0x12f))/0x6)+parseInt(f(0x134))/0x7+-parseInt(f(0x14a))/0x8+parseInt(f(0x133))/0x9*(-parseInt(f(0x12d))/0xa)+parseInt(f(0x141))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xad16b));var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a47d;if(c){var e=c[g(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var h=a47d;return a47a[h(0x144)]()[h(0x149)](h(0x13a))[h(0x144)]()[h(0x142)](a47a)[h(0x149)](h(0x13a));});a47a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a47c(){var o=['51891499LIYjVs','constructor','unlockItemOrSolution','toString','isLocked','5884uGPShZ','Failed\x20to\x20unlock\x20door:\x20','write','search','5762496GPBZqa','Door\x20unlocked:\x20','20bnZQVt','isLockable','696726ZqPJOQ','checkIfLockable','.\x20Is\x20Locked:\x20','name','4718583MzAoWt','1252230aoUoSJ','\x20and\x20','47654rFVTVs','37SRSDed','getInstance','apply','(((.+)+)+)+$','logger','20ziHjPu','roomB','To\x20','2187llRvrK','roomA'];a47c=function(){return o;};return a47c();}function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x12c;var f=c[d];return f;},a47d(a,b);}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a47i(0x140)];[a47i(0x13d)];[a47i(0x145)];[a47i(0x143)];['name'];[a47i(0x13b)];[a47i(0x12e)];constructor(a){var j=a47i;super(),this[j(0x140)]=a[j(0x140)],this[j(0x13d)]=a['roomB'],this[j(0x145)]=a['isLocked']||![],this[j(0x143)]=a[j(0x143)],this[j(0x132)]=a[j(0x132)]?capitalCase(a[j(0x132)]):j(0x13e)+a[j(0x13d)][j(0x132)],this[j(0x13b)]=Logger[j(0x138)](),this[j(0x12e)]=!!a['unlockItemOrSolution'],this[j(0x13b)]['write']('Door\x20created\x20between\x20'+this[j(0x140)][j(0x132)]+j(0x135)+this[j(0x13d)]['name']+j(0x131)+this[j(0x145)]);}['getOtherSide'](a){var k=a47i;return this[k(0x140)]===a?this[k(0x13d)]:this[k(0x140)];}['attemptUnlock'](a){var l=a47i;if(this[l(0x145)]&&this['unlockItemOrSolution']&&this[l(0x143)]===a)return this[l(0x145)]=![],this[l(0x13b)][l(0x148)](l(0x12c)+this[l(0x132)]+'.\x20Used:\x20'+a),!![];return this[l(0x13b)][l(0x148)](l(0x147)+this[l(0x132)]+'.\x20Used:\x20'+a),![];}['checkIfLocked'](){var m=a47i;return this[m(0x145)];}[a47i(0x130)](){var n=a47i;return this[n(0x12e)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x136))/0x1*(-parseInt(f(0x131))/0x2)+-parseInt(f(0x13f))/0x3*(parseInt(f(0x125))/0x4)+-parseInt(f(0x129))/0x5*(-parseInt(f(0x147))/0x6)+-parseInt(f(0x140))/0x7+-parseInt(f(0x142))/0x8*(-parseInt(f(0x135))/0x9)+-parseInt(f(0x133))/0xa+-parseInt(f(0x130))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xd2230));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x123)]()['search']('(((.+)+)+)+$')['toString']()[h(0x14b)](a48a)[h(0x149)](h(0x13e));});a48a();function a48c(){const r=['3492405QslIcH','hasItem','Checked\x20for\x20item:\x20','removeItem','\x20in\x20','weight','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','439846yQiMvd','2cftXqb','delete','13406980kgdEhl','items','1932705oLsWpR','844761TbtVKR','.\x20Item\x20not\x20found.','Added\x20item:\x20','map','getItem','get','write','join','(((.+)+)+)+$','822012uRUzst','2852626vTcBsf','logger','56ncwuYS','set','Removed\x20item:\x20','toLowerCase','values','12UDsoPq','listItems','search','has','constructor','Retrieved\x20details\x20for\x20item:\x20','getWeight','\x20from\x20inventory.','apply','toString','keys','16RLkhzC','getAllItems','name','\x20to\x20inventory.'];a48c=function(){return r;};return a48c();}function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x121;let f=c[d];return f;},a48d(a,b);}import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48i(0x134)];[a48i(0x141)];constructor(){const j=a48i;super(),this[j(0x134)]=new Map(),this[j(0x141)]=Logger['getInstance']();}['addItem'](a){const k=a48i;this[k(0x134)][k(0x143)](a[k(0x127)][k(0x145)](),a),this[k(0x141)][k(0x13c)](k(0x138)+a[k(0x127)]+k(0x128));}[a48i(0x12c)](a){const l=a48i,b=this[l(0x13a)](a);if(b)return this[l(0x134)][l(0x132)](a[l(0x145)]()),this[l(0x141)][l(0x13c)](l(0x144)+a+l(0x121)),b;return this[l(0x141)][l(0x13c)]('Failed\x20to\x20remove\x20item:\x20'+a+l(0x137)),null;}[a48i(0x12a)](a){const m=a48i,b=this['items'][m(0x14a)](a[m(0x145)]()),c=[...this['items'][m(0x124)]()];return this[m(0x141)][m(0x13c)](m(0x12b)+a+m(0x12d)+c['join'](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}[a48i(0x13a)](a){const n=a48i,b=this[n(0x134)][n(0x13b)](a[n(0x145)]())||null;return b?this[n(0x141)][n(0x13c)](n(0x14c)+a+'.'):this[n(0x141)]['write'](n(0x12f)+a+n(0x137)),b;}[a48i(0x148)](){const o=a48i,a=[...this[o(0x134)]['keys']()],b=a[o(0x139)](c=>capitalCase(c));return this[o(0x141)][o(0x13c)]('Listed\x20items\x20in\x20inventory:\x20'+b[o(0x13d)](',\x20')+'.'),a;}[a48i(0x14d)](){const p=a48i;let a=0x0;for(const b of this[p(0x134)][p(0x146)]()){a+=b[p(0x12e)];}return a;}[a48i(0x126)](){const q=a48i;return[...this[q(0x134)][q(0x146)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;
|
|
1
|
+
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x92))/0x1*(parseInt(f(0x8a))/0x2)+parseInt(f(0x84))/0x3+-parseInt(f(0x8e))/0x4*(parseInt(f(0x79))/0x5)+parseInt(f(0x89))/0x6+-parseInt(f(0x8c))/0x7+-parseInt(f(0x7f))/0x8+-parseInt(f(0x7d))/0x9*(-parseInt(f(0x85))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x50e57));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x87)]()[h(0x82)](h(0x7c))['toString']()[h(0x8f)](a49a)[h(0x82)](h(0x7c));});a49a();function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x77;var f=c[d];return f;},a49d(a,b);}import{v4 as a49e}from'uuid';function a49c(){var l=['1942872fNxhlq','2XnnSJN','name','1451828pfmfda','shape','4kZMvqF','constructor','description','You\x20use\x20the\x20','185263IjlDSI','apply','color','1463885kAGwfR','rating','use','(((.+)+)+)+$','414gHXbJo','category','907200OWRHnX','.\x20Nothing\x20special\x20happens.','uuid','search','texture','1233741DyfREO','5350JHhwLh','weight','toString','size'];a49c=function(){return l;};return a49c();}import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a49i(0x81)];[a49i(0x8b)];[a49i(0x90)];[a49i(0x88)];['category'];[a49i(0x8d)];[a49i(0x78)];[a49i(0x83)];[a49i(0x7a)];[a49i(0x86)];constructor(a){var j=a49i;super(),this[j(0x8b)]=a[j(0x8b)],this[j(0x90)]=a[j(0x90)],this['size']=a[j(0x88)],this['category']=a[j(0x7e)],this[j(0x8d)]=a[j(0x8d)],this['color']=a['color'],this[j(0x83)]=a['texture'],this[j(0x7a)]=a['rating'],this[j(0x86)]=a[j(0x86)],this[j(0x81)]=a49e();}[a49i(0x7b)](){var k=a49i;return k(0x91)+this[k(0x8b)]+k(0x80);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50h=a50d;function a50c(){const n=['4jhgHSF','3259880uOYTDC','_dialogue','scene','_name','constructor','2248Zbywxo','772740AcbaES','toString','4314186FfKaIy','moveTo','length','random','8287370tsoPPC','floor','name','1222056CjwUSJ','598835jABSKk','9uGgwRv','rooms','autonomousMove','(((.+)+)+)+$','search','14483inWZWK'];a50c=function(){return n;};return a50c();}(function(a,b){const f=a50d,c=a();while(!![]){try{const d=-parseInt(f(0xf9))/0x1+parseInt(f(0x107))/0x2+parseInt(f(0xf8))/0x3+-parseInt(f(0x100))/0x4*(-parseInt(f(0x101))/0x5)+-parseInt(f(0x109))/0x6+parseInt(f(0xff))/0x7*(-parseInt(f(0x106))/0x8)+parseInt(f(0xfa))/0x9*(parseInt(f(0xf5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x5b98c));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const g=a50d;return a50a[g(0x108)]()[g(0xfe)](g(0xfd))[g(0x108)]()[g(0x105)](a50a)[g(0xfe)](g(0xfd));});a50a();function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xf5;let f=c[d];return f;},a50d(a,b);}import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a50h(0x104)];['_dialogue'];[a50h(0xfb)];[a50h(0x103)];constructor(a,b,c,d){const i=a50h;super(d),this[i(0x104)]=a,this[i(0x102)]=b,this[i(0xfb)]=c;}get['name'](){const j=a50h;return this[j(0x104)];}['speak'](){const k=a50h;return this[k(0x102)][Math[k(0xf6)](Math['random']()*this[k(0x102)][k(0x10b)])];}[a50h(0xfc)](a){const l=a50h,b=a[Math['floor'](Math[l(0x10c)]()*a[l(0x10b)])];this['moveTo'](b[l(0xf7)]);}[a50h(0x10a)](a){const m=a50h,b={'actor':this,'rooms':this[m(0xfb)],'scene':this[m(0x103)]},c=new GoCommand(b);c['execute']([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51i=a51d;
|
|
1
|
+
const a51i=a51d;function a51c(){const C=['head','_maxCarryingWeight','arm\x20armor','equipment','playerName','error','getWeight','legs','write','You\x20don\x27t\x20have\x20','removeItem','arms','armarmor','includes','3572vAdbBl','search','Nexus','9nWkPWs','Shield','equip','LegArmor','26876yecokJ','currentLocation','constructor','speak','boots','feet','addInventory','values','weapon','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','inventoryItems','category','toString','_currentLocation','1317BqKdDr','leftHand','Failed\x20to\x20remove\x20','Weapon','_playerName','35EvcTkw','apply','Max\x20carrying\x20weight\x20must\x20be\x20positive.','\x20is\x20no\x20longer\x20listeng\x20in\x20','initialEquipment','logger','\x20to\x20player\x27s\x20inventory.','maxCarryingWeight','removeInventory','canEquip','determineEquipmentSlot','A\x20featureless\x20room','120570VcsDmK','35IDFRzU','\x20from\x20player\x27s\x20inventory.','shield','You\x20equipped\x20','hear','4079845uJHlvR','inventory','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','rightHand','unequipBySlot','613374rqXmmv','gloves','1151192imAyVQ','(((.+)+)+)+$','helmet','_inventory','body\x20armor','.\x20You\x20must\x20unequip\x20it\x20first.','startLocation','bodyarmor','toLowerCase','5574639GePtON','\x20in\x20your\x20inventory.','_equipment','ArmArmor','Hat','hat','unequip','torso','BodyArmor','Boots','\x20slot.','log','Added\x20','weight','enterRoom','You\x20can\x27t\x20equip\x20','name','bind','leaveRoom','leg\x20armor'];a51c=function(){return C;};return a51c();}(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x186))/0x1*(parseInt(f(0x166))/0x2)+parseInt(f(0x174))/0x3*(-parseInt(f(0x15f))/0x4)+parseInt(f(0x179))/0x5*(parseInt(f(0x190))/0x6)+parseInt(f(0x19b))/0x7+parseInt(f(0x192))/0x8+parseInt(f(0x162))/0x9*(-parseInt(f(0x185))/0xa)+-parseInt(f(0x18b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x643ca));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a['toString']()['search']('(((.+)+)+)+$')[h(0x172)]()[h(0x168)](a51a)[h(0x160)](h(0x193));});a51a();function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x15b;let f=c[d];return f;},a51d(a,b);}import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a51i(0x178)];['_currentLocation'];[a51i(0x195)];['_equipment'];[a51i(0x1b0)]=0x32;[a51i(0x17e)];constructor(a){const j=a51i;super(),this[j(0x178)]=a[j(0x1b3)],this[j(0x173)]=a[j(0x198)]||new Room({'name':j(0x161),'description':j(0x184)}),this[j(0x195)]=new Inventory(),this[j(0x17e)]=Logger['getInstance']();if(a?.[j(0x170)])for(const b of a['inventoryItems']){this[j(0x195)]['addItem'](b);}this[j(0x19d)]=a?.[j(0x17d)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get['name'](){const k=a51i;return this[k(0x178)];}get[a51i(0x167)](){return this['_currentLocation'];}set[a51i(0x167)](a){const l=a51i;this[l(0x173)]!==a&&(this[l(0x1ad)](),this['enterRoom'](a)),this[l(0x173)]=a;}get[a51i(0x18c)](){const m=a51i;return this[m(0x195)];}get[a51i(0x1b2)](){const n=a51i;return this[n(0x19d)];}set[a51i(0x1b2)](a){const o=a51i;this[o(0x19d)]=a;}get['maxCarryingWeight'](){const p=a51i;return this[p(0x1b0)];}set['maxCarryingWeight'](a){const q=a51i;a>0x0?this['_maxCarryingWeight']=a:console[q(0x1b4)](q(0x17b));}get['currentWeight'](){const r=a51i;let a=this[r(0x195)][r(0x1b5)]();for(const b in this[r(0x19d)]){const c=this[r(0x19d)][b];c&&(a+=c['weight']);}return a;}[a51i(0x16c)](a){const s=a51i;if(this['currentWeight']+a[s(0x1a8)]>this[s(0x180)]){this[s(0x17e)][s(0x1b7)]('Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.');throw new Error(s(0x16f));}this[s(0x195)]['addItem'](a),this[s(0x17e)][s(0x1b7)](s(0x1a7)+a[s(0x1ab)]+s(0x17f));}[a51i(0x181)](a){const t=a51i;if(this[t(0x195)][t(0x15b)](a[t(0x1ab)]))return this['logger'][t(0x1b7)]('Removed\x20'+a[t(0x1ab)]+'\x20from\x20player\x27s\x20inventory.'),!![];return this[t(0x17e)][t(0x1b7)](t(0x176)+a['name']+t(0x187)),![];}[a51i(0x164)](a){const u=a51i;if(!this[u(0x195)]['hasItem'](a['name']))return u(0x1b8)+a[u(0x1ab)]+u(0x19c);if(!this[u(0x182)](a))return u(0x1aa)+a[u(0x1ab)]+'.';const b=this[u(0x183)](a[u(0x171)]);if(!b)return a[u(0x1ab)]+u(0x18d);if(this[u(0x1b2)][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+u(0x197);return this[u(0x1b2)][b]=a,this[u(0x181)](a),u(0x189)+a[u(0x1ab)]+'.';}[a51i(0x1a1)](a){const v=a51i;let b=a;if(!this[v(0x1b2)][camelCase(b)]){b=this[v(0x183)](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this[v(0x18f)](b);}[a51i(0x183)](a){const w=a51i;switch(a[w(0x19a)]()){case Category[w(0x177)][w(0x19a)]():return w(0x18e);case Category[w(0x163)][w(0x19a)]():return w(0x175);case Category['Gloves'][w(0x19a)]():return w(0x191);case Category['Helmet'][w(0x19a)]():case Category[w(0x19f)][w(0x19a)]():return w(0x1af);case Category[w(0x1a4)][w(0x19a)]():return w(0x16b);case Category[w(0x165)][w(0x19a)]():return w(0x1b6);case Category[w(0x19e)][w(0x19a)]():return'arms';case Category[w(0x1a3)][w(0x19a)]():return w(0x1a2);case w(0x16e):return'rightHand';case w(0x188):return w(0x175);case w(0x191):return w(0x191);case w(0x194):case w(0x1a0):return w(0x1af);case w(0x16a):return w(0x16b);case w(0x1ae):case'legarmor':return'legs';case w(0x1b1):case w(0x15d):return w(0x15c);case w(0x196):case w(0x199):case w(0x1a2):return w(0x1a2);default:return null;}}['canEquip'](a){const x=a51i;return Object[x(0x16d)](Category)[x(0x15e)](a['category']);}[a51i(0x18f)](a){const y=a51i,b=this[y(0x1b2)][a];if(!b)return'You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20'+a+y(0x1a5);return this[y(0x16c)](b),this[y(0x1b2)][a]=null,'You\x20unequipped\x20'+b[y(0x1ab)]+'.';}[a51i(0x18a)](a,b){const z=a51i;a!==this&&this[z(0x17e)][z(0x1a6)](a['name']+'\x20says:\x20\x22'+b+'\x22');}[a51i(0x1a9)](a){const A=a51i;this['_currentLocation']=a,a['on'](A(0x169),this['hear'][A(0x1ac)](this)),this[A(0x17e)]['write'](this[A(0x1ab)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a['name']);}['leaveRoom'](){const B=a51i;this['_currentLocation']&&(this[B(0x173)]['off'](B(0x169),this[B(0x18a)][B(0x1ac)](this)),this[B(0x17e)][B(0x1b7)](this[B(0x1ab)]+B(0x17c)+this[B(0x173)][B(0x1ab)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x119))/0x1+parseInt(f(0x115))/0x2+-parseInt(f(0x113))/0x3+parseInt(f(0x10c))/0x4+parseInt(f(0x118))/0x5*(parseInt(f(0x106))/0x6)+-parseInt(f(0x10a))/0x7+-parseInt(f(0x111))/0x8*(-parseInt(f(0x116))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x73ec1));function a52c(){var l=['matchesRequiredPhrase','write','2095849sMEXjh','hasItem','2231704nmsdwV','search','rewardItem','(((.+)+)+)+$','You\x20solved\x20the\x20puzzle!','7088IiRpYp','constructor','2457777sTBaAO','You\x20have\x20already\x20solved\x20this\x20puzzle.','1390580fkehBv','12357LhkwZh','requiredItem','2070iQbpRT','900637fzPMUK','Puzzle:\x20Correct\x20solution\x20provided.','hasRequiredItem','riddle','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','requiredPhrase','logger','failureMessage','toString','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','successMessage','354iNIeWj','solved'];a52c=function(){return l;};return a52c();}var a52b=(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;};}()),a52a=a52b(this,function(){var g=a52d;return a52a[g(0x103)]()[g(0x10d)]('(((.+)+)+)+$')['toString']()[g(0x112)](a52a)[g(0x10d)](g(0x10f));});function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xfc;var f=c[d];return f;},a52d(a,b);}a52a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52h(0x101)]=Logger['getInstance']();[a52h(0x107)]=![];[a52h(0x117)];['requiredPhrase'];[a52h(0xfe)];['rewardItem'];[a52h(0x105)];['failureMessage'];constructor(a){var i=a52h;super(),this['requiredItem']=a[i(0x117)],this[i(0x100)]=a['requiredPhrase'],this['riddle']=a[i(0xfe)],this[i(0x10e)]=a[i(0x10e)],this[i(0x105)]=a[i(0x105)]||i(0x110),this[i(0x102)]=a[i(0x102)]||i(0x104);}[a52h(0xfd)](a){var j=a52h;if(this[j(0x117)])return a[j(0x10b)](this[j(0x117)]);return![];}[a52h(0x108)](a){return this['requiredPhrase']===a;}['solve'](a,b){var k=a52h;if(this[k(0x107)])return this[k(0x101)][k(0x109)](k(0xff)),{'success':![],'message':k(0x114)};return this[k(0xfd)](b)||this[k(0x108)](a)?(this[k(0x107)]=!![],this[k(0x101)][k(0x109)](k(0xfc)),{'success':!![],'message':this[k(0x105)]}):(this[k(0x101)][k(0x109)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[k(0x102)]});}}
|
|
@@ -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 a53c(){const u=['values','east','isStartRoom','exits','The\x20','set','Fetching\x20exit\x20in\x20direction:\x20','inventory','\x20remains\x20locked.','search','write','getInstance','570794hQURUo','logger','WEST','getOppositeDirection','\x20is\x20locked.\x20Result:\x20','isExitLocked','(((.+)+)+)+$','speak','.\x20Success:\x20','addItem','description','roomA','constructor','emit','220ZiijAF','3kqxSTM','607940AahrfG','571816yGryzC','get','roomType','removeItem','attemptUnlock','roomB','setPuzzle','No\x20locked\x20exit\x20found\x20in\x20direction\x20','573toEqsH','2528032Qwwczy','hasItem','6OLEwPf','Room\x20created:\x20','puzzle','EAST','attemptUnlockExit','7102359KNRuZG','toString','checkIfLocked','findExistingDoor','3034265qBYSSd','say','\x20unlocked!','Checking\x20if\x20exit\x20in\x20direction\x20','name','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','14548BcUsNQ','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','riddle','west','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','getExit','SOUTH','Puzzle\x20set\x20for\x20room\x20','apply'];a53c=function(){return u;};return a53c();}(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x139))/0x1*(parseInt(f(0x13b))/0x2)+parseInt(f(0x143))/0x3*(parseInt(f(0x155))/0x4)+-parseInt(f(0x14f))/0x5*(-parseInt(f(0x146))/0x6)+-parseInt(f(0x16a))/0x7+-parseInt(f(0x144))/0x8+-parseInt(f(0x14b))/0x9+parseInt(f(0x13a))/0xa*(parseInt(f(0x138))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x73793));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0x14c)]()[h(0x167)](h(0x170))[h(0x14c)]()[h(0x176)](a53a)['search']('(((.+)+)+)+$');});a53a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x137;let f=c[d];return f;},a53d(a,b);}import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a53i(0x16b)]=Logger[a53i(0x169)]();['name'];[a53i(0x174)];['exits']=new Map();[a53i(0x13d)];[a53i(0x160)];['inventory']=new Inventory();constructor(a){const j=a53i;super(),this[j(0x153)]=a[j(0x153)],this[j(0x174)]=a[j(0x174)],this[j(0x13d)]=a['roomType']||RoomType['INSIDE'],a[j(0x161)]&&(this[j(0x161)]=a['exits']||new Map()),a['inventory']&&(this[j(0x165)]=a[j(0x165)]),a[j(0x148)]&&(this[j(0x148)]=a[j(0x148)]),this[j(0x160)]=a['isStartRoom']||![],this[j(0x16b)]['write'](j(0x147)+this['name']);}[a53i(0x150)](a,b){const k=a53i;this[k(0x137)](k(0x171),a,b);}['addExit'](a,b,c){const l=a53i;let d=this[l(0x14e)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x161)][l(0x163)](a,d),b['exits'][l(0x163)](this[l(0x16d)](a),d);}[a53i(0x14a)](a,b){const m=a53i,c=this[m(0x161)]['get'](a);if(c instanceof Door){const d=c[m(0x13f)](b);return this[m(0x16b)][m(0x168)](m(0x154)+a+m(0x172)+d),d?'The\x20'+c[m(0x153)]+m(0x151):m(0x162)+c[m(0x153)]+m(0x166);}return this[m(0x16b)][m(0x168)](m(0x142)+a),m(0x156);}[a53i(0x15a)](a){const n=a53i;return this['logger'][n(0x168)](n(0x164)+a),this[n(0x161)][n(0x13c)](a);}[a53i(0x16f)](a){const o=a53i,b=this['exits'][o(0x13c)](a),c=b instanceof Door&&b[o(0x14d)]();return this[o(0x16b)]['write'](o(0x152)+a+o(0x16e)+c),c;}[a53i(0x173)](a){const p=a53i;this[p(0x165)][p(0x173)](a),this[p(0x16b)][p(0x168)]('Item\x20added\x20to\x20room\x20'+this[p(0x153)]+':\x20'+a['name']);}['removeItem'](a){const q=a53i;this[q(0x165)][q(0x145)](a['name'])?(this[q(0x165)][q(0x13e)](a['name']),this[q(0x16b)]['write']('Item\x20removed\x20from\x20room\x20'+this[q(0x153)]+':\x20'+a[q(0x153)])):this[q(0x16b)][q(0x168)](q(0x159)+this[q(0x153)]+':\x20'+a['name']);}[a53i(0x141)](a){const r=a53i;this[r(0x148)]=a,this[r(0x16b)][r(0x168)](r(0x15c)+this[r(0x153)]+':\x20'+a[r(0x157)]);}['getOppositeDirection'](a){const s=a53i;switch(a){case'north':return Direction[s(0x15b)];case'south':return Direction['NORTH'];case s(0x15f):return Direction[s(0x16c)];case s(0x158):return Direction[s(0x149)];case'up':return Direction['DOWN'];case'down':return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}[a53i(0x14e)](a){const t=a53i;for(const b of this[t(0x161)][t(0x15e)]()){if(b instanceof Door){if(b[t(0x175)]===this&&b[t(0x140)]===a||b[t(0x140)]===this&&b[t(0x175)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54l=a54d;
|
|
1
|
+
const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d=parseInt(i(0x204))/0x1*(-parseInt(i(0x1e9))/0x2)+-parseInt(i(0x218))/0x3*(-parseInt(i(0x1fd))/0x4)+-parseInt(i(0x20d))/0x5*(-parseInt(i(0x1ef))/0x6)+-parseInt(i(0x1f0))/0x7+parseInt(i(0x216))/0x8+parseInt(i(0x1f3))/0x9+-parseInt(i(0x200))/0xa*(parseInt(i(0x1f8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x59624));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x1ee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a['toString']()[k(0x210)]('(((.+)+)+)+$')['toString']()[k(0x215)](a54a)[k(0x210)]('(((.+)+)+)+$');});a54a();import{Logger}from'../utilities/logger.js';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x1d2;let f=c[d];return f;},a54d(a,b);}import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';function a54c(){const E=['hasOwnProperty','player','get','set','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','actors','244786rhoGdY','Failed\x20to\x20set\x20','determineStartRoom','No\x20actor\x20with\x20name\x20','createExitsFromConfig','apply','35274iAJkgY','3946222lNrqqO','has','getInstance','4540734zloDeb','write','getActor','exits','characterLocations','22rcNXPC','\x20already\x20exists\x20in\x20the\x20scene.','\x20is\x20now\x20in\x20room\x20','keyRequired','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','196nVTKCP','rooms','currentLocation','486440rQltkN','addActor','logger','getRooms','1eKUniD','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','generateRoomsFromConfig','keys','direction','Actor\x20with\x20name\x20','\x20to\x20room\x20','from','addPuzzleToRoom','485OGGxOY','\x20found\x20in\x20the\x20scene.','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','search','addExit','roomFactory','isStartRoom','targetRoom','constructor','468280GxVLfz','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','993OaYNex','Added\x20room\x20to\x20scene:\x20','toUpperCase','getCharacterLocation','Added\x20item\x20','push','\x20not\x20found\x20in\x20scene.','.\x20Room\x20','setPuzzle','roomConfiguration','setCharacterLocation','length','Room\x20\x22','values','delete','connectRooms','name','addRoom','Failed\x20to\x20add\x20item\x20','allActors','\x22\x20does\x20not\x20exist.','getPlayer','removeActor','addItemToRoom'];a54c=function(){return E;};return a54c();}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];[a54l(0x1e4)];[a54l(0x202)];[a54l(0x1e8)];[a54l(0x1f7)]=new Map();[a54l(0x212)];constructor(a){const m=a54l;super(),this[m(0x212)]=new RoomFactory(),this[m(0x1e4)]=a[m(0x1e4)],this[m(0x1fe)]=this[m(0x206)](a['roomConfiguration']),this[m(0x202)]=Logger[m(0x1f2)](),this[m(0x1e8)]=new Map(),this[m(0x1ed)](a[m(0x1d4)]),this[m(0x202)][m(0x1f4)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[m(0x207)](this[m(0x1fe)])['join'](',\x20'));}['initialize'](){const n=a54l;this[n(0x1e4)][n(0x1ff)]=this[n(0x1eb)]();}[a54l(0x206)](a){const o=a54l;if(!this[o(0x212)])throw new Error(o(0x205));const b={};for(const c of a){const d=this['roomFactory']['createRoom'](c);b[c['name']]=d;}return b;}[a54l(0x1ed)](a){const p=a54l;for(const b of a){const c=this[p(0x1fe)][b['name']];if(b[p(0x1f6)])for(const d of b[p(0x1f6)]){const e=d[p(0x208)][p(0x21a)](),f=d[p(0x214)],g=d[p(0x1fb)],h=this['rooms'][f];h&&c[p(0x211)](Direction[e],h,g);}}}[a54l(0x201)](a){const q=a54l;if(this[q(0x1e8)][q(0x1f1)](a[q(0x1db)]))throw new Error(q(0x209)+a['name']+q(0x1f9));this[q(0x1e8)][q(0x1e6)](a[q(0x1db)],a);}[a54l(0x1e1)](a){const r=a54l;if(!this[r(0x1e8)][r(0x1f1)](a))throw new Error(r(0x1ec)+a+r(0x20e));this[r(0x1e8)][r(0x1d9)](a);}[a54l(0x1f5)](a){const s=a54l;return this[s(0x1e8)][s(0x1e5)](a);}get[a54l(0x1de)](){const t=a54l;return Array[t(0x20b)](this[t(0x1e8)][t(0x1d8)]());}[a54l(0x1dc)](a){const u=a54l;this[u(0x1fe)][a[u(0x1db)]]=a,this[u(0x202)]['write'](u(0x219)+a['name']);}['removeRoom'](a){const v=a54l;return this[v(0x1fe)][a]?(delete this[v(0x1fe)][a],this[v(0x202)][v(0x1f4)]('Removed\x20room\x20from\x20scene:\x20'+a),!![]):(this['logger'][v(0x1f4)](v(0x1fc)+a),![]);}[a54l(0x1e2)](a,b){const w=a54l,c=this[w(0x1fe)][b];c?(c['addItem'](a),this[w(0x202)][w(0x1f4)](w(0x21c)+a[w(0x1db)]+w(0x20a)+c[w(0x1db)])):this['logger'][w(0x1f4)](w(0x1dd)+a[w(0x1db)]+w(0x1d2)+b+w(0x21e));}[a54l(0x20c)](a,b){const x=a54l,c=this['rooms'][b];c?(c[x(0x1d3)](a),this[x(0x202)][x(0x1f4)]('Added\x20puzzle\x20to\x20room\x20'+c[x(0x1db)])):this['logger']['write']('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a54l(0x1d5)](a,b){const y=a54l,c=this[y(0x1fe)][b];c?(this[y(0x1f7)]['set'](a[y(0x1db)],c),this[y(0x202)][y(0x1f4)](a['name']+y(0x1fa)+c[y(0x1db)])):this[y(0x202)][y(0x1f4)](y(0x1ea)+a[y(0x1db)]+'\x27s\x20location.\x20Room\x20'+b+y(0x21e));}[a54l(0x21b)](a){const z=a54l;return this['characterLocations'][z(0x1e5)](a[z(0x1db)]);}[a54l(0x1eb)](){const A=a54l,a=[];for(const c in this[A(0x1fe)]){if(this[A(0x1fe)][A(0x1e3)](c)){const d=this[A(0x1fe)][c];d[A(0x213)]&&a[A(0x21d)](d);}}if(a[A(0x1d6)]>0x1)throw new Error(A(0x217));if(a[A(0x1d6)]===0x1)return a[0x0];const b=Object[A(0x207)](this[A(0x1fe)]);if(b[A(0x1d6)]===0x0)throw new Error(A(0x1e7));return console['warn'](A(0x20f)),this[A(0x1fe)][b[0x0]];}[a54l(0x1e0)](){const B=a54l;return this[B(0x1e4)];}[a54l(0x203)](){const C=a54l;return this[C(0x1fe)];}[a54l(0x1da)](a,b,c,d){const D=a54l,e=this[D(0x1fe)][a],f=this[D(0x1fe)][c];if(!e)throw new Error(D(0x1d7)+a+D(0x1df));if(!f)throw new Error(D(0x1d7)+c+D(0x1df));e[D(0x211)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a55j=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x1f2))/0x1+parseInt(f(0x207))/0x2*(-parseInt(f(0x1eb))/0x3)+-parseInt(f(0x20e))/0x4+-parseInt(f(0x218))/0x5*(-parseInt(f(0x217))/0x6)+parseInt(f(0x20c))/0x7*(-parseInt(f(0x1e3))/0x8)+parseInt(f(0x213))/0x9+parseInt(f(0x210))/0xa*(parseInt(f(0x1f1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xd19f8));function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x1df;var f=c[d];return f;},a55d(a,b);}var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x1f5)]()[h(0x1f7)](h(0x200))['toString']()[h(0x1e1)](a55a)[h(0x1f7)](h(0x200));});a55a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a55d;super({'name':a,'description':b,'size':Size[i(0x208)],'category':Category[i(0x1ea)],'shape':Shape[i(0x1e4)],'color':Color['Yellow'],'texture':Texture[i(0x20b)],'rating':Rating[i(0x1fd)],'weight':0x1});}[a55j(0x205)](){var k=a55j;return this[k(0x211)];}}export class Sword extends Item{constructor(a,b){var l=a55j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[l(0x1ec)],'shape':Shape['Blade'],'color':Color['Grey'],'texture':Texture[l(0x1ef)],'rating':Rating['Common'],'weight':0x3});}}function a55c(){var E=['Unknown','1562916SUSriY','Weapon','\x20aloft,\x20feeling\x20its\x20immense\x20power.','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','Metallic','Book','60445pKiZOU','144158vEuVWc','A\x20mysterious\x20book.','Key','toString','apply','search','Small','Yellow','Circle','Sniper\x20Rifle','publishDate','Common','Blade','Rifle','(((.+)+)+)+$','Rare','Helmet','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Gloves','use','You\x20hold\x20the\x20','4lmbdfP','Medium','Holy\x20Grail','author','Smooth','105RiHkcq','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','1733192RFEshY','pageCount','1830ChPTUN','description','ArmArmor','6962958yHYAmc','Large','Boots','name','5746284dhhGCo','5LpJkEW','Cup','BodyArmor','Gold','constructor','Brown','138104cjhDgO','Rectangle','Grey','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Tiny','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','LegArmor'];a55c=function(){return E;};return a55c();}export class Rifle extends Item{constructor(a,b){var m=a55j;super({'name':a,'description':b,'size':Size['Large'],'category':Category[m(0x1ec)],'shape':Shape[m(0x1ff)],'color':Color[m(0x1e2)],'texture':Texture[m(0x1ef)],'rating':Rating[m(0x201)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var n=a55j;super({'name':a,'description':b,'size':Size[n(0x208)],'category':Category[n(0x202)],'shape':Shape[n(0x1fa)],'color':Color[n(0x1e5)],'texture':Texture[n(0x1ef)],'rating':Rating[n(0x1fd)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var o=a55j;super({'name':a,'description':b,'size':Size[o(0x214)],'category':Category[o(0x1df)],'shape':Shape[o(0x1e4)],'color':Color['Grey'],'texture':Texture[o(0x1ef)],'rating':Rating[o(0x1fd)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var p=a55j;super({'name':a,'description':b,'size':Size[p(0x208)],'category':Category[p(0x1e9)],'shape':Shape[p(0x1e4)],'color':Color['Grey'],'texture':Texture[p(0x1ef)],'rating':Rating[p(0x1fd)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var q=a55j;super({'name':a,'description':b,'size':Size[q(0x208)],'category':Category[q(0x215)],'shape':Shape[q(0x1fa)],'color':Color[q(0x1e2)],'texture':Texture[q(0x20b)],'rating':Rating[q(0x1fd)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var r=a55j;super({'name':a,'description':b,'size':Size['Small'],'category':Category[r(0x204)],'shape':Shape[r(0x1fa)],'color':Color[r(0x1e2)],'texture':Texture['Smooth'],'rating':Rating[r(0x1fd)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a55j;super({'name':a,'description':b,'size':Size[s(0x208)],'category':Category[s(0x212)],'shape':Shape[s(0x1e4)],'color':Color[s(0x1e5)],'texture':Texture[s(0x1ef)],'rating':Rating['Common'],'weight':0x3});}}export class Key extends Item{constructor(a,b){var t=a55j;super({'name':a,'description':b,'size':Size[t(0x1e7)],'category':Category[t(0x1f4)],'shape':Shape['Rectangle'],'color':Color[t(0x1f9)],'texture':Texture[t(0x20b)],'rating':Rating[t(0x1fd)],'weight':0x0});}[a55j(0x205)](){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 u=a55j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[u(0x1ec)],'shape':Shape[u(0x1fe)],'color':Color[u(0x1e5)],'texture':Texture[u(0x1ef)],'rating':Rating[u(0x1fd)],'weight':0x3});}[a55j(0x205)](){var v=a55j;return v(0x203);}}export class Book extends Item{[a55j(0x20a)];[a55j(0x1fc)];[a55j(0x20f)];constructor(a,b=a55j(0x1f3),c='Unknown\x20Author'){var w=a55j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[w(0x1f0)],'shape':Shape[w(0x1e4)],'color':Color['Brown'],'texture':Texture[w(0x20b)],'rating':Rating[w(0x1fd)],'weight':0x1}),this[w(0x20a)]=c,this[w(0x1fc)]=new Date(),this[w(0x20f)]=0x64;}[a55j(0x205)](){var x=a55j;return x(0x1ee);}}export class ShortSword extends Item{constructor(){var y=a55j;super({'name':'Short\x20Sword','description':y(0x20d),'size':Size['Medium'],'category':Category[y(0x1ec)],'shape':Shape[y(0x1fe)],'color':Color[y(0x1e5)],'texture':Texture[y(0x1ef)],'rating':Rating[y(0x1fd)],'weight':0x3});}[a55j(0x205)](){var z=a55j;return z(0x203);}}export class SniperRifle extends Item{constructor(){var A=a55j;super({'name':A(0x1fb),'description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size[A(0x214)],'category':Category[A(0x1ec)],'shape':Shape[A(0x1ff)],'color':Color[A(0x1e2)],'texture':Texture['Smooth'],'rating':Rating['Common'],'weight':0x5});}[a55j(0x205)](){var B=a55j;return B(0x1e6);}}export class HolyGrail extends Item{constructor(){var C=a55j;super({'name':C(0x209),'description':C(0x1e8),'size':Size[C(0x1f8)],'category':Category[C(0x219)],'shape':Shape[C(0x1fa)],'color':Color[C(0x1e0)],'texture':Texture[C(0x1ef)],'rating':Rating['Legendary'],'weight':0x1});}[a55j(0x205)](){var D=a55j;return D(0x206)+this[D(0x216)]+D(0x1ed);}}
|