@maka/maka-cli 4.5.44 → 4.5.46
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/.eslintrc.json +2 -1
- 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.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/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/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 a33j=a33d;(function(a,b){const g=a33d,c=a();while(!![]){try{const d
|
|
1
|
+
const a33j=a33d;(function(a,b){const g=a33d,c=a();while(!![]){try{const d=-parseInt(g(0x14f))/0x1+parseInt(g(0x154))/0x2+-parseInt(g(0x13f))/0x3+-parseInt(g(0x145))/0x4+-parseInt(g(0x14b))/0x5+parseInt(g(0x14d))/0x6*(-parseInt(g(0x138))/0x7)+-parseInt(g(0x140))/0x8*(-parseInt(g(0x155))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a33c,0x26f58));const a33b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a33d;if(c){const e=c[h(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a33a=a33b(this,function(){const i=a33d;return a33a[i(0x144)]()[i(0x153)](i(0x147))[i(0x144)]()['constructor'](a33a)['search']('(((.+)+)+)+$');});function a33d(a,b){const c=a33c();return a33d=function(d,e){d=d-0x137;let f=c[d];return f;},a33d(a,b);}a33a();function a33c(){const m=['name','What\x20do\x20you\x20want\x20to\x20say?','toString','1215192TIJYor','filter','(((.+)+)+)+$','allActors','An\x20error\x20occurred.','say','1080315sYBRvo','join','36YTcDJW','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','261683xFbMZs','You\x20say:\x20\x22','execute','logger','search','34630VPKwrH','9LwrCYK','description','Scene\x20is\x20missing\x20from\x20context.','326844WfILSX','context','actor','log','apply','verb','currentLocation','720318PbqWJH','11552504KpmOEW','length'];a33c=function(){return m;};return a33c();}import{Command}from'./command.js';export class SayCommand extends Command{static [a33j(0x13d)]=a33j(0x14a);static [a33j(0x156)]=a33j(0x14e);[a33j(0x139)];constructor(a){const k=a33j;super(a),this[k(0x139)]=a;}[a33j(0x151)](a){const l=a33j;if(a[l(0x141)]===0x0)return l(0x143);const b=a[l(0x14c)]('\x20'),c=this[l(0x13a)],d=this[l(0x139)]['scene'];if(!d)return this[l(0x152)][l(0x13b)](l(0x137)),l(0x149);const e=d[l(0x148)][l(0x146)](f=>f[l(0x13e)]===c[l(0x13e)]);for(const f of e){this[l(0x152)][l(0x13b)](c[l(0x142)]+'\x20says\x20to\x20'+f[l(0x142)]+':\x20\x22'+b+'\x22'),this[l(0x13a)]['currentLocation'][l(0x14a)](f,b);}return l(0x150)+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34i=a34d;(function(a,b){const f=a34d,c=a();while(!![]){try{const d
|
|
1
|
+
const a34i=a34d;(function(a,b){const f=a34d,c=a();while(!![]){try{const d=parseInt(f(0xab))/0x1*(-parseInt(f(0xc1))/0x2)+-parseInt(f(0xa5))/0x3*(-parseInt(f(0xa6))/0x4)+parseInt(f(0xa8))/0x5*(parseInt(f(0xbd))/0x6)+-parseInt(f(0xa7))/0x7+-parseInt(f(0xb6))/0x8*(parseInt(f(0xbc))/0x9)+-parseInt(f(0xbe))/0xa*(parseInt(f(0xa4))/0xb)+parseInt(f(0xa2))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a34c,0xb863d));const a34b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a34d;if(c){const e=c[g(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a34a=a34b(this,function(){const h=a34d;return a34a[h(0xaf)]()['search'](h(0xa9))[h(0xaf)]()[h(0xba)](a34a)['search']('(((.+)+)+)+$');});a34a();import{Command}from'./command.js';function a34d(a,b){const c=a34c();return a34d=function(d,e){d=d-0xa2;let f=c[d];return f;},a34d(a,b);}export class SearchCommand extends Command{static [a34i(0xb8)]=a34i(0xae);static [a34i(0xc0)]=a34i(0xb0);[a34i(0xaa)](){const j=a34i,a=this[j(0xbf)][j(0xac)][j(0xb1)][j(0xa3)]();if(a[j(0xb2)]===0x0)return this[j(0xb4)]['write'](j(0xbb)+this[j(0xbf)][j(0xad)]+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),'You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.';const b=a['join'](',\x20');return this['logger'][j(0xb3)](j(0xbb)+this[j(0xbf)][j(0xad)]+j(0xb5)+b),j(0xb7)+b;}}function a34c(){const k=['(((.+)+)+)+$','execute','68615PaFSMx','currentLocation','name','search','toString','Search\x20for\x20items\x20in\x20your\x20area','inventory','length','write','logger','\x20found\x20the\x20following\x20items:\x20','592EAYvZc','You\x20search\x20the\x20area\x20and\x20find:\x20','verb','apply','constructor','SearchCommand:\x20','136989aCXUMP','2418ikVHQA','4380JCJEPw','actor','description','34WWdUMg','29832264kzpXer','listItems','16643UjbTye','498741XflBzi','36Uoshcp','7996548yHRyhD','10805IhhsxE'];a34c=function(){return k;};return a34c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d
|
|
1
|
+
const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d=parseInt(f(0xf1))/0x1*(parseInt(f(0xe7))/0x2)+parseInt(f(0xda))/0x3+-parseInt(f(0xec))/0x4*(parseInt(f(0xf2))/0x5)+parseInt(f(0xe0))/0x6*(-parseInt(f(0xde))/0x7)+parseInt(f(0xe8))/0x8*(-parseInt(f(0xe2))/0x9)+-parseInt(f(0xed))/0xa*(parseInt(f(0xd4))/0xb)+-parseInt(f(0xe3))/0xc*(-parseInt(f(0xdd))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a35c,0x6f612));const a35b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a35d;if(c){const e=c[g(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a35a=a35b(this,function(){const h=a35d;return a35a[h(0xd6)]()[h(0xd3)](h(0xe6))['toString']()[h(0xdf)](a35a)[h(0xd3)]('(((.+)+)+)+$');});a35a();function a35d(a,b){const c=a35c();return a35d=function(d,e){d=d-0xd0;let f=c[d];return f;},a35d(a,b);}import{Command}from'./command.js';export class SolveCommand extends Command{static [a35i(0xdb)]=a35i(0xdc);static [a35i(0xe1)]=a35i(0xd9);[a35i(0xeb)](a){const j=a35i,b=a['join']('\x20')[j(0xd2)](),c=this[j(0xe9)][j(0xef)];if(!c||!c[j(0xd7)])return this['logger'][j(0xee)]('SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.'),j(0xd0);const d=c[j(0xd7)][j(0xdc)](b,this[j(0xe9)][j(0xe4)]);return d[j(0xd5)]&&c[j(0xd7)][j(0xea)]&&this[j(0xe9)][j(0xe4)]['addItem'](c[j(0xd7)][j(0xea)]),this[j(0xd8)][j(0xee)](j(0xf0)+d[j(0xd1)]),d['message'];}}function a35c(){const k=['write','currentLocation','SolveCommand:\x20','14wjkOhR','10WRnFJu','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','message','toLowerCase','search','33407YjqOaG','success','toString','puzzle','logger','Attempt\x20to\x20solve\x20a\x20puzzle.','595728FAaaWi','verb','solve','39gHUpbQ','49sJKvaM','constructor','278238fxqPVg','description','111609DsKIEK','8742948nMpvTS','inventory','apply','(((.+)+)+)+$','112006hIvQJY','568JhByBN','actor','rewardItem','execute','1453108weMtJE','2570sVHBEG'];a35c=function(){return k;};return a35c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a36i=a36d;
|
|
1
|
+
const a36i=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d=parseInt(f(0x131))/0x1*(-parseInt(f(0x126))/0x2)+parseInt(f(0x12f))/0x3*(parseInt(f(0x133))/0x4)+parseInt(f(0x13b))/0x5*(parseInt(f(0x139))/0x6)+-parseInt(f(0x136))/0x7+parseInt(f(0x130))/0x8+parseInt(f(0x13f))/0x9+-parseInt(f(0x12e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0xd71bd));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0x125)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a[h(0x13d)]()['search'](h(0x11e))[h(0x13d)]()['constructor'](a36a)[h(0x121)]('(((.+)+)+)+$');});function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x11a;let f=c[d];return f;},a36d(a,b);}a36a();import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']=a36i(0x13e);static [a36i(0x12c)]=a36i(0x12d);[a36i(0x122)](a){const j=a36i;return this[j(0x12b)]['write'](j(0x140)+a[j(0x11b)]('\x20')),this['take'](a);}[a36i(0x13e)](a){const k=a36i,b=a['join']('\x20')[k(0x137)](),c=this['actor']['currentLocation'];if(!c[k(0x144)][k(0x123)](b))return this[k(0x12b)][k(0x138)](k(0x127)+b+'\x22\x20not\x20found\x20in\x20'+c['name']+k(0x11c)),k(0x132)+b+'\x22\x20in\x20this\x20room.';const d=c[k(0x144)][k(0x129)](b);if(!d)return this[k(0x12b)][k(0x138)](k(0x127)+b+k(0x135)+c[k(0x134)]+k(0x141)),k(0x132)+b+'\x22\x20in\x20this\x20room.';try{return this[k(0x11f)]['addInventory'](d),this[k(0x12b)][k(0x138)](k(0x11d)+b+k(0x128)+this['actor'][k(0x134)]+k(0x142)),c['inventory'][k(0x120)](b),this[k(0x12b)][k(0x138)](k(0x13a)+b+k(0x124)+c[k(0x134)]+k(0x141)),k(0x13c)+b+'.';}catch(e){return this[k(0x12b)][k(0x138)](k(0x12a)+e[k(0x143)]),k(0x11a)+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}function a36c(){const l=['actor','removeItem','search','execute','hasItem','\x22\x20from\x20','apply','2zlkEdI','Item\x20\x22','\x22\x20to\x20','getItem','Error\x20during\x20\x27Take\x27\x20command:\x20','logger','description','Pick\x20up\x20an\x20item.','7431240niyQBm','33519rDwYqu','5598928IFhSMd','91457HgEYJQ','There\x20is\x20no\x20item\x20\x22','4btAeEO','name','\x22\x20not\x20retrieved\x20from\x20','4017384CaJYJI','toLowerCase','write','945348gsIwBu','Successfully\x20removed\x20\x22','40dCHjtw','You\x20have\x20taken\x20the\x20','toString','take','2862675jeLPwj','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','message','inventory','The\x20item\x20\x22','join','\x20during\x20\x27Take\x27\x20command.','Successfully\x20added\x20\x22','(((.+)+)+)+$'];a36c=function(){return l;};return a36c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a37c(){const j=['actor','toString','execute','unqeuip','logger','name','11257480HQXETw','4583050ZPoBTX','69349aDeMyj','472qsrgbY','description','4148271rFrxXo','2WsXFJs','constructor','UnequipCommand:\x20','289878KQfXfX','join','516066oADsaQ','Unequip\x20an\x20item.','(((.+)+)+)+$','search','129886DMAHqU','\x20unqeuiped\x20','verb','20JaVWOY'];a37c=function(){return j;};return a37c();}const a37h=a37d;function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0xb1;let f=c[d];return f;},a37d(a,b);}(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0xb9))/0x1*(-parseInt(f(0xc9))/0x2)+parseInt(f(0xb3))/0x3*(parseInt(f(0xbc))/0x4)+-parseInt(f(0xc4))/0x5+-parseInt(f(0xb5))/0x6+-parseInt(f(0xc5))/0x7*(parseInt(f(0xc6))/0x8)+parseInt(f(0xc8))/0x9+parseInt(f(0xc3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x958c5));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const g=a37d;return a37a[g(0xbe)]()[g(0xb8)](g(0xb7))['toString']()[g(0xb1)](a37a)[g(0xb8)](g(0xb7));});a37a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a37h(0xbb)]=a37h(0xc0);static [a37h(0xc7)]=a37h(0xb6);[a37h(0xbf)](a){const i=a37h,b=a[i(0xb4)]('\x20')['toLowerCase'](),c=this['actor']['unequip'](b);return this[i(0xc1)]['write'](i(0xb2)+this[i(0xbd)][i(0xc2)]+i(0xba)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a38k=a38d;function a38c(){const n=['10aWCmfT','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','name','18jHbjmP','exits','UnlockCommand:\x20','search','actor','description','552604PIjVAE','600sRPxkH','isValidDirection','apply','inventory','has','9068fVHiDq','79646IBENuW','UnlockCommand:\x20No\x20target\x20specified.','Unlock\x20a\x20door.','unlockItemOrSolution','logger','2487hxbgbo','14502895HZEymA','971472uteDrw','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','There\x27s\x20no\x20door\x20named\x20\x22','length','\x22\x20here.','9168685HmzLUh','2kVpZYI','unlock','\x20is\x20attempted\x20to\x20unlock\x20','toString','write','870ljGHnD','348066ZWnTLq','currentLocation','getItem','constructor','(((.+)+)+)+$','verb','get','error'];a38c=function(){return n;};return a38c();}(function(a,b){const h=a38d,c=a();while(!![]){try{const d=-parseInt(h(0xd2))/0x1*(-parseInt(h(0xd8))/0x2)+-parseInt(h(0xf5))/0x3*(-parseInt(h(0xef))/0x4)+-parseInt(h(0xfc))/0x5+parseInt(h(0xd7))/0x6*(parseInt(h(0xf0))/0x7)+parseInt(h(0xf7))/0x8*(-parseInt(h(0xe3))/0x9)+-parseInt(h(0xe0))/0xa*(-parseInt(h(0xf6))/0xb)+parseInt(h(0xea))/0xc*(-parseInt(h(0xe9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xf297b));function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xd2;let f=c[d];return f;},a38d(a,b);}const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a38d;if(c){const e=c[i(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a[j(0xd5)]()[j(0xe6)](j(0xdc))['toString']()[j(0xdb)](a38a)[j(0xe6)]('(((.+)+)+)+$');});a38a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a38k(0xdd)]='unlock';static [a38k(0xe8)]=a38k(0xf2);['execute'](a){const l=a38k;return this[l(0xd3)](a);}[a38k(0xd3)](a){const m=a38k;if(a[m(0xfa)]===0x0)return this['logger'][m(0xdf)](m(0xf1)),m(0xf8);const b=a[0x0]['toLowerCase'](),c=this[m(0xe7)][m(0xd9)];if(this[m(0xeb)](b)&&c[m(0xe4)][m(0xee)](b)){const d=c[m(0xe4)][m(0xde)](b);if(d instanceof Door){const e=d[m(0xf3)]?.['toLowerCase']();if(e&&this[m(0xe7)][m(0xed)]['hasItem'](e)){const f=this[m(0xe7)]['inventory'][m(0xda)](e);if(f){const g=c['attemptUnlockExit'](b,f['name']);return this[m(0xf4)][m(0xd6)](m(0xe5)+this['actor']['name']+m(0xd4)+b+'.\x20Result:\x20'+g),g;}}return this[m(0xf4)][m(0xd6)](m(0xe5)+this[m(0xe7)][m(0xe2)]+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),'You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.';}else return this['logger']['write'](m(0xe5)+b+m(0xe1)+c[m(0xe2)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+m(0xfb);}else return this[m(0xf4)][m(0xd6)]('UnlockCommand:\x20'+b+m(0xe1)+c[m(0xe2)]+'.'),m(0xf9)+b+m(0xfb);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xdc;let f=c[d];return f;},a39d(a,b);}const a39h=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0xed))/0x1*(-parseInt(f(0xe8))/0x2)+-parseInt(f(0xef))/0x3+-parseInt(f(0xfe))/0x4+parseInt(f(0xf3))/0x5+parseInt(f(0xdd))/0x6*(-parseInt(f(0xeb))/0x7)+parseInt(f(0xea))/0x8*(parseInt(f(0xf1))/0x9)+-parseInt(f(0xf2))/0xa*(-parseInt(f(0xe7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x9038e));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const g=a39d;return a39a[g(0xff)]()[g(0x100)](g(0x101))['toString']()[g(0xe2)](a39a)[g(0x100)](g(0x101));});a39a();function a39c(){const j=['You\x20can\x27t\x20use\x20the\x20','actor','\x20in\x20this\x20way.','392452fISIjp','toString','search','(((.+)+)+)+$','inventory','\x20to\x20use.','6618KoMJRJ','getItem','toLowerCase','logger','You\x20don\x27t\x20have\x20the\x20','constructor','name','\x20used\x20','function','\x27s\x20inventory.','4085807gSDyWx','28570oPPoQt','UseCommand:\x20','16oaUpEf','3157PeSPKr','write','31vbStuk','hasItem','1359942BeYhZg',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','3649194LTGRbi','30bBNqAW','786030IFsiAK','\x20doesn\x27t\x20have\x20a\x20use\x20method.','use','\x20attempted\x20to\x20use\x20','description','join','Use\x20an\x20item.','execute'];a39c=function(){return j;};return a39c();}import{Command}from'./command.js';export class UseCommand extends Command{static ['verb']=a39h(0xf5);static [a39h(0xf7)]=a39h(0xf9);[a39h(0xfa)](a){return this['use'](a);}[a39h(0xf5)](a){const i=a39h,b=a[i(0xf8)]('\x20')[i(0xdf)]();if(!this[i(0xfc)][i(0x102)][i(0xee)](b))return this[i(0xe0)]['write']('UseCommand:\x20'+this[i(0xfc)][i(0xe3)]+i(0xf6)+b+i(0xf0)),'You\x20don\x27t\x20have\x20the\x20'+b+i(0xdc);const c=this[i(0xfc)][i(0x102)][i(0xde)](b);if(!c)return this[i(0xe0)][i(0xec)](i(0xe9)+b+'\x20not\x20retrieved\x20from\x20'+this[i(0xfc)]['name']+i(0xe6)),i(0xe1)+b+i(0xdc);if(typeof c[i(0xf5)]===i(0xe5)){const d=c['use']();return this[i(0xe0)]['write'](i(0xe9)+this['actor']['name']+i(0xe4)+b+'.'),d;}else return this[i(0xe0)][i(0xec)](i(0xe9)+b+i(0xf4)),i(0xfb)+b+i(0xfd);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40h=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x12b))/0x1+parseInt(f(0x124))/0x2*(parseInt(f(0x127))/0x3)+parseInt(f(0x132))/0x4+-parseInt(f(0x131))/0x5*(-parseInt(f(0x123))/0x6)+parseInt(f(0x122))/0x7+-parseInt(f(0x12a))/0x8+parseInt(f(0x12c))/0x9*(parseInt(f(0x12e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x5bfee));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const g=a40d;return a40a[g(0x128)]()[g(0x125)](g(0x12f))[g(0x128)]()[g(0x129)](a40a)[g(0x125)](g(0x12f));});a40a();export class CommandFactory{static [a40h(0x12d)]={};static[a40h(0x126)](a,b){const i=a40h;this[i(0x12d)][a]=b;}static[a40h(0x130)](a,b){const j=a40h,c=this[j(0x12d)][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){const k=a40h;return this[k(0x12d)];}}function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x122;let f=c[d];return f;},a40d(a,b);}function a40c(){const l=['20MIPbmt','(((.+)+)+)+$','createCommand','5hmyMqg','714192hIZngC','1854153yyoddw','339942xwzyhK','69164sNcfjd','search','registerCommand','33yjSHqW','toString','constructor','1752040nSLUpo','554293tGnLRh','1213317CdNxsj','commandMap'];a40c=function(){return l;};return a40c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41j=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=parseInt(f(0x1b7))/0x1*(parseInt(f(0x19e))/0x2)+-parseInt(f(0x1c1))/0x3*(parseInt(f(0x1b4))/0x4)+-parseInt(f(0x1b2))/0x5+-parseInt(f(0x1b5))/0x6*(parseInt(f(0x19f))/0x7)+parseInt(f(0x1b1))/0x8+parseInt(f(0x1b9))/0x9*(parseInt(f(0x1a0))/0xa)+parseInt(f(0x1b0))/0xb*(-parseInt(f(0x1ad))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xde492));const a41b=(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;};}()),a41a=a41b(this,function(){const g=a41d;return a41a['toString']()[g(0x1bf)](g(0x1ac))[g(0x1c0)]()[g(0x1ab)](a41a)[g(0x1bf)](g(0x1ac));});a41a();function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x19e;let f=c[d];return f;},a41d(a,b);}import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{['createRoom'](a){const h=a41d,b=this[h(0x1bc)](a),c=new Room(b);if(a[h(0x1a3)]){const d=new Inventory();a[h(0x1a3)][h(0x1bb)](e=>{const i=h;d[i(0x1b8)](this[i(0x1a9)](e));}),c[h(0x1ba)]=d;}return a['puzzle']&&c[h(0x1a8)](this[h(0x1a6)](a['puzzle'])),c;}[a41j(0x1a9)](a){const k=a41j;switch(a[k(0x1b6)]){case k(0x1be):return new Key(a[k(0x1af)],a[k(0x1ae)]);case k(0x1a4):return new Book(a[k(0x1af)],a[k(0x1ae)],a['content']);case'sword':return new Sword(a[k(0x1af)],a['description']);case k(0x1a2):return new Rifle(a[k(0x1af)],a[k(0x1ae)]);case k(0x1a1):return new Helmet(a[k(0x1af)],a[k(0x1ae)]);case k(0x1b3):return new BodyArmor(a['name'],a[k(0x1ae)]);case'legarmor':return new LegArmor(a[k(0x1af)],a[k(0x1ae)]);case'boots':return new Boots(a[k(0x1af)],a['description']);case k(0x1bd):return new Gloves(a[k(0x1af)],a[k(0x1ae)]);case'gauntlets':return new Gauntlets(a[k(0x1af)],a['description']);default:return new BasicItem(a['name'],a[k(0x1ae)]);}}[a41j(0x1a6)](a){const l=a41j,b=this[l(0x1a9)](a['rewardItem']);return new Puzzle({...a,'rewardItem':b});}['convertToRoomConfig'](a){const m=a41j,b=a[m(0x1a7)]&&RoomType[a['roomType'][m(0x1aa)]()]?RoomType[a[m(0x1a7)]['toUpperCase']()]:RoomType[m(0x1a5)];return{'name':a[m(0x1af)],'description':a[m(0x1ae)],'isStartRoom':a['isStartRoom'],'roomType':b};}}function a41c(){const n=['132eyuPtk','description','name','797973TRzHyB','11046384KwoiqA','4882320XjBlnN','bodyarmor','4quWSRz','3782676fCicQh','type','3uKTkco','addItem','9vnGHPX','inventory','forEach','convertToRoomConfig','gloves','key','search','toString','1711299gwZoaO','791092tsjZwt','7IRnXIB','13183620kLvavm','helmet','rifle','items','book','INSIDE','createPuzzle','roomType','setPuzzle','createItem','toUpperCase','constructor','(((.+)+)+)+$'];a41c=function(){return n;};return a41c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d
|
|
1
|
+
const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=parseInt(h(0x1a0))/0x1*(parseInt(h(0x186))/0x2)+parseInt(h(0x1a2))/0x3*(parseInt(h(0x19f))/0x4)+parseInt(h(0x196))/0x5+-parseInt(h(0x1ae))/0x6+-parseInt(h(0x18b))/0x7*(-parseInt(h(0x1b2))/0x8)+parseInt(h(0x1b6))/0x9+parseInt(h(0x18f))/0xa*(-parseInt(h(0x1b7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x74e59));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0x1a4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0x1af)]()[j(0x1ad)](j(0x1ab))['toString']()[j(0x19b)](a42a)[j(0x1ad)](j(0x1ab));});a42a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';function a42c(){const s=['solve','split','1052180ZwxohT','registerCommands','getRooms','getHelpMessage','currentRoom','constructor','lock','take','quit','4RUWpsf','1wGSPNY','-\x20quit:\x20Exit\x20the\x20game.\x0a','2214249SqWkEg','instance','apply','slice','execute','hasOwnProperty','name','-\x20clear:\x20Clear\x20the\x20screen.\x0a','toLowerCase','(((.+)+)+)+$','player','search','4476414IneBZz','toString','equip','help','5296QWyiya','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','drop','say','1813806tqGiHV','22SkJMZL','1640918zMGVyv','Welcome,\x20','getWelcomeMessage','getAllRegisteredCommands','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','77mLOlFr','unequip','Available\x20Commands:\x0a','registerCommand','3764580PQZQoN','createCommand','scene','trim','use'];a42c=function(){return s;};return a42c();}function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x186;let f=c[d];return f;},a42d(a,b);}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 [a42k(0x1a3)];[a42k(0x191)];[a42k(0x1ac)];[a42k(0x19a)];['rooms'];constructor(a,b){const l=a42k;this[l(0x1ac)]=a,this[l(0x191)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x191)]['initialize'](),this['player']['currentLocation']=this['determineStartRoom'](),this[l(0x197)]();}[a42k(0x197)](){const m=a42k;CommandFactory[m(0x18e)]('look',LookCommand),CommandFactory[m(0x18e)]('go',GoCommand),CommandFactory[m(0x18e)](m(0x19d),TakeCommand),CommandFactory[m(0x18e)](m(0x193),UseCommand),CommandFactory[m(0x18e)](m(0x1b0),EquipCommand),CommandFactory['registerCommand'](m(0x18c),UnequipCommand),CommandFactory['registerCommand'](m(0x194),SolveCommand),CommandFactory[m(0x18e)](m(0x1b4),DropCommand),CommandFactory['registerCommand']('unlock',UnlockCommand),CommandFactory[m(0x18e)](m(0x19c),LockCommand),CommandFactory[m(0x18e)](m(0x1ad),SearchCommand),CommandFactory['registerCommand'](m(0x1b5),SayCommand);}['determineStartRoom'](){const n=a42k;return this[n(0x191)]['determineStartRoom']();}[a42k(0x188)](){const o=a42k;return o(0x187)+this[o(0x1ac)][o(0x1a8)];}static['getInstance'](a,b){const p=a42k;return!Game[p(0x1a3)]&&(Game[p(0x1a3)]=new Game(a,b)),Game[p(0x1a3)];}['handleInput'](a){const q=a42k,b=a[q(0x192)]()[q(0x195)]('\x20'),c=b[0x0][q(0x1aa)](),d=b[q(0x1a5)](0x1);if(c===q(0x19e))return null;if(c==='maka')return q(0x18a);if(c===q(0x1b1))return this[q(0x199)]();if(c==='clear')return'';const e={'actor':this[q(0x1ac)],'rooms':this['scene'][q(0x198)](),'scene':this[q(0x191)]},f=CommandFactory[q(0x190)](c,e);if(f){const g=f[q(0x1a6)](d);return g;}return q(0x1b3)+c+'\x22.';}[a42k(0x199)](){const r=a42k,a=CommandFactory[r(0x189)]();let b=r(0x18d);for(const c in a){if(a[r(0x1a7)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d['getDescription']()+'\x0a';}}return b+=r(0x1a9),b+=r(0x1a1),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a43d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a43d,c=a();while(!![]){try{var d=parseInt(f(0x12d))/0x1+-parseInt(f(0x130))/0x2*(-parseInt(f(0x131))/0x3)+-parseInt(f(0x12e))/0x4+-parseInt(f(0x134))/0x5+parseInt(f(0x135))/0x6*(-parseInt(f(0x133))/0x7)+-parseInt(f(0x12c))/0x8+parseInt(f(0x136))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x9e49a));var a43b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a43d;if(c){var e=c[g(0x132)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){var h=a43d;return a43a[h(0x12b)]()['search'](h(0x12f))[h(0x12b)]()['constructor'](a43a)['search'](h(0x12f));});a43a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x12b;var f=c[d];return f;},a43d(a,b);}export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';function a43c(){var i=['4200259jDOzjx','2555735OrdTiJ','12pYclAH','10629792Ezwgfe','toString','5280088XEKZdd','1150413IWtRBQ','520392XKbust','(((.+)+)+)+$','109090vYXHRI','45FMlEyQ','apply'];a43c=function(){return i;};return a43c();}export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d
|
|
1
|
+
var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=parseInt(f(0x211))/0x1+-parseInt(f(0x207))/0x2*(-parseInt(f(0x20b))/0x3)+parseInt(f(0x1f4))/0x4+-parseInt(f(0x214))/0x5*(-parseInt(f(0x1ff))/0x6)+-parseInt(f(0x213))/0x7*(-parseInt(f(0x20e))/0x8)+parseInt(f(0x1f7))/0x9+-parseInt(f(0x205))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x8afae));var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a[h(0x200)]()['search'](h(0x208))[h(0x200)]()[h(0x212)](a44a)[h(0x1f5)](h(0x208));});a44a();function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0x1f4;var f=c[d];return f;},a44d(a,b);}function a44c(){var n=['search','apply','1610955jqmBgu','checkIfLocked','write','\x20and\x20','.\x20Used:\x20','name','.\x20Is\x20Locked:\x20','Door\x20created\x20between\x20','574428RqSoUt','toString','logger','isLockable','attemptUnlock','roomA','17036300efGTjp','getOtherSide','24974PvHBpw','(((.+)+)+)+$','isLocked','checkIfLockable','93dizQyN','roomB','Failed\x20to\x20unlock\x20door:\x20','62344ETLKMk','Door\x20unlocked:\x20','unlockItemOrSolution','124087GvRypa','constructor','938DveeGC','5BZCAWP','1770852bQSSqY'];a44c=function(){return n;};return a44c();}import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a44i(0x204)];[a44i(0x20c)];[a44i(0x209)];[a44i(0x210)];[a44i(0x1fc)];[a44i(0x201)];[a44i(0x202)];constructor(a){var j=a44i;super(),this[j(0x204)]=a[j(0x204)],this[j(0x20c)]=a[j(0x20c)],this[j(0x209)]=a[j(0x209)]||![],this[j(0x210)]=a['unlockItemOrSolution'],this[j(0x1fc)]=a[j(0x1fc)]?capitalCase(a[j(0x1fc)]):'To\x20'+a[j(0x20c)][j(0x1fc)],this[j(0x201)]=Logger['getInstance'](),this[j(0x202)]=!!a[j(0x210)],this['logger']['write'](j(0x1fe)+this['roomA']['name']+j(0x1fa)+this[j(0x20c)][j(0x1fc)]+j(0x1fd)+this[j(0x209)]);}[a44i(0x206)](a){var k=a44i;return this[k(0x204)]===a?this[k(0x20c)]:this['roomA'];}[a44i(0x203)](a){var l=a44i;if(this[l(0x209)]&&this[l(0x210)]&&this[l(0x210)]===a)return this[l(0x209)]=![],this[l(0x201)][l(0x1f9)](l(0x20f)+this[l(0x1fc)]+'.\x20Used:\x20'+a),!![];return this[l(0x201)][l(0x1f9)](l(0x20d)+this[l(0x1fc)]+l(0x1fb)+a),![];}[a44i(0x1f8)](){var m=a44i;return this[m(0x209)];}[a44i(0x20a)](){return this['isLockable'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a45i=a45d;function a45c(){const r=['1512824pasWnH','constructor','(((.+)+)+)+$','Failed\x20to\x20remove\x20item:\x20','.\x20Item\x20not\x20found.','search','getAllItems','Added\x20item:\x20','72gXuCki','getInstance','22221CDrdxx','Retrieved\x20details\x20for\x20item:\x20','name','410HhGTMe','\x20in\x20','listItems','\x20to\x20inventory.','keys','hasItem','weight','258MLdrBP','Listed\x20items\x20in\x20inventory:\x20','addItem','values','.\x20Exists:\x20','logger','toString','delete','getWeight','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','apply','16852308YPmCMK','115975rwgiIA','177198GECLAf','has','getItem','106141CkLlQR','set','1hHRaXf','items','1002598xWiIVW','write','toLowerCase','Checked\x20for\x20item:\x20','join'];a45c=function(){return r;};return a45c();}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0x1e7))/0x1*(parseInt(f(0x1e9))/0x2)+-parseInt(f(0x20f))/0x3+-parseInt(f(0x1ee))/0x4+-parseInt(f(0x20e))/0x5*(parseInt(f(0x202))/0x6)+parseInt(f(0x212))/0x7*(parseInt(f(0x1f6))/0x8)+parseInt(f(0x1f8))/0x9*(-parseInt(f(0x1fb))/0xa)+parseInt(f(0x20d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x9ac34));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x20c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x208)]()['search'](h(0x1f0))['toString']()[h(0x1ef)](a45a)[h(0x1f3)](h(0x1f0));});function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a45d(a,b);}a45a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a45i(0x1e8)];[a45i(0x207)];constructor(){const j=a45i;super(),this[j(0x1e8)]=new Map(),this['logger']=Logger[j(0x1f7)]();}[a45i(0x204)](a){const k=a45i;this[k(0x1e8)][k(0x213)](a['name']['toLowerCase'](),a),this[k(0x207)][k(0x1ea)](k(0x1f5)+a[k(0x1fa)]+k(0x1fe));}['removeItem'](a){const l=a45i,b=this[l(0x211)](a);if(b)return this[l(0x1e8)][l(0x209)](a[l(0x1eb)]()),this[l(0x207)][l(0x1ea)]('Removed\x20item:\x20'+a+'\x20from\x20inventory.'),b;return this[l(0x207)][l(0x1ea)](l(0x1f1)+a+l(0x1f2)),null;}[a45i(0x200)](a){const m=a45i,b=this[m(0x1e8)][m(0x210)](a['toLowerCase']()),c=[...this[m(0x1e8)]['keys']()];return this['logger']['write'](m(0x1ec)+a+m(0x1fc)+c[m(0x1ed)](',\x20')+m(0x206)+b+'.'),b;}[a45i(0x211)](a){const n=a45i,b=this[n(0x1e8)]['get'](a['toLowerCase']())||null;return b?this[n(0x207)]['write'](n(0x1f9)+a+'.'):this[n(0x207)][n(0x1ea)](n(0x20b)+a+n(0x1f2)),b;}[a45i(0x1fd)](){const o=a45i,a=[...this['items'][o(0x1ff)]()],b=a['map'](c=>capitalCase(c));return this[o(0x207)][o(0x1ea)](o(0x203)+b[o(0x1ed)](',\x20')+'.'),a;}[a45i(0x20a)](){const p=a45i;let a=0x0;for(const b of this[p(0x1e8)][p(0x205)]()){a+=b[p(0x201)];}return a;}[a45i(0x1f4)](){const q=a45i;return[...this[q(0x1e8)][q(0x205)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a46i=a46d;
|
|
1
|
+
var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0x15e))/0x1*(parseInt(f(0x152))/0x2)+parseInt(f(0x14e))/0x3+-parseInt(f(0x161))/0x4*(parseInt(f(0x163))/0x5)+parseInt(f(0x160))/0x6*(parseInt(f(0x14b))/0x7)+-parseInt(f(0x166))/0x8+parseInt(f(0x15b))/0x9*(-parseInt(f(0x15f))/0xa)+-parseInt(f(0x156))/0xb*(-parseInt(f(0x164))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xac02a));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0x14f)]()[h(0x14d)](h(0x153))[h(0x14f)]()[h(0x151)](a46a)[h(0x14d)](h(0x153));});function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x14b;var f=c[d];return f;},a46d(a,b);}a46a();import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';function a46c(){var l=['162BCnQzp','color','category','8092dTmisr','381200FOXaVa','2877042BLxUam','4580YBnEvs','uuid','2505bUgWSk','24CkioYe','apply','4730648gLpSnI','weight','rating','7jYSjXu','size','search','3294879ieIwaa','toString','name','constructor','220nfRGXC','(((.+)+)+)+$','.\x20Nothing\x20special\x20happens.','You\x20use\x20the\x20','482735NymxhX','description','shape','use','texture'];a46c=function(){return l;};return a46c();}export class Item extends AbstractItem{['uuid'];[a46i(0x150)];[a46i(0x157)];[a46i(0x14c)];[a46i(0x15d)];[a46i(0x158)];[a46i(0x15c)];[a46i(0x15a)];[a46i(0x168)];['weight'];constructor(a){var j=a46i;super(),this[j(0x150)]=a[j(0x150)],this[j(0x157)]=a[j(0x157)],this[j(0x14c)]=a[j(0x14c)],this[j(0x15d)]=a[j(0x15d)],this[j(0x158)]=a[j(0x158)],this['color']=a['color'],this[j(0x15a)]=a[j(0x15a)],this[j(0x168)]=a[j(0x168)],this[j(0x167)]=a[j(0x167)],this[j(0x162)]=a46e();}[a46i(0x159)](){var k=a46i;return k(0x155)+this[k(0x150)]+k(0x154);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47h=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a47h=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x11f))/0x1*(-parseInt(f(0x129))/0x2)+-parseInt(f(0x135))/0x3+parseInt(f(0x11d))/0x4*(parseInt(f(0x12e))/0x5)+-parseInt(f(0x123))/0x6*(-parseInt(f(0x133))/0x7)+-parseInt(f(0x12b))/0x8*(parseInt(f(0x122))/0x9)+parseInt(f(0x125))/0xa+parseInt(f(0x121))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x78c84));function a47c(){const n=['1458wrvgNR','name','4461050XaBGkC','scene','floor','(((.+)+)+)+$','713782XJcinE','speak','16jgTFlU','_dialogue','autonomousMove','70lKFNJu','_name','toString','rooms','moveTo','16695annhFW','execute','208818tdiMhn','search','length','16736uGSYsn','constructor','1snniVF','random','5404377uLdFES','2944449UBTFnM'];a47c=function(){return n;};return a47c();}const a47b=(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;};}()),a47a=a47b(this,function(){const g=a47d;return a47a[g(0x130)]()[g(0x136)](g(0x128))[g(0x130)]()[g(0x11e)](a47a)['search']('(((.+)+)+)+$');});function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x11d;let f=c[d];return f;},a47d(a,b);}a47a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a47h(0x12f)];['_dialogue'];['rooms'];['scene'];constructor(a,b,c,d){const i=a47h;super(d),this[i(0x12f)]=a,this[i(0x12c)]=b,this[i(0x131)]=c;}get['name'](){const j=a47h;return this[j(0x12f)];}[a47h(0x12a)](){const k=a47h;return this[k(0x12c)][Math[k(0x127)](Math['random']()*this[k(0x12c)]['length'])];}[a47h(0x12d)](a){const l=a47h,b=a[Math['floor'](Math[l(0x120)]()*a[l(0x137)])];this[l(0x132)](b[l(0x124)]);}[a47h(0x132)](a){const m=a47h,b={'actor':this,'rooms':this[m(0x131)],'scene':this[m(0x126)]},c=new GoCommand(b);c[m(0x134)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x93;let f=c[d];return f;},a48d(a,b);}const a48h=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0xa8))/0x1+parseInt(f(0xd5))/0x2+-parseInt(f(0xee))/0x3+parseInt(f(0xab))/0x4*(-parseInt(f(0xd7))/0x5)+parseInt(f(0xa2))/0x6+parseInt(f(0x98))/0x7+-parseInt(f(0xec))/0x8*(-parseInt(f(0xe7))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xa8300));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const g=a48d;return a48a[g(0xcd)]()['search'](g(0x94))['toString']()[g(0xe3)](a48a)['search']('(((.+)+)+)+$');});a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';function a48c(){const B=['Max\x20carrying\x20weight\x20must\x20be\x20positive.','A\x20featureless\x20room','arms','torso','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','_currentLocation','You\x20unequipped\x20','hear','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','Added\x20','weight','inventory','armarmor','log','includes','legs','currentLocation','\x20is\x20no\x20longer\x20listeng\x20in\x20','You\x20equipped\x20','\x20to\x20player\x27s\x20inventory.','getInstance','arm\x20armor','leaveRoom','Failed\x20to\x20remove\x20','BodyArmor','Helmet','_maxCarryingWeight','equipment','_inventory','currentWeight','name','rightHand','logger','toString','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','legarmor','You\x20can\x27t\x20equip\x20','playerName','category','toLowerCase','hat','2137198DUBDNR','leftHand','1987900kgldAN','write','initialEquipment','canEquip','.\x20You\x20must\x20unequip\x20it\x20first.','Nexus','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','_playerName','You\x20don\x27t\x20have\x20','error','removeInventory','ArmArmor','constructor','unequip','addItem','\x20says:\x20\x22','27eqsyCL','boots','values','equip','unequipBySlot','3413960tFyFhi','hasItem','2516769KAhgEI','bodyarmor','(((.+)+)+)+$','gloves','speak','inventoryItems','7165186AjYJAY','head','weapon','helmet','enterRoom','startLocation','addInventory','Weapon','_equipment','bind','3124314rsMvJg','Shield','maxCarryingWeight','\x20in\x20your\x20inventory.','determineEquipmentSlot','feet','1172592wnidcE','\x20from\x20player\x27s\x20inventory.','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','12eJcikr'];a48c=function(){return B;};return a48c();}import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a48h(0xde)];[a48h(0xb1)];[a48h(0xc8)];[a48h(0xa0)];[a48h(0xc6)]=0x32;[a48h(0xcc)];constructor(a){const i=a48h;super(),this[i(0xde)]=a[i(0xd1)],this[i(0xb1)]=a[i(0x9d)]||new Room({'name':i(0xdc),'description':i(0xad)}),this[i(0xc8)]=new Inventory(),this[i(0xcc)]=Logger[i(0xc0)]();if(a?.[i(0x97)])for(const b of a[i(0x97)]){this['_inventory'][i(0xe5)](b);}this[i(0xa0)]=a?.[i(0xd9)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get['name'](){return this['_playerName'];}get[a48h(0xbc)](){const j=a48h;return this[j(0xb1)];}set[a48h(0xbc)](a){const k=a48h;this[k(0xb1)]!==a&&(this[k(0xc2)](),this[k(0x9c)](a)),this[k(0xb1)]=a;}get[a48h(0xb7)](){const l=a48h;return this[l(0xc8)];}get[a48h(0xc7)](){const m=a48h;return this[m(0xa0)];}set[a48h(0xc7)](a){const n=a48h;this[n(0xa0)]=a;}get[a48h(0xa4)](){const o=a48h;return this[o(0xc6)];}set[a48h(0xa4)](a){const p=a48h;a>0x0?this['_maxCarryingWeight']=a:console[p(0xe0)](p(0xac));}get[a48h(0xc9)](){const q=a48h;let a=this['_inventory']['getWeight']();for(const b in this[q(0xa0)]){const c=this[q(0xa0)][b];c&&(a+=c[q(0xb6)]);}return a;}[a48h(0x9e)](a){const r=a48h;if(this[r(0xc9)]+a[r(0xb6)]>this['maxCarryingWeight']){this[r(0xcc)][r(0xd8)](r(0xb4));throw new Error(r(0xdd));}this[r(0xc8)][r(0xe5)](a),this[r(0xcc)][r(0xd8)](r(0xb5)+a[r(0xca)]+r(0xbf));}[a48h(0xe1)](a){const s=a48h;if(this[s(0xc8)]['removeItem'](a[s(0xca)]))return this[s(0xcc)][s(0xd8)]('Removed\x20'+a[s(0xca)]+s(0xa9)),!![];return this['logger'][s(0xd8)](s(0xc3)+a[s(0xca)]+s(0xa9)),![];}[a48h(0xea)](a){const t=a48h;if(!this[t(0xc8)][t(0xed)](a['name']))return t(0xdf)+a[t(0xca)]+t(0xa5);if(!this[t(0xda)](a))return t(0xd0)+a[t(0xca)]+'.';const b=this[t(0xa6)](a[t(0xd2)]);if(!b)return a[t(0xca)]+t(0xaa);if(this['equipment'][b])return t(0xce)+b+t(0xdb);return this['equipment'][b]=a,this[t(0xe1)](a),t(0xbe)+a[t(0xca)]+'.';}[a48h(0xe4)](a){const u=a48h;let b=a;if(!this[u(0xc7)][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this['unequipBySlot'](b);}[a48h(0xa6)](a){const v=a48h;switch(a[v(0xd3)]()){case Category[v(0x9f)][v(0xd3)]():return v(0xcb);case Category[v(0xa3)][v(0xd3)]():return v(0xd6);case Category['Gloves']['toLowerCase']():return v(0x95);case Category[v(0xc5)][v(0xd3)]():case Category['Hat'][v(0xd3)]():return v(0x99);case Category['Boots'][v(0xd3)]():return v(0xa7);case Category['LegArmor'][v(0xd3)]():return v(0xbb);case Category[v(0xe2)]['toLowerCase']():return v(0xae);case Category[v(0xc4)][v(0xd3)]():return v(0xaf);case v(0x9a):return v(0xcb);case'shield':return v(0xd6);case v(0x95):return v(0x95);case v(0x9b):case v(0xd4):return v(0x99);case v(0xe8):return'feet';case'leg\x20armor':case v(0xcf):return'legs';case v(0xc1):case v(0xb8):return v(0xae);case'body\x20armor':case v(0x93):case v(0xaf):return v(0xaf);default:return null;}}['canEquip'](a){const w=a48h;return Object[w(0xe9)](Category)[w(0xba)](a[w(0xd2)]);}[a48h(0xeb)](a){const x=a48h,b=this['equipment'][a];if(!b)return x(0xb0)+a+'\x20slot.';return this[x(0x9e)](b),this[x(0xc7)][a]=null,x(0xb2)+b['name']+'.';}['hear'](a,b){const y=a48h;a!==this&&this[y(0xcc)][y(0xb9)](a[y(0xca)]+y(0xe6)+b+'\x22');}['enterRoom'](a){const z=a48h;this['_currentLocation']=a,a['on'](z(0x96),this['hear'][z(0xa1)](this)),this[z(0xcc)][z(0xd8)](this[z(0xca)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a['name']);}['leaveRoom'](){const A=a48h;this[A(0xb1)]&&(this[A(0xb1)]['off'](A(0x96),this[A(0xb3)][A(0xa1)](this)),this[A(0xcc)][A(0xd8)](this['name']+A(0xbd)+this[A(0xb1)]['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x14c;var f=c[d];return f;},a49d(a,b);}var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x157))/0x1*(parseInt(f(0x160))/0x2)+parseInt(f(0x155))/0x3*(parseInt(f(0x164))/0x4)+-parseInt(f(0x15c))/0x5+parseInt(f(0x151))/0x6+-parseInt(f(0x156))/0x7*(-parseInt(f(0x167))/0x8)+parseInt(f(0x15d))/0x9*(parseInt(f(0x15e))/0xa)+-parseInt(f(0x154))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x8eedf));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x16b)]()[h(0x163)](h(0x161))['toString']()['constructor'](a49a)['search'](h(0x161));});function a49c(){var n=['You\x20solved\x20the\x20puzzle!','4400165ZLyxra','35523pCwnUe','1600HmEtCx','hasRequiredItem','2312082PYvgjO','(((.+)+)+)+$','hasItem','search','60932wBHxMG','Puzzle:\x20Correct\x20solution\x20provided.','riddle','33928YkiNPe','matchesRequiredPhrase','write','You\x20have\x20already\x20solved\x20this\x20puzzle.','toString','apply','requiredItem','successMessage','solved','solve','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','requiredPhrase','failureMessage','1418856BYIcaw','logger','getInstance','29563985WoUugy','213GVHIXr','1729oIMgbu','1NKrvLy','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','rewardItem','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'];a49c=function(){return n;};return a49c();}a49a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a49i(0x152)]=Logger[a49i(0x153)]();[a49i(0x14c)]=![];['requiredItem'];[a49i(0x14f)];[a49i(0x166)];[a49i(0x159)];[a49i(0x16e)];[a49i(0x150)];constructor(a){var j=a49i;super(),this[j(0x16d)]=a[j(0x16d)],this['requiredPhrase']=a[j(0x14f)],this['riddle']=a[j(0x166)],this[j(0x159)]=a[j(0x159)],this[j(0x16e)]=a[j(0x16e)]||j(0x15b),this[j(0x150)]=a[j(0x150)]||j(0x158);}['hasRequiredItem'](a){var k=a49i;if(this[k(0x16d)])return a[k(0x162)](this[k(0x16d)]);return![];}[a49i(0x168)](a){var l=a49i;return this[l(0x14f)]===a;}[a49i(0x14d)](a,b){var m=a49i;if(this[m(0x14c)])return this[m(0x152)][m(0x169)](m(0x14e)),{'success':![],'message':m(0x16a)};return this[m(0x15f)](b)||this[m(0x168)](a)?(this[m(0x14c)]=!![],this['logger'][m(0x169)](m(0x165)),{'success':!![],'message':this['successMessage']}):(this['logger'][m(0x169)](m(0x15a)),{'success':![],'message':this[m(0x150)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a50h=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=-parseInt(f(0xe8))/0x1*(parseInt(f(0xb5))/0x2)+parseInt(f(0xea))/0x3+-parseInt(f(0xdf))/0x4*(-parseInt(f(0xd6))/0x5)+-parseInt(f(0xde))/0x6*(-parseInt(f(0xed))/0x7)+parseInt(f(0xc9))/0x8+-parseInt(f(0xee))/0x9*(-parseInt(f(0xdc))/0xa)+-parseInt(f(0xce))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xc03e3));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(0xc8)]()['search'](g(0xcc))[g(0xc8)]()[g(0xe9)](a50a)[g(0xe1)](g(0xcc));});function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xb0;let f=c[d];return f;},a50d(a,b);}a50a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';function a50c(){const t=['The\x20','write','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','44158bNkqED','addItem','name','checkIfLocked','Puzzle\x20set\x20for\x20room\x20','east','roomB','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','\x20remains\x20locked.','Fetching\x20exit\x20in\x20direction:\x20','No\x20locked\x20exit\x20found\x20in\x20direction\x20','riddle','get','hasItem','speak','logger','SOUTH','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','say','toString','12055312ogKAwq','WEST','exits','(((.+)+)+)+$','addExit','21753325tLdgkG','west','attemptUnlock','set','values','INSIDE','south','setPuzzle','1811570PcHDwR','Item\x20added\x20to\x20room\x20','description','isStartRoom','getOppositeDirection','.\x20Success:\x20','450VCsXcX','emit','156cNHBIw','16ZZytda','removeItem','search','roomType','isExitLocked','NORTH','down','findExistingDoor','Room\x20created:\x20','22YpaDxN','constructor','278712wUQNAI','Item\x20removed\x20from\x20room\x20','puzzle','4452ukTNyJ','37026smVSID','attemptUnlockExit','inventory'];a50c=function(){return t;};return a50c();}import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a50h(0xc4)]=Logger['getInstance']();['name'];[a50h(0xd8)];[a50h(0xcb)]=new Map();[a50h(0xe2)];['isStartRoom'];[a50h(0xb1)]=new Inventory();constructor(a){const i=a50h;super(),this[i(0xb7)]=a[i(0xb7)],this[i(0xd8)]=a['description'],this['roomType']=a[i(0xe2)]||RoomType[i(0xd3)],a[i(0xcb)]&&(this[i(0xcb)]=a[i(0xcb)]||new Map()),a[i(0xb1)]&&(this[i(0xb1)]=a[i(0xb1)]),a[i(0xec)]&&(this[i(0xec)]=a[i(0xec)]),this[i(0xd9)]=a[i(0xd9)]||![],this[i(0xc4)]['write'](i(0xe7)+this[i(0xb7)]);}[a50h(0xc7)](a,b){const j=a50h;this[j(0xdd)](j(0xc3),a,b);}[a50h(0xcd)](a,b,c){const k=a50h;let d=this[k(0xe6)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits'][k(0xd1)](a,d),b[k(0xcb)][k(0xd1)](this[k(0xda)](a),d);}[a50h(0xb0)](a,b){const l=a50h,c=this['exits'][l(0xc1)](a);if(c instanceof Door){const d=c[l(0xd0)](b);return this[l(0xc4)]['write'](l(0xb4)+a+l(0xdb)+d),d?'The\x20'+c['name']+'\x20unlocked!':l(0xb2)+c[l(0xb7)]+l(0xbd);}return this[l(0xc4)]['write'](l(0xbf)+a),l(0xc6);}['getExit'](a){const m=a50h;return this[m(0xc4)]['write'](m(0xbe)+a),this[m(0xcb)][m(0xc1)](a);}[a50h(0xe3)](a){const n=a50h,b=this[n(0xcb)][n(0xc1)](a),c=b instanceof Door&&b[n(0xb8)]();return this['logger'][n(0xb3)]('Checking\x20if\x20exit\x20in\x20direction\x20'+a+'\x20is\x20locked.\x20Result:\x20'+c),c;}['addItem'](a){const o=a50h;this[o(0xb1)][o(0xb6)](a),this[o(0xc4)][o(0xb3)](o(0xd7)+this[o(0xb7)]+':\x20'+a[o(0xb7)]);}[a50h(0xe0)](a){const p=a50h;this[p(0xb1)][p(0xc2)](a[p(0xb7)])?(this['inventory'][p(0xe0)](a[p(0xb7)]),this[p(0xc4)][p(0xb3)](p(0xeb)+this[p(0xb7)]+':\x20'+a['name'])):this[p(0xc4)][p(0xb3)](p(0xbc)+this[p(0xb7)]+':\x20'+a[p(0xb7)]);}[a50h(0xd5)](a){const q=a50h;this[q(0xec)]=a,this[q(0xc4)][q(0xb3)](q(0xb9)+this[q(0xb7)]+':\x20'+a[q(0xc0)]);}[a50h(0xda)](a){const r=a50h;switch(a){case'north':return Direction[r(0xc5)];case r(0xd4):return Direction[r(0xe4)];case r(0xba):return Direction[r(0xca)];case r(0xcf):return Direction['EAST'];case'up':return Direction['DOWN'];case r(0xe5):return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}[a50h(0xe6)](a){const s=a50h;for(const b of this['exits'][s(0xd2)]()){if(b instanceof Door){if(b['roomA']===this&&b[s(0xbb)]===a||b[s(0xbb)]===this&&b['roomA']===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x95;let f=c[d];return f;},a51d(a,b);}const a51k=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=-parseInt(i(0x95))/0x1*(-parseInt(i(0xcf))/0x2)+parseInt(i(0xac))/0x3*(parseInt(i(0xb1))/0x4)+parseInt(i(0xb5))/0x5*(-parseInt(i(0xd0))/0x6)+parseInt(i(0xbf))/0x7+-parseInt(i(0xb9))/0x8+-parseInt(i(0xdc))/0x9+parseInt(i(0xd5))/0xa*(parseInt(i(0xe4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xc3836));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 j=a51d;return a51a[j(0x9f)]()[j(0xbb)](j(0xa2))[j(0x9f)]()[j(0xcd)](a51a)[j(0xbb)](j(0xa2));});a51a();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{[a51k(0xc1)];[a51k(0xe0)];[a51k(0xe3)];[a51k(0x96)];[a51k(0xc7)]=new Map();[a51k(0xcc)];constructor(a){const l=a51k;super(),this['roomFactory']=new RoomFactory(),this[l(0xe0)]=a[l(0xe0)],this['rooms']=this['generateRoomsFromConfig'](a[l(0xd9)]),this[l(0xe3)]=Logger[l(0xaa)](),this[l(0x96)]=new Map(),this[l(0xa9)](a[l(0xd9)]),this[l(0xe3)]['write'](l(0xdb)+Object[l(0xb7)](this[l(0xc1)])[l(0xbc)](',\x20'));}[a51k(0xe1)](){const m=a51k;this[m(0xe0)][m(0xa7)]=this[m(0xc2)]();}[a51k(0xc8)](a){const n=a51k;if(!this[n(0xcc)])throw new Error(n(0xe2));const b={};for(const c of a){const d=this['roomFactory'][n(0xd4)](c);b[c[n(0xbe)]]=d;}return b;}[a51k(0xa9)](a){const o=a51k;for(const b of a){const c=this[o(0xc1)][b[o(0xbe)]];if(b[o(0xdf)])for(const d of b[o(0xdf)]){const e=d['direction'][o(0xdd)](),f=d[o(0xcb)],g=d['keyRequired'],h=this[o(0xc1)][f];h&&c[o(0xd1)](Direction[e],h,g);}}}[a51k(0xc0)](a){const p=a51k;if(this[p(0x96)][p(0xaf)](a[p(0xbe)]))throw new Error('Actor\x20with\x20name\x20'+a[p(0xbe)]+p(0xa6));this[p(0x96)][p(0xde)](a['name'],a);}[a51k(0xa1)](a){const q=a51k;if(!this['actors'][q(0xaf)](a))throw new Error(q(0xb0)+a+q(0xc9));this[q(0x96)][q(0xc6)](a);}[a51k(0xb8)](a){const r=a51k;return this[r(0x96)][r(0xca)](a);}get[a51k(0x9c)](){const s=a51k;return Array['from'](this[s(0x96)][s(0xe5)]());}[a51k(0xb3)](a){const t=a51k;this[t(0xc1)][a[t(0xbe)]]=a,this[t(0xe3)][t(0x9d)](t(0xd2)+a[t(0xbe)]);}[a51k(0xae)](a){const u=a51k;return this[u(0xc1)][a]?(delete this[u(0xc1)][a],this['logger'][u(0x9d)](u(0xab)+a),!![]):(this[u(0xe3)][u(0x9d)](u(0xa8)+a),![]);}['addItemToRoom'](a,b){const v=a51k,c=this[v(0xc1)][b];c?(c[v(0xc4)](a),this[v(0xe3)][v(0x9d)]('Added\x20item\x20'+a['name']+v(0xad)+c[v(0xbe)])):this['logger'][v(0x9d)](v(0xc5)+a[v(0xbe)]+v(0xa0)+b+v(0xb6));}[a51k(0xb2)](a,b){const w=a51k,c=this[w(0xc1)][b];c?(c['setPuzzle'](a),this[w(0xe3)][w(0x9d)](w(0x99)+c[w(0xbe)])):this['logger'][w(0x9d)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a51k(0x9e)](a,b){const x=a51k,c=this['rooms'][b];c?(this[x(0xc7)]['set'](a[x(0xbe)],c),this[x(0xe3)][x(0x9d)](a[x(0xbe)]+x(0xd8)+c[x(0xbe)])):this['logger'][x(0x9d)](x(0xbd)+a['name']+x(0xa5)+b+'\x20not\x20found\x20in\x20scene.');}[a51k(0x98)](a){const y=a51k;return this[y(0xc7)][y(0xca)](a[y(0xbe)]);}[a51k(0xc2)](){const z=a51k,a=[];for(const c in this[z(0xc1)]){if(this['rooms'][z(0x9a)](c)){const d=this[z(0xc1)][c];d[z(0x97)]&&a[z(0x9b)](d);}}if(a['length']>0x1)throw new Error(z(0xb4));if(a[z(0xa3)]===0x1)return a[0x0];const b=Object[z(0xb7)](this['rooms']);if(b[z(0xa3)]===0x0)throw new Error(z(0xa4));return console[z(0xda)](z(0xce)),this[z(0xc1)][b[0x0]];}[a51k(0xc3)](){const A=a51k;return this[A(0xe0)];}[a51k(0xd6)](){const B=a51k;return this[B(0xc1)];}[a51k(0xd7)](a,b,c,d){const C=a51k,e=this[C(0xc1)][a],f=this[C(0xc1)][c];if(!e)throw new Error(C(0xd3)+a+C(0xba));if(!f)throw new Error(C(0xd3)+c+C(0xba));e[C(0xd1)](b,f,d);}}function a51c(){const D=['addItem','Failed\x20to\x20add\x20item\x20','delete','characterLocations','generateRoomsFromConfig','\x20found\x20in\x20the\x20scene.','get','targetRoom','roomFactory','constructor','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','14thTwwR','1272204MgGNgR','addExit','Added\x20room\x20to\x20scene:\x20','Room\x20\x22','createRoom','260XTOvDy','getRooms','connectRooms','\x20is\x20now\x20in\x20room\x20','roomConfiguration','warn','Scene\x20initialized\x20with\x20rooms:\x20','13630149rYTAWX','toUpperCase','set','exits','player','initialize','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','logger','1273052HyqZLW','values','5748ZVxiUl','actors','isStartRoom','getCharacterLocation','Added\x20puzzle\x20to\x20room\x20','hasOwnProperty','push','allActors','write','setCharacterLocation','toString','.\x20Room\x20','removeActor','(((.+)+)+)+$','length','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','\x27s\x20location.\x20Room\x20','\x20already\x20exists\x20in\x20the\x20scene.','currentLocation','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','createExitsFromConfig','getInstance','Removed\x20room\x20from\x20scene:\x20','4773SSoeUK','\x20to\x20room\x20','removeRoom','has','No\x20actor\x20with\x20name\x20','472hGNlYm','addPuzzleToRoom','addRoom','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','5hkmJbk','\x20not\x20found\x20in\x20scene.','keys','getActor','11566544NSYXci','\x22\x20does\x20not\x20exist.','search','join','Failed\x20to\x20set\x20','name','5152903LrNJTs','addActor','rooms','determineStartRoom','getPlayer'];a51c=function(){return D;};return a51c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a52t=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x202))/0x1*(-parseInt(f(0x1f6))/0x2)+-parseInt(f(0x1e9))/0x3+parseInt(f(0x1ea))/0x4*(-parseInt(f(0x1ff))/0x5)+-parseInt(f(0x205))/0x6+parseInt(f(0x207))/0x7+-parseInt(f(0x20f))/0x8*(parseInt(f(0x20d))/0x9)+-parseInt(f(0x1e7))/0xa*(-parseInt(f(0x209))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xc5dbc));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x204)]()[h(0x1e8)](h(0x1fe))[h(0x204)]()[h(0x206)](a52a)[h(0x1e8)](h(0x1fe));});function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x1e3;var f=c[d];return f;},a52d(a,b);}a52a();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=a52d;super({'name':a,'description':b,'size':Size[i(0x201)],'category':Category['Unknown'],'shape':Shape[i(0x1f3)],'color':Color[i(0x1f4)],'texture':Texture[i(0x21a)],'rating':Rating[i(0x219)],'weight':0x1});}['use'](){var j=a52d;return this[j(0x20b)];}}export class Sword extends Item{constructor(a,b){var k=a52d;super({'name':a,'description':b,'size':Size[k(0x201)],'category':Category[k(0x214)],'shape':Shape[k(0x1f2)],'color':Color[k(0x217)],'texture':Texture[k(0x203)],'rating':Rating[k(0x219)],'weight':0x3});}}function a52c(){var D=['Gloves','Holy\x20Grail','(((.+)+)+)+$','200kJTtHB','Gold','Medium','5NeKvoG','Metallic','toString','1494624Qdsfvh','constructor','1444562DcMzvi','A\x20mysterious\x20book.','681923XpObGu','author','description','Rare','2007wLwEUV','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','8008UYsvMD','name','Unknown\x20Author','You\x20hold\x20the\x20','use','Weapon','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Circle','Grey','pageCount','Common','Smooth','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Short\x20Sword','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Brown','670uYOvEd','search','3150261LAnjst','91188fEJQZG','Helmet','Key','Tiny','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','Rifle','publishDate','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','Blade','Rectangle','Yellow','Book','446070xuhHpn','Large','Small','apply','BodyArmor','Boots'];a52c=function(){return D;};return a52c();}export class Rifle extends Item{constructor(a,b){var l=a52d;super({'name':a,'description':b,'size':Size[l(0x1f7)],'category':Category[l(0x214)],'shape':Shape[l(0x1ef)],'color':Color['Brown'],'texture':Texture[l(0x203)],'rating':Rating[l(0x20c)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a52d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[m(0x1eb)],'shape':Shape[m(0x216)],'color':Color[m(0x217)],'texture':Texture[m(0x203)],'rating':Rating[m(0x219)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a52d;super({'name':a,'description':b,'size':Size[n(0x1f7)],'category':Category[n(0x1fa)],'shape':Shape[n(0x1f3)],'color':Color[n(0x217)],'texture':Texture[n(0x203)],'rating':Rating[n(0x219)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a52d;super({'name':a,'description':b,'size':Size[o(0x201)],'category':Category['LegArmor'],'shape':Shape[o(0x1f3)],'color':Color[o(0x217)],'texture':Texture['Metallic'],'rating':Rating[o(0x219)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a52d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[p(0x1fb)],'shape':Shape[p(0x216)],'color':Color[p(0x1e6)],'texture':Texture[p(0x21a)],'rating':Rating[p(0x219)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a52d;super({'name':a,'description':b,'size':Size[q(0x1f8)],'category':Category[q(0x1fc)],'shape':Shape[q(0x216)],'color':Color[q(0x1e6)],'texture':Texture[q(0x21a)],'rating':Rating[q(0x219)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a52d;super({'name':a,'description':b,'size':Size[r(0x201)],'category':Category['ArmArmor'],'shape':Shape[r(0x1f3)],'color':Color['Grey'],'texture':Texture[r(0x203)],'rating':Rating[r(0x219)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a52d;super({'name':a,'description':b,'size':Size[s(0x1ed)],'category':Category[s(0x1ec)],'shape':Shape[s(0x1f3)],'color':Color[s(0x1f4)],'texture':Texture[s(0x21a)],'rating':Rating[s(0x219)],'weight':0x0});}[a52t(0x213)](){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=a52t;super({'name':a,'description':b,'size':Size[u(0x201)],'category':Category[u(0x214)],'shape':Shape[u(0x1f2)],'color':Color['Grey'],'texture':Texture[u(0x203)],'rating':Rating['Common'],'weight':0x3});}[a52t(0x213)](){var v=a52t;return v(0x215);}}export class Book extends Item{[a52t(0x20a)];[a52t(0x1f0)];['pageCount'];constructor(a,b=a52t(0x208),c=a52t(0x211)){var w=a52t;super({'name':a,'description':b,'size':Size[w(0x201)],'category':Category[w(0x1f5)],'shape':Shape[w(0x1f3)],'color':Color[w(0x1e6)],'texture':Texture[w(0x21a)],'rating':Rating[w(0x219)],'weight':0x1}),this[w(0x20a)]=c,this[w(0x1f0)]=new Date(),this[w(0x218)]=0x64;}['use'](){return'There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22';}}export class ShortSword extends Item{constructor(){var x=a52t;super({'name':x(0x1e4),'description':x(0x20e),'size':Size[x(0x201)],'category':Category[x(0x214)],'shape':Shape[x(0x1f2)],'color':Color[x(0x217)],'texture':Texture[x(0x203)],'rating':Rating[x(0x219)],'weight':0x3});}[a52t(0x213)](){var y=a52t;return y(0x215);}}export class SniperRifle extends Item{constructor(){var z=a52t;super({'name':'Sniper\x20Rifle','description':z(0x1f1),'size':Size[z(0x1f7)],'category':Category[z(0x214)],'shape':Shape[z(0x1ef)],'color':Color['Brown'],'texture':Texture[z(0x21a)],'rating':Rating[z(0x219)],'weight':0x5});}[a52t(0x213)](){var A=a52t;return A(0x1e5);}}export class HolyGrail extends Item{constructor(){var B=a52t;super({'name':B(0x1fd),'description':B(0x1ee),'size':Size[B(0x1f8)],'category':Category['Cup'],'shape':Shape[B(0x216)],'color':Color[B(0x200)],'texture':Texture[B(0x203)],'rating':Rating['Legendary'],'weight':0x1});}[a52t(0x213)](){var C=a52t;return C(0x212)+this[C(0x210)]+C(0x1e3);}}
|