@maka/maka-cli 4.7.23 → 4.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/.maka/history.json +1 -0
- 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
|
-
|
|
1
|
+
const a36j=a36d;(function(a,b){const g=a36d,c=a();while(!![]){try{const d=-parseInt(g(0x11e))/0x1+-parseInt(g(0x110))/0x2*(-parseInt(g(0x106))/0x3)+parseInt(g(0x11f))/0x4+parseInt(g(0x10a))/0x5*(parseInt(g(0x120))/0x6)+-parseInt(g(0x113))/0x7*(-parseInt(g(0x121))/0x8)+-parseInt(g(0x115))/0x9*(-parseInt(g(0x125))/0xa)+-parseInt(g(0x105))/0xb*(parseInt(g(0x108))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0xbaac9));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a36d;if(c){const e=c[h(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const i=a36d;return a36a[i(0x124)]()[i(0x107)]('(((.+)+)+)+$')[i(0x124)]()['constructor'](a36a)[i(0x107)]('(((.+)+)+)+$');});function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x105;let f=c[d];return f;},a36d(a,b);}a36a();import{Command}from'./command.js';export class SayCommand extends Command{static [a36j(0x109)]=a36j(0x119);static [a36j(0x10e)]=a36j(0x123);['context'];constructor(a){const k=a36j;super(a),this[k(0x122)]=a;}['execute'](a){const l=a36j;if(a[l(0x127)]===0x0)return l(0x10c);const b=a[l(0x10b)]('\x20'),c=this['actor'],d=this['context']['scene'];if(!d)return this['logger'][l(0x116)](l(0x11a)),l(0x111);const e=d[l(0x11d)][l(0x11b)](f=>f['currentLocation']===c['currentLocation']);for(const f of e){this[l(0x114)][l(0x116)](c[l(0x112)]+l(0x126)+f[l(0x112)]+l(0x117)+b+'\x22'),this[l(0x10d)][l(0x118)][l(0x119)](f,b);}return l(0x10f)+b+'\x22';}}function a36c(){const m=['11379yUEblh','search','336aaPYNh','verb','2023140RBdOLx','join','What\x20do\x20you\x20want\x20to\x20say?','actor','description','You\x20say:\x20\x22','520apNbzU','An\x20error\x20occurred.','name','826rzfres','logger','19287mFwhEQ','log',':\x20\x22','currentLocation','say','Scene\x20is\x20missing\x20from\x20context.','filter','apply','allActors','906123WhOjGp','2528436LqDxgR','12MCoHrN','8568dyrfrq','context','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','toString','4830FYkztB','\x20says\x20to\x20','length','753599whTciz'];a36c=function(){return m;};return a36c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a37c(){const k=['50500XRErgi','length','\x20found\x20the\x20following\x20items:\x20','Search\x20for\x20items\x20in\x20your\x20area','4071XOVrAA','inventory','2382966qJvfUt','currentLocation','4932777CJeCIS','logger','write','apply','execute','6969555qzXZFb','description','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','5062918eSwNRA','3051gaqukF','102BosyTC','actor','constructor','listItems','16BPqwzi','2636108SeVyVM','search','verb','(((.+)+)+)+$','SearchCommand:\x20','toString'];a37c=function(){return k;};return a37c();}const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0xad))/0x1*(-parseInt(f(0xbb))/0x2)+-parseInt(f(0xb1))/0x3+parseInt(f(0xa3))/0x4+parseInt(f(0xb6))/0x5+parseInt(f(0xaf))/0x6+-parseInt(f(0xb9))/0x7*(parseInt(f(0xbf))/0x8)+parseInt(f(0xba))/0x9*(parseInt(f(0xa9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xd2d85));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a['toString']()[h(0xa4)](h(0xa6))[h(0xa8)]()[h(0xbd)](a37a)[h(0xa4)](h(0xa6));});a37a();import{Command}from'./command.js';function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0xa3;let f=c[d];return f;},a37d(a,b);}export class SearchCommand extends Command{static [a37i(0xa5)]=a37i(0xa4);static [a37i(0xb7)]=a37i(0xac);[a37i(0xb5)](){const j=a37i,a=this[j(0xbc)][j(0xb0)][j(0xae)][j(0xbe)]();if(a[j(0xaa)]===0x0)return this[j(0xb2)]['write'](j(0xa7)+this[j(0xbc)]['name']+j(0xb8)),'You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.';const b=a['join'](',\x20');return this['logger'][j(0xb3)](j(0xa7)+this[j(0xbc)]['name']+j(0xab)+b),'You\x20search\x20the\x20area\x20and\x20find:\x20'+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38h=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x104))/0x1*(-parseInt(f(0xe6))/0x2)+-parseInt(f(0xfc))/0x3*(-parseInt(f(0xff))/0x4)+-parseInt(f(0xfd))/0x5*(parseInt(f(0xea))/0x6)+parseInt(f(0xf5))/0x7*(parseInt(f(0xf1))/0x8)+-parseInt(f(0x102))/0x9*(-parseInt(f(0xef))/0xa)+parseInt(f(0xe4))/0xb+-parseInt(f(0x100))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x43769));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(0xe5)]()[g(0xf7)]('(((.+)+)+)+$')[g(0xe5)]()[g(0xf0)](a38a)[g(0xf7)](g(0xf8));});a38a();function a38c(){const j=['rewardItem','4588630MSfXgQ','constructor','208egdzQI','write','actor','puzzle','70595mkPozB','join','search','(((.+)+)+)+$','success','message','SolveCommand:\x20','357ufRSxI','65ZJxhFn','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','15100PgFIRD','13858164yZUtTu','Attempt\x20to\x20solve\x20a\x20puzzle.','9XQfqfI','addItem','383995tiAFjT','2673022HAGBMM','toString','2MokNkg','verb','solve','description','168978wCQaeY','inventory','currentLocation','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.'];a38c=function(){return j;};return a38c();}import{Command}from'./command.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xe4;let f=c[d];return f;},a38d(a,b);}export class SolveCommand extends Command{static [a38h(0xe7)]='solve';static [a38h(0xe9)]=a38h(0x101);['execute'](a){const i=a38h,b=a[i(0xf6)]('\x20')['toLowerCase'](),c=this[i(0xf3)][i(0xec)];if(!c||!c[i(0xf4)])return this['logger'][i(0xf2)](i(0xfe)),i(0xed);const d=c['puzzle'][i(0xe8)](b,this[i(0xf3)][i(0xeb)]);return d[i(0xf9)]&&c[i(0xf4)][i(0xee)]&&this[i(0xf3)][i(0xeb)][i(0x103)](c[i(0xf4)][i(0xee)]),this['logger'][i(0xf2)](i(0xfb)+d['message']),d[i(0xfa)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x149))/0x1+parseInt(f(0x13e))/0x2+parseInt(f(0x154))/0x3+parseInt(f(0x14a))/0x4*(parseInt(f(0x132))/0x5)+parseInt(f(0x137))/0x6*(parseInt(f(0x140))/0x7)+-parseInt(f(0x14f))/0x8+-parseInt(f(0x144))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xa989b));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x135)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x146)]()[h(0x148)](h(0x134))[h(0x146)]()['constructor'](a39a)[h(0x148)](h(0x134));});function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x12e;let f=c[d];return f;},a39d(a,b);}a39a();import{Command}from'./command.js';function a39c(){const l=['Error\x20during\x20\x27Take\x27\x20command:\x20','Pick\x20up\x20an\x20item.','144505ZYEQKy','name','(((.+)+)+)+$','apply','actor','6bzYByo','verb','execute','write','currentLocation','\x22\x20to\x20','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','1943104HtPcyQ','hasItem','4041163ghCKLC','take','Item\x20\x22','join','19831095RVHjut','logger','toString','The\x20item\x20\x22','search','490699aOXckW','64YdmpuQ','Successfully\x20added\x20\x22','\x22\x20from\x20','There\x20is\x20no\x20item\x20\x22','getItem','6669440zatUEZ','inventory','Successfully\x20removed\x20\x22','addInventory','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','3688758kDQrxC','\x22\x20not\x20found\x20in\x20','description','message'];a39c=function(){return l;};return a39c();}export class TakeCommand extends Command{static [a39i(0x138)]=a39i(0x141);static [a39i(0x12e)]=a39i(0x131);[a39i(0x139)](a){const j=a39i;return this[j(0x145)][j(0x13a)](j(0x13d)+a[j(0x143)]('\x20')),this[j(0x141)](a);}[a39i(0x141)](a){const k=a39i,b=a[k(0x143)]('\x20')['toLowerCase'](),c=this[k(0x136)][k(0x13b)];if(!c[k(0x150)][k(0x13f)](b))return this[k(0x145)][k(0x13a)]('Item\x20\x22'+b+k(0x155)+c[k(0x133)]+'\x20during\x20\x27Take\x27\x20command.'),k(0x14d)+b+'\x22\x20in\x20this\x20room.';const d=c[k(0x150)][k(0x14e)](b);if(!d)return this[k(0x145)][k(0x13a)](k(0x142)+b+'\x22\x20not\x20retrieved\x20from\x20'+c[k(0x133)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),'There\x20is\x20no\x20item\x20\x22'+b+'\x22\x20in\x20this\x20room.';try{return this[k(0x136)][k(0x152)](d),this['logger'][k(0x13a)](k(0x14b)+b+k(0x13c)+this[k(0x136)]['name']+k(0x153)),c[k(0x150)]['removeItem'](b),this['logger'][k(0x13a)](k(0x151)+b+k(0x14c)+c['name']+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this[k(0x145)][k(0x13a)](k(0x130)+e[k(0x12f)]),k(0x147)+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x82))/0x1+parseInt(f(0x83))/0x2*(-parseInt(f(0x80))/0x3)+-parseInt(f(0x7f))/0x4+-parseInt(f(0x6f))/0x5*(parseInt(f(0x6a))/0x6)+-parseInt(f(0x76))/0x7*(-parseInt(f(0x6c))/0x8)+-parseInt(f(0x7d))/0x9*(parseInt(f(0x6d))/0xa)+parseInt(f(0x72))/0xb*(-parseInt(f(0x74))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xa522f));function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x6a;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(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x75)]()['search'](h(0x71))[h(0x75)]()[h(0x81)](a40a)[h(0x7e)](h(0x71));});a40a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a40i(0x7b)]=a40i(0x7a);static [a40i(0x6e)]='Unequip\x20an\x20item.';['execute'](a){const j=a40i,b=a[j(0x73)]('\x20')[j(0x6b)](),c=this[j(0x7c)]['unequip'](b);return this[j(0x79)][j(0x70)](j(0x78)+this[j(0x7c)]['name']+'\x20unqeuiped\x20'+c),c;}}function a40c(){const k=['apply','UnequipCommand:\x20','logger','unqeuip','verb','actor','1323BGFdPE','search','1171768wKFYYb','30786jODrzF','constructor','979762YdZjwG','2BSZMVz','1362TYzGed','toLowerCase','2020088yHQALe','7310zOWGfI','description','8005jzvwyi','write','(((.+)+)+)+$','11CdDgdF','join','6471828SqlbNm','toString','28WZZdsW'];a40c=function(){return k;};return a40c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41j=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=parseInt(h(0xd6))/0x1+-parseInt(h(0xcb))/0x2+-parseInt(h(0xce))/0x3*(-parseInt(h(0xbe))/0x4)+parseInt(h(0xb5))/0x5*(-parseInt(h(0xc0))/0x6)+-parseInt(h(0xb8))/0x7*(-parseInt(h(0xd0))/0x8)+parseInt(h(0xcc))/0x9*(parseInt(h(0xd4))/0xa)+-parseInt(h(0xc9))/0xb*(parseInt(h(0xc7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x3a0c6));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 i=a41d;return a41a[i(0xb9)]()[i(0xd8)](i(0xc1))[i(0xb9)]()[i(0xc4)](a41a)[i(0xd8)](i(0xc1));});a41a();import{Door}from'../models/door.js';import{Command}from'./command.js';function a41c(){const m=['search','There\x27s\x20no\x20door\x20named\x20\x22','\x22\x20here.','isValidDirection','execute','currentLocation','exits','30435jLzJKn','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','hasItem','671475xUyVuq','toString','actor','write','Unlock\x20a\x20door.','error','90124YOxWhn','UnlockCommand:\x20No\x20target\x20specified.','96bWLEyY','(((.+)+)+)+$','name','attemptUnlockExit','constructor','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','logger','4208964GYoiNQ','description','22zJUvNO','verb','108226qhrJip','1650852yEmUDt','has','33SANmsr','inventory','32mqsUQd','.\x20Result:\x20','UnlockCommand:\x20','unlock','20HZukuB','toLowerCase','92368ZDCKId','unlockItemOrSolution'];a41c=function(){return m;};return a41c();}function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0xb0;let f=c[d];return f;},a41d(a,b);}export class UnlockCommand extends Command{static [a41j(0xca)]=a41j(0xd3);static [a41j(0xc8)]=a41j(0xbc);[a41j(0xb2)](a){const k=a41j;return this[k(0xd3)](a);}[a41j(0xd3)](a){const l=a41j;if(a['length']===0x0)return this[l(0xc6)][l(0xbd)](l(0xbf)),'Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.';const b=a[0x0][l(0xd5)](),c=this[l(0xba)][l(0xb3)];if(this[l(0xb1)](b)&&c['exits'][l(0xcd)](b)){const d=c[l(0xb4)]['get'](b);if(d instanceof Door){const e=d[l(0xd7)]?.[l(0xd5)]();if(e&&this[l(0xba)][l(0xcf)][l(0xb7)](e)){const f=this['actor']['inventory']['getItem'](e);if(f){const g=c[l(0xc3)](b,f[l(0xc2)]);return this[l(0xc6)]['write'](l(0xd2)+this[l(0xba)]['name']+'\x20is\x20attempted\x20to\x20unlock\x20'+b+l(0xd1)+g),g;}}return this['logger'][l(0xbb)](l(0xd2)+this['actor'][l(0xc2)]+l(0xc5)+b+'.'),'You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.';}else return this[l(0xc6)][l(0xbb)](l(0xd2)+b+l(0xb6)+c[l(0xc2)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+l(0xb0);}else return this[l(0xc6)][l(0xbb)]('UnlockCommand:\x20'+b+l(0xb6)+c['name']+'.'),l(0xd9)+b+l(0xb0);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42h=a42d;function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x116;let f=c[d];return f;},a42d(a,b);}(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x131))/0x1+parseInt(f(0x130))/0x2*(parseInt(f(0x134))/0x3)+-parseInt(f(0x125))/0x4+parseInt(f(0x121))/0x5*(parseInt(f(0x11d))/0x6)+parseInt(f(0x127))/0x7*(parseInt(f(0x122))/0x8)+parseInt(f(0x124))/0x9*(-parseInt(f(0x126))/0xa)+-parseInt(f(0x11a))/0xb*(-parseInt(f(0x118))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x2788d));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['toString']()[g(0x120)]('(((.+)+)+)+$')[g(0x116)]()['constructor'](a42a)[g(0x120)]('(((.+)+)+)+$');});a42a();import{Command}from'./command.js';function a42c(){const j=['toString','\x20not\x20retrieved\x20from\x20','2368680sCSdzO','\x27s\x20inventory.','11jnRrCc','actor','use','258ptRAPs','function','inventory','search','18505Gwjanh','15688LxAfHt','hasItem','979497ZEbTth','1220488YOLxgM','20BkQZFa','651sGanAy','verb','You\x20don\x27t\x20have\x20the\x20','\x20to\x20use.','write','\x20attempted\x20to\x20use\x20','UseCommand:\x20','Use\x20an\x20item.','name','11632GzmZzm','81839CapyYk','You\x20can\x27t\x20use\x20the\x20','execute','33JsMZCS','join','\x20doesn\x27t\x20have\x20a\x20use\x20method.','logger'];a42c=function(){return j;};return a42c();}export class UseCommand extends Command{static [a42h(0x128)]=a42h(0x11c);static ['description']=a42h(0x12e);[a42h(0x133)](a){return this['use'](a);}[a42h(0x11c)](a){const i=a42h,b=a[i(0x135)]('\x20')['toLowerCase']();if(!this[i(0x11b)][i(0x11f)][i(0x123)](b))return this[i(0x137)][i(0x12b)](i(0x12d)+this[i(0x11b)][i(0x12f)]+i(0x12c)+b+',\x20which\x20is\x20not\x20in\x20their\x20inventory.'),'You\x20don\x27t\x20have\x20the\x20'+b+i(0x12a);const c=this[i(0x11b)]['inventory']['getItem'](b);if(!c)return this[i(0x137)][i(0x12b)](i(0x12d)+b+i(0x117)+this[i(0x11b)][i(0x12f)]+i(0x119)),i(0x129)+b+i(0x12a);if(typeof c[i(0x11c)]===i(0x11e)){const d=c['use']();return this['logger'][i(0x12b)]('UseCommand:\x20'+this[i(0x11b)][i(0x12f)]+'\x20used\x20'+b+'.'),d;}else return this[i(0x137)]['write'](i(0x12d)+b+i(0x136)),i(0x132)+b+'\x20in\x20this\x20way.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a43i=a43d;function a43c(){const m=['toString','createCommand','23817015QuLHXh','8740YIxzbo','registerCommand','7483xayFnj','447404PwmRnk','apply','1279114RAoVUk','6348912gMYzPX','constructor','(((.+)+)+)+$','getAllRegisteredCommands','8718YClWFw','commandMap','10tVKGft','search','1063476iIPIlN'];a43c=function(){return m;};return a43c();}(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x1e6))/0x1+-parseInt(f(0x1f3))/0x2+-parseInt(f(0x1ef))/0x3+-parseInt(f(0x1e4))/0x4*(-parseInt(f(0x1ed))/0x5)+-parseInt(f(0x1eb))/0x6*(-parseInt(f(0x1e3))/0x7)+parseInt(f(0x1e7))/0x8+-parseInt(f(0x1f2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xce2ca));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x1f0)]()[h(0x1ee)]('(((.+)+)+)+$')[h(0x1f0)]()[h(0x1e8)](a43a)[h(0x1ee)](h(0x1e9));});function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a43d(a,b);}a43a();export class CommandFactory{static [a43i(0x1ec)]={};static[a43i(0x1f4)](a,b){const j=a43i;this[j(0x1ec)][a]=b;}static[a43i(0x1f1)](a,b){const k=a43i,c=this[k(0x1ec)][a];if(c)return new c(b);return null;}static[a43i(0x1ea)](){const l=a43i;return this[l(0x1ec)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44i=a44d;function a44c(){const o=['description','1236502gIdHld','rewardItem','sword','createRoom','createItem','constructor','toString','21067992pMgxmN','legarmor','forEach','isStartRoom','roomType','convertToRoomConfig','apply','search','type','1266346axCWKY','inventory','toUpperCase','name','bodyarmor','setPuzzle','items','1503xpTbdG','gauntlets','boots','puzzle','3oucctH','30xGGIOC','9795pdvzwq','2655956Eandix','248hjdtFH','gloves','createPuzzle','addItem','15540YrMbxK','16450oXWnsY'];a44c=function(){return o;};return a44c();}(function(a,b){const f=a44d,c=a();while(!![]){try{const d=parseInt(f(0x1aa))/0x1+-parseInt(f(0x19a))/0x2*(-parseInt(f(0x1b5))/0x3)+parseInt(f(0x1b8))/0x4+-parseInt(f(0x1b7))/0x5*(-parseInt(f(0x1b6))/0x6)+-parseInt(f(0x198))/0x7*(parseInt(f(0x193))/0x8)+parseInt(f(0x1b1))/0x9*(parseInt(f(0x197))/0xa)+-parseInt(f(0x1a1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xca951));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0x1a7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0x1a0)]()[h(0x1a8)]('(((.+)+)+)+$')['toString']()[h(0x19f)](a44a)[h(0x1a8)]('(((.+)+)+)+$');});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';function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x193;let f=c[d];return f;},a44d(a,b);}export class RoomFactory{[a44i(0x19d)](a){const j=a44i,b=this[j(0x1a6)](a),c=new Room(b);if(a[j(0x1b0)]){const d=new Inventory();a['items'][j(0x1a3)](e=>{const k=j;d[k(0x196)](this[k(0x19e)](e));}),c[j(0x1ab)]=d;}return a[j(0x1b4)]&&c[j(0x1af)](this[j(0x195)](a[j(0x1b4)])),c;}['createItem'](a){const l=a44i;switch(a[l(0x1a9)]){case'key':return new Key(a[l(0x1ad)],a[l(0x199)]);case'book':return new Book(a[l(0x1ad)],a[l(0x199)],a['content']);case l(0x19c):return new Sword(a[l(0x1ad)],a[l(0x199)]);case'rifle':return new Rifle(a[l(0x1ad)],a[l(0x199)]);case'helmet':return new Helmet(a['name'],a[l(0x199)]);case l(0x1ae):return new BodyArmor(a[l(0x1ad)],a[l(0x199)]);case l(0x1a2):return new LegArmor(a[l(0x1ad)],a[l(0x199)]);case l(0x1b3):return new Boots(a[l(0x1ad)],a[l(0x199)]);case l(0x194):return new Gloves(a[l(0x1ad)],a[l(0x199)]);case l(0x1b2):return new Gauntlets(a[l(0x1ad)],a[l(0x199)]);default:return new BasicItem(a[l(0x1ad)],a[l(0x199)]);}}[a44i(0x195)](a){const m=a44i,b=this[m(0x19e)](a[m(0x19b)]);return new Puzzle({...a,'rewardItem':b});}[a44i(0x1a6)](a){const n=a44i,b=a['roomType']&&RoomType[a[n(0x1a5)][n(0x1ac)]()]?RoomType[a[n(0x1a5)]['toUpperCase']()]:RoomType['INSIDE'];return{'name':a[n(0x1ad)],'description':a['description'],'isStartRoom':a[n(0x1a4)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(0x168))/0x1+parseInt(h(0x165))/0x2+parseInt(h(0x13d))/0x3+-parseInt(h(0x14d))/0x4*(parseInt(h(0x13e))/0x5)+-parseInt(h(0x139))/0x6+-parseInt(h(0x158))/0x7+-parseInt(h(0x149))/0x8*(parseInt(h(0x160))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x44e6a));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a45d;if(c){const e=c[i(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const j=a45d;return a45a['toString']()[j(0x153)]('(((.+)+)+)+$')[j(0x156)]()['constructor'](a45a)[j(0x153)]('(((.+)+)+)+$');});a45a();import{Scene}from'./models/scene.js';function a45c(){const s=['getHelpMessage','handleInput','trim','split','2360424ZzlwaE','registerCommands','getInstance','instance','634204lRwBpL','-\x20clear:\x20Clear\x20the\x20screen.\x0a','slice','help','player','name','search','maka','currentRoom','toString','use','1168636tmZgOz','-\x20quit:\x20Exit\x20the\x20game.\x0a','getRooms','Available\x20Commands:\x0a','scene','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','createCommand','toLowerCase','18gIQODT','unequip','initialize','lock','quit','876536LhtVux','execute','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','506051PmAllq','getDescription','hasOwnProperty','drop','apply','1757340zcojQL','currentLocation','take','registerCommand','1639182QQxyuQ','5hQEYIW','look','solve','say','rooms','Welcome,\x20','getWelcomeMessage'];a45c=function(){return s;};return a45c();}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 a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x135;let f=c[d];return f;},a45d(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 [a45k(0x14c)];[a45k(0x15c)];[a45k(0x151)];[a45k(0x155)];[a45k(0x142)];constructor(a,b){const l=a45k;this[l(0x151)]=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this[l(0x15c)][l(0x162)](),this['player'][l(0x13a)]=this['determineStartRoom'](),this[l(0x14a)]();}['registerCommands'](){const m=a45k;CommandFactory[m(0x13c)](m(0x13f),LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory['registerCommand'](m(0x13b),TakeCommand),CommandFactory[m(0x13c)](m(0x157),UseCommand),CommandFactory[m(0x13c)]('equip',EquipCommand),CommandFactory[m(0x13c)](m(0x161),UnequipCommand),CommandFactory[m(0x13c)](m(0x140),SolveCommand),CommandFactory[m(0x13c)](m(0x137),DropCommand),CommandFactory[m(0x13c)]('unlock',UnlockCommand),CommandFactory[m(0x13c)](m(0x163),LockCommand),CommandFactory['registerCommand']('search',SearchCommand),CommandFactory[m(0x13c)](m(0x141),SayCommand);}['determineStartRoom'](){const n=a45k;return this[n(0x15c)]['determineStartRoom']();}[a45k(0x144)](){const o=a45k;return o(0x143)+this[o(0x151)][o(0x152)];}static[a45k(0x14b)](a,b){const p=a45k;return!Game[p(0x14c)]&&(Game['instance']=new Game(a,b)),Game[p(0x14c)];}[a45k(0x146)](a){const q=a45k,b=a[q(0x147)]()[q(0x148)]('\x20'),c=b[0x0][q(0x15f)](),d=b[q(0x14f)](0x1);if(c===q(0x164))return null;if(c===q(0x154))return q(0x15d);if(c===q(0x150))return this[q(0x145)]();if(c==='clear')return'';const e={'actor':this[q(0x151)],'rooms':this['scene'][q(0x15a)](),'scene':this[q(0x15c)]},f=CommandFactory[q(0x15e)](c,e);if(f){const g=f[q(0x166)](d);return g;}return q(0x167)+c+'\x22.';}['getHelpMessage'](){const r=a45k,a=CommandFactory['getAllRegisteredCommands']();let b=r(0x15b);for(const c in a){if(a[r(0x136)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x135)]()+'\x0a';}}return b+=r(0x14e),b+=r(0x159),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a46d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0xb1))/0x1+parseInt(f(0xb9))/0x2*(parseInt(f(0xbd))/0x3)+parseInt(f(0xba))/0x4*(parseInt(f(0xb0))/0x5)+-parseInt(f(0xb8))/0x6+-parseInt(f(0xb4))/0x7+parseInt(f(0xb5))/0x8*(parseInt(f(0xbc))/0x9)+parseInt(f(0xbb))/0xa*(parseInt(f(0xb2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x34bf2));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0xbf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0xb3)]()[h(0xbe)](h(0xb7))[h(0xb3)]()[h(0xb6)](a46a)[h(0xbe)](h(0xb7));});function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xb0;var f=c[d];return f;},a46d(a,b);}a46a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';function a46c(){var i=['constructor','(((.+)+)+)+$','78756NDqlaN','137084swPcFR','196eoiIJv','2311520xVUazj','45ZyAloj','15uuzXge','search','apply','4955GJDxbY','370737xRLAqF','11SeMvOP','toString','2080911Ulsjmt','439624Odairy'];a46c=function(){return i;};return a46c();}export*from'./player.js';export*from'./puzzle.js';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(0xd5))/0x1*(-parseInt(f(0xd7))/0x2)+-parseInt(f(0xe1))/0x3+-parseInt(f(0xc1))/0x4+-parseInt(f(0xc3))/0x5*(parseInt(f(0xd9))/0x6)+parseInt(f(0xde))/0x7*(-parseInt(f(0xc4))/0x8)+parseInt(f(0xdd))/0x9+-parseInt(f(0xda))/0xa*(-parseInt(f(0xc8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x89f60));function a47c(){var n=['(((.+)+)+)+$','checkIfLockable','11FqLXVj','search','name','write','To\x20','logger','Failed\x20to\x20unlock\x20door:\x20','.\x20Is\x20Locked:\x20','isLocked','constructor','checkIfLocked','unlockItemOrSolution','isLockable','4zuZuTO','toString','189398PAIFCN','Door\x20created\x20between\x20','151272ykgpog','28271480nsyYXQ','Door\x20unlocked:\x20','roomA','4358160PnqGBW','4561221yGZBzS','getInstance','roomB','2431506zdnqCY','attemptUnlock','1604636nYWhEm','.\x20Used:\x20','100nRPoOi','8mYevZp','getOtherSide'];a47c=function(){return n;};return a47c();}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(0xd6)]()[g(0xc9)](g(0xc6))['toString']()[g(0xd1)](a47a)[g(0xc9)](g(0xc6));});a47a();import{Logger}from'../utilities/logger.js';function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0xc0;var f=c[d];return f;},a47d(a,b);}import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];[a47h(0xe0)];[a47h(0xd0)];['unlockItemOrSolution'];[a47h(0xca)];[a47h(0xcd)];[a47h(0xd4)];constructor(a){var i=a47h;super(),this[i(0xdc)]=a[i(0xdc)],this[i(0xe0)]=a[i(0xe0)],this[i(0xd0)]=a[i(0xd0)]||![],this[i(0xd3)]=a['unlockItemOrSolution'],this[i(0xca)]=a['name']?capitalCase(a[i(0xca)]):i(0xcc)+a['roomB'][i(0xca)],this['logger']=Logger[i(0xdf)](),this['isLockable']=!!a[i(0xd3)],this[i(0xcd)][i(0xcb)](i(0xd8)+this[i(0xdc)][i(0xca)]+'\x20and\x20'+this['roomB']['name']+i(0xcf)+this['isLocked']);}[a47h(0xc5)](a){var j=a47h;return this[j(0xdc)]===a?this[j(0xe0)]:this[j(0xdc)];}[a47h(0xc0)](a){var k=a47h;if(this[k(0xd0)]&&this['unlockItemOrSolution']&&this[k(0xd3)]===a)return this[k(0xd0)]=![],this[k(0xcd)][k(0xcb)](k(0xdb)+this[k(0xca)]+k(0xc2)+a),!![];return this[k(0xcd)][k(0xcb)](k(0xce)+this[k(0xca)]+k(0xc2)+a),![];}[a47h(0xd2)](){var l=a47h;return this[l(0xd0)];}[a47h(0xc7)](){var m=a47h;return this[m(0xd4)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0xd0))/0x1*(-parseInt(f(0xda))/0x2)+parseInt(f(0xe7))/0x3*(-parseInt(f(0xd3))/0x4)+-parseInt(f(0xcc))/0x5*(parseInt(f(0xd8))/0x6)+-parseInt(f(0xe4))/0x7+parseInt(f(0xde))/0x8*(-parseInt(f(0xe2))/0x9)+parseInt(f(0xd6))/0xa*(-parseInt(f(0xdb))/0xb)+parseInt(f(0xd1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x65b40));function a48c(){const r=['getAllItems','33OPUyZV','name','getItem','getWeight','get','keys','toLowerCase','getInstance','addItem','weight','map','Checked\x20for\x20item:\x20','write','logger','set','5JCJGWM','listItems','.\x20Exists:\x20','values','18782CDpzTb','39020304oSBWvA','\x20from\x20inventory.','271640jPkqNS','items','Added\x20item:\x20','89410KDigQT','delete','2042754FNSPdZ','hasItem','46jKWwlF','803EOBqaL','Listed\x20items\x20in\x20inventory:\x20','removeItem','2901896mdNbgj','join','apply','search','9FsdazG','(((.+)+)+)+$','2101617lJTjwi','.\x20Item\x20not\x20found.'];a48c=function(){return r;};return a48c();}const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a['toString']()[h(0xe1)]('(((.+)+)+)+$')['toString']()['constructor'](a48a)[h(0xe1)](h(0xe3));});function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0xc8;let f=c[d];return f;},a48d(a,b);}a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48i(0xd4)];[a48i(0xca)];constructor(){const j=a48i;super(),this['items']=new Map(),this['logger']=Logger[j(0xee)]();}[a48i(0xef)](a){const k=a48i;this[k(0xd4)][k(0xcb)](a[k(0xe8)][k(0xed)](),a),this[k(0xca)]['write'](k(0xd5)+a[k(0xe8)]+'\x20to\x20inventory.');}[a48i(0xdd)](a){const l=a48i,b=this[l(0xe9)](a);if(b)return this[l(0xd4)][l(0xd7)](a['toLowerCase']()),this[l(0xca)][l(0xc9)]('Removed\x20item:\x20'+a+l(0xd2)),b;return this[l(0xca)][l(0xc9)]('Failed\x20to\x20remove\x20item:\x20'+a+'.\x20Item\x20not\x20found.'),null;}[a48i(0xd9)](a){const m=a48i,b=this[m(0xd4)]['has'](a[m(0xed)]()),c=[...this[m(0xd4)][m(0xec)]()];return this['logger'][m(0xc9)](m(0xc8)+a+'\x20in\x20'+c['join'](',\x20')+m(0xce)+b+'.'),b;}['getItem'](a){const n=a48i,b=this['items'][n(0xeb)](a['toLowerCase']())||null;return b?this['logger']['write']('Retrieved\x20details\x20for\x20item:\x20'+a+'.'):this[n(0xca)][n(0xc9)]('Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'+a+n(0xe5)),b;}[a48i(0xcd)](){const o=a48i,a=[...this[o(0xd4)]['keys']()],b=a[o(0xf1)](c=>capitalCase(c));return this[o(0xca)]['write'](o(0xdc)+b[o(0xdf)](',\x20')+'.'),a;}[a48i(0xea)](){const p=a48i;let a=0x0;for(const b of this[p(0xd4)][p(0xcf)]()){a+=b[p(0xf0)];}return a;}[a48i(0xe6)](){const q=a48i;return[...this['items'][q(0xcf)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;function
|
|
1
|
+
var a49i=a49d;function a49c(){var l=['name','size','texture','apply','constructor','(((.+)+)+)+$','5696600MarZrR','6621455xNtQfo','uuid','842568lcVmCa','shape','color','weight','2286306NBYnJw','You\x20use\x20the\x20','search','rating','toString','use','15629460todgIl','.\x20Nothing\x20special\x20happens.','1110780dRWKJr','description','category','415467mFJosk'];a49c=function(){return l;};return a49c();}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0xb8))/0x1+parseInt(f(0xad))/0x2+parseInt(f(0xb5))/0x3+-parseInt(f(0xa6))/0x4+-parseInt(f(0xa7))/0x5+parseInt(f(0xa9))/0x6+parseInt(f(0xb3))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xb0719));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0xb1)]()['search'](h(0xbe))[h(0xb1)]()[h(0xbd)](a49a)[h(0xaf)](h(0xbe));});a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xa6;var f=c[d];return f;},a49d(a,b);}export class Item extends AbstractItem{[a49i(0xa8)];['name'];['description'];[a49i(0xba)];[a49i(0xb7)];[a49i(0xaa)];[a49i(0xab)];[a49i(0xbb)];[a49i(0xb0)];[a49i(0xac)];constructor(a){var j=a49i;super(),this[j(0xb9)]=a[j(0xb9)],this[j(0xb6)]=a[j(0xb6)],this['size']=a['size'],this[j(0xb7)]=a[j(0xb7)],this[j(0xaa)]=a[j(0xaa)],this[j(0xab)]=a[j(0xab)],this[j(0xbb)]=a[j(0xbb)],this['rating']=a[j(0xb0)],this[j(0xac)]=a[j(0xac)],this[j(0xa8)]=a49e();}[a49i(0xb2)](){var k=a49i;return k(0xae)+this[k(0xb9)]+k(0xb4);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50i=a50d;function
|
|
1
|
+
const a50i=a50d;function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x18f;let f=c[d];return f;},a50d(a,b);}(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x1a3))/0x1+parseInt(f(0x1a0))/0x2+parseInt(f(0x199))/0x3+parseInt(f(0x19b))/0x4+-parseInt(f(0x197))/0x5+parseInt(f(0x19c))/0x6+-parseInt(f(0x1a5))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x4d313));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0x191)]()['search'](h(0x1a1))['toString']()[h(0x195)](a50a)[h(0x18f)]('(((.+)+)+)+$');});a50a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';function a50c(){const n=['1958868tridrv','_name','apply','random','87448gBWuof','(((.+)+)+)+$','scene','434692jZimvD','moveTo','6317031XagkAm','speak','search','floor','toString','execute','_dialogue','rooms','constructor','length','3143175lyHyGV','name','1337823zDmosJ','autonomousMove','2385648uFZiXh'];a50c=function(){return n;};return a50c();}export class NPC extends Player{[a50i(0x19d)];['_dialogue'];[a50i(0x194)];[a50i(0x1a2)];constructor(a,b,c,d){const j=a50i;super(d),this['_name']=a,this[j(0x193)]=b,this['rooms']=c;}get[a50i(0x198)](){return this['_name'];}[a50i(0x1a6)](){const k=a50i;return this['_dialogue'][Math[k(0x190)](Math[k(0x19f)]()*this[k(0x193)][k(0x196)])];}[a50i(0x19a)](a){const l=a50i,b=a[Math[l(0x190)](Math[l(0x19f)]()*a[l(0x196)])];this['moveTo'](b[l(0x198)]);}[a50i(0x1a4)](a){const m=a50i,b={'actor':this,'rooms':this[m(0x194)],'scene':this[m(0x1a2)]},c=new GoCommand(b);c[m(0x192)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0xd0))/0x1*(parseInt(f(0xe4))/0x2)+-parseInt(f(0xb0))/0x3*(parseInt(f(0xbb))/0x4)+-parseInt(f(0xcc))/0x5*(-parseInt(f(0xa9))/0x6)+parseInt(f(0xb2))/0x7+parseInt(f(0xe0))/0x8*(parseInt(f(0xf3))/0x9)+parseInt(f(0xc0))/0xa*(parseInt(f(0xb9))/0xb)+parseInt(f(0xce))/0xc*(-parseInt(f(0xc8))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x5c720));function a51c(){const C=['1448VQPEKf','Max\x20carrying\x20weight\x20must\x20be\x20positive.','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','_maxCarryingWeight','_inventory','1725950djlrgI','write','\x20from\x20player\x27s\x20inventory.','\x20to\x20player\x27s\x20inventory.','Added\x20','leaveRoom','initialEquipment','weapon','962BHUCfQ','BodyArmor','You\x20can\x27t\x20equip\x20','_playerName','1758705FwCcDw','arm\x20armor','85692XshOHx','leftHand','15NvEira','A\x20featureless\x20room','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','log','logger','Weapon','leg\x20armor','boots','removeInventory','helmet','unequipBySlot','gloves','legarmor','values','Failed\x20to\x20remove\x20','You\x20equipped\x20','14368UJapkw','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','name','toLowerCase','50156chWTad','addItem','getInstance','_equipment','rightHand','\x20says:\x20\x22','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','enterRoom','hear','torso','shield','legs','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','You\x20don\x27t\x20have\x20','constructor','18CRErnw','Helmet','startLocation','toString','includes','playerName','\x20is\x20no\x20longer\x20listeng\x20in\x20','addInventory','feet','speak','equipment','search','Invalid\x20category\x20or\x20slot:\x20','\x20slot.','head','inventory','bodyarmor','hat','You\x20unequipped\x20','_currentLocation','category','off','(((.+)+)+)+$','weight','6zwkfUo','hasItem','\x20is\x20now\x20listening\x20in\x20room\x20','bind','canEquip','ArmArmor','currentLocation','6141LyBwbE','determineEquipmentSlot','2791712OpDEvd','maxCarryingWeight','.\x20You\x20must\x20unequip\x20it\x20first.','getWeight','Shield','apply','arms','33NWRnPd','inventoryItems'];a51c=function(){return C;};return a51c();}const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0xb7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0xf6)]()['search'](h(0xa7))['toString']()[h(0xf2)](a51a)[h(0xfe)]('(((.+)+)+)+$');});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';import{AbstractPlayer}from'../types/abstracts.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x9d;let f=c[d];return f;},a51d(a,b);}export class Player extends AbstractPlayer{[a51i(0xcb)];[a51i(0xa4)];['_inventory'];[a51i(0xe7)];[a51i(0xbe)]=0x32;[a51i(0xd4)];constructor(a){const j=a51i;super(),this['_playerName']=a[j(0xf8)],this[j(0xa4)]=a[j(0xf5)]||new Room({'name':'Nexus','description':j(0xd1)}),this[j(0xbf)]=new Inventory(),this['logger']=Logger[j(0xe6)]();if(a?.[j(0xba)])for(const b of a[j(0xba)]){this['_inventory'][j(0xe5)](b);}this['_equipment']=a?.[j(0xc6)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51i(0xe2)](){const k=a51i;return this[k(0xcb)];}get[a51i(0xaf)](){const l=a51i;return this[l(0xa4)];}set['currentLocation'](a){const m=a51i;this[m(0xa4)]!==a&&(this[m(0xc5)](),this['enterRoom'](a)),this[m(0xa4)]=a;}get[a51i(0xa0)](){const n=a51i;return this[n(0xbf)];}get[a51i(0xfd)](){return this['_equipment'];}set[a51i(0xfd)](a){const o=a51i;this[o(0xe7)]=a;}get[a51i(0xb3)](){const p=a51i;return this[p(0xbe)];}set[a51i(0xb3)](a){const q=a51i;a>0x0?this['_maxCarryingWeight']=a:console['error'](q(0xbc));}get['currentWeight'](){const r=a51i;let a=this[r(0xbf)][r(0xb5)]();for(const b in this[r(0xe7)]){const c=this[r(0xe7)][b];c&&(a+=c[r(0xa8)]);}return a;}[a51i(0xfa)](a){const s=a51i;if(this['currentWeight']+a[s(0xa8)]>this[s(0xb3)]){this['logger'][s(0xc1)](s(0xe1));throw new Error(s(0xf0));}this[s(0xbf)][s(0xe5)](a),this[s(0xd4)][s(0xc1)](s(0xc4)+a[s(0xe2)]+s(0xc3));}[a51i(0xd8)](a){const t=a51i;if(this[t(0xbf)]['removeItem'](a[t(0xe2)]))return this[t(0xd4)][t(0xc1)]('Removed\x20'+a['name']+t(0xc2)),!![];return this[t(0xd4)][t(0xc1)](t(0xde)+a[t(0xe2)]+t(0xc2)),![];}['equip'](a){const u=a51i;if(!this['_inventory'][u(0xaa)](a['name']))return u(0xf1)+a[u(0xe2)]+'\x20in\x20your\x20inventory.';if(!this[u(0xad)](a))return u(0xca)+a[u(0xe2)]+'.';const b=this[u(0xb1)](a['category']);if(!b)return a[u(0xe2)]+u(0xea);if(this[u(0xfd)][b])return u(0xd2)+b+u(0xb4);return this['equipment'][b]=a,this[u(0xd8)](a),u(0xdf)+a[u(0xe2)]+'.';}['unequip'](a){const v=a51i;let b=a;if(!this['equipment'][camelCase(b)]){b=this[v(0xb1)](a);if(!b)return v(0x9d)+a+'.';}return this[v(0xda)](b);}[a51i(0xb1)](a){const w=a51i;switch(a[w(0xe3)]()){case Category[w(0xd5)][w(0xe3)]():return w(0xe8);case Category[w(0xb6)][w(0xe3)]():return w(0xcf);case Category['Gloves'][w(0xe3)]():return w(0xdb);case Category[w(0xf4)][w(0xe3)]():case Category['Hat'][w(0xe3)]():return w(0x9f);case Category['Boots'][w(0xe3)]():return w(0xfb);case Category['LegArmor']['toLowerCase']():return w(0xef);case Category[w(0xae)]['toLowerCase']():return w(0xb8);case Category[w(0xc9)][w(0xe3)]():return w(0xed);case w(0xc7):return'rightHand';case w(0xee):return w(0xcf);case w(0xdb):return w(0xdb);case w(0xd9):case w(0xa2):return w(0x9f);case w(0xd7):return w(0xfb);case w(0xd6):case w(0xdc):return w(0xef);case w(0xcd):case'armarmor':return w(0xb8);case'body\x20armor':case w(0xa1):case w(0xed):return w(0xed);default:return null;}}[a51i(0xad)](a){const x=a51i;return Object[x(0xdd)](Category)[x(0xf7)](a[x(0xa5)]);}[a51i(0xda)](a){const y=a51i,b=this[y(0xfd)][a];if(!b)return y(0xbd)+a+y(0x9e);return this[y(0xfa)](b),this[y(0xfd)][a]=null,y(0xa3)+b['name']+'.';}['hear'](a,b){const z=a51i;a!==this&&this['logger'][z(0xd3)](a[z(0xe2)]+z(0xe9)+b+'\x22');}[a51i(0xeb)](a){const A=a51i;this['_currentLocation']=a,a['on'](A(0xfc),this[A(0xec)][A(0xac)](this)),this[A(0xd4)][A(0xc1)](this[A(0xe2)]+A(0xab)+a['name']);}[a51i(0xc5)](){const B=a51i;this[B(0xa4)]&&(this[B(0xa4)][B(0xa6)]('speak',this[B(0xec)][B(0xac)](this)),this[B(0xd4)][B(0xc1)](this[B(0xe2)]+B(0xf9)+this['_currentLocation']['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x15c))/0x1*(-parseInt(f(0x164))/0x2)+parseInt(f(0x15d))/0x3+-parseInt(f(0x15a))/0x4+parseInt(f(0x156))/0x5+-parseInt(f(0x14d))/0x6+-parseInt(f(0x155))/0x7*(parseInt(f(0x158))/0x8)+parseInt(f(0x161))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x67c85));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(0x16a)]()[g(0x163)]('(((.+)+)+)+$')['toString']()[g(0x168)](a52a)[g(0x163)](g(0x152));});function a52c(){var m=['requiredPhrase','toString','logger','4152114DopTbc','write','matchesRequiredPhrase','You\x20solved\x20the\x20puzzle!','requiredItem','(((.+)+)+)+$','riddle','hasItem','21NHSuxl','1486675HAWvtJ','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','1735392NeaFJi','failureMessage','1820652CagnhA','Puzzle:\x20Correct\x20solution\x20provided.','564ChnkfJ','2370951VvGmcx','successMessage','hasRequiredItem','solve','16213311fCUAwW','rewardItem','search','2362IAhsLN','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','solved','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','constructor'];a52c=function(){return m;};return a52c();}a52a();function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x14c;var f=c[d];return f;},a52d(a,b);}import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger['getInstance']();[a52h(0x166)]=![];['requiredItem'];[a52h(0x169)];[a52h(0x153)];[a52h(0x162)];[a52h(0x15e)];[a52h(0x159)];constructor(a){var i=a52h;super(),this[i(0x151)]=a['requiredItem'],this[i(0x169)]=a[i(0x169)],this['riddle']=a[i(0x153)],this[i(0x162)]=a[i(0x162)],this[i(0x15e)]=a[i(0x15e)]||i(0x150),this[i(0x159)]=a['failureMessage']||i(0x157);}[a52h(0x15f)](a){var j=a52h;if(this[j(0x151)])return a[j(0x154)](this[j(0x151)]);return![];}[a52h(0x14f)](a){var k=a52h;return this[k(0x169)]===a;}[a52h(0x160)](a,b){var l=a52h;if(this[l(0x166)])return this[l(0x14c)][l(0x14e)](l(0x167)),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this[l(0x15f)](b)||this[l(0x14f)](a)?(this[l(0x166)]=!![],this[l(0x14c)][l(0x14e)](l(0x15b)),{'success':!![],'message':this[l(0x15e)]}):(this[l(0x14c)][l(0x14e)](l(0x165)),{'success':![],'message':this['failureMessage']});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d
|
|
1
|
+
const a53i=a53d;function a53c(){const u=['\x20remains\x20locked.','inventory','roomA','8129465hazxNr','Item\x20added\x20to\x20room\x20','getOppositeDirection','attemptUnlock','66119HOHphY','apply','Fetching\x20exit\x20in\x20direction:\x20','set','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','constructor','4806112YPemIU','EAST','removeItem','search','DOWN','isExitLocked','puzzle','getExit','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','3NDiZCS','9030XsgjcT','2419726iKqowH','name','exits','values','Invalid\x20direction:\x20','roomType','logger','Checking\x20if\x20exit\x20in\x20direction\x20','description','NORTH','west','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','13044816IUdEpc','down','14139DViEqf','Item\x20removed\x20from\x20room\x20','isStartRoom','getInstance','north','findExistingDoor','INSIDE','5574ibOIkt','(((.+)+)+)+$','2849myyijv','setPuzzle','roomB','WEST','toString','hasItem','get','speak','addItem','say','addExit','write'];a53c=function(){return u;};return a53c();}(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x116))/0x1+-parseInt(f(0x127))/0x2*(-parseInt(f(0x125))/0x3)+parseInt(f(0x11c))/0x4+-parseInt(f(0x112))/0x5+-parseInt(f(0x101))/0x6*(-parseInt(f(0x103))/0x7)+-parseInt(f(0xf8))/0x8+-parseInt(f(0xfa))/0x9*(-parseInt(f(0x126))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xd82f5));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x117)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0x107)]()[h(0x11f)](h(0x102))[h(0x107)]()[h(0x11b)](a53a)[h(0x11f)](h(0x102));});a53a();function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xf3;let f=c[d];return f;},a53d(a,b);}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';export class Room extends AbstractRoom{['logger']=Logger[a53i(0xfd)]();[a53i(0x128)];[a53i(0xf4)];['exits']=new Map();[a53i(0x12c)];['isStartRoom'];[a53i(0x110)]=new Inventory();constructor(a){const j=a53i;super(),this['name']=a[j(0x128)],this['description']=a[j(0xf4)],this['roomType']=a[j(0x12c)]||RoomType[j(0x100)],a[j(0x129)]&&(this['exits']=a[j(0x129)]||new Map()),a[j(0x110)]&&(this['inventory']=a[j(0x110)]),a['puzzle']&&(this[j(0x122)]=a[j(0x122)]),this[j(0xfc)]=a[j(0xfc)]||![],this[j(0x12d)]['write']('Room\x20created:\x20'+this['name']);}[a53i(0x10c)](a,b){const k=a53i;this['emit'](k(0x10a),a,b);}[a53i(0x10d)](a,b,c){const l=a53i;let d=this[l(0xff)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x129)]['set'](a,d),b[l(0x129)][l(0x119)](this[l(0x114)](a),d);}['attemptUnlockExit'](a,b){const m=a53i,c=this[m(0x129)][m(0x109)](a);if(c instanceof Door){const d=c[m(0x115)](b);return this[m(0x12d)][m(0x10e)](m(0x11a)+a+'.\x20Success:\x20'+d),d?'The\x20'+c[m(0x128)]+'\x20unlocked!':'The\x20'+c[m(0x128)]+m(0x10f);}return this[m(0x12d)][m(0x10e)]('No\x20locked\x20exit\x20found\x20in\x20direction\x20'+a),m(0xf7);}[a53i(0x123)](a){const n=a53i;return this['logger'][n(0x10e)](n(0x118)+a),this[n(0x129)]['get'](a);}[a53i(0x121)](a){const o=a53i,b=this[o(0x129)][o(0x109)](a),c=b instanceof Door&&b['checkIfLocked']();return this['logger'][o(0x10e)](o(0xf3)+a+'\x20is\x20locked.\x20Result:\x20'+c),c;}['addItem'](a){const p=a53i;this[p(0x110)][p(0x10b)](a),this[p(0x12d)][p(0x10e)](p(0x113)+this[p(0x128)]+':\x20'+a[p(0x128)]);}[a53i(0x11e)](a){const q=a53i;this[q(0x110)][q(0x108)](a['name'])?(this[q(0x110)][q(0x11e)](a['name']),this['logger'][q(0x10e)](q(0xfb)+this['name']+':\x20'+a[q(0x128)])):this[q(0x12d)][q(0x10e)](q(0x124)+this['name']+':\x20'+a[q(0x128)]);}[a53i(0x104)](a){const r=a53i;this[r(0x122)]=a,this[r(0x12d)][r(0x10e)]('Puzzle\x20set\x20for\x20room\x20'+this[r(0x128)]+':\x20'+a['riddle']);}[a53i(0x114)](a){const s=a53i;switch(a){case s(0xfe):return Direction['SOUTH'];case'south':return Direction[s(0xf5)];case'east':return Direction[s(0x106)];case s(0xf6):return Direction[s(0x11d)];case'up':return Direction[s(0x120)];case s(0xf9):return Direction['UP'];default:throw new Error(s(0x12b)+a);}}[a53i(0xff)](a){const t=a53i;for(const b of this[t(0x129)][t(0x12a)]()){if(b instanceof Door){if(b[t(0x111)]===this&&b[t(0x105)]===a||b['roomB']===this&&b[t(0x111)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d=parseInt(i(
|
|
1
|
+
const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d=parseInt(i(0x13c))/0x1+parseInt(i(0x13e))/0x2+parseInt(i(0x12b))/0x3*(-parseInt(i(0x142))/0x4)+-parseInt(i(0x12c))/0x5+parseInt(i(0x138))/0x6*(parseInt(i(0x123))/0x7)+parseInt(i(0x13b))/0x8+parseInt(i(0x127))/0x9*(-parseInt(i(0x112))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x46194));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a['toString']()['search'](k(0x10b))[k(0x13f)]()[k(0x139)](a54a)['search'](k(0x10b));});a54a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';function a54c(){const E=['write','(((.+)+)+)+$','getRooms','apply','exits','toUpperCase','addItemToRoom','addExit','198080KcfPpa','keyRequired','set','Actor\x20with\x20name\x20','Added\x20item\x20','setPuzzle','roomFactory','actors','createRoom','getActor','addItem','\x27s\x20location.\x20Room\x20','Removed\x20room\x20from\x20scene:\x20','length','keys','\x20to\x20room\x20','from','17241EtZUzN','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','warn','getCharacterLocation','27pIcnHY','createExitsFromConfig','setCharacterLocation','Scene\x20initialized\x20with\x20rooms:\x20','57vOmcOw','2782770kPzoMK','Added\x20puzzle\x20to\x20room\x20','rooms','characterLocations','name','delete','Room\x20\x22','determineStartRoom','player','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','push','has','438kACIms','constructor','roomConfiguration','3487920hLoPXv','170231DftWex','\x20not\x20found\x20in\x20scene.','525054JwkpTu','toString','logger','Failed\x20to\x20set\x20','30620AbjSlS','\x22\x20does\x20not\x20exist.','.\x20Room\x20','targetRoom','currentLocation','getPlayer','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','get','isStartRoom'];a54c=function(){return E;};return a54c();}import{RoomFactory}from'../factories/roomsF.js';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x103;let f=c[d];return f;},a54d(a,b);}export class Scene extends AbstractScene{[a54l(0x12e)];['player'];['logger'];[a54l(0x119)];[a54l(0x12f)]=new Map();['roomFactory'];constructor(a){const m=a54l;super(),this[m(0x118)]=new RoomFactory(),this[m(0x134)]=a['player'],this[m(0x12e)]=this['generateRoomsFromConfig'](a[m(0x13a)]),this[m(0x140)]=Logger['getInstance'](),this[m(0x119)]=new Map(),this['createExitsFromConfig'](a[m(0x13a)]),this[m(0x140)][m(0x10a)](m(0x12a)+Object[m(0x120)](this['rooms'])['join'](',\x20'));}['initialize'](){const n=a54l;this[n(0x134)][n(0x105)]=this[n(0x133)]();}['generateRoomsFromConfig'](a){const o=a54l;if(!this[o(0x118)])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this[o(0x118)][o(0x11a)](c);b[c[o(0x130)]]=d;}return b;}[a54l(0x128)](a){const p=a54l;for(const b of a){const c=this[p(0x12e)][b[p(0x130)]];if(b[p(0x10e)])for(const d of b[p(0x10e)]){const e=d['direction'][p(0x10f)](),f=d[p(0x104)],g=d[p(0x113)],h=this[p(0x12e)][f];h&&c[p(0x111)](Direction[e],h,g);}}}['addActor'](a){const q=a54l;if(this[q(0x119)][q(0x137)](a[q(0x130)]))throw new Error(q(0x115)+a[q(0x130)]+'\x20already\x20exists\x20in\x20the\x20scene.');this[q(0x119)][q(0x114)](a[q(0x130)],a);}['removeActor'](a){const r=a54l;if(!this[r(0x119)]['has'](a))throw new Error('No\x20actor\x20with\x20name\x20'+a+'\x20found\x20in\x20the\x20scene.');this[r(0x119)][r(0x131)](a);}[a54l(0x11b)](a){const s=a54l;return this[s(0x119)]['get'](a);}get['allActors'](){const t=a54l;return Array[t(0x122)](this[t(0x119)]['values']());}['addRoom'](a){const u=a54l;this['rooms'][a['name']]=a,this[u(0x140)][u(0x10a)]('Added\x20room\x20to\x20scene:\x20'+a[u(0x130)]);}['removeRoom'](a){const v=a54l;return this[v(0x12e)][a]?(delete this[v(0x12e)][a],this[v(0x140)][v(0x10a)](v(0x11e)+a),!![]):(this['logger']['write'](v(0x107)+a),![]);}[a54l(0x110)](a,b){const w=a54l,c=this[w(0x12e)][b];c?(c[w(0x11c)](a),this['logger'][w(0x10a)](w(0x116)+a[w(0x130)]+w(0x121)+c['name'])):this[w(0x140)][w(0x10a)]('Failed\x20to\x20add\x20item\x20'+a[w(0x130)]+w(0x103)+b+w(0x13d));}['addPuzzleToRoom'](a,b){const x=a54l,c=this[x(0x12e)][b];c?(c[x(0x117)](a),this[x(0x140)][x(0x10a)](x(0x12d)+c[x(0x130)])):this[x(0x140)][x(0x10a)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a54l(0x129)](a,b){const y=a54l,c=this[y(0x12e)][b];c?(this['characterLocations'][y(0x114)](a[y(0x130)],c),this[y(0x140)][y(0x10a)](a[y(0x130)]+'\x20is\x20now\x20in\x20room\x20'+c['name'])):this[y(0x140)][y(0x10a)](y(0x141)+a['name']+y(0x11d)+b+'\x20not\x20found\x20in\x20scene.');}[a54l(0x126)](a){const z=a54l;return this[z(0x12f)][z(0x108)](a['name']);}[a54l(0x133)](){const A=a54l,a=[];for(const c in this[A(0x12e)]){if(this['rooms']['hasOwnProperty'](c)){const d=this[A(0x12e)][c];d[A(0x109)]&&a[A(0x136)](d);}}if(a[A(0x11f)]>0x1)throw new Error(A(0x135));if(a[A(0x11f)]===0x1)return a[0x0];const b=Object['keys'](this[A(0x12e)]);if(b[A(0x11f)]===0x0)throw new Error('No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.');return console[A(0x125)](A(0x124)),this[A(0x12e)][b[0x0]];}[a54l(0x106)](){const B=a54l;return this[B(0x134)];}[a54l(0x10c)](){const C=a54l;return this[C(0x12e)];}['connectRooms'](a,b,c,d){const D=a54l,e=this[D(0x12e)][a],f=this[D(0x12e)][c];if(!e)throw new Error(D(0x132)+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error('Room\x20\x22'+c+D(0x143));e[D(0x111)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(0x1f1))/0x1*(-parseInt(f(0x1ef))/0x2)+parseInt(f(0x1ce))/0x3*(-parseInt(f(0x1c9))/0x4)+-parseInt(f(0x1f6))/0x5+parseInt(f(0x1f3))/0x6*(parseInt(f(0x1d7))/0x7)+-parseInt(f(0x1d5))/0x8*(-parseInt(f(0x1ca))/0x9)+parseInt(f(0x1d9))/0xa+-parseInt(f(0x1de))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x30b00));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var g=a55d;return a55a[g(0x1da)]()[g(0x1e5)](g(0x1e6))[g(0x1da)]()['constructor'](a55a)[g(0x1e5)](g(0x1e6));});a55a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var h=a55d;super({'name':a,'description':b,'size':Size[h(0x1d2)],'category':Category[h(0x1ed)],'shape':Shape[h(0x1cb)],'color':Color['Yellow'],'texture':Texture['Smooth'],'rating':Rating[h(0x1ea)],'weight':0x1});}[a55i(0x1d0)](){var j=a55i;return this[j(0x1d8)];}}export class Sword extends Item{constructor(a,b){var k=a55i;super({'name':a,'description':b,'size':Size[k(0x1d2)],'category':Category[k(0x1ee)],'shape':Shape[k(0x1e9)],'color':Color[k(0x1dd)],'texture':Texture[k(0x1cf)],'rating':Rating[k(0x1ea)],'weight':0x3});}}function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x1c7;var f=c[d];return f;},a55d(a,b);}export class Rifle extends Item{constructor(a,b){var l=a55i;super({'name':a,'description':b,'size':Size['Large'],'category':Category[l(0x1ee)],'shape':Shape[l(0x1e8)],'color':Color[l(0x1dc)],'texture':Texture[l(0x1cf)],'rating':Rating[l(0x1d1)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[m(0x1e3)],'shape':Shape[m(0x1f0)],'color':Color[m(0x1dd)],'texture':Texture[m(0x1cf)],'rating':Rating[m(0x1ea)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a55i;super({'name':a,'description':b,'size':Size[n(0x1ec)],'category':Category[n(0x1cd)],'shape':Shape['Rectangle'],'color':Color[n(0x1dd)],'texture':Texture[n(0x1cf)],'rating':Rating['Common'],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['LegArmor'],'shape':Shape[o(0x1cb)],'color':Color[o(0x1dd)],'texture':Texture['Metallic'],'rating':Rating[o(0x1ea)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a55i;super({'name':a,'description':b,'size':Size[p(0x1d2)],'category':Category[p(0x1e4)],'shape':Shape[p(0x1f0)],'color':Color['Brown'],'texture':Texture[p(0x1e0)],'rating':Rating[p(0x1ea)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a55i;super({'name':a,'description':b,'size':Size[q(0x1f7)],'category':Category[q(0x1f4)],'shape':Shape[q(0x1f0)],'color':Color[q(0x1dc)],'texture':Texture[q(0x1e0)],'rating':Rating[q(0x1ea)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a55i;super({'name':a,'description':b,'size':Size[r(0x1d2)],'category':Category['ArmArmor'],'shape':Shape[r(0x1cb)],'color':Color[r(0x1dd)],'texture':Texture[r(0x1cf)],'rating':Rating[r(0x1ea)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a55i;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category['Key'],'shape':Shape[s(0x1cb)],'color':Color['Yellow'],'texture':Texture[s(0x1e0)],'rating':Rating[s(0x1ea)],'weight':0x0});}[a55i(0x1d0)](){return'This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22';}}function a55c(){var D=['Medium','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','56936ySZwJT','Sniper\x20Rifle','78589xxebwn','description','2019530LAbAYO','toString','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Brown','Grey','199353QgocXA','Legendary','Smooth','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Helmet','Boots','search','(((.+)+)+)+$','author','Rifle','Blade','Common','Book','Large','Unknown','Weapon','31678FJBTgc','Circle','4KYFgZM','A\x20mysterious\x20book.','180LEgNnW','Gloves','pageCount','188575uFLovG','Small','Cup','Short\x20Sword','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','355368RQcoxd','171PYdrmS','Rectangle','name','BodyArmor','12PFHkDQ','Metallic','use','Rare'];a55c=function(){return D;};return a55c();}export class Weapon extends Item{constructor(a,b){var t=a55i;super({'name':a,'description':b,'size':Size[t(0x1d2)],'category':Category['Weapon'],'shape':Shape[t(0x1e9)],'color':Color[t(0x1dd)],'texture':Texture[t(0x1cf)],'rating':Rating['Common'],'weight':0x3});}[a55i(0x1d0)](){var u=a55i;return u(0x1e1);}}export class Book extends Item{[a55i(0x1e7)];['publishDate'];[a55i(0x1f5)];constructor(a,b=a55i(0x1f2),c='Unknown\x20Author'){var v=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[v(0x1eb)],'shape':Shape[v(0x1cb)],'color':Color['Brown'],'texture':Texture['Smooth'],'rating':Rating['Common'],'weight':0x1}),this[v(0x1e7)]=c,this['publishDate']=new Date(),this[v(0x1f5)]=0x64;}[a55i(0x1d0)](){var w=a55i;return w(0x1c8);}}export class ShortSword extends Item{constructor(){var x=a55i;super({'name':x(0x1c7),'description':x(0x1e2),'size':Size['Medium'],'category':Category[x(0x1ee)],'shape':Shape['Blade'],'color':Color['Grey'],'texture':Texture[x(0x1cf)],'rating':Rating[x(0x1ea)],'weight':0x3});}[a55i(0x1d0)](){var y=a55i;return y(0x1e1);}}export class SniperRifle extends Item{constructor(){var z=a55i;super({'name':z(0x1d6),'description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size['Large'],'category':Category[z(0x1ee)],'shape':Shape['Rifle'],'color':Color[z(0x1dc)],'texture':Texture['Smooth'],'rating':Rating['Common'],'weight':0x5});}[a55i(0x1d0)](){var A=a55i;return A(0x1d4);}}export class HolyGrail extends Item{constructor(){var B=a55i;super({'name':'Holy\x20Grail','description':B(0x1d3),'size':Size[B(0x1f7)],'category':Category[B(0x1f8)],'shape':Shape['Circle'],'color':Color['Gold'],'texture':Texture[B(0x1cf)],'rating':Rating[B(0x1df)],'weight':0x1});}[a55i(0x1d0)](){var C=a55i;return'You\x20hold\x20the\x20'+this[C(0x1cc)]+C(0x1db);}}
|