@maka/maka-cli 4.6.16 → 4.6.17
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 -2
- 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/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/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 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34i=a34d;(function(a,b){const f=a34d,c=a();while(!![]){try{const d
|
|
1
|
+
const a34i=a34d;function a34c(){const l=['\x20Locked\x20the\x20','search','get','inventory','3462JiEcEW','\x22\x20is\x20already\x20locked.','description','isLocked','execute','toString','lock','\x20door.','1725016QlBnvq','logger','toLowerCase','name','has','exits','actor','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','4488651NciZzK','isValidDirection','809526tEehCO','write','LockCommand:\x20','hasItem','1925VBKIIE','(((.+)+)+)+$','1151244HVmOod','currentLocation','apply','LockCommand:\x20No\x20target\x20specified.','1ZnXNPV','344558jKAmtW','length','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20lock.','The\x20door\x20named\x20\x22','18190YfklCq','error'];a34c=function(){return l;};return a34c();}(function(a,b){const f=a34d,c=a();while(!![]){try{const d=-parseInt(f(0x202))/0x1*(parseInt(f(0x203))/0x2)+-parseInt(f(0x1f8))/0x3+-parseInt(f(0x1fe))/0x4+parseInt(f(0x207))/0x5+parseInt(f(0x20d))/0x6*(parseInt(f(0x1fc))/0x7)+parseInt(f(0x215))/0x8+parseInt(f(0x1f6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a34c,0x23d3b));const a34b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a34d;if(c){const e=c[g(0x200)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a34a=a34b(this,function(){const h=a34d;return a34a[h(0x212)]()[h(0x20a)](h(0x1fd))[h(0x212)]()['constructor'](a34a)[h(0x20a)]('(((.+)+)+)+$');});a34a();import{Command}from'./command.js';function a34d(a,b){const c=a34c();return a34d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a34d(a,b);}export class LockCommand extends Command{static ['verb']=a34i(0x213);static [a34i(0x20f)]='Lock\x20a\x20door.';[a34i(0x211)](a){const j=a34i;return this[j(0x213)](a);}[a34i(0x213)](a){const k=a34i;if(a[k(0x204)]===0x0)return this[k(0x1ef)][k(0x208)](k(0x201)),k(0x205);const b=a[0x0]['toLowerCase'](),c=this[k(0x1f4)][k(0x1ff)];if(this[k(0x1f7)](b)&&c[k(0x1f3)][k(0x1f2)](b)){const d=c[k(0x1f3)][k(0x20b)](b);if(d[k(0x210)])return k(0x206)+b+k(0x20e);const e=d['unlockItemOrSolution']?.[k(0x1f0)]();return e&&this[k(0x1f4)][k(0x20c)][k(0x1fb)](e)?(d['isLocked']=!![],this[k(0x1ef)][k(0x1f9)]('LockCommand:\x20'+this[k(0x1f4)][k(0x1f1)]+k(0x209)+b+k(0x214)),'You\x20locked\x20the\x20door\x20named\x20\x22'+b+'\x22.'):(this['logger'][k(0x1f9)](k(0x1fa)+this[k(0x1f4)][k(0x1f1)]+k(0x1f5)+b+'.'),'You\x20don\x27t\x20have\x20the\x20key\x20to\x20lock\x20this\x20door.');}else return this[k(0x1ef)][k(0x1f9)]('LockCommand:\x20'+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20this\x20room.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+'\x22\x20here.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a35i=a35d;
|
|
1
|
+
const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d=-parseInt(f(0x1de))/0x1+-parseInt(f(0x1d1))/0x2*(parseInt(f(0x1f2))/0x3)+parseInt(f(0x1dc))/0x4*(parseInt(f(0x1d6))/0x5)+parseInt(f(0x1fc))/0x6*(parseInt(f(0x1d3))/0x7)+-parseInt(f(0x1ea))/0x8+-parseInt(f(0x1e4))/0x9*(-parseInt(f(0x1f5))/0xa)+parseInt(f(0x1f4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a35c,0x33712));function a35d(a,b){const c=a35c();return a35d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a35d(a,b);}const a35b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a35d;if(c){const e=c[g(0x1f7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a35a=a35b(this,function(){const h=a35d;return a35a[h(0x1c8)]()[h(0x1c6)](h(0x1f6))[h(0x1c8)]()['constructor'](a35a)[h(0x1c6)](h(0x1f6));});a35a();import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';import{Command}from'./command.js';export class LookCommand extends Command{static [a35i(0x1d4)]='look';static [a35i(0x1c7)]='Examine\x20your\x20surroundings';[a35i(0x1d0)](a=[]){const j=a35i;this[j(0x1d5)][j(0x1f3)](j(0x1ee));const b=a[j(0x1e7)]('\x20');if(b){if(this[j(0x1d7)][j(0x1fb)][j(0x1ca)](b))return this['logger'][j(0x1f3)](j(0x1f0)+b+j(0x1cf)+this[j(0x1d7)][j(0x1c5)]+j(0x1cd)),this['inspectItem'](b,this[j(0x1d7)][j(0x1fb)]);else{if(this[j(0x1d7)]['currentLocation']['inventory']['hasItem'](b))return this[j(0x1d5)][j(0x1f3)](j(0x1f0)+b+j(0x1d8)),this[j(0x1fa)](b,this[j(0x1d7)][j(0x1d9)][j(0x1fb)]);else return this[j(0x1e5)](b)?(this[j(0x1d5)][j(0x1f3)](j(0x1da)+b+'\x27.'),this[j(0x1ef)](b)):j(0x1e3)+b;}}else return this[j(0x1d5)][j(0x1f3)](this[j(0x1d7)][j(0x1c5)]+j(0x1ce)),this[j(0x1eb)]();}[a35i(0x1eb)](){const k=a35i,a=this[k(0x1d7)][k(0x1d9)];if(!a)return this[k(0x1d5)]['error'](this[k(0x1d7)]['name']+k(0x1d2)),k(0x1f1);let b=a['description'];return a[k(0x1e1)]&&(b+='\x0a'+a[k(0x1e1)]['riddle']),b;}[a35i(0x1ef)](a){const l=a35i,b=this[l(0x1d7)]['currentLocation'];if(!b)return this[l(0x1d5)]['error'](this['actor'][l(0x1c5)]+l(0x1d2)),'You\x27re\x20not\x20in\x20a\x20valid\x20room.';const c=b[l(0x1e8)][l(0x1e6)](a);if(!c)return l(0x1f9)+a+'\x22.';let d;if(c instanceof Door)d=c[l(0x1ed)](b);else{if(typeof c===l(0x1e2)){d=this[l(0x1e0)]&&this[l(0x1e0)][c];if(!d)return l(0x1cb)+a+'\x22.';}else return l(0x1cc)+a+'\x22.';}if(d['roomType']===RoomType[l(0x1db)]){if(a==='up')return'Above\x20you,\x20'+d[l(0x1c7)];else return a===l(0x1c9)?l(0x1f8)+d[l(0x1c7)]:'To\x20the\x20'+a+',\x20you\x20see\x20'+d[l(0x1c7)];}else return l(0x1e9);}[a35i(0x1fa)](a,b){const m=a35i,c=b[m(0x1c4)](a);if(!c)return m(0x1ec)+a+m(0x1df);return c[m(0x1c7)]||m(0x1dd)+a+'.';}}function a35c(){const n=['You\x20cannot\x20see\x20','9hhJXRw','isValidDirection','get','join','exits','You\x20cannot\x20see\x20through','1192288hOyyIp','look','You\x20don\x27t\x20see\x20any\x20','getOtherSide','Executing\x20\x27Look\x27\x20command.','lookOutside','Looking\x20at\x20item\x20\x27','You\x27re\x20not\x20in\x20a\x20valid\x20room.','17457fbLWGp','write','543961XMLgHO','1988180fEZSAG','(((.+)+)+)+$','apply','Below\x20you,\x20','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','inspectItem','inventory','6aPEltK','getItem','name','search','description','toString','down','hasItem','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','\x20inventory.','\x20is\x20looking\x20around\x20the\x20current\x20room.','\x27\x20in\x20','execute','2ZGvylp','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','2336677tjUZKh','verb','logger','4685KNPZsS','actor','\x27\x20in\x20current\x20room\x20inventory.','currentLocation','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','OUTSIDE','388cWkMSX','It\x27s\x20just\x20a\x20regular\x20','307408kOwVMh','\x20here.','rooms','puzzle','string'];a35c=function(){return n;};return a35c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a36i=a36d;(function(a,b){const g=a36d,c=a();while(!![]){try{const d=parseInt(g(0x1f7))/0x1+-parseInt(g(0x1f5))/0x2+-parseInt(g(0x1f4))/0x3*(-parseInt(g(0x207))/0x4)+parseInt(g(0x1f1))/0x5*(parseInt(g(0x200))/0x6)+-parseInt(g(0x1fa))/0x7+parseInt(g(0x1f3))/0x8+-parseInt(g(0x1f6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0xa9bdc));const a36b=(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;};}()),a36a=a36b(this,function(){const h=a36d;return a36a['toString']()[h(0x209)](h(0x202))[h(0x1f9)]()[h(0x1fb)](a36a)['search'](h(0x202));});a36a();import{Command}from'./command.js';export class SayCommand extends Command{static [a36i(0x201)]=a36i(0x206);static [a36i(0x203)]=a36i(0x1fe);['context'];constructor(a){super(a),this['context']=a;}[a36i(0x1f0)](a){const j=a36i;if(a[j(0x204)]===0x0)return'What\x20do\x20you\x20want\x20to\x20say?';const b=a[j(0x20a)]('\x20'),c=this[j(0x1fd)],d=this[j(0x1fc)][j(0x1ff)];if(!d)return this['logger'][j(0x205)](j(0x1ef)),'An\x20error\x20occurred.';const e=d[j(0x1f8)]['filter'](f=>f[j(0x208)]===c['currentLocation']);for(const f of e){this['logger']['log'](c['name']+'\x20says\x20to\x20'+f['name']+':\x20\x22'+b+'\x22'),this[j(0x1fd)][j(0x208)][j(0x206)](f,b);}return j(0x1f2)+b+'\x22';}}function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a36d(a,b);}function a36c(){const k=['scene','1558062gCjXUV','verb','(((.+)+)+)+$','description','length','log','say','148068EjHiER','currentLocation','search','join','Scene\x20is\x20missing\x20from\x20context.','execute','5jTzwEM','You\x20say:\x20\x22','3964872UgHzqW','93OfUvux','1418092CLSXAa','1367100bHdulB','690207kTmnvn','allActors','toString','7257698gExGGu','constructor','context','actor','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.'];a36c=function(){return k;};return a36c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x161))/0x1+-parseInt(f(0x15c))/0x2*(parseInt(f(0x153))/0x3)+parseInt(f(0x15d))/0x4+parseInt(f(0x155))/0x5*(-parseInt(f(0x163))/0x6)+-parseInt(f(0x16a))/0x7+-parseInt(f(0x169))/0x8+-parseInt(f(0x16b))/0x9*(-parseInt(f(0x158))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x84ebf));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x15f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a['toString']()['search'](h(0x166))['toString']()[h(0x156)](a37a)[h(0x157)](h(0x166));});a37a();import{Command}from'./command.js';function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x152;let f=c[d];return f;},a37d(a,b);}export class SearchCommand extends Command{static ['verb']=a37i(0x157);static [a37i(0x164)]=a37i(0x16c);[a37i(0x16d)](){const j=a37i,a=this[j(0x162)][j(0x15b)][j(0x15e)][j(0x160)]();if(a[j(0x152)]===0x0)return this[j(0x165)][j(0x167)]('SearchCommand:\x20'+this['actor'][j(0x159)]+j(0x168)),j(0x15a);const b=a['join'](',\x20');return this[j(0x165)][j(0x167)]('SearchCommand:\x20'+this['actor'][j(0x159)]+j(0x16e)+b),j(0x154)+b;}}function a37c(){const k=['currentLocation','2096816TqzyVL','2029356ldbjRu','inventory','apply','listItems','466562KjEpQc','actor','18UvBkFb','description','logger','(((.+)+)+)+$','write','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','3216576OHQTnd','1891883lNQfQN','12939417LPuQsZ','Search\x20for\x20items\x20in\x20your\x20area','execute','\x20found\x20the\x20following\x20items:\x20','length','3aoAJwf','You\x20search\x20the\x20area\x20and\x20find:\x20','244030yVZobs','constructor','search','10oRQpZH','name','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.'];a37c=function(){return k;};return a37c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38h=a38d;function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xcb;let f=c[d];return f;},a38d(a,b);}(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0xcc))/0x1*(parseInt(f(0xcf))/0x2)+parseInt(f(0xd6))/0x3*(parseInt(f(0xe8))/0x4)+parseInt(f(0xd5))/0x5*(-parseInt(f(0xd7))/0x6)+-parseInt(f(0xd1))/0x7+parseInt(f(0xe0))/0x8*(-parseInt(f(0xdc))/0x9)+-parseInt(f(0xe1))/0xa+parseInt(f(0xe3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xdac2a));function a38c(){const j=['16xmEkHz','9880950ZQcrWh','puzzle','33862851GawJzD','currentLocation','join','actor','SolveCommand:\x20','4MfRiZi','constructor','addItem','1JUlkOW','execute','toLowerCase','3127548ibwEuS','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','8999627NiQBrP','inventory','solve','write','25baLrwV','1357614udeOul','2103258aXxBCG','description','verb','toString','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','775080TojZFL','message','logger','rewardItem'];a38c=function(){return j;};return a38c();}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(0xda)]()['search']('(((.+)+)+)+$')[g(0xda)]()[g(0xe9)](a38a)['search']('(((.+)+)+)+$');});a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a38h(0xd9)]=a38h(0xd3);static [a38h(0xd8)]='Attempt\x20to\x20solve\x20a\x20puzzle.';[a38h(0xcd)](a){const i=a38h,b=a[i(0xe5)]('\x20')[i(0xce)](),c=this[i(0xe6)][i(0xe4)];if(!c||!c[i(0xe2)])return this[i(0xde)][i(0xd4)](i(0xdb)),i(0xd0);const d=c[i(0xe2)][i(0xd3)](b,this['actor'][i(0xd2)]);return d['success']&&c[i(0xe2)][i(0xdf)]&&this[i(0xe6)][i(0xd2)][i(0xcb)](c[i(0xe2)][i(0xdf)]),this[i(0xde)][i(0xd4)](i(0xe7)+d[i(0xdd)]),d['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0x17a))/0x1*(parseInt(f(0x167))/0x2)+-parseInt(f(0x16b))/0x3*(parseInt(f(0x153))/0x4)+parseInt(f(0x157))/0x5*(-parseInt(f(0x166))/0x6)+parseInt(f(0x15d))/0x7*(parseInt(f(0x15f))/0x8)+parseInt(f(0x17e))/0x9+-parseInt(f(0x16a))/0xa+-parseInt(f(0x179))/0xb*(-parseInt(f(0x163))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x8f3ea));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a['toString']()[h(0x158)](h(0x155))[h(0x178)]()[h(0x15b)](a39a)[h(0x158)](h(0x155));});a39a();import{Command}from'./command.js';function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x152;let f=c[d];return f;},a39d(a,b);}function a39c(){const l=['458HQkTCg','write','getItem','8675420AbfPbF','48qcLdRB','Item\x20\x22','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','Error\x20during\x20\x27Take\x27\x20command:\x20','execute','verb','\x22\x20in\x20this\x20room.','name','hasItem','Successfully\x20added\x20\x22','logger','toLowerCase','\x22\x20not\x20retrieved\x20from\x20','toString','2266ejvwcZ','3214bYldAt','Successfully\x20removed\x20\x22','The\x20item\x20\x22','addInventory','2824380NWcWOE','removeItem','\x22\x20is\x20too\x20heavy\x20to\x20carry.','170824nqXxpy','\x20during\x20\x27Take\x27\x20command.','(((.+)+)+)+$','inventory','75535UTIqDw','search','apply','There\x20is\x20no\x20item\x20\x22','constructor','join','359219Vzmcee','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','48YgrltO','take','currentLocation','actor','138216QRpsQd','Pick\x20up\x20an\x20item.','You\x20have\x20taken\x20the\x20','48ACNtvO'];a39c=function(){return l;};return a39c();}export class TakeCommand extends Command{static [a39i(0x170)]=a39i(0x160);static ['description']=a39i(0x164);[a39i(0x16f)](a){const j=a39i;return this[j(0x175)][j(0x168)]('Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20'+a[j(0x15c)]('\x20')),this['take'](a);}[a39i(0x160)](a){const k=a39i,b=a['join']('\x20')[k(0x176)](),c=this[k(0x162)][k(0x161)];if(!c[k(0x156)][k(0x173)](b))return this[k(0x175)]['write'](k(0x16c)+b+'\x22\x20not\x20found\x20in\x20'+c[k(0x172)]+k(0x154)),k(0x15a)+b+k(0x171);const d=c[k(0x156)][k(0x169)](b);if(!d)return this['logger'][k(0x168)](k(0x16c)+b+k(0x177)+c[k(0x172)]+k(0x16d)),k(0x15a)+b+k(0x171);try{return this[k(0x162)][k(0x17d)](d),this[k(0x175)][k(0x168)](k(0x174)+b+'\x22\x20to\x20'+this[k(0x162)]['name']+k(0x15e)),c['inventory'][k(0x17f)](b),this[k(0x175)][k(0x168)](k(0x17b)+b+'\x22\x20from\x20'+c['name']+k(0x16d)),k(0x165)+b+'.';}catch(e){return this[k(0x175)][k(0x168)](k(0x16e)+e['message']),k(0x17c)+b+k(0x152);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x1b1))/0x1*(-parseInt(f(0x1b4))/0x2)+-parseInt(f(0x1bb))/0x3*(-parseInt(f(0x1ad))/0x4)+-parseInt(f(0x1b6))/0x5*(parseInt(f(0x1ae))/0x6)+-parseInt(f(0x1b0))/0x7*(-parseInt(f(0x1bd))/0x8)+parseInt(f(0x1b9))/0x9+-parseInt(f(0x1c1))/0xa+parseInt(f(0x1c6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x74bc9));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x1b8)]()[h(0x1bc)](h(0x1ba))[h(0x1b8)]()[h(0x1b3)](a40a)['search'](h(0x1ba));});a40a();import{Command}from'./command.js';function a40c(){const k=['33DiuvYN','search','61216HawsSH','apply','join','name','6460940oAgflT','verb','toLowerCase','logger','\x20unqeuiped\x20','6743253fELfvr','153964UKHkOp','18HdcsMl','write','133zBhGvq','1LvMHFv','actor','constructor','545324jdEeAa','UnequipCommand:\x20','1149475WsiOmT','execute','toString','8143038kGbSIe','(((.+)+)+)+$'];a40c=function(){return k;};return a40c();}function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a40d(a,b);}export class UnequipCommand extends Command{static [a40i(0x1c2)]='unqeuip';static ['description']='Unequip\x20an\x20item.';[a40i(0x1b7)](a){const j=a40i,b=a[j(0x1bf)]('\x20')[j(0x1c3)](),c=this['actor']['unequip'](b);return this[j(0x1c4)][j(0x1af)](j(0x1b5)+this[j(0x1b2)][j(0x1c0)]+j(0x1c5)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=parseInt(h(0xb7))/0x1+-parseInt(h(0xce))/0x2+-parseInt(h(0xc2))/0x3+-parseInt(h(0xb8))/0x4+parseInt(h(0xb6))/0x5+parseInt(h(0xc9))/0x6+-parseInt(h(0xc7))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x835ef));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a41d;if(c){const e=c[i(0xc3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a[j(0xc4)]()[j(0xd1)](j(0xd2))[j(0xc4)]()[j(0xd6)](a41a)['search'](j(0xd2));});a41a();function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0xb6;let f=c[d];return f;},a41d(a,b);}import{Door}from'../models/door.js';import{Command}from'./command.js';function a41c(){const n=['get','1776957pkxRry','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','3192780xNFRJt','length','actor','currentLocation','UnlockCommand:\x20','259842AWVbUR','getItem','verb','search','(((.+)+)+)+$','logger','There\x27s\x20no\x20door\x20named\x20\x22','execute','constructor','error','write','inventory','4121265nsyOLK','973921mypgbY','2925540Fhqbyx','\x22\x20here.','toLowerCase','exits','name','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','unlock','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','description','unlockItemOrSolution','2031156FJOSSq','apply','toString','Unlock\x20a\x20door.'];a41c=function(){return n;};return a41c();}export class UnlockCommand extends Command{static [a41k(0xd0)]=a41k(0xbe);static [a41k(0xc0)]=a41k(0xc5);[a41k(0xd5)](a){const l=a41k;return this[l(0xbe)](a);}[a41k(0xbe)](a){const m=a41k;if(a[m(0xca)]===0x0)return this['logger'][m(0xd7)]('UnlockCommand:\x20No\x20target\x20specified.'),m(0xbd);const b=a[0x0][m(0xba)](),c=this[m(0xcb)][m(0xcc)];if(this['isValidDirection'](b)&&c[m(0xbb)]['has'](b)){const d=c['exits'][m(0xc6)](b);if(d instanceof Door){const e=d[m(0xc1)]?.[m(0xba)]();if(e&&this[m(0xcb)][m(0xd9)]['hasItem'](e)){const f=this[m(0xcb)]['inventory'][m(0xcf)](e);if(f){const g=c['attemptUnlockExit'](b,f[m(0xbc)]);return this[m(0xd3)][m(0xd8)]('UnlockCommand:\x20'+this['actor']['name']+'\x20is\x20attempted\x20to\x20unlock\x20'+b+'.\x20Result:\x20'+g),g;}}return this[m(0xd3)]['write']('UnlockCommand:\x20'+this[m(0xcb)][m(0xbc)]+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),m(0xbf);}else return this[m(0xd3)][m(0xd8)](m(0xcd)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[m(0xbc)]+'.'),m(0xd4)+b+m(0xb9);}else return this[m(0xd3)][m(0xd8)](m(0xcd)+b+m(0xc8)+c[m(0xbc)]+'.'),m(0xd4)+b+'\x22\x20here.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0x20f))/0x1*(-parseInt(f(0x20c))/0x2)+-parseInt(f(0x210))/0x3*(parseInt(f(0x1f0))/0x4)+parseInt(f(0x214))/0x5+parseInt(f(0x1f7))/0x6+-parseInt(f(0x1ff))/0x7+-parseInt(f(0x20a))/0x8*(parseInt(f(0x207))/0x9)+-parseInt(f(0x20e))/0xa*(-parseInt(f(0x20d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x23c24));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x1f4)]()['search'](h(0x1f6))[h(0x1f4)]()['constructor'](a42a)[h(0x213)](h(0x1f6));});a42a();import{Command}from'./command.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a42d(a,b);}function a42c(){const l=['\x20in\x20this\x20way.','\x20used\x20','description','execute','542507RzFSkE','logger','\x20doesn\x27t\x20have\x20a\x20use\x20method.','name','\x20attempted\x20to\x20use\x20','\x20to\x20use.','You\x20don\x27t\x20have\x20the\x20','hasItem','3231DNRYjZ','actor',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','4008goBpFL','UseCommand:\x20','10FbbLkt','3400199wXqUNX','10QaQnnC','18607tausVG','573cPXpjj','write','join','search','183650PoAdyk','2364pFJrSU','Use\x20an\x20item.','inventory','function','toString','use','(((.+)+)+)+$','467010yJSJkK','\x27s\x20inventory.','apply','toLowerCase'];a42c=function(){return l;};return a42c();}export class UseCommand extends Command{static ['verb']='use';static [a42i(0x1fd)]=a42i(0x1f1);[a42i(0x1fe)](a){const j=a42i;return this[j(0x1f5)](a);}[a42i(0x1f5)](a){const k=a42i,b=a[k(0x212)]('\x20')[k(0x1fa)]();if(!this['actor']['inventory'][k(0x206)](b))return this[k(0x200)][k(0x211)](k(0x20b)+this[k(0x208)]['name']+k(0x203)+b+k(0x209)),k(0x205)+b+'\x20to\x20use.';const c=this['actor'][k(0x1f2)]['getItem'](b);if(!c)return this[k(0x200)][k(0x211)](k(0x20b)+b+'\x20not\x20retrieved\x20from\x20'+this['actor']['name']+k(0x1f8)),k(0x205)+b+k(0x204);if(typeof c[k(0x1f5)]===k(0x1f3)){const d=c[k(0x1f5)]();return this['logger'][k(0x211)](k(0x20b)+this[k(0x208)][k(0x202)]+k(0x1fc)+b+'.'),d;}else return this[k(0x200)]['write'](k(0x20b)+b+k(0x201)),'You\x20can\x27t\x20use\x20the\x20'+b+k(0x1fb);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d
|
|
1
|
+
function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x108;let f=c[d];return f;},a43d(a,b);}function a43c(){const m=['commandMap','(((.+)+)+)+$','1918740nTxUun','263544EBELTN','4UpoXrJ','registerCommand','470922vvGzFY','3357248AGCPbo','apply','557988xiyBXC','search','49DpeXzs','createCommand','592976dYGmZn','6344154eURwxG'];a43c=function(){return m;};return a43c();}const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x108))/0x1+parseInt(f(0x10d))/0x2+-parseInt(f(0x113))/0x3*(-parseInt(f(0x10e))/0x4)+parseInt(f(0x10c))/0x5+parseInt(f(0x110))/0x6*(parseInt(f(0x115))/0x7)+parseInt(f(0x111))/0x8+-parseInt(f(0x109))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x5afdb));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x112)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a['toString']()[h(0x114)](h(0x10b))['toString']()['constructor'](a43a)['search']('(((.+)+)+)+$');});a43a();export class CommandFactory{static [a43i(0x10a)]={};static[a43i(0x10f)](a,b){const j=a43i;this[j(0x10a)][a]=b;}static[a43i(0x116)](a,b){const k=a43i,c=this[k(0x10a)][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){const l=a43i;return this[l(0x10a)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44k=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=parseInt(f(0x98))/0x1*(parseInt(f(0xae))/0x2)+-parseInt(f(0xb4))/0x3*(parseInt(f(0xa6))/0x4)+parseInt(f(0xa4))/0x5*(-parseInt(f(0xb5))/0x6)+parseInt(f(0xad))/0x7+-parseInt(f(0x96))/0x8+parseInt(f(0xab))/0x9+-parseInt(f(0xaa))/0xa*(-parseInt(f(0xb0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x194c0));function a44c(){const o=['name','27gsfDdy','30JpKpzd','legarmor','gauntlets','boots','642560DodQUQ','rifle','50705wKMnFS','setPuzzle','puzzle','roomType','bodyarmor','inventory','INSIDE','toUpperCase','sword','createItem','description','toString','198745JTSycF','items','51348hOWahC','key','apply','isStartRoom','530fJQpNa','71226uKGbmO','helmet','105567qNpUAf','4FEoRpq','rewardItem','77583ZhEPGC','convertToRoomConfig','createPuzzle'];a44c=function(){return o;};return a44c();}const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0xa3)]()['search']('(((.+)+)+)+$')[h(0xa3)]()['constructor'](a44a)['search']('(((.+)+)+)+$');});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-0x95;let f=c[d];return f;},a44d(a,b);}export class RoomFactory{['createRoom'](a){const i=a44d,b=this[i(0xb1)](a),c=new Room(b);if(a['items']){const d=new Inventory();a[i(0xa5)]['forEach'](e=>{const j=i;d['addItem'](this[j(0xa1)](e));}),c[i(0x9d)]=d;}return a[i(0x9a)]&&c[i(0x99)](this['createPuzzle'](a[i(0x9a)])),c;}[a44k(0xa1)](a){const l=a44k;switch(a['type']){case l(0xa7):return new Key(a[l(0xb3)],a[l(0xa2)]);case'book':return new Book(a[l(0xb3)],a['description'],a['content']);case l(0xa0):return new Sword(a['name'],a['description']);case l(0x97):return new Rifle(a['name'],a[l(0xa2)]);case l(0xac):return new Helmet(a[l(0xb3)],a[l(0xa2)]);case l(0x9c):return new BodyArmor(a[l(0xb3)],a[l(0xa2)]);case l(0xb6):return new LegArmor(a[l(0xb3)],a['description']);case l(0x95):return new Boots(a['name'],a[l(0xa2)]);case'gloves':return new Gloves(a[l(0xb3)],a['description']);case l(0xb7):return new Gauntlets(a[l(0xb3)],a[l(0xa2)]);default:return new BasicItem(a[l(0xb3)],a[l(0xa2)]);}}[a44k(0xb2)](a){const m=a44k,b=this['createItem'](a[m(0xaf)]);return new Puzzle({...a,'rewardItem':b});}[a44k(0xb1)](a){const n=a44k,b=a[n(0x9b)]&&RoomType[a[n(0x9b)][n(0x9f)]()]?RoomType[a['roomType'][n(0x9f)]()]:RoomType[n(0x9e)];return{'name':a[n(0xb3)],'description':a['description'],'isStartRoom':a[n(0xa9)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=-parseInt(h(0xcc))/0x1+parseInt(h(0xbe))/0x2*(-parseInt(h(0xc6))/0x3)+-parseInt(h(0xd1))/0x4+parseInt(h(0xc1))/0x5+-parseInt(h(0xc2))/0x6*(parseInt(h(0xb8))/0x7)+parseInt(h(0xd9))/0x8*(parseInt(h(0xe3))/0x9)+parseInt(h(0xd8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x793e2));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a45d;if(c){const e=c[i(0xc5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const j=a45d;return a45a[j(0xd4)]()[j(0xb9)](j(0xbb))[j(0xd4)]()[j(0xcf)](a45a)[j(0xb9)]('(((.+)+)+)+$');});a45a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xb7;let f=c[d];return f;},a45d(a,b);}function a45c(){const s=['Available\x20Commands:\x0a','execute','19998540KHJUAY','35656ERYwnN','getAllRegisteredCommands','rooms','split','-\x20quit:\x20Exit\x20the\x20game.\x0a','quit','registerCommands','Welcome,\x20','slice','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','9DLHXfP','hasOwnProperty','getInstance','toLowerCase','name','drop','help','clear','solve','84vgrzTK','search','getHelpMessage','(((.+)+)+)+$','createCommand','currentRoom','448znqORK','trim','instance','232770IUWimW','8328gVvegy','initialize','-\x20clear:\x20Clear\x20the\x20screen.\x0a','apply','11688YtgYlF','unlock','player','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','scene','registerCommand','512725ByxQmg','say','getWelcomeMessage','constructor','getRooms','608680nYtBbt','unequip','determineStartRoom','toString','handleInput'];a45c=function(){return s;};return a45c();}import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a45k(0xc0)];[a45k(0xca)];[a45k(0xc8)];[a45k(0xbd)];[a45k(0xdb)];constructor(a,b){const l=a45k;this[l(0xc8)]=a,this[l(0xca)]=new Scene({'player':a,'roomConfiguration':b}),this['scene'][l(0xc3)](),this['player']['currentLocation']=this[l(0xd3)](),this[l(0xdf)]();}[a45k(0xdf)](){const m=a45k;CommandFactory[m(0xcb)]('look',LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory['registerCommand']('take',TakeCommand),CommandFactory[m(0xcb)]('use',UseCommand),CommandFactory[m(0xcb)]('equip',EquipCommand),CommandFactory[m(0xcb)](m(0xd2),UnequipCommand),CommandFactory[m(0xcb)](m(0xb7),SolveCommand),CommandFactory['registerCommand'](m(0xe8),DropCommand),CommandFactory[m(0xcb)](m(0xc7),UnlockCommand),CommandFactory[m(0xcb)]('lock',LockCommand),CommandFactory['registerCommand'](m(0xb9),SearchCommand),CommandFactory[m(0xcb)](m(0xcd),SayCommand);}[a45k(0xd3)](){const n=a45k;return this[n(0xca)][n(0xd3)]();}[a45k(0xce)](){const o=a45k;return o(0xe0)+this[o(0xc8)][o(0xe7)];}static[a45k(0xe5)](a,b){const p=a45k;return!Game[p(0xc0)]&&(Game['instance']=new Game(a,b)),Game[p(0xc0)];}[a45k(0xd5)](a){const q=a45k,b=a[q(0xbf)]()[q(0xdc)]('\x20'),c=b[0x0][q(0xe6)](),d=b[q(0xe1)](0x1);if(c===q(0xde))return null;if(c==='maka')return q(0xe2);if(c===q(0xe9))return this[q(0xba)]();if(c===q(0xea))return'';const e={'actor':this[q(0xc8)],'rooms':this[q(0xca)][q(0xd0)](),'scene':this['scene']},f=CommandFactory[q(0xbc)](c,e);if(f){const g=f[q(0xd7)](d);return g;}return q(0xc9)+c+'\x22.';}[a45k(0xba)](){const r=a45k,a=CommandFactory[r(0xda)]();let b=r(0xd6);for(const c in a){if(a[r(0xe4)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d['getDescription']()+'\x0a';}}return b+=r(0xc4),b+=r(0xdd),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(0x159))/0x1+-parseInt(f(0x160))/0x2*(parseInt(f(0x162))/0x3)+parseInt(f(0x15b))/0x4+parseInt(f(0x155))/0x5*(parseInt(f(0x154))/0x6)+-parseInt(f(0x157))/0x7+parseInt(f(0x15a))/0x8*(parseInt(f(0x161))/0x9)+-parseInt(f(0x156))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x90b13));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x15c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a['toString']()[h(0x15d)](h(0x15e))[h(0x158)]()[h(0x15f)](a46a)['search'](h(0x15e));});a46a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x154;var f=c[d];return f;},a46d(a,b);}export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';function a46c(){var i=['search','(((.+)+)+)+$','constructor','742954XCZZoI','757611ovHdgy','9DWuYGN','294uvmkVK','65460BnHhZA','1482130MURuzo','417242SVsuUx','toString','480113OqWtRA','112EwiURn','2300032OnQihn','apply'];a46c=function(){return i;};return a46c();}export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a47i=a47d;function a47c(){var n=['(((.+)+)+)+$','.\x20Used:\x20','Failed\x20to\x20unlock\x20door:\x20','isLocked','toString','92ZUPbLC','15123UQgPCC','2530qfIXqf','To\x20','logger','\x20and\x20','checkIfLocked','checkIfLockable','4788765cXBJAe','roomA','getOtherSide','name','547860kHJzFm','Door\x20created\x20between\x20','roomB','2796870GeoinB','getInstance','write','apply','9930iEFvEI','unlockItemOrSolution','7bEwqHN','Door\x20unlocked:\x20','2649816beexmC','constructor','isLockable','search','22572hoUXIK','72qIzcma'];a47c=function(){return n;};return a47c();}(function(a,b){var f=a47d,c=a();while(!![]){try{var d=-parseInt(f(0x90))/0x1*(-parseInt(f(0x8f))/0x2)+-parseInt(f(0x9b))/0x3+parseInt(f(0x89))/0x4*(parseInt(f(0x80))/0x5)+-parseInt(f(0x7c))/0x6*(parseInt(f(0x82))/0x7)+parseInt(f(0x84))/0x8+-parseInt(f(0x97))/0x9+-parseInt(f(0x91))/0xa*(-parseInt(f(0x88))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x61e2b));var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a47d;if(c){var e=c[g(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var h=a47d;return a47a[h(0x8e)]()[h(0x87)](h(0x8a))[h(0x8e)]()[h(0x85)](a47a)[h(0x87)](h(0x8a));});a47a();function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x7a;var f=c[d];return f;},a47d(a,b);}import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a47i(0x98)];[a47i(0x7b)];[a47i(0x8d)];[a47i(0x81)];[a47i(0x9a)];[a47i(0x93)];['isLockable'];constructor(a){var j=a47i;super(),this[j(0x98)]=a[j(0x98)],this[j(0x7b)]=a['roomB'],this[j(0x8d)]=a[j(0x8d)]||![],this[j(0x81)]=a[j(0x81)],this[j(0x9a)]=a[j(0x9a)]?capitalCase(a[j(0x9a)]):j(0x92)+a[j(0x7b)][j(0x9a)],this[j(0x93)]=Logger[j(0x7d)](),this[j(0x86)]=!!a['unlockItemOrSolution'],this[j(0x93)][j(0x7e)](j(0x7a)+this[j(0x98)][j(0x9a)]+j(0x94)+this[j(0x7b)][j(0x9a)]+'.\x20Is\x20Locked:\x20'+this[j(0x8d)]);}[a47i(0x99)](a){var k=a47i;return this[k(0x98)]===a?this[k(0x7b)]:this[k(0x98)];}['attemptUnlock'](a){var l=a47i;if(this[l(0x8d)]&&this[l(0x81)]&&this[l(0x81)]===a)return this[l(0x8d)]=![],this[l(0x93)][l(0x7e)](l(0x83)+this[l(0x9a)]+l(0x8b)+a),!![];return this['logger'][l(0x7e)](l(0x8c)+this[l(0x9a)]+l(0x8b)+a),![];}[a47i(0x95)](){var m=a47i;return this[m(0x8d)];}[a47i(0x96)](){return this['isLockable'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48i=a48d;function a48c(){const r=['apply','Failed\x20to\x20remove\x20item:\x20','getAllItems','get','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','.\x20Item\x20not\x20found.','removeItem','has','\x20in\x20','getWeight','name','toLowerCase','3629800dsHWac','.\x20Exists:\x20','items','2076nJcwyG','join','Checked\x20for\x20item:\x20','898804PVBace','delete','getItem','logger','550yTYbig','map','\x20to\x20inventory.','addItem','4532705SMDiXM','constructor','Listed\x20items\x20in\x20inventory:\x20','(((.+)+)+)+$','514066cZwlzv','search','listItems','1491954pJgCZZ','\x20from\x20inventory.','hasItem','257139AlRCnp','keys','Removed\x20item:\x20','getInstance','write','9527tJdCZw','4ulCCoT','weight'];a48c=function(){return r;};return a48c();}function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x187;let f=c[d];return f;},a48d(a,b);}(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0x18b))/0x1+-parseInt(f(0x197))/0x2+parseInt(f(0x19a))/0x3+parseInt(f(0x1a3))/0x4*(parseInt(f(0x193))/0x5)+-parseInt(f(0x188))/0x6*(parseInt(f(0x1a2))/0x7)+parseInt(f(0x1b1))/0x8+-parseInt(f(0x19d))/0x9*(parseInt(f(0x18f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x6f954));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a['toString']()[h(0x198)](h(0x196))['toString']()[h(0x194)](a48a)[h(0x198)](h(0x196));});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48i(0x187)];[a48i(0x18e)];constructor(){const j=a48i;super(),this[j(0x187)]=new Map(),this[j(0x18e)]=Logger[j(0x1a0)]();}[a48i(0x192)](a){const k=a48i;this['items']['set'](a['name']['toLowerCase'](),a),this[k(0x18e)]['write']('Added\x20item:\x20'+a[k(0x1af)]+k(0x191));}[a48i(0x1ab)](a){const l=a48i,b=this[l(0x18d)](a);if(b)return this[l(0x187)][l(0x18c)](a[l(0x1b0)]()),this[l(0x18e)][l(0x1a1)](l(0x19f)+a+l(0x19b)),b;return this[l(0x18e)]['write'](l(0x1a6)+a+l(0x1aa)),null;}[a48i(0x19c)](a){const m=a48i,b=this[m(0x187)][m(0x1ac)](a[m(0x1b0)]()),c=[...this[m(0x187)]['keys']()];return this['logger'][m(0x1a1)](m(0x18a)+a+m(0x1ad)+c[m(0x189)](',\x20')+m(0x1b2)+b+'.'),b;}[a48i(0x18d)](a){const n=a48i,b=this[n(0x187)][n(0x1a8)](a['toLowerCase']())||null;return b?this[n(0x18e)][n(0x1a1)]('Retrieved\x20details\x20for\x20item:\x20'+a+'.'):this['logger'][n(0x1a1)](n(0x1a9)+a+'.\x20Item\x20not\x20found.'),b;}[a48i(0x199)](){const o=a48i,a=[...this[o(0x187)][o(0x19e)]()],b=a[o(0x190)](c=>capitalCase(c));return this[o(0x18e)][o(0x1a1)](o(0x195)+b[o(0x189)](',\x20')+'.'),a;}[a48i(0x1ae)](){const p=a48i;let a=0x0;for(const b of this['items']['values']()){a+=b[p(0x1a4)];}return a;}[a48i(0x1a7)](){const q=a48i;return[...this[q(0x187)]['values']()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x65))/0x1*(parseInt(f(0x74))/0x2)+-parseInt(f(0x7b))/0x3+parseInt(f(0x64))/0x4+parseInt(f(0x72))/0x5+parseInt(f(0x6b))/0x6*(parseInt(f(0x66))/0x7)+-parseInt(f(0x67))/0x8*(parseInt(f(0x69))/0x9)+parseInt(f(0x77))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x83c30));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x75)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a['toString']()[h(0x7a)](h(0x6c))['toString']()[h(0x68)](a49a)[h(0x7a)](h(0x6c));});function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x64;var f=c[d];return f;},a49d(a,b);}function a49c(){var l=['texture','1723930ryzRup','weight','1044dQVHAE','apply','uuid','4032320OMDKOu','category','You\x20use\x20the\x20','search','2980176dkpIOo','description','name','2361012UmrBiH','582PvVXZq','2651719cZqmhP','32ZNTtnr','constructor','1097559rBuyRF','use','6ihLtHP','(((.+)+)+)+$','rating','color','size','shape'];a49c=function(){return l;};return a49c();}a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a49i(0x76)];[a49i(0x7d)];[a49i(0x7c)];['size'];['category'];[a49i(0x70)];[a49i(0x6e)];['texture'];[a49i(0x6d)];['weight'];constructor(a){var j=a49i;super(),this[j(0x7d)]=a[j(0x7d)],this[j(0x7c)]=a[j(0x7c)],this[j(0x6f)]=a[j(0x6f)],this[j(0x78)]=a[j(0x78)],this[j(0x70)]=a[j(0x70)],this[j(0x6e)]=a[j(0x6e)],this[j(0x71)]=a['texture'],this[j(0x6d)]=a['rating'],this[j(0x73)]=a['weight'],this[j(0x76)]=a49e();}[a49i(0x6a)](){var k=a49i;return k(0x79)+this[k(0x7d)]+'.\x20Nothing\x20special\x20happens.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50h=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x16a))/0x1*(-parseInt(f(0x171))/0x2)+parseInt(f(0x162))/0x3+parseInt(f(0x161))/0x4+-parseInt(f(0x178))/0x5*(-parseInt(f(0x16c))/0x6)+parseInt(f(0x164))/0x7+-parseInt(f(0x165))/0x8*(parseInt(f(0x166))/0x9)+-parseInt(f(0x15f))/0xa*(parseInt(f(0x163))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x4dd9b));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(0x16b)]()[g(0x16e)](g(0x160))[g(0x16b)]()[g(0x16f)](a50a)['search'](g(0x160));});a50a();function a50c(){const m=['moveTo','18TqpUOc','toString','114dVowDh','name','search','constructor','scene','11870SLLTll','rooms','execute','_name','random','floor','autonomousMove','164025jhnvgA','_dialogue','8141790EcQZio','(((.+)+)+)+$','1510312qjGYgl','177006bJduxA','11lfFqVM','1762698yOGwiz','24mWxQuL','215415GHbukv','length','speak'];a50c=function(){return m;};return a50c();}import{Player}from'./player.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x15e;let f=c[d];return f;},a50d(a,b);}import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a50h(0x174)];[a50h(0x15e)];[a50h(0x172)];[a50h(0x170)];constructor(a,b,c,d){const i=a50h;super(d),this[i(0x174)]=a,this['_dialogue']=b,this['rooms']=c;}get[a50h(0x16d)](){return this['_name'];}[a50h(0x168)](){const j=a50h;return this['_dialogue'][Math[j(0x176)](Math[j(0x175)]()*this[j(0x15e)][j(0x167)])];}[a50h(0x177)](a){const k=a50h,b=a[Math[k(0x176)](Math[k(0x175)]()*a['length'])];this[k(0x169)](b[k(0x16d)]);}['moveTo'](a){const l=a50h,b={'actor':this,'rooms':this['rooms'],'scene':this[l(0x170)]},c=new GoCommand(b);c[l(0x173)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51h=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0x139))/0x1+parseInt(f(0x138))/0x2+-parseInt(f(0x167))/0x3*(-parseInt(f(0x184))/0x4)+-parseInt(f(0x14b))/0x5*(parseInt(f(0x17a))/0x6)+-parseInt(f(0x16d))/0x7+parseInt(f(0x182))/0x8+-parseInt(f(0x135))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x57412));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const g=a51d;return a51a['toString']()[g(0x153)](g(0x16e))[g(0x171)]()['constructor'](a51a)[g(0x153)](g(0x16e));});a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x130;let f=c[d];return f;},a51d(a,b);}import{Room}from'./room.js';import{Inventory}from'./inventory.js';function a51c(){const y=['_playerName','6671646IjYETL','getInstance','logger','618302BUXlFT','200434OmoFrH','Hat','You\x20equipped\x20','currentLocation','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','includes','log','\x20is\x20no\x20longer\x20listeng\x20in\x20','You\x20can\x27t\x20equip\x20','inventoryItems','enterRoom','weapon','Max\x20carrying\x20weight\x20must\x20be\x20positive.','bodyarmor','off','speak','Failed\x20to\x20remove\x20','_equipment','5KYOoSc','shield','hasItem','\x20from\x20player\x27s\x20inventory.','rightHand','leaveRoom','torso','Boots','search','maxCarryingWeight','Added\x20','feet','A\x20featureless\x20room','You\x20unequipped\x20','_currentLocation','arm\x20armor','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','ArmArmor','\x20says:\x20\x22','toLowerCase','\x20slot.','Nexus','gloves','category','getWeight','values','leg\x20armor','removeItem','1795971rOZwgk','playerName','BodyArmor','helmet','Removed\x20','hear','1545425ONFlze','(((.+)+)+)+$','determineEquipmentSlot','legarmor','toString','write','Helmet','leftHand','equipment','boots','canEquip','_inventory','currentWeight','2334624lnNfwA','inventory','Shield','LegArmor','removeInventory','weight','legs','\x20is\x20now\x20listening\x20in\x20room\x20','4802600IriqFy','addInventory','4fqDymU','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','name','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','head','Gloves','bind','Invalid\x20category\x20or\x20slot:\x20','addItem','unequipBySlot','Weapon'];a51c=function(){return y;};return a51c();}import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a51h(0x134)];[a51h(0x159)];[a51h(0x178)];[a51h(0x14a)];['_maxCarryingWeight']=0x32;[a51h(0x137)];constructor(a){const i=a51h;super(),this[i(0x134)]=a[i(0x168)],this[i(0x159)]=a['startLocation']||new Room({'name':i(0x160),'description':i(0x157)}),this['_inventory']=new Inventory(),this[i(0x137)]=Logger[i(0x136)]();if(a?.[i(0x142)])for(const b of a['inventoryItems']){this['_inventory'][i(0x131)](b);}this[i(0x14a)]=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51h(0x186)](){const j=a51h;return this[j(0x134)];}get[a51h(0x13c)](){const k=a51h;return this[k(0x159)];}set['currentLocation'](a){const l=a51h;this[l(0x159)]!==a&&(this[l(0x150)](),this['enterRoom'](a)),this[l(0x159)]=a;}get[a51h(0x17b)](){return this['_inventory'];}get[a51h(0x175)](){return this['_equipment'];}set[a51h(0x175)](a){this['_equipment']=a;}get[a51h(0x154)](){return this['_maxCarryingWeight'];}set[a51h(0x154)](a){const m=a51h;a>0x0?this['_maxCarryingWeight']=a:console['error'](m(0x145));}get['currentWeight'](){const n=a51h;let a=this[n(0x178)][n(0x163)]();for(const b in this[n(0x14a)]){const c=this[n(0x14a)][b];c&&(a+=c[n(0x17f)]);}return a;}['addInventory'](a){const o=a51h;if(this[o(0x179)]+a[o(0x17f)]>this[o(0x154)]){this['logger']['write'](o(0x13d));throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this[o(0x178)][o(0x131)](a),this[o(0x137)][o(0x172)](o(0x155)+a[o(0x186)]+'\x20to\x20player\x27s\x20inventory.');}['removeInventory'](a){const p=a51h;if(this[p(0x178)][p(0x166)](a[p(0x186)]))return this['logger'][p(0x172)](p(0x16b)+a[p(0x186)]+'\x20from\x20player\x27s\x20inventory.'),!![];return this[p(0x137)][p(0x172)](p(0x149)+a[p(0x186)]+p(0x14e)),![];}['equip'](a){const q=a51h;if(!this[q(0x178)][q(0x14d)](a[q(0x186)]))return'You\x20don\x27t\x20have\x20'+a[q(0x186)]+'\x20in\x20your\x20inventory.';if(!this['canEquip'](a))return q(0x141)+a[q(0x186)]+'.';const b=this[q(0x16f)](a[q(0x162)]);if(!b)return a[q(0x186)]+q(0x15b);if(this[q(0x175)][b])return q(0x187)+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this[q(0x175)][b]=a,this[q(0x17e)](a),q(0x13b)+a[q(0x186)]+'.';}['unequip'](a){const r=a51h;let b=a;if(!this[r(0x175)][camelCase(b)]){b=this[r(0x16f)](a);if(!b)return r(0x130)+a+'.';}return this[r(0x132)](b);}[a51h(0x16f)](a){const s=a51h;switch(a[s(0x15e)]()){case Category[s(0x133)][s(0x15e)]():return s(0x14f);case Category[s(0x17c)][s(0x15e)]():return s(0x174);case Category[s(0x189)][s(0x15e)]():return s(0x161);case Category[s(0x173)][s(0x15e)]():case Category[s(0x13a)][s(0x15e)]():return s(0x188);case Category[s(0x152)][s(0x15e)]():return s(0x156);case Category[s(0x17d)][s(0x15e)]():return s(0x180);case Category[s(0x15c)][s(0x15e)]():return'arms';case Category[s(0x169)]['toLowerCase']():return s(0x151);case s(0x144):return s(0x14f);case s(0x14c):return'leftHand';case s(0x161):return s(0x161);case s(0x16a):case'hat':return s(0x188);case s(0x176):return s(0x156);case s(0x165):case s(0x170):return'legs';case s(0x15a):case'armarmor':return'arms';case'body\x20armor':case s(0x146):case s(0x151):return'torso';default:return null;}}[a51h(0x177)](a){const t=a51h;return Object[t(0x164)](Category)[t(0x13e)](a[t(0x162)]);}[a51h(0x132)](a){const u=a51h,b=this[u(0x175)][a];if(!b)return u(0x185)+a+u(0x15f);return this[u(0x183)](b),this[u(0x175)][a]=null,u(0x158)+b[u(0x186)]+'.';}[a51h(0x16c)](a,b){const v=a51h;a!==this&&this[v(0x137)][v(0x13f)](a[v(0x186)]+v(0x15d)+b+'\x22');}[a51h(0x143)](a){const w=a51h;this[w(0x159)]=a,a['on'](w(0x148),this[w(0x16c)][w(0x18a)](this)),this[w(0x137)][w(0x172)](this[w(0x186)]+w(0x181)+a[w(0x186)]);}[a51h(0x150)](){const x=a51h;this[x(0x159)]&&(this[x(0x159)][x(0x147)](x(0x148),this[x(0x16c)]['bind'](this)),this[x(0x137)]['write'](this['name']+x(0x140)+this[x(0x159)]['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x8a))/0x1+parseInt(f(0x8d))/0x2+-parseInt(f(0x96))/0x3+-parseInt(f(0x7c))/0x4*(-parseInt(f(0x83))/0x5)+parseInt(f(0x93))/0x6+-parseInt(f(0x82))/0x7*(-parseInt(f(0x8b))/0x8)+-parseInt(f(0x87))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xb6fbd));function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x79;var f=c[d];return f;},a52d(a,b);}var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x99)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x85)]()[h(0x97)](h(0x7a))['toString']()[h(0x89)](a52a)[h(0x97)](h(0x7a));});a52a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger[a52i(0x7b)]();[a52i(0x7d)]=![];['requiredItem'];[a52i(0x8e)];[a52i(0x94)];[a52i(0x80)];['successMessage'];['failureMessage'];constructor(a){var j=a52i;super(),this[j(0x81)]=a[j(0x81)],this[j(0x8e)]=a[j(0x8e)],this['riddle']=a['riddle'],this[j(0x80)]=a[j(0x80)],this['successMessage']=a[j(0x8c)]||j(0x8f),this[j(0x7e)]=a[j(0x7e)]||j(0x84);}[a52i(0x98)](a){var k=a52i;if(this[k(0x81)])return a[k(0x7f)](this[k(0x81)]);return![];}[a52i(0x91)](a){return this['requiredPhrase']===a;}[a52i(0x90)](a,b){var l=a52i;if(this['solved'])return this[l(0x95)]['write'](l(0x88)),{'success':![],'message':l(0x86)};return this['hasRequiredItem'](b)||this['matchesRequiredPhrase'](a)?(this['solved']=!![],this['logger']['write'](l(0x92)),{'success':!![],'message':this['successMessage']}):(this[l(0x95)][l(0x79)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[l(0x7e)]});}}function a52c(){var m=['8QhRiHt','solved','failureMessage','hasItem','rewardItem','requiredItem','39781JFIFcD','867990zobrHI','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','toString','You\x20have\x20already\x20solved\x20this\x20puzzle.','31287573VUpBSH','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','constructor','1370524EOUEHk','2096NrqfJX','successMessage','2424356ngGdIb','requiredPhrase','You\x20solved\x20the\x20puzzle!','solve','matchesRequiredPhrase','Puzzle:\x20Correct\x20solution\x20provided.','5477292JmKETQ','riddle','logger','3317484EJZzHG','search','hasRequiredItem','apply','write','(((.+)+)+)+$','getInstance'];a52c=function(){return m;};return a52c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x159))/0x1*(-parseInt(f(0x16f))/0x2)+parseInt(f(0x162))/0x3*(-parseInt(f(0x148))/0x4)+-parseInt(f(0x153))/0x5*(parseInt(f(0x163))/0x6)+-parseInt(f(0x16c))/0x7+-parseInt(f(0x16b))/0x8*(parseInt(f(0x147))/0x9)+-parseInt(f(0x178))/0xa*(parseInt(f(0x141))/0xb)+parseInt(f(0x14d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xf1cdc));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a['toString']()[h(0x177)](h(0x145))[h(0x158)]()[h(0x14e)](a53a)['search'](h(0x145));});a53a();function a53c(){const u=['exits','speak','Puzzle\x20set\x20for\x20room\x20','addExit','Item\x20removed\x20from\x20room\x20','\x20is\x20locked.\x20Result:\x20','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','values','say','11TCjimW','Fetching\x20exit\x20in\x20direction:\x20','riddle','addItem','(((.+)+)+)+$','The\x20','531kHscEK','1048xkjXYZ','name','north','east','getOppositeDirection','69625320iVJMGP','constructor','description','write','isStartRoom','hasItem','5eeURQS','roomB','apply','inventory','Room\x20created:\x20','toString','3wOPpbl','roomA','logger','get','puzzle','EAST','setPuzzle','NORTH','INSIDE','21705EujOUC','4219602gBsoMR','emit','down','checkIfLocked','removeItem','SOUTH','Invalid\x20direction:\x20','isExitLocked','91256fOgsbN','280763FNIIDN','south','.\x20Success:\x20','129850eKztgp','\x20remains\x20locked.','set','Checking\x20if\x20exit\x20in\x20direction\x20','getExit','roomType','DOWN','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','search','16944980KXCVkq'];a53c=function(){return u;};return a53c();}import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x140;let f=c[d];return f;},a53d(a,b);}import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a53i(0x15b)]=Logger['getInstance']();[a53i(0x149)];[a53i(0x14f)];[a53i(0x179)]=new Map();[a53i(0x174)];[a53i(0x151)];[a53i(0x156)]=new Inventory();constructor(a){const j=a53i;super(),this[j(0x149)]=a[j(0x149)],this[j(0x14f)]=a[j(0x14f)],this[j(0x174)]=a[j(0x174)]||RoomType[j(0x161)],a['exits']&&(this[j(0x179)]=a[j(0x179)]||new Map()),a['inventory']&&(this[j(0x156)]=a[j(0x156)]),a[j(0x15d)]&&(this['puzzle']=a[j(0x15d)]),this[j(0x151)]=a['isStartRoom']||![],this[j(0x15b)][j(0x150)](j(0x157)+this[j(0x149)]);}[a53i(0x140)](a,b){const k=a53i;this[k(0x164)](k(0x17a),a,b);}[a53i(0x17c)](a,b,c){const l=a53i;let d=this['findExistingDoor'](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x179)][l(0x171)](a,d),b[l(0x179)][l(0x171)](this['getOppositeDirection'](a),d);}['attemptUnlockExit'](a,b){const m=a53i,c=this[m(0x179)]['get'](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[m(0x15b)][m(0x150)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+m(0x16e)+d),d?'The\x20'+c[m(0x149)]+'\x20unlocked!':m(0x146)+c[m(0x149)]+m(0x170);}return this[m(0x15b)][m(0x150)]('No\x20locked\x20exit\x20found\x20in\x20direction\x20'+a),m(0x176);}[a53i(0x173)](a){const n=a53i;return this[n(0x15b)][n(0x150)](n(0x142)+a),this['exits'][n(0x15c)](a);}[a53i(0x16a)](a){const o=a53i,b=this['exits'][o(0x15c)](a),c=b instanceof Door&&b[o(0x166)]();return this[o(0x15b)][o(0x150)](o(0x172)+a+o(0x17e)+c),c;}['addItem'](a){const p=a53i;this[p(0x156)][p(0x144)](a),this[p(0x15b)]['write']('Item\x20added\x20to\x20room\x20'+this[p(0x149)]+':\x20'+a['name']);}[a53i(0x167)](a){const q=a53i;this[q(0x156)][q(0x152)](a[q(0x149)])?(this[q(0x156)][q(0x167)](a[q(0x149)]),this['logger']['write'](q(0x17d)+this['name']+':\x20'+a[q(0x149)])):this[q(0x15b)][q(0x150)](q(0x17f)+this[q(0x149)]+':\x20'+a['name']);}[a53i(0x15f)](a){const r=a53i;this[r(0x15d)]=a,this[r(0x15b)][r(0x150)](r(0x17b)+this[r(0x149)]+':\x20'+a[r(0x143)]);}[a53i(0x14c)](a){const s=a53i;switch(a){case s(0x14a):return Direction[s(0x168)];case s(0x16d):return Direction[s(0x160)];case s(0x14b):return Direction['WEST'];case'west':return Direction[s(0x15e)];case'up':return Direction[s(0x175)];case s(0x165):return Direction['UP'];default:throw new Error(s(0x169)+a);}}['findExistingDoor'](a){const t=a53i;for(const b of this[t(0x179)][t(0x180)]()){if(b instanceof Door){if(b[t(0x15a)]===this&&b['roomB']===a||b[t(0x154)]===this&&b[t(0x15a)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d
|
|
1
|
+
const a54l=a54d;function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a54d(a,b);}(function(a,b){const i=a54d,c=a();while(!![]){try{const d=-parseInt(i(0x211))/0x1*(parseInt(i(0x21f))/0x2)+parseInt(i(0x205))/0x3+parseInt(i(0x1fe))/0x4+-parseInt(i(0x223))/0x5+-parseInt(i(0x1fc))/0x6*(-parseInt(i(0x229))/0x7)+parseInt(i(0x1e8))/0x8+-parseInt(i(0x1f4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x90787));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x21e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a[k(0x1ee)]()['search'](k(0x20e))[k(0x1ee)]()[k(0x20a)](a54a)[k(0x210)](k(0x20e));});a54a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';function a54c(){const E=['write','No\x20actor\x20with\x20name\x20','addRoom','player','359514YltsjN','characterLocations','logger','createRoom','Scene\x20initialized\x20with\x20rooms:\x20','roomConfiguration','\x20already\x20exists\x20in\x20the\x20scene.','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','2936364tDUfqj','\x20found\x20in\x20the\x20scene.','3598248CKlZIH','get','Added\x20item\x20','roomFactory','delete','removeActor','targetRoom','1209576ojIBye','allActors','Added\x20puzzle\x20to\x20room\x20','addExit','\x20to\x20room\x20','constructor','initialize','\x22\x20does\x20not\x20exist.','values','(((.+)+)+)+$','getCharacterLocation','search','9013XQOvLc','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','removeRoom','join','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','exits','set','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','actors','Failed\x20to\x20add\x20puzzle.\x20Room\x20','\x20not\x20found\x20in\x20scene.','Actor\x20with\x20name\x20','Failed\x20to\x20add\x20item\x20','apply','254ZoZEUb','connectRooms','has','from','2226535ZCvPYO','Added\x20room\x20to\x20scene:\x20','length','toUpperCase','addItem','setCharacterLocation','7McBlyq','addItemToRoom','rooms','push','direction','Room\x20\x22','\x20is\x20now\x20in\x20room\x20','3436056ZoRqqA','generateRoomsFromConfig','warn','keys','createExitsFromConfig','name','toString','currentLocation'];a54c=function(){return E;};return a54c();}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];[a54l(0x1f3)];['logger'];[a54l(0x219)];[a54l(0x1f5)]=new Map();[a54l(0x201)];constructor(a){const m=a54l;super(),this[m(0x201)]=new RoomFactory(),this[m(0x1f3)]=a[m(0x1f3)],this[m(0x22b)]=this[m(0x1e9)](a[m(0x1f9)]),this[m(0x1f6)]=Logger['getInstance'](),this[m(0x219)]=new Map(),this[m(0x1ec)](a[m(0x1f9)]),this[m(0x1f6)][m(0x1f0)](m(0x1f8)+Object[m(0x1eb)](this[m(0x22b)])[m(0x214)](',\x20'));}[a54l(0x20b)](){const n=a54l;this['player'][n(0x1ef)]=this['determineStartRoom']();}[a54l(0x1e9)](a){const o=a54l;if(!this['roomFactory'])throw new Error(o(0x1fb));const b={};for(const c of a){const d=this['roomFactory'][o(0x1f7)](c);b[c[o(0x1ed)]]=d;}return b;}[a54l(0x1ec)](a){const p=a54l;for(const b of a){const c=this[p(0x22b)][b[p(0x1ed)]];if(b[p(0x216)])for(const d of b['exits']){const e=d[p(0x22d)][p(0x226)](),f=d[p(0x204)],g=d['keyRequired'],h=this['rooms'][f];h&&c[p(0x208)](Direction[e],h,g);}}}['addActor'](a){const q=a54l;if(this['actors'][q(0x221)](a[q(0x1ed)]))throw new Error(q(0x21c)+a[q(0x1ed)]+q(0x1fa));this['actors'][q(0x217)](a['name'],a);}[a54l(0x203)](a){const r=a54l;if(!this[r(0x219)][r(0x221)](a))throw new Error(r(0x1f1)+a+r(0x1fd));this[r(0x219)][r(0x202)](a);}['getActor'](a){const s=a54l;return this[s(0x219)]['get'](a);}get[a54l(0x206)](){const t=a54l;return Array[t(0x222)](this[t(0x219)][t(0x20d)]());}[a54l(0x1f2)](a){const u=a54l;this['rooms'][a[u(0x1ed)]]=a,this[u(0x1f6)][u(0x1f0)](u(0x224)+a['name']);}[a54l(0x213)](a){const v=a54l;return this['rooms'][a]?(delete this[v(0x22b)][a],this[v(0x1f6)][v(0x1f0)]('Removed\x20room\x20from\x20scene:\x20'+a),!![]):(this[v(0x1f6)]['write'](v(0x215)+a),![]);}[a54l(0x22a)](a,b){const w=a54l,c=this[w(0x22b)][b];c?(c[w(0x227)](a),this['logger'][w(0x1f0)](w(0x200)+a[w(0x1ed)]+w(0x209)+c[w(0x1ed)])):this[w(0x1f6)][w(0x1f0)](w(0x21d)+a[w(0x1ed)]+'.\x20Room\x20'+b+w(0x21b));}['addPuzzleToRoom'](a,b){const x=a54l,c=this['rooms'][b];c?(c['setPuzzle'](a),this[x(0x1f6)][x(0x1f0)](x(0x207)+c[x(0x1ed)])):this[x(0x1f6)][x(0x1f0)](x(0x21a)+b+x(0x21b));}[a54l(0x228)](a,b){const y=a54l,c=this[y(0x22b)][b];c?(this[y(0x1f5)]['set'](a[y(0x1ed)],c),this[y(0x1f6)][y(0x1f0)](a[y(0x1ed)]+y(0x1e7)+c['name'])):this[y(0x1f6)]['write']('Failed\x20to\x20set\x20'+a[y(0x1ed)]+'\x27s\x20location.\x20Room\x20'+b+y(0x21b));}[a54l(0x20f)](a){const z=a54l;return this['characterLocations'][z(0x1ff)](a['name']);}['determineStartRoom'](){const A=a54l,a=[];for(const c in this['rooms']){if(this[A(0x22b)]['hasOwnProperty'](c)){const d=this[A(0x22b)][c];d['isStartRoom']&&a[A(0x22c)](d);}}if(a[A(0x225)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a[A(0x225)]===0x1)return a[0x0];const b=Object[A(0x1eb)](this[A(0x22b)]);if(b[A(0x225)]===0x0)throw new Error(A(0x212));return console[A(0x1ea)](A(0x218)),this[A(0x22b)][b[0x0]];}['getPlayer'](){const B=a54l;return this[B(0x1f3)];}['getRooms'](){const C=a54l;return this[C(0x22b)];}[a54l(0x220)](a,b,c,d){const D=a54l,e=this[D(0x22b)][a],f=this[D(0x22b)][c];if(!e)throw new Error(D(0x22e)+a+D(0x20c));if(!f)throw new Error(D(0x22e)+c+D(0x20c));e[D(0x208)](b,f,d);}}
|