@maka/maka-cli 4.9.7 → 4.9.8
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 a36j=a36d;(function(a,b){const g=a36d,c=a();while(!![]){try{const d=-parseInt(g(
|
|
1
|
+
const a36j=a36d;(function(a,b){const g=a36d,c=a();while(!![]){try{const d=-parseInt(g(0x1b3))/0x1+parseInt(g(0x1c5))/0x2*(parseInt(g(0x1ca))/0x3)+-parseInt(g(0x1cc))/0x4+-parseInt(g(0x1c6))/0x5+-parseInt(g(0x1c0))/0x6+parseInt(g(0x1cf))/0x7+parseInt(g(0x1b6))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x68de7));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a36d;if(c){const e=c[h(0x1d0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const i=a36d;return a36a[i(0x1cd)]()[i(0x1c4)](i(0x1b4))[i(0x1cd)]()[i(0x1c9)](a36a)['search'](i(0x1b4));});function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x1b3;let f=c[d];return f;},a36d(a,b);}a36a();function a36c(){const m=['764457mNuRgA','log','419836mXTIyl','toString',':\x20\x22','3905895scQCiz','apply','context','346651tUlgNZ','(((.+)+)+)+$','\x20says\x20to\x20','6466120fZxWaw','What\x20do\x20you\x20want\x20to\x20say?','description','join','currentLocation','scene','filter','name','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','logger','2203476ezeVDG','say','actor','length','search','2sUZwdC','1863350jioiOP','An\x20error\x20occurred.','execute','constructor'];a36c=function(){return m;};return a36c();}import{Command}from'./command.js';export class SayCommand extends Command{static ['verb']=a36j(0x1c1);static [a36j(0x1b8)]=a36j(0x1be);[a36j(0x1d1)];constructor(a){const k=a36j;super(a),this[k(0x1d1)]=a;}[a36j(0x1c8)](a){const l=a36j;if(a[l(0x1c3)]===0x0)return l(0x1b7);const b=a[l(0x1b9)]('\x20'),c=this['actor'],d=this['context'][l(0x1bb)];if(!d)return this['logger'][l(0x1cb)]('Scene\x20is\x20missing\x20from\x20context.'),l(0x1c7);const e=d['allActors'][l(0x1bc)](f=>f[l(0x1ba)]===c['currentLocation']);for(const f of e){this[l(0x1bf)][l(0x1cb)](c[l(0x1bd)]+l(0x1b5)+f[l(0x1bd)]+l(0x1ce)+b+'\x22'),this[l(0x1c2)][l(0x1ba)]['say'](f,b);}return'You\x20say:\x20\x22'+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37i=a37d;
|
|
1
|
+
const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x9c))/0x1+parseInt(f(0x88))/0x2*(parseInt(f(0x90))/0x3)+parseInt(f(0x8a))/0x4*(-parseInt(f(0xa4))/0x5)+parseInt(f(0x87))/0x6+parseInt(f(0x9f))/0x7+parseInt(f(0xa3))/0x8*(parseInt(f(0x92))/0x9)+parseInt(f(0xa5))/0xa*(-parseInt(f(0x97))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x96456));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x95)]()[h(0x9a)]('(((.+)+)+)+$')[h(0x95)]()['constructor'](a37a)[h(0x9a)](h(0x8c));});function a37c(){const k=['inventory','description','search','\x20found\x20the\x20following\x20items:\x20','333024gRcMcj','logger','name','2405494PIAKbo','join','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','verb','200nDadQm','15vojhZP','173150VHRoqZ','552288rmsUnm','34YwFRUL','execute','416424RxmIVU','You\x20search\x20the\x20area\x20and\x20find:\x20','(((.+)+)+)+$','Search\x20for\x20items\x20in\x20your\x20area','length','listItems','58416xSTVKk','write','243549AiGHdf','SearchCommand:\x20','apply','toString','actor','539XEBtzR'];a37c=function(){return k;};return a37c();}a37a();import{Command}from'./command.js';function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x87;let f=c[d];return f;},a37d(a,b);}export class SearchCommand extends Command{static [a37i(0xa2)]='search';static [a37i(0x99)]=a37i(0x8d);[a37i(0x89)](){const j=a37i,a=this[j(0x96)]['currentLocation'][j(0x98)][j(0x8f)]();if(a[j(0x8e)]===0x0)return this['logger']['write'](j(0x93)+this['actor'][j(0x9e)]+j(0xa1)),'You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.';const b=a[j(0xa0)](',\x20');return this[j(0x9d)][j(0x91)](j(0x93)+this['actor'][j(0x9e)]+j(0x9b)+b),j(0x8b)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a38c(){const
|
|
1
|
+
function a38c(){const j=['toString','6pcZgYC','183975NWErTj','233640vxHlle','execute','currentLocation','1492324IolYWj','573897SRHUca','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','16iewHXI','write','success','message','3072188CBApoj','join','verb','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','491ABWasb','search','rewardItem','addItem','toLowerCase','puzzle','SolveCommand:\x20','inventory','actor','1514QTPiNa','(((.+)+)+)+$','7495100dJpUwq','logger','constructor'];a38c=function(){return j;};return a38c();}const a38h=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0x177))/0x1*(parseInt(f(0x180))/0x2)+-parseInt(f(0x16d))/0x3+parseInt(f(0x16c))/0x4+parseInt(f(0x168))/0x5+parseInt(f(0x167))/0x6*(parseInt(f(0x173))/0x7)+-parseInt(f(0x16f))/0x8*(parseInt(f(0x169))/0x9)+-parseInt(f(0x182))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x37986));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const g=a38d;return a38a[g(0x185)]()[g(0x178)]('(((.+)+)+)+$')[g(0x185)]()[g(0x184)](a38a)[g(0x178)](g(0x181));});function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x167;let f=c[d];return f;},a38d(a,b);}a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a38h(0x175)]='solve';static ['description']='Attempt\x20to\x20solve\x20a\x20puzzle.';[a38h(0x16a)](a){const i=a38h,b=a[i(0x174)]('\x20')[i(0x17b)](),c=this[i(0x17f)][i(0x16b)];if(!c||!c['puzzle'])return this[i(0x183)][i(0x170)](i(0x176)),i(0x16e);const d=c[i(0x17c)]['solve'](b,this['actor'][i(0x17e)]);return d[i(0x171)]&&c[i(0x17c)][i(0x179)]&&this[i(0x17f)][i(0x17e)][i(0x17a)](c[i(0x17c)][i(0x179)]),this[i(0x183)][i(0x170)](i(0x17d)+d[i(0x172)]),d[i(0x172)];}}
|
|
@@ -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(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x1ab))/0x1*(-parseInt(f(0x1bc))/0x2)+parseInt(f(0x1c8))/0x3+-parseInt(f(0x1a3))/0x4+-parseInt(f(0x1a6))/0x5+-parseInt(f(0x1bb))/0x6*(parseInt(f(0x1a5))/0x7)+parseInt(f(0x1c1))/0x8*(-parseInt(f(0x1c6))/0x9)+parseInt(f(0x1c7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x2c38a));function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x19c;let f=c[d];return f;},a39d(a,b);}const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x1ba)]()[h(0x1a8)]('(((.+)+)+)+$')[h(0x1ba)]()[h(0x1b5)](a39a)['search'](h(0x1b2));});function a39c(){const l=['The\x20item\x20\x22','write','\x22\x20to\x20','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','toString','6ECgPqn','5214DceFUU','Error\x20during\x20\x27Take\x27\x20command:\x20','\x22\x20from\x20','message','join','2706616Hznbrj','removeItem','currentLocation','There\x20is\x20no\x20item\x20\x22','\x22\x20is\x20too\x20heavy\x20to\x20carry.','9YueNTJ','11356880bsBIhr','893532ygHHuZ','verb','logger','take','execute','addInventory','Item\x20\x22','\x22\x20not\x20found\x20in\x20','\x20during\x20\x27Take\x27\x20command.','805632GpguIJ','\x22\x20in\x20this\x20room.','941087BsYcIo','1235685PmtPvX','Successfully\x20added\x20\x22','search','You\x20have\x20taken\x20the\x20','apply','127TqkRhm','\x22\x20not\x20retrieved\x20from\x20','getItem','toLowerCase','description','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','actor','(((.+)+)+)+$','name','hasItem','constructor'];a39c=function(){return l;};return a39c();}a39a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a39i(0x1c9)]=a39i(0x19d);static [a39i(0x1af)]='Pick\x20up\x20an\x20item.';[a39i(0x19e)](a){const j=a39i;return this[j(0x19c)]['write']('Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20'+a['join']('\x20')),this[j(0x19d)](a);}[a39i(0x19d)](a){const k=a39i,b=a[k(0x1c0)]('\x20')[k(0x1ae)](),c=this[k(0x1b1)][k(0x1c3)];if(!c['inventory'][k(0x1b4)](b))return this[k(0x19c)][k(0x1b7)]('Item\x20\x22'+b+k(0x1a1)+c[k(0x1b3)]+k(0x1a2)),k(0x1c4)+b+k(0x1a4);const d=c['inventory'][k(0x1ad)](b);if(!d)return this['logger']['write'](k(0x1a0)+b+k(0x1ac)+c[k(0x1b3)]+k(0x1b0)),k(0x1c4)+b+k(0x1a4);try{return this[k(0x1b1)][k(0x19f)](d),this['logger'][k(0x1b7)](k(0x1a7)+b+k(0x1b8)+this[k(0x1b1)]['name']+k(0x1b9)),c['inventory'][k(0x1c2)](b),this[k(0x19c)]['write']('Successfully\x20removed\x20\x22'+b+k(0x1be)+c[k(0x1b3)]+k(0x1b0)),k(0x1a9)+b+'.';}catch(e){return this[k(0x19c)][k(0x1b7)](k(0x1bd)+e[k(0x1bf)]),k(0x1b6)+b+k(0x1c5);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x1a0))/0x1*(parseInt(f(0x1af))/0x2)+parseInt(f(0x1ab))/0x3+parseInt(f(0x1a2))/0x4*(-parseInt(f(0x19b))/0x5)+-parseInt(f(0x1a3))/0x6+parseInt(f(0x1ae))/0x7+parseInt(f(0x19e))/0x8+parseInt(f(0x1a7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xa1faa));function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x19b;let f=c[d];return f;},a40d(a,b);}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x1b1)]()[h(0x1b0)](h(0x1a8))[h(0x1b1)]()[h(0x1ad)](a40a)[h(0x1b0)](h(0x1a8));});a40a();import{Command}from'./command.js';function a40c(){const k=['unqeuip','8500284trtqqg','(((.+)+)+)+$','execute','verb','2311467ghIhOk','UnequipCommand:\x20','constructor','709730esadBg','42CLZwEn','search','toString','description','6247615ZRuCEi','actor','join','10558624FOvcfz','toLowerCase','897AEZEQo','Unequip\x20an\x20item.','4wORqPb','7226142NIraKX','unequip','apply'];a40c=function(){return k;};return a40c();}export class UnequipCommand extends Command{static [a40i(0x1aa)]=a40i(0x1a6);static [a40i(0x1b2)]=a40i(0x1a1);[a40i(0x1a9)](a){const j=a40i,b=a[j(0x19d)]('\x20')[j(0x19f)](),c=this[j(0x19c)][j(0x1a4)](b);return this['logger']['write'](j(0x1ac)+this[j(0x19c)]['name']+'\x20unqeuiped\x20'+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(0x18f))/0x1+-parseInt(h(0x18a))/0x2*(-parseInt(h(0x187))/0x3)+parseInt(h(0x198))/0x4+parseInt(h(0x1ac))/0x5+-parseInt(h(0x1a3))/0x6+parseInt(h(0x190))/0x7+-parseInt(h(0x191))/0x8*(parseInt(h(0x1a4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xd2a32));function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x185;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(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a[j(0x188)]()[j(0x196)](j(0x1a6))['toString']()[j(0x1ad)](a41a)['search']('(((.+)+)+)+$');});a41a();import{Door}from'../models/door.js';import{Command}from'./command.js';function a41c(){const n=['execute','.\x20Result:\x20','verb','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','isValidDirection','actor','hasItem','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','238956XNQBBi','9pBilXM','apply','(((.+)+)+)+$','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','name','unlock','get','UnlockCommand:\x20No\x20target\x20specified.','4185880oxxlaU','constructor','logger','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','99mlbXDw','toString','UnlockCommand:\x20','24958CKmfrM','currentLocation','write','length','error','1654486utDBtN','4004511aLzMmI','175624zygnUg','\x20is\x20attempted\x20to\x20unlock\x20','has','Unlock\x20a\x20door.','\x22\x20here.','search','exits','3031916vsxmpi','There\x27s\x20no\x20door\x20named\x20\x22','unlockItemOrSolution'];a41c=function(){return n;};return a41c();}export class UnlockCommand extends Command{static [a41k(0x19d)]='unlock';static ['description']=a41k(0x194);[a41k(0x19b)](a){const l=a41k;return this[l(0x1a9)](a);}[a41k(0x1a9)](a){const m=a41k;if(a[m(0x18d)]===0x0)return this[m(0x185)][m(0x18e)](m(0x1ab)),m(0x186);const b=a[0x0]['toLowerCase'](),c=this['actor'][m(0x18b)];if(this[m(0x19f)](b)&&c[m(0x197)][m(0x193)](b)){const d=c[m(0x197)][m(0x1aa)](b);if(d instanceof Door){const e=d[m(0x19a)]?.['toLowerCase']();if(e&&this[m(0x1a0)]['inventory'][m(0x1a1)](e)){const f=this[m(0x1a0)]['inventory']['getItem'](e);if(f){const g=c['attemptUnlockExit'](b,f['name']);return this[m(0x185)][m(0x18c)](m(0x189)+this['actor'][m(0x1a8)]+m(0x192)+b+m(0x19c)+g),g;}}return this['logger'][m(0x18c)](m(0x189)+this[m(0x1a0)]['name']+m(0x1a7)+b+'.'),m(0x19e);}else return this['logger'][m(0x18c)](m(0x189)+b+m(0x1a2)+c['name']+'.'),m(0x199)+b+m(0x195);}else return this[m(0x185)][m(0x18c)](m(0x189)+b+m(0x1a2)+c[m(0x1a8)]+'.'),m(0x199)+b+m(0x195);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x175;let f=c[d];return f;},a42d(a,b);}const a42h=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x192))/0x1+parseInt(f(0x179))/0x2+-parseInt(f(0x175))/0x3*(-parseInt(f(0x178))/0x4)+-parseInt(f(0x17c))/0x5+-parseInt(f(0x18a))/0x6*(-parseInt(f(0x185))/0x7)+-parseInt(f(0x182))/0x8+parseInt(f(0x18d))/0x9*(-parseInt(f(0x177))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x93c25));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const g=a42d;return a42a[g(0x191)]()[g(0x17a)](g(0x184))[g(0x191)]()[g(0x183)](a42a)[g(0x17a)](g(0x184));});function a42c(){const k=['constructor','(((.+)+)+)+$','673701eqcXHi','You\x20don\x27t\x20have\x20the\x20','inventory',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','\x20in\x20this\x20way.','6YvDbmV','logger','write','3006avhISj','UseCommand:\x20','\x20to\x20use.','execute','toString','571108uKhFZa','345VGWcMU','join','16270goSVHD','26600JeoJlu','1832702HRdhJp','search','function','3526625MKeHzd','toLowerCase','use','name','actor','\x20doesn\x27t\x20have\x20a\x20use\x20method.','3955904RUXNWs'];a42c=function(){return k;};return a42c();}a42a();import{Command}from'./command.js';export class UseCommand extends Command{static ['verb']=a42h(0x17e);static ['description']='Use\x20an\x20item.';[a42h(0x190)](a){const i=a42h;return this[i(0x17e)](a);}[a42h(0x17e)](a){const j=a42h,b=a[j(0x176)]('\x20')[j(0x17d)]();if(!this['actor'][j(0x187)]['hasItem'](b))return this[j(0x18b)][j(0x18c)](j(0x18e)+this[j(0x180)][j(0x17f)]+'\x20attempted\x20to\x20use\x20'+b+j(0x188)),j(0x186)+b+j(0x18f);const c=this['actor']['inventory']['getItem'](b);if(!c)return this[j(0x18b)][j(0x18c)]('UseCommand:\x20'+b+'\x20not\x20retrieved\x20from\x20'+this[j(0x180)][j(0x17f)]+'\x27s\x20inventory.'),'You\x20don\x27t\x20have\x20the\x20'+b+j(0x18f);if(typeof c[j(0x17e)]===j(0x17b)){const d=c[j(0x17e)]();return this['logger'][j(0x18c)](j(0x18e)+this[j(0x180)][j(0x17f)]+'\x20used\x20'+b+'.'),d;}else return this['logger'][j(0x18c)](j(0x18e)+b+j(0x181)),'You\x20can\x27t\x20use\x20the\x20'+b+j(0x189);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a43i=a43d;
|
|
1
|
+
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x1ea))/0x1+-parseInt(f(0x1f0))/0x2+-parseInt(f(0x1e7))/0x3+-parseInt(f(0x1e8))/0x4+-parseInt(f(0x1e9))/0x5+-parseInt(f(0x1f2))/0x6+parseInt(f(0x1ec))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xd11f2));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x1f4)]()[h(0x1f1)](h(0x1eb))[h(0x1f4)]()[h(0x1ee)](a43a)['search']('(((.+)+)+)+$');});function a43c(){const m=['44070019rKuXHy','commandMap','constructor','registerCommand','2187202uGkTse','search','3896388cRoRcK','apply','toString','787725CNmbqg','5049340UNduQw','6069235tPQThQ','957399EkBCYi','(((.+)+)+)+$'];a43c=function(){return m;};return a43c();}function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a43d(a,b);}a43a();export class CommandFactory{static [a43i(0x1ed)]={};static[a43i(0x1ef)](a,b){const j=a43i;this[j(0x1ed)][a]=b;}static['createCommand'](a,b){const k=a43i,c=this[k(0x1ed)][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){const l=a43i;return this[l(0x1ed)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a44h=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(0x180))/0x1*(-parseInt(f(0x18e))/0x2)+-parseInt(f(0x196))/0x3+-parseInt(f(0x192))/0x4*(parseInt(f(0x193))/0x5)+-parseInt(f(0x181))/0x6*(-parseInt(f(0x18c))/0x7)+-parseInt(f(0x18f))/0x8*(-parseInt(f(0x198))/0x9)+parseInt(f(0x178))/0xa+-parseInt(f(0x195))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x2ff6a));function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x178;let f=c[d];return f;},a44d(a,b);}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[g(0x183)]()[g(0x17d)](g(0x188))[g(0x183)]()['constructor'](a44a)['search'](g(0x188));});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(0x17b)](a){const i=a44h,b=this[i(0x19b)](a),c=new Room(b);if(a['items']){const d=new Inventory();a[i(0x199)][i(0x184)](e=>{const j=i;d['addItem'](this[j(0x187)](e));}),c[i(0x18a)]=d;}return a[i(0x19c)]&&c['setPuzzle'](this[i(0x194)](a['puzzle'])),c;}[a44h(0x187)](a){const k=a44h;switch(a['type']){case k(0x182):return new Key(a['name'],a['description']);case k(0x18d):return new Book(a[k(0x17e)],a[k(0x186)],a[k(0x17c)]);case k(0x179):return new Sword(a[k(0x17e)],a[k(0x186)]);case k(0x185):return new Rifle(a[k(0x17e)],a[k(0x186)]);case k(0x19d):return new Helmet(a[k(0x17e)],a[k(0x186)]);case k(0x19a):return new BodyArmor(a['name'],a[k(0x186)]);case'legarmor':return new LegArmor(a[k(0x17e)],a[k(0x186)]);case k(0x197):return new Boots(a[k(0x17e)],a[k(0x186)]);case k(0x190):return new Gloves(a[k(0x17e)],a['description']);case k(0x189):return new Gauntlets(a[k(0x17e)],a[k(0x186)]);default:return new BasicItem(a[k(0x17e)],a[k(0x186)]);}}['createPuzzle'](a){const l=a44h,b=this[l(0x187)](a[l(0x17f)]);return new Puzzle({...a,'rewardItem':b});}[a44h(0x19b)](a){const m=a44h,b=a[m(0x19e)]&&RoomType[a[m(0x19e)][m(0x18b)]()]?RoomType[a[m(0x19e)]['toUpperCase']()]:RoomType[m(0x191)];return{'name':a[m(0x17e)],'description':a[m(0x186)],'isStartRoom':a[m(0x17a)],'roomType':b};}}function a44c(){const n=['bodyarmor','convertToRoomConfig','puzzle','helmet','roomType','433420AthIyD','sword','isStartRoom','createRoom','content','search','name','rewardItem','385817hSNJxu','102ODhdPz','key','toString','forEach','rifle','description','createItem','(((.+)+)+)+$','gauntlets','inventory','toUpperCase','145187WEWTLG','book','2BZYDsF','28744isqKru','gloves','INSIDE','82356IjCFlv','20FlQXsT','createPuzzle','5109687ANWUkT','481761giBdkM','boots','306bSnLCw','items'];a44c=function(){return n;};return a44c();}
|
|
@@ -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(0x1a9))/0x1+parseInt(h(0x1af))/0x2+parseInt(h(0x198))/0x3*(parseInt(h(0x1ae))/0x4)+-parseInt(h(0x1a6))/0x5*(parseInt(h(0x1b0))/0x6)+parseInt(h(0x195))/0x7*(-parseInt(h(0x1c4))/0x8)+-parseInt(h(0x1a0))/0x9*(parseInt(h(0x1ac))/0xa)+parseInt(h(0x1c6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xce2df));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a45d;if(c){const e=c[i(0x1ad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const j=a45d;return a45a[j(0x1be)]()[j(0x1a3)]('(((.+)+)+)+$')['toString']()[j(0x1bb)](a45a)[j(0x1a3)]('(((.+)+)+)+$');});a45a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';function a45c(){const r=['registerCommands','help','constructor','equip','hasOwnProperty','toString','currentRoom','createCommand','quit','Available\x20Commands:\x0a','look','7609088CVnbPv','registerCommand','18595379nctwlc','slice','-\x20clear:\x20Clear\x20the\x20screen.\x0a','getRooms','getInstance','7pXZwGb','unequip','getHelpMessage','12ZoMwfz','player','name','lock','-\x20quit:\x20Exit\x20the\x20game.\x0a','determineStartRoom','maka','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','10359mACmBp','say','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','search','handleInput','Welcome,\x20','2786095BJYXbQ','instance','getAllRegisteredCommands','700327oPTYnu','scene','execute','5010tqEprl','apply','1505080lloaVU','3097426plIKtd','18bVdkil','clear','toLowerCase','split','drop','getDescription','currentLocation','use','unlock'];a45c=function(){return r;};return a45c();}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';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x192;let f=c[d];return f;},a45d(a,b);}export default class Game{static [a45k(0x1a7)];[a45k(0x1aa)];[a45k(0x199)];[a45k(0x1bf)];['rooms'];constructor(a,b){const l=a45k;this['player']=a,this[l(0x1aa)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x1aa)]['initialize'](),this[l(0x199)][l(0x1b6)]=this['determineStartRoom'](),this['registerCommands']();}[a45k(0x1b9)](){const m=a45k;CommandFactory[m(0x1c5)](m(0x1c3),LookCommand),CommandFactory[m(0x1c5)]('go',GoCommand),CommandFactory[m(0x1c5)]('take',TakeCommand),CommandFactory[m(0x1c5)](m(0x1b7),UseCommand),CommandFactory[m(0x1c5)](m(0x1bc),EquipCommand),CommandFactory[m(0x1c5)](m(0x196),UnequipCommand),CommandFactory[m(0x1c5)]('solve',SolveCommand),CommandFactory[m(0x1c5)](m(0x1b4),DropCommand),CommandFactory[m(0x1c5)](m(0x1b8),UnlockCommand),CommandFactory['registerCommand'](m(0x19b),LockCommand),CommandFactory[m(0x1c5)](m(0x1a3),SearchCommand),CommandFactory[m(0x1c5)](m(0x1a1),SayCommand);}[a45k(0x19d)](){return this['scene']['determineStartRoom']();}['getWelcomeMessage'](){const n=a45k;return n(0x1a5)+this[n(0x199)][n(0x19a)];}static[a45k(0x194)](a,b){const o=a45k;return!Game['instance']&&(Game[o(0x1a7)]=new Game(a,b)),Game[o(0x1a7)];}[a45k(0x1a4)](a){const p=a45k,b=a['trim']()[p(0x1b3)]('\x20'),c=b[0x0][p(0x1b2)](),d=b[p(0x1c7)](0x1);if(c===p(0x1c1))return null;if(c===p(0x19e))return p(0x19f);if(c===p(0x1ba))return this[p(0x197)]();if(c===p(0x1b1))return'';const e={'actor':this[p(0x199)],'rooms':this[p(0x1aa)][p(0x193)](),'scene':this[p(0x1aa)]},f=CommandFactory[p(0x1c0)](c,e);if(f){const g=f[p(0x1ab)](d);return g;}return p(0x1a2)+c+'\x22.';}['getHelpMessage'](){const q=a45k,a=CommandFactory[q(0x1a8)]();let b=q(0x1c2);for(const c in a){if(a[q(0x1bd)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[q(0x1b5)]()+'\x0a';}}return b+=q(0x192),b+=q(0x19c),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0xd8))/0x1+parseInt(f(0xda))/0x2*(parseInt(f(0xdd))/0x3)+parseInt(f(0xd0))/0x4*(-parseInt(f(0xd4))/0x5)+parseInt(f(0xd1))/0x6*(-parseInt(f(0xd5))/0x7)+parseInt(f(0xd7))/0x8+parseInt(f(0xd6))/0x9+parseInt(f(0xd3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xcf67b));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var g=a46d;return a46a['toString']()[g(0xdc)]('(((.+)+)+)+$')[g(0xd9)]()[g(0xdb)](a46a)[g(0xdc)](g(0xd2));});a46a();export*from'./door.js';function a46c(){var h=['49icTVKg','7525233EkVwwe','7417520NDIUxZ','379491pfGMgz','toString','105102MVOycV','constructor','search','3XPJdXR','4joNURZ','841902cCYKmx','(((.+)+)+)+$','20228910lCULAL','8137640FcfmsD'];a46c=function(){return h;};return a46c();}export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xd0;var f=c[d];return f;},a46d(a,b);}export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a47h=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=-parseInt(f(0xe1))/0x1*(parseInt(f(0xe4))/0x2)+-parseInt(f(0xe3))/0x3+-parseInt(f(0xe5))/0x4+-parseInt(f(0xef))/0x5+parseInt(f(0xec))/0x6*(parseInt(f(0xee))/0x7)+parseInt(f(0xdf))/0x8+parseInt(f(0xea))/0x9*(parseInt(f(0xd1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xc42e8));var a47b=(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;};}()),a47a=a47b(this,function(){var g=a47d;return a47a[g(0xeb)]()[g(0xe6)]('(((.+)+)+)+$')[g(0xeb)]()[g(0xd6)](a47a)[g(0xe6)](g(0xe2));});a47a();function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0xd1;var f=c[d];return f;},a47d(a,b);}import{Logger}from'../utilities/logger.js';function a47c(){var l=['write','checkIfLockable','.\x20Used:\x20','.\x20Is\x20Locked:\x20','constructor','attemptUnlock','isLocked','To\x20','name','roomA','isLockable','roomB','logger','11227504WIzSTU','Door\x20created\x20between\x20','268kaTeZl','(((.+)+)+)+$','3489066KdpsRH','2122qLLEsL','1393488RQOPbb','search','checkIfLocked','unlockItemOrSolution','Door\x20unlocked:\x20','1312551ewNqBA','toString','6eVQMEM','\x20and\x20','10475297vBiSKV','5878205ukitHi','60lPsYmq'];a47c=function(){return l;};return a47c();}import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a47h(0xdb)];[a47h(0xdd)];[a47h(0xd8)];[a47h(0xe8)];[a47h(0xda)];[a47h(0xde)];[a47h(0xdc)];constructor(a){var i=a47h;super(),this[i(0xdb)]=a[i(0xdb)],this[i(0xdd)]=a[i(0xdd)],this[i(0xd8)]=a[i(0xd8)]||![],this[i(0xe8)]=a[i(0xe8)],this[i(0xda)]=a[i(0xda)]?capitalCase(a[i(0xda)]):i(0xd9)+a[i(0xdd)][i(0xda)],this[i(0xde)]=Logger['getInstance'](),this['isLockable']=!!a['unlockItemOrSolution'],this[i(0xde)][i(0xd2)](i(0xe0)+this[i(0xdb)][i(0xda)]+i(0xed)+this[i(0xdd)][i(0xda)]+i(0xd5)+this['isLocked']);}['getOtherSide'](a){var j=a47h;return this['roomA']===a?this[j(0xdd)]:this[j(0xdb)];}[a47h(0xd7)](a){var k=a47h;if(this[k(0xd8)]&&this[k(0xe8)]&&this[k(0xe8)]===a)return this[k(0xd8)]=![],this['logger'][k(0xd2)](k(0xe9)+this[k(0xda)]+k(0xd4)+a),!![];return this[k(0xde)][k(0xd2)]('Failed\x20to\x20unlock\x20door:\x20'+this[k(0xda)]+k(0xd4)+a),![];}[a47h(0xe7)](){return this['isLocked'];}[a47h(0xd3)](){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(0x201))/0x1+parseInt(f(0x1f3))/0x2+-parseInt(f(0x203))/0x3+-parseInt(f(0x1f9))/0x4+parseInt(f(0x200))/0x5*(parseInt(f(0x1dc))/0x6)+-parseInt(f(0x1e9))/0x7*(parseInt(f(0x1f5))/0x8)+-parseInt(f(0x1e5))/0x9*(parseInt(f(0x1e7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xba358));function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x1dc;let f=c[d];return f;},a48d(a,b);}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['toString']()['search']('(((.+)+)+)+$')[g(0x1f8)]()[g(0x1ff)](a48a)[g(0x1fe)]('(((.+)+)+)+$');});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';function a48c(){const q=['776232tBftXz','Removed\x20item:\x20','50qQXFbb','Failed\x20to\x20remove\x20item:\x20','14777Dnpapq','items','Retrieved\x20details\x20for\x20item:\x20','getItem','.\x20Exists:\x20','Added\x20item:\x20','name','map','\x20to\x20inventory.','has','2328094VryCzT','getWeight','1736FeadwX','keys','toLowerCase','toString','413672JycLDx','join','values','getInstance','weight','search','constructor','5410LjnyGE','195192qLdvTj','Checked\x20for\x20item:\x20','502512UTuEqB','addItem','\x20from\x20inventory.','3126BpGciT','write','set','getAllItems','logger','get','.\x20Item\x20not\x20found.','delete','Listed\x20items\x20in\x20inventory:\x20'];a48c=function(){return q;};return a48c();}import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48h(0x1ea)];['logger'];constructor(){const i=a48h;super(),this['items']=new Map(),this['logger']=Logger[i(0x1fc)]();}[a48h(0x204)](a){const j=a48h;this[j(0x1ea)][j(0x1de)](a[j(0x1ef)][j(0x1f7)](),a),this[j(0x1e0)][j(0x1dd)](j(0x1ee)+a[j(0x1ef)]+j(0x1f1));}['removeItem'](a){const k=a48h,b=this[k(0x1ec)](a);if(b)return this[k(0x1ea)][k(0x1e3)](a[k(0x1f7)]()),this[k(0x1e0)]['write'](k(0x1e6)+a+k(0x205)),b;return this[k(0x1e0)][k(0x1dd)](k(0x1e8)+a+k(0x1e2)),null;}['hasItem'](a){const l=a48h,b=this[l(0x1ea)][l(0x1f2)](a[l(0x1f7)]()),c=[...this['items'][l(0x1f6)]()];return this[l(0x1e0)]['write'](l(0x202)+a+'\x20in\x20'+c[l(0x1fa)](',\x20')+l(0x1ed)+b+'.'),b;}['getItem'](a){const m=a48h,b=this[m(0x1ea)][m(0x1e1)](a[m(0x1f7)]())||null;return b?this[m(0x1e0)]['write'](m(0x1eb)+a+'.'):this[m(0x1e0)][m(0x1dd)]('Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'+a+m(0x1e2)),b;}['listItems'](){const n=a48h,a=[...this['items'][n(0x1f6)]()],b=a[n(0x1f0)](c=>capitalCase(c));return this[n(0x1e0)][n(0x1dd)](n(0x1e4)+b[n(0x1fa)](',\x20')+'.'),a;}[a48h(0x1f4)](){const o=a48h;let a=0x0;for(const b of this[o(0x1ea)][o(0x1fb)]()){a+=b[o(0x1fd)];}return a;}[a48h(0x1df)](){const p=a48h;return[...this[p(0x1ea)][p(0x1fb)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;function a49c(){var l=['
|
|
1
|
+
var a49i=a49d;function a49c(){var l=['1152plTgMl','category','use','12030RldJPi','2857370sKErRp','228doxyCg','uuid','52203SqAShR','color','name','texture','rating','toString','157618FTLjnU','constructor','description','size','183589mAhmyo','253GungJh','apply','weight','2214ymfpRX','402712lfjMmk','search','9sROCXL','174TpofOm','.\x20Nothing\x20special\x20happens.','shape'];a49c=function(){return l;};return a49c();}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x122))/0x1*(-parseInt(f(0x117))/0x2)+-parseInt(f(0x12d))/0x3*(parseInt(f(0x12b))/0x4)+parseInt(f(0x12a))/0x5+-parseInt(f(0x123))/0x6*(-parseInt(f(0x11b))/0x7)+parseInt(f(0x120))/0x8+parseInt(f(0x11f))/0x9*(-parseInt(f(0x129))/0xa)+-parseInt(f(0x11c))/0xb*(-parseInt(f(0x126))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xc4cca));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a['toString']()[h(0x121)]('(((.+)+)+)+$')[h(0x116)]()[h(0x118)](a49a)['search']('(((.+)+)+)+$');});function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x115;var f=c[d];return f;},a49d(a,b);}a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a49i(0x12c)];['name'];[a49i(0x119)];[a49i(0x11a)];[a49i(0x127)];[a49i(0x125)];[a49i(0x12e)];[a49i(0x130)];[a49i(0x115)];[a49i(0x11e)];constructor(a){var j=a49i;super(),this[j(0x12f)]=a[j(0x12f)],this[j(0x119)]=a[j(0x119)],this['size']=a[j(0x11a)],this[j(0x127)]=a[j(0x127)],this['shape']=a[j(0x125)],this['color']=a[j(0x12e)],this['texture']=a[j(0x130)],this[j(0x115)]=a[j(0x115)],this[j(0x11e)]=a['weight'],this['uuid']=a49e();}[a49i(0x128)](){var k=a49i;return'You\x20use\x20the\x20'+this[k(0x12f)]+k(0x124);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a50c(){const o=['4583968eAfIgg','length','45NByESx','constructor','apply','(((.+)+)+)+$','scene','1482658BpwAIz','moveTo','toString','rooms','_name','2036730aLrNOd','name','random','28133lvQEJk','1176422zITtmu','_dialogue','3hynCxf','floor','speak','search','6269370wNOkmf','5183570rBoGYZ','autonomousMove','8uPtRYC'];a50c=function(){return o;};return a50c();}const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0xbe))/0x1+-parseInt(f(0xc7))/0x2+-parseInt(f(0xc9))/0x3*(parseInt(f(0xb7))/0x4)+parseInt(f(0xb4))/0x5+-parseInt(f(0xb3))/0x6+parseInt(f(0xc6))/0x7*(parseInt(f(0xb6))/0x8)+-parseInt(f(0xb9))/0x9*(-parseInt(f(0xc3))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xba322));function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xb3;let f=c[d];return f;},a50d(a,b);}const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a['toString']()['search'](h(0xbc))[h(0xc0)]()[h(0xba)](a50a)[h(0xcc)]('(((.+)+)+)+$');});a50a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a50i(0xc2)];['_dialogue'];[a50i(0xc1)];[a50i(0xbd)];constructor(a,b,c,d){const j=a50i;super(d),this[j(0xc2)]=a,this['_dialogue']=b,this[j(0xc1)]=c;}get[a50i(0xc4)](){const k=a50i;return this[k(0xc2)];}[a50i(0xcb)](){const l=a50i;return this[l(0xc8)][Math['floor'](Math[l(0xc5)]()*this[l(0xc8)][l(0xb8)])];}[a50i(0xb5)](a){const m=a50i,b=a[Math[m(0xca)](Math[m(0xc5)]()*a[m(0xb8)])];this[m(0xbf)](b[m(0xc4)]);}[a50i(0xbf)](a){const n=a50i,b={'actor':this,'rooms':this[n(0xc1)],'scene':this['scene']},c=new GoCommand(b);c['execute']([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51h=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0xd8))/0x1+-parseInt(f(0xac))/0x2+parseInt(f(0x97))/0x3*(-parseInt(f(0xd0))/0x4)+-parseInt(f(0xb1))/0x5+-parseInt(f(0xbc))/0x6*(-parseInt(f(0xce))/0x7)+-parseInt(f(0xc2))/0x8+parseInt(f(0x9d))/0x9*(parseInt(f(0xd5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xd9673));function a51c(){const z=['write','\x20to\x20player\x27s\x20inventory.','name','category','includes','removeInventory','playerName','error','arms','Hat','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','bodyarmor','determineEquipmentSlot','_maxCarryingWeight','2535746CjvUut','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','Shield','inventory','getWeight','1710480LLcnia','Added\x20','bind','arm\x20armor','toString','\x20from\x20player\x27s\x20inventory.','_equipment','enterRoom','legs','shield','logger','2626134dTRmhg','removeItem','ArmArmor','Failed\x20to\x20remove\x20','boots','leaveRoom','11996256fiAGzI','maxCarryingWeight','weapon','Weapon','\x20is\x20now\x20listening\x20in\x20room\x20','You\x20don\x27t\x20have\x20','\x20in\x20your\x20inventory.','getInstance','A\x20featureless\x20room','unequipBySlot','_currentLocation','\x20says:\x20\x22','14kNovLf','hear','44Bjhlwc','Boots','log','Invalid\x20category\x20or\x20slot:\x20','Helmet','10aiRoZI','torso','search','901304mptxSo','canEquip','weight','addInventory','helmet','gloves','Gloves','BodyArmor','inventoryItems','off','feet','leftHand','body\x20armor','initialEquipment','(((.+)+)+)+$','legarmor','toLowerCase','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','constructor','_playerName','You\x20can\x27t\x20equip\x20','You\x20equipped\x20','\x20is\x20no\x20longer\x20listeng\x20in\x20','equipment','currentWeight','armarmor','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','19581BIrnlw','speak','You\x20unequipped\x20','\x20slot.','_inventory','hat','20655891ncdGUW'];a51c=function(){return z;};return a51c();}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(0xb5)]()[g(0xd7)](g(0x8a))[g(0xb5)]()[g(0x8e)](a51a)[g(0xd7)]('(((.+)+)+)+$');});a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x87;let f=c[d];return f;},a51d(a,b);}import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a51h(0x8f)];[a51h(0xcc)];[a51h(0x9b)];['_equipment'];['_maxCarryingWeight']=0x32;[a51h(0xbb)];constructor(a){const i=a51h;super(),this[i(0x8f)]=a[i(0xa4)],this[i(0xcc)]=a['startLocation']||new Room({'name':'Nexus','description':i(0xca)}),this[i(0x9b)]=new Inventory(),this['logger']=Logger[i(0xc9)]();if(a?.[i(0xe0)])for(const b of a['inventoryItems']){this['_inventory']['addItem'](b);}this[i(0xb7)]=a?.[i(0x89)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51h(0xa0)](){const j=a51h;return this[j(0x8f)];}get['currentLocation'](){return this['_currentLocation'];}set['currentLocation'](a){const k=a51h;this[k(0xcc)]!==a&&(this[k(0xc1)](),this[k(0xb8)](a)),this['_currentLocation']=a;}get[a51h(0xaf)](){const l=a51h;return this[l(0x9b)];}get[a51h(0x93)](){return this['_equipment'];}set[a51h(0x93)](a){this['_equipment']=a;}get[a51h(0xc3)](){const m=a51h;return this[m(0xab)];}set[a51h(0xc3)](a){const n=a51h;a>0x0?this['_maxCarryingWeight']=a:console[n(0xa5)]('Max\x20carrying\x20weight\x20must\x20be\x20positive.');}get[a51h(0x94)](){const o=a51h;let a=this[o(0x9b)][o(0xb0)]();for(const b in this[o(0xb7)]){const c=this['_equipment'][b];c&&(a+=c['weight']);}return a;}[a51h(0xdb)](a){const p=a51h;if(this[p(0x94)]+a[p(0xda)]>this['maxCarryingWeight']){this[p(0xbb)][p(0x9e)](p(0xad));throw new Error(p(0xa8));}this[p(0x9b)]['addItem'](a),this[p(0xbb)]['write'](p(0xb2)+a['name']+p(0x9f));}[a51h(0xa3)](a){const q=a51h;if(this['_inventory'][q(0xbd)](a[q(0xa0)]))return this[q(0xbb)][q(0x9e)]('Removed\x20'+a[q(0xa0)]+q(0xb6)),!![];return this[q(0xbb)][q(0x9e)](q(0xbf)+a['name']+q(0xb6)),![];}['equip'](a){const r=a51h;if(!this[r(0x9b)]['hasItem'](a[r(0xa0)]))return r(0xc7)+a[r(0xa0)]+r(0xc8);if(!this[r(0xd9)](a))return r(0x90)+a[r(0xa0)]+'.';const b=this[r(0xaa)](a[r(0xa1)]);if(!b)return a[r(0xa0)]+r(0x8d);if(this[r(0x93)][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this['equipment'][b]=a,this[r(0xa3)](a),r(0x91)+a['name']+'.';}['unequip'](a){const s=a51h;let b=a;if(!this['equipment'][camelCase(b)]){b=this[s(0xaa)](a);if(!b)return s(0xd3)+a+'.';}return this['unequipBySlot'](b);}['determineEquipmentSlot'](a){const t=a51h;switch(a['toLowerCase']()){case Category[t(0xc5)][t(0x8c)]():return'rightHand';case Category[t(0xae)]['toLowerCase']():return t(0x87);case Category[t(0xde)]['toLowerCase']():return t(0xdd);case Category[t(0xd4)][t(0x8c)]():case Category[t(0xa7)][t(0x8c)]():return'head';case Category[t(0xd1)][t(0x8c)]():return'feet';case Category['LegArmor'][t(0x8c)]():return t(0xb9);case Category[t(0xbe)]['toLowerCase']():return'arms';case Category[t(0xdf)][t(0x8c)]():return'torso';case t(0xc4):return'rightHand';case t(0xba):return t(0x87);case t(0xdd):return t(0xdd);case t(0xdc):case t(0x9c):return'head';case t(0xc0):return t(0xe2);case'leg\x20armor':case t(0x8b):return t(0xb9);case t(0xb4):case t(0x95):return t(0xa6);case t(0x88):case t(0xa9):case t(0xd6):return'torso';default:return null;}}[a51h(0xd9)](a){const u=a51h;return Object['values'](Category)[u(0xa2)](a['category']);}[a51h(0xcb)](a){const v=a51h,b=this[v(0x93)][a];if(!b)return v(0x96)+a+v(0x9a);return this['addInventory'](b),this[v(0x93)][a]=null,v(0x99)+b[v(0xa0)]+'.';}[a51h(0xcf)](a,b){const w=a51h;a!==this&&this[w(0xbb)][w(0xd2)](a[w(0xa0)]+w(0xcd)+b+'\x22');}[a51h(0xb8)](a){const x=a51h;this[x(0xcc)]=a,a['on'](x(0x98),this[x(0xcf)]['bind'](this)),this[x(0xbb)]['write'](this[x(0xa0)]+x(0xc6)+a[x(0xa0)]);}[a51h(0xc1)](){const y=a51h;this['_currentLocation']&&(this[y(0xcc)][y(0xe1)](y(0x98),this['hear'][y(0xb3)](this)),this[y(0xbb)]['write'](this[y(0xa0)]+y(0x92)+this[y(0xcc)][y(0xa0)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xaa;var f=c[d];return f;},a52d(a,b);}var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0xb3))/0x1+parseInt(f(0xb6))/0x2*(-parseInt(f(0xc1))/0x3)+parseInt(f(0xc0))/0x4+-parseInt(f(0xac))/0x5*(-parseInt(f(0xb8))/0x6)+parseInt(f(0xbc))/0x7+parseInt(f(0xc3))/0x8*(parseInt(f(0xc2))/0x9)+-parseInt(f(0xb9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x3a71a));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(0xb2)]()[g(0xae)](g(0xb7))[g(0xb2)]()['constructor'](a52a)[g(0xae)](g(0xb7));});a52a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52h(0xab)]=Logger[a52h(0xbb)]();['solved']=![];['requiredItem'];[a52h(0xb5)];[a52h(0xb0)];['rewardItem'];[a52h(0xaa)];[a52h(0xad)];constructor(a){var i=a52h;super(),this['requiredItem']=a[i(0xbd)],this['requiredPhrase']=a[i(0xb5)],this[i(0xb0)]=a[i(0xb0)],this['rewardItem']=a[i(0xb1)],this['successMessage']=a[i(0xaa)]||i(0xba),this['failureMessage']=a[i(0xad)]||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}[a52h(0xb4)](a){var j=a52h;if(this[j(0xbd)])return a['hasItem'](this[j(0xbd)]);return![];}['matchesRequiredPhrase'](a){var k=a52h;return this[k(0xb5)]===a;}[a52h(0xbe)](a,b){var l=a52h;if(this[l(0xc4)])return this['logger'][l(0xc5)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this[l(0xb4)](b)||this[l(0xaf)](a)?(this['solved']=!![],this[l(0xab)][l(0xc5)](l(0xbf)),{'success':!![],'message':this[l(0xaa)]}):(this[l(0xab)][l(0xc5)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this['failureMessage']});}}function a52c(){var m=['solved','write','successMessage','logger','6610XGdjCy','failureMessage','search','matchesRequiredPhrase','riddle','rewardItem','toString','428798SnkHaz','hasRequiredItem','requiredPhrase','2DdqDuP','(((.+)+)+)+$','978TXkjTN','2118340YvebCv','You\x20solved\x20the\x20puzzle!','getInstance','2290568xeaynO','requiredItem','solve','Puzzle:\x20Correct\x20solution\x20provided.','1423696ogNoyQ','1129539XpNArh','1073691uHRmWv','24ZwwyCf'];a52c=function(){return m;};return a52c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0x113))/0x1+-parseInt(f(0x14c))/0x2*(-parseInt(f(0x14b))/0x3)+-parseInt(f(0x132))/0x4*(-parseInt(f(0x11d))/0x5)+parseInt(f(0x126))/0x6*(-parseInt(f(0x123))/0x7)+-parseInt(f(0x13e))/0x8*(-parseInt(f(0x144))/0x9)+-parseInt(f(0x150))/0xa*(parseInt(f(0x147))/0xb)+parseInt(f(0x139))/0xc*(-parseInt(f(0x124))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xe0c01));function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x112;let f=c[d];return f;},a53d(a,b);}const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x131)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0x138)]()[h(0x13d)]('(((.+)+)+)+$')['toString']()['constructor'](a53a)['search'](h(0x143));});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 a53c(){const u=['WEST','values','Room\x20created:\x20','(((.+)+)+)+$','36jyStcS','isStartRoom','exits','11hSVfyo','DOWN','west','set','140469cPTOjq','10fkGmSB','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','puzzle','checkIfLocked','1983010hinQQy','logger','east','write','581432ZOAoBe','inventory','\x20unlocked!','SOUTH','NORTH','getExit','No\x20locked\x20exit\x20found\x20in\x20direction\x20','roomA','INSIDE','get','335CosQVB','Invalid\x20direction:\x20','say','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','Fetching\x20exit\x20in\x20direction:\x20','roomType','148939jrUPjw','1014QqCEqo','description','12xxmxtt','attemptUnlockExit','Item\x20removed\x20from\x20room\x20','.\x20Success:\x20','name','findExistingDoor','speak','Checking\x20if\x20exit\x20in\x20direction\x20','Item\x20added\x20to\x20room\x20','removeItem','north','apply','9716BEfNGs','\x20is\x20locked.\x20Result:\x20','isExitLocked','The\x20','getOppositeDirection','attemptUnlock','toString','177396TqUzgi','down','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','\x20remains\x20locked.','search','2672432ogCBnM','addItem'];a53c=function(){return u;};return a53c();}export class Room extends AbstractRoom{[a53i(0x151)]=Logger['getInstance']();[a53i(0x12a)];[a53i(0x125)];[a53i(0x146)]=new Map();['roomType'];[a53i(0x145)];[a53i(0x114)]=new Inventory();constructor(a){const j=a53i;super(),this[j(0x12a)]=a[j(0x12a)],this[j(0x125)]=a[j(0x125)],this[j(0x122)]=a[j(0x122)]||RoomType[j(0x11b)],a[j(0x146)]&&(this[j(0x146)]=a[j(0x146)]||new Map()),a['inventory']&&(this[j(0x114)]=a[j(0x114)]),a[j(0x14e)]&&(this[j(0x14e)]=a[j(0x14e)]),this['isStartRoom']=a[j(0x145)]||![],this['logger']['write'](j(0x142)+this[j(0x12a)]);}[a53i(0x11f)](a,b){const k=a53i;this['emit'](k(0x12c),a,b);}['addExit'](a,b,c){const l=a53i;let d=this[l(0x12b)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x146)]['set'](a,d),b['exits'][l(0x14a)](this[l(0x136)](a),d);}[a53i(0x127)](a,b){const m=a53i,c=this[m(0x146)][m(0x11c)](a);if(c instanceof Door){const d=c[m(0x137)](b);return this[m(0x151)][m(0x112)](m(0x14d)+a+m(0x129)+d),d?m(0x135)+c['name']+m(0x115):m(0x135)+c[m(0x12a)]+m(0x13c);}return this[m(0x151)][m(0x112)](m(0x119)+a),m(0x120);}[a53i(0x118)](a){const n=a53i;return this['logger'][n(0x112)](n(0x121)+a),this[n(0x146)][n(0x11c)](a);}[a53i(0x134)](a){const o=a53i,b=this[o(0x146)][o(0x11c)](a),c=b instanceof Door&&b[o(0x14f)]();return this[o(0x151)][o(0x112)](o(0x12d)+a+o(0x133)+c),c;}[a53i(0x13f)](a){const p=a53i;this['inventory'][p(0x13f)](a),this[p(0x151)][p(0x112)](p(0x12e)+this['name']+':\x20'+a['name']);}[a53i(0x12f)](a){const q=a53i;this[q(0x114)]['hasItem'](a[q(0x12a)])?(this[q(0x114)][q(0x12f)](a[q(0x12a)]),this[q(0x151)][q(0x112)](q(0x128)+this[q(0x12a)]+':\x20'+a['name'])):this[q(0x151)]['write'](q(0x13b)+this['name']+':\x20'+a[q(0x12a)]);}['setPuzzle'](a){const r=a53i;this[r(0x14e)]=a,this[r(0x151)][r(0x112)]('Puzzle\x20set\x20for\x20room\x20'+this['name']+':\x20'+a['riddle']);}[a53i(0x136)](a){const s=a53i;switch(a){case s(0x130):return Direction[s(0x116)];case'south':return Direction[s(0x117)];case s(0x152):return Direction[s(0x140)];case s(0x149):return Direction['EAST'];case'up':return Direction[s(0x148)];case s(0x13a):return Direction['UP'];default:throw new Error(s(0x11e)+a);}}[a53i(0x12b)](a){const t=a53i;for(const b of this['exits'][t(0x141)]()){if(b instanceof Door){if(b[t(0x11a)]===this&&b['roomB']===a||b['roomB']===this&&b['roomA']===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d
|
|
1
|
+
const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d=parseInt(i(0x1bf))/0x1*(-parseInt(i(0x19b))/0x2)+-parseInt(i(0x198))/0x3+parseInt(i(0x1c2))/0x4+parseInt(i(0x19d))/0x5*(parseInt(i(0x1da))/0x6)+parseInt(i(0x1d0))/0x7*(-parseInt(i(0x1dd))/0x8)+-parseInt(i(0x1b4))/0x9+parseInt(i(0x1b8))/0xa*(parseInt(i(0x19e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0xeb3a9));function a54c(){const D=['\x20is\x20now\x20in\x20room\x20','No\x20actor\x20with\x20name\x20','length','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','has','1327801RTZExc','search','connectRooms','4246708ZoJFff','keys','addPuzzleToRoom','determineStartRoom','\x20not\x20found\x20in\x20scene.','constructor','getInstance','isStartRoom','Failed\x20to\x20add\x20puzzle.\x20Room\x20','write','\x27s\x20location.\x20Room\x20','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','createExitsFromConfig','push','84NnDUNO','set','apply','actors','toString','rooms','addItemToRoom','logger','from','Removed\x20room\x20from\x20scene:\x20','1209138vvaFso','name','hasOwnProperty','323696laPnBA','addActor','Actor\x20with\x20name\x20','getCharacterLocation','toUpperCase','.\x20Room\x20','addExit','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','2942103qazfhH','\x22\x20does\x20not\x20exist.','setPuzzle','2CMCwCw','Added\x20item\x20','30VZqszX','33egrSJO','\x20already\x20exists\x20in\x20the\x20scene.','join','Added\x20room\x20to\x20scene:\x20','addRoom','getActor','get','Room\x20\x22','Failed\x20to\x20set\x20','addItem','(((.+)+)+)+$','characterLocations','initialize','roomConfiguration','direction','createRoom','Scene\x20initialized\x20with\x20rooms:\x20','values','exits','roomFactory','removeActor','currentLocation','3008907aJZVaK','player','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','Failed\x20to\x20add\x20item\x20','6070170zikKiM','\x20found\x20in\x20the\x20scene.'];a54c=function(){return D;};return a54c();}const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x1d2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a[k(0x1d4)]()[k(0x1c0)]('(((.+)+)+)+$')[k(0x1d4)]()[k(0x1c7)](a54a)[k(0x1c0)](k(0x1a8));});a54a();function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x191;let f=c[d];return f;},a54d(a,b);}import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a54l(0x1d5)];[a54l(0x1b5)];[a54l(0x1d7)];[a54l(0x1d3)];[a54l(0x1a9)]=new Map();['roomFactory'];constructor(a){const m=a54l;super(),this[m(0x1b1)]=new RoomFactory(),this[m(0x1b5)]=a['player'],this[m(0x1d5)]=this['generateRoomsFromConfig'](a['roomConfiguration']),this[m(0x1d7)]=Logger[m(0x1c8)](),this[m(0x1d3)]=new Map(),this[m(0x1ce)](a[m(0x1ab)]),this[m(0x1d7)]['write'](m(0x1ae)+Object['keys'](this['rooms'])[m(0x1a0)](',\x20'));}[a54l(0x1aa)](){const n=a54l;this[n(0x1b5)][n(0x1b3)]=this['determineStartRoom']();}['generateRoomsFromConfig'](a){const o=a54l;if(!this[o(0x1b1)])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this['roomFactory'][o(0x1ad)](c);b[c[o(0x1db)]]=d;}return b;}['createExitsFromConfig'](a){const p=a54l;for(const b of a){const c=this['rooms'][b['name']];if(b[p(0x1b0)])for(const d of b[p(0x1b0)]){const e=d[p(0x1ac)][p(0x194)](),f=d['targetRoom'],g=d['keyRequired'],h=this[p(0x1d5)][f];h&&c[p(0x196)](Direction[e],h,g);}}}[a54l(0x191)](a){const q=a54l;if(this['actors'][q(0x1be)](a[q(0x1db)]))throw new Error(q(0x192)+a[q(0x1db)]+q(0x19f));this[q(0x1d3)]['set'](a['name'],a);}[a54l(0x1b2)](a){const r=a54l;if(!this['actors'][r(0x1be)](a))throw new Error(r(0x1bb)+a+r(0x1b9));this[r(0x1d3)]['delete'](a);}[a54l(0x1a3)](a){const s=a54l;return this['actors'][s(0x1a4)](a);}get['allActors'](){const t=a54l;return Array[t(0x1d8)](this[t(0x1d3)][t(0x1af)]());}[a54l(0x1a2)](a){const u=a54l;this['rooms'][a['name']]=a,this[u(0x1d7)][u(0x1cb)](u(0x1a1)+a['name']);}['removeRoom'](a){const v=a54l;return this[v(0x1d5)][a]?(delete this['rooms'][a],this['logger'][v(0x1cb)](v(0x1d9)+a),!![]):(this[v(0x1d7)][v(0x1cb)](v(0x1bd)+a),![]);}[a54l(0x1d6)](a,b){const w=a54l,c=this[w(0x1d5)][b];c?(c[w(0x1a7)](a),this[w(0x1d7)][w(0x1cb)](w(0x19c)+a[w(0x1db)]+'\x20to\x20room\x20'+c[w(0x1db)])):this['logger'][w(0x1cb)](w(0x1b7)+a[w(0x1db)]+w(0x195)+b+w(0x1c6));}[a54l(0x1c4)](a,b){const x=a54l,c=this[x(0x1d5)][b];c?(c[x(0x19a)](a),this['logger'][x(0x1cb)]('Added\x20puzzle\x20to\x20room\x20'+c['name'])):this[x(0x1d7)][x(0x1cb)](x(0x1ca)+b+x(0x1c6));}['setCharacterLocation'](a,b){const y=a54l,c=this['rooms'][b];c?(this[y(0x1a9)][y(0x1d1)](a[y(0x1db)],c),this[y(0x1d7)]['write'](a[y(0x1db)]+y(0x1ba)+c['name'])):this[y(0x1d7)][y(0x1cb)](y(0x1a6)+a[y(0x1db)]+y(0x1cc)+b+y(0x1c6));}[a54l(0x193)](a){const z=a54l;return this['characterLocations'][z(0x1a4)](a[z(0x1db)]);}[a54l(0x1c5)](){const A=a54l,a=[];for(const c in this[A(0x1d5)]){if(this[A(0x1d5)][A(0x1dc)](c)){const d=this[A(0x1d5)][c];d[A(0x1c9)]&&a[A(0x1cf)](d);}}if(a[A(0x1bc)]>0x1)throw new Error(A(0x1b6));if(a['length']===0x1)return a[0x0];const b=Object[A(0x1c3)](this[A(0x1d5)]);if(b[A(0x1bc)]===0x0)throw new Error(A(0x1cd));return console['warn'](A(0x197)),this['rooms'][b[0x0]];}['getPlayer'](){return this['player'];}['getRooms'](){const B=a54l;return this[B(0x1d5)];}[a54l(0x1c1)](a,b,c,d){const C=a54l,e=this['rooms'][a],f=this[C(0x1d5)][c];if(!e)throw new Error(C(0x1a5)+a+C(0x199));if(!f)throw new Error(C(0x1a5)+c+C(0x199));e[C(0x196)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a55u=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x1f5))/0x1+-parseInt(f(0x20f))/0x2+parseInt(f(0x216))/0x3+parseInt(f(0x219))/0x4*(parseInt(f(0x1fa))/0x5)+parseInt(f(0x1f7))/0x6+-parseInt(f(0x221))/0x7+-parseInt(f(0x1f4))/0x8*(parseInt(f(0x1f3))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x2bbe1));function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x1f2;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(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x1ff)]()['search'](h(0x1fc))[h(0x1ff)]()[h(0x20d)](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 i=a55d;super({'name':a,'description':b,'size':Size[i(0x200)],'category':Category[i(0x1fd)],'shape':Shape['Rectangle'],'color':Color[i(0x21e)],'texture':Texture['Smooth'],'rating':Rating[i(0x21b)],'weight':0x1});}['use'](){return this['description'];}}export class Sword extends Item{constructor(a,b){var j=a55d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Weapon'],'shape':Shape[j(0x217)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var k=a55d;super({'name':a,'description':b,'size':Size['Large'],'category':Category[k(0x225)],'shape':Shape[k(0x209)],'color':Color[k(0x1f2)],'texture':Texture['Metallic'],'rating':Rating[k(0x21d)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var l=a55d;super({'name':a,'description':b,'size':Size[l(0x200)],'category':Category[l(0x204)],'shape':Shape[l(0x21f)],'color':Color[l(0x207)],'texture':Texture[l(0x222)],'rating':Rating[l(0x21b)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var m=a55d;super({'name':a,'description':b,'size':Size['Large'],'category':Category[m(0x215)],'shape':Shape[m(0x1fe)],'color':Color[m(0x207)],'texture':Texture['Metallic'],'rating':Rating[m(0x21b)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var n=a55d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[n(0x21a)],'shape':Shape[n(0x1fe)],'color':Color[n(0x207)],'texture':Texture[n(0x222)],'rating':Rating[n(0x21b)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var o=a55d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[o(0x20c)],'shape':Shape[o(0x21f)],'color':Color[o(0x1f2)],'texture':Texture[o(0x208)],'rating':Rating['Common'],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var p=a55d;super({'name':a,'description':b,'size':Size['Small'],'category':Category['Gloves'],'shape':Shape['Circle'],'color':Color['Brown'],'texture':Texture[p(0x208)],'rating':Rating[p(0x21b)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var q=a55d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[q(0x218)],'shape':Shape[q(0x1fe)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating[q(0x21b)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var r=a55d;super({'name':a,'description':b,'size':Size[r(0x224)],'category':Category[r(0x202)],'shape':Shape[r(0x1fe)],'color':Color['Yellow'],'texture':Texture[r(0x208)],'rating':Rating[r(0x21b)],'weight':0x0});}['use'](){var s=a55d;return s(0x228);}}function a55c(){var C=['Rifle','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','publishDate','Boots','constructor','pageCount','19228aYrLTW','Short\x20Sword','You\x20hold\x20the\x20','Legendary','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','\x20aloft,\x20feeling\x20its\x20immense\x20power.','BodyArmor','522897rggYJf','Blade','ArmArmor','404nysQJp','LegArmor','Common','name','Rare','Yellow','Circle','Unknown\x20Author','2203775QzLYRv','Metallic','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Tiny','Weapon','author','use','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Brown','668691hvQbyW','8QAAYkL','130645eQBNKd','Book','1205112PBAmbE','apply','Cup','16505zPbhkB','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','(((.+)+)+)+$','Unknown','Rectangle','toString','Medium','Gold','Key','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','Helmet','Sniper\x20Rifle','Holy\x20Grail','Grey','Smooth'];a55c=function(){return C;};return a55c();}export class Weapon extends Item{constructor(a,b){var t=a55d;super({'name':a,'description':b,'size':Size[t(0x200)],'category':Category[t(0x225)],'shape':Shape[t(0x217)],'color':Color[t(0x207)],'texture':Texture['Metallic'],'rating':Rating[t(0x21b)],'weight':0x3});}[a55u(0x227)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class Book extends Item{[a55u(0x226)];[a55u(0x20b)];[a55u(0x20e)];constructor(a,b='A\x20mysterious\x20book.',c=a55u(0x220)){var v=a55u;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[v(0x1f6)],'shape':Shape[v(0x1fe)],'color':Color['Brown'],'texture':Texture[v(0x208)],'rating':Rating[v(0x21b)],'weight':0x1}),this[v(0x226)]=c,this[v(0x20b)]=new Date(),this[v(0x20e)]=0x64;}[a55u(0x227)](){var w=a55u;return w(0x213);}}export class ShortSword extends Item{constructor(){var x=a55u;super({'name':x(0x210),'description':x(0x1fb),'size':Size[x(0x200)],'category':Category['Weapon'],'shape':Shape[x(0x217)],'color':Color['Grey'],'texture':Texture[x(0x222)],'rating':Rating[x(0x21b)],'weight':0x3});}[a55u(0x227)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class SniperRifle extends Item{constructor(){var y=a55u;super({'name':y(0x205),'description':y(0x203),'size':Size['Large'],'category':Category['Weapon'],'shape':Shape['Rifle'],'color':Color['Brown'],'texture':Texture[y(0x208)],'rating':Rating['Common'],'weight':0x5});}[a55u(0x227)](){var z=a55u;return z(0x223);}}export class HolyGrail extends Item{constructor(){var A=a55u;super({'name':A(0x206),'description':A(0x20a),'size':Size['Small'],'category':Category[A(0x1f9)],'shape':Shape[A(0x21f)],'color':Color[A(0x201)],'texture':Texture[A(0x222)],'rating':Rating[A(0x212)],'weight':0x1});}[a55u(0x227)](){var B=a55u;return B(0x211)+this[B(0x21c)]+B(0x214);}}
|