@maka/maka-cli 4.5.33 → 4.5.34
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.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36h=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d=parseInt(f(0x1ad))/0x1+parseInt(f(0x1c2))/0x2*(-parseInt(f(0x1bc))/0x3)+-parseInt(f(0x1c3))/0x4+parseInt(f(0x1b1))/0x5*(parseInt(f(0x19a))/0x6)+-parseInt(f(0x1a5))/0x7*(-parseInt(f(0x1aa))/0x8)+parseInt(f(0x1c0))/0x9+-parseInt(f(0x1b0))/0xa*(parseInt(f(0x1ac))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x9b613));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 g=a36d;return a36a['toString']()[g(0x1c1)](g(0x1a1))[g(0x1b2)]()['constructor'](a36a)[g(0x1c1)](g(0x1a1));});a36a();function a36c(){const k=['execute','getItem','description','48021mqNORU','\x22\x20from\x20','Error\x20during\x20\x27Take\x27\x20command:\x20','\x20during\x20\x27Take\x27\x20command.','667935gTsOop','search','130BnutwX','840816ZqOWgT','removeItem','hasItem','toLowerCase','\x22\x20not\x20found\x20in\x20','138FMlzXq','Pick\x20up\x20an\x20item.','Item\x20\x22','name','Successfully\x20removed\x20\x22','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','actor','(((.+)+)+)+$','message','take','logger','77HZQWTL','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','join','\x22\x20in\x20this\x20room.','\x22\x20not\x20retrieved\x20from\x20','257704MnPNat','addInventory','11AIRNKg','1271032PxExKD','verb','currentLocation','7741030NSdeqi','209045lRbWdm','toString','There\x20is\x20no\x20item\x20\x22','The\x20item\x20\x22','write','\x22\x20is\x20too\x20heavy\x20to\x20carry.','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','inventory'];a36c=function(){return k;};return a36c();}import{Command}from'./command.js';function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x19a;let f=c[d];return f;},a36d(a,b);}export class TakeCommand extends Command{static [a36h(0x1ae)]='take';static [a36h(0x1bb)]=a36h(0x19b);[a36h(0x1b9)](a){const i=a36h;return this[i(0x1a4)][i(0x1b5)](i(0x1a6)+a[i(0x1a7)]('\x20')),this[i(0x1a3)](a);}[a36h(0x1a3)](a){const j=a36h,b=a[j(0x1a7)]('\x20')[j(0x1c6)](),c=this[j(0x1a0)][j(0x1af)];if(!c[j(0x1b8)][j(0x1c5)](b))return this[j(0x1a4)]['write'](j(0x19c)+b+j(0x1c7)+c[j(0x19d)]+j(0x1bf)),j(0x1b3)+b+j(0x1a8);const d=c[j(0x1b8)][j(0x1ba)](b);if(!d)return this[j(0x1a4)][j(0x1b5)](j(0x19c)+b+j(0x1a9)+c[j(0x19d)]+j(0x19f)),'There\x20is\x20no\x20item\x20\x22'+b+j(0x1a8);try{return this[j(0x1a0)][j(0x1ab)](d),this[j(0x1a4)][j(0x1b5)]('Successfully\x20added\x20\x22'+b+'\x22\x20to\x20'+this[j(0x1a0)][j(0x19d)]+j(0x1b7)),c[j(0x1b8)][j(0x1c4)](b),this[j(0x1a4)][j(0x1b5)](j(0x19e)+b+j(0x1bd)+c[j(0x19d)]+j(0x19f)),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this['logger'][j(0x1b5)](j(0x1be)+e[j(0x1a2)]),j(0x1b4)+b+j(0x1b6);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d
|
|
1
|
+
const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0x1cd))/0x1*(-parseInt(f(0x1c4))/0x2)+-parseInt(f(0x1d3))/0x3*(-parseInt(f(0x1ca))/0x4)+-parseInt(f(0x1d7))/0x5+parseInt(f(0x1d8))/0x6+-parseInt(f(0x1d1))/0x7+parseInt(f(0x1d5))/0x8+parseInt(f(0x1d6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x9e465));function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x1c2;let f=c[d];return f;},a37d(a,b);}const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a['toString']()['search']('(((.+)+)+)+$')[h(0x1c3)]()[h(0x1d2)](a37a)['search'](h(0x1c8));});a37a();import{Command}from'./command.js';function a37c(){const k=['UnequipCommand:\x20','toString','622142GiKOMz','unqeuip','verb','execute','(((.+)+)+)+$','\x20unqeuiped\x20','44bGoGQM','unequip','name','1ZiBUuZ','apply','actor','toLowerCase','3307521TJpPsN','constructor','108819cjlkgH','Unequip\x20an\x20item.','3511456fOIXGs','3078756PuHabd','1871235aSSpcz','23718jxJEbr'];a37c=function(){return k;};return a37c();}export class UnequipCommand extends Command{static [a37i(0x1c6)]=a37i(0x1c5);static ['description']=a37i(0x1d4);[a37i(0x1c7)](a){const j=a37i,b=a['join']('\x20')[j(0x1d0)](),c=this[j(0x1cf)][j(0x1cb)](b);return this['logger']['write'](j(0x1c2)+this[j(0x1cf)][j(0x1cc)]+j(0x1c9)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d
|
|
1
|
+
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=-parseInt(h(0xba))/0x1*(parseInt(h(0xb2))/0x2)+-parseInt(h(0xa8))/0x3+parseInt(h(0xaf))/0x4+parseInt(h(0xae))/0x5+-parseInt(h(0xa9))/0x6*(parseInt(h(0xb8))/0x7)+-parseInt(h(0xa0))/0x8+parseInt(h(0xb6))/0x9*(parseInt(h(0x9b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xa473c));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a38d;if(c){const e=c[i(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a['toString']()['search'](j(0xbd))[j(0x97)]()['constructor'](a38a)[j(0xbc)]('(((.+)+)+)+$');});function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x96;let f=c[d];return f;},a38d(a,b);}a38a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a38k(0xb4)]='unlock';static ['description']=a38k(0x9a);[a38k(0xa1)](a){const l=a38k;return this[l(0xa5)](a);}[a38k(0xa5)](a){const m=a38k;if(a[m(0xac)]===0x0)return this[m(0xa7)][m(0x9f)]('UnlockCommand:\x20No\x20target\x20specified.'),m(0xab);const b=a[0x0][m(0xa2)](),c=this[m(0x9d)]['currentLocation'];if(this['isValidDirection'](b)&&c[m(0x96)][m(0xb0)](b)){const d=c['exits']['get'](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.[m(0xa2)]();if(e&&this[m(0x9d)][m(0xad)][m(0x99)](e)){const f=this[m(0x9d)][m(0xad)][m(0x9c)](e);if(f){const g=c[m(0xa3)](b,f['name']);return this[m(0xa7)][m(0x98)](m(0xb5)+this[m(0x9d)][m(0xb3)]+m(0xb7)+b+m(0xa6)+g),g;}}return this[m(0xa7)][m(0x98)]('UnlockCommand:\x20'+this[m(0x9d)][m(0xb3)]+m(0xb1)+b+'.'),m(0x9e);}else return this[m(0xa7)][m(0x98)](m(0xb5)+b+m(0xa4)+c[m(0xb3)]+'.'),m(0xbb)+b+'\x22\x20here.';}else return this[m(0xa7)]['write']('UnlockCommand:\x20'+b+m(0xa4)+c[m(0xb3)]+'.'),m(0xbb)+b+m(0xb9);}}function a38c(){const n=['length','inventory','254565hFsgIV','3234380VRDdBQ','has','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','33146CWVobx','name','verb','UnlockCommand:\x20','279iQLDgn','\x20is\x20attempted\x20to\x20unlock\x20','516418pdKbrh','\x22\x20here.','43fUbxCJ','There\x27s\x20no\x20door\x20named\x20\x22','search','(((.+)+)+)+$','exits','toString','write','hasItem','Unlock\x20a\x20door.','1142070BOxIMN','getItem','actor','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','error','10263064aJpeEa','execute','toLowerCase','attemptUnlockExit','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','unlock','.\x20Result:\x20','logger','1872591YHzsqi','90EyPvcn','apply','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.'];a38c=function(){return n;};return a38c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0xcc))/0x1*(parseInt(f(0xba))/0x2)+parseInt(f(0xd7))/0x3*(-parseInt(f(0xcf))/0x4)+parseInt(f(0xc7))/0x5*(parseInt(f(0xd5))/0x6)+parseInt(f(0xc4))/0x7*(parseInt(f(0xd2))/0x8)+parseInt(f(0xbd))/0x9+-parseInt(f(0xc3))/0xa+-parseInt(f(0xb8))/0xb*(-parseInt(f(0xbb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xc7748));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0xc2)]()[h(0xd3)]('(((.+)+)+)+$')[h(0xc2)]()['constructor'](a39a)['search']('(((.+)+)+)+$');});function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xb5;let f=c[d];return f;},a39d(a,b);}a39a();import{Command}from'./command.js';function a39c(){const l=['write','\x20used\x20','65MxPYii','You\x20don\x27t\x20have\x20the\x20','verb','actor','use','1QEekbt','getItem','Use\x20an\x20item.','3752oUqola','\x20to\x20use.','name','2832ofEnya','search','apply','122076ZomikU','You\x20can\x27t\x20use\x20the\x20','1359EiOpyS','join','toLowerCase','\x27s\x20inventory.','UseCommand:\x20','28996EhLOUi','logger','2476126HnbTTQ','1620iOlFKX','execute','9669735EgfJDM','function','\x20in\x20this\x20way.','inventory','\x20not\x20retrieved\x20from\x20','toString','7242840iAKFUX','29848mpSiYb'];a39c=function(){return l;};return a39c();}export class UseCommand extends Command{static [a39i(0xc9)]=a39i(0xcb);static ['description']=a39i(0xce);[a39i(0xbc)](a){const j=a39i;return this[j(0xcb)](a);}[a39i(0xcb)](a){const k=a39i,b=a[k(0xd8)]('\x20')[k(0xb5)]();if(!this[k(0xca)][k(0xc0)]['hasItem'](b))return this['logger'][k(0xc5)]('UseCommand:\x20'+this[k(0xca)]['name']+'\x20attempted\x20to\x20use\x20'+b+',\x20which\x20is\x20not\x20in\x20their\x20inventory.'),k(0xc8)+b+'\x20to\x20use.';const c=this[k(0xca)][k(0xc0)][k(0xcd)](b);if(!c)return this[k(0xb9)]['write'](k(0xb7)+b+k(0xc1)+this[k(0xca)][k(0xd1)]+k(0xb6)),k(0xc8)+b+k(0xd0);if(typeof c[k(0xcb)]===k(0xbe)){const d=c[k(0xcb)]();return this[k(0xb9)][k(0xc5)]('UseCommand:\x20'+this['actor'][k(0xd1)]+k(0xc6)+b+'.'),d;}else return this[k(0xb9)]['write'](k(0xb7)+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),k(0xd6)+b+k(0xbf);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40h=a40d;function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x86;let f=c[d];return f;},a40d(a,b);}function a40c(){const l=['commandMap','42448LoZkbN','search','1268574UYmJWz','7662904DFtbAS','9pbWJAL','createCommand','1440150DGsoFh','3529860hvmFyE','3974500NltQOB','constructor','getAllRegisteredCommands','(((.+)+)+)+$','17341336SNxXCp','registerCommand','toString','7bkeqgS'];a40c=function(){return l;};return a40c();}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x90))/0x1+-parseInt(f(0x8a))/0x2+-parseInt(f(0x91))/0x3+parseInt(f(0x8d))/0x4+parseInt(f(0x92))/0x5+parseInt(f(0x8c))/0x6*(parseInt(f(0x88))/0x7)+parseInt(f(0x96))/0x8*(-parseInt(f(0x8e))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xf3556));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const g=a40d;return a40a[g(0x87)]()[g(0x8b)]('(((.+)+)+)+$')[g(0x87)]()[g(0x93)](a40a)[g(0x8b)](g(0x95));});a40a();export class CommandFactory{static ['commandMap']={};static[a40h(0x86)](a,b){const i=a40h;this[i(0x89)][a]=b;}static[a40h(0x8f)](a,b){const j=a40h,c=this[j(0x89)][a];if(c)return new c(b);return null;}static[a40h(0x94)](){const k=a40h;return this[k(0x89)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x199;let f=c[d];return f;},a41d(a,b);}const a41k=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x19e))/0x1+parseInt(f(0x1ae))/0x2+-parseInt(f(0x19b))/0x3*(parseInt(f(0x1a7))/0x4)+-parseInt(f(0x1bb))/0x5+parseInt(f(0x1ad))/0x6+-parseInt(f(0x1a1))/0x7+parseInt(f(0x1a6))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x6cfe0));function a41c(){const o=['8450760iqkclP','1076LHSByb','puzzle','INSIDE','helmet','type','gloves','39444RPmnlR','1326222EmGCyz','toUpperCase','forEach','setPuzzle','rifle','book','constructor','(((.+)+)+)+$','search','toString','name','content','isStartRoom','289320vRYKhk','items','apply','3228oChJQG','roomType','sword','41267LmNbbL','key','rewardItem','6237161DWECwA','createItem','addItem','legarmor','description'];a41c=function(){return o;};return a41c();}const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x19a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x1b7)]()[h(0x1b6)](h(0x1b5))[h(0x1b7)]()[h(0x1b4)](a41a)[h(0x1b6)](h(0x1b5));});a41a();import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{['createRoom'](a){const i=a41d,b=this['convertToRoomConfig'](a),c=new Room(b);if(a[i(0x199)]){const d=new Inventory();a['items'][i(0x1b0)](e=>{const j=i;d[j(0x1a3)](this[j(0x1a2)](e));}),c['inventory']=d;}return a[i(0x1a8)]&&c[i(0x1b1)](this['createPuzzle'](a['puzzle'])),c;}[a41k(0x1a2)](a){const l=a41k;switch(a[l(0x1ab)]){case l(0x19f):return new Key(a['name'],a[l(0x1a5)]);case l(0x1b3):return new Book(a[l(0x1b8)],a[l(0x1a5)],a[l(0x1b9)]);case l(0x19d):return new Sword(a[l(0x1b8)],a[l(0x1a5)]);case l(0x1b2):return new Rifle(a[l(0x1b8)],a['description']);case l(0x1aa):return new Helmet(a[l(0x1b8)],a[l(0x1a5)]);case'bodyarmor':return new BodyArmor(a[l(0x1b8)],a[l(0x1a5)]);case l(0x1a4):return new LegArmor(a[l(0x1b8)],a[l(0x1a5)]);case'boots':return new Boots(a[l(0x1b8)],a[l(0x1a5)]);case l(0x1ac):return new Gloves(a['name'],a[l(0x1a5)]);case'gauntlets':return new Gauntlets(a[l(0x1b8)],a[l(0x1a5)]);default:return new BasicItem(a['name'],a[l(0x1a5)]);}}['createPuzzle'](a){const m=a41k,b=this[m(0x1a2)](a[m(0x1a0)]);return new Puzzle({...a,'rewardItem':b});}['convertToRoomConfig'](a){const n=a41k,b=a[n(0x19c)]&&RoomType[a['roomType'][n(0x1af)]()]?RoomType[a[n(0x19c)]['toUpperCase']()]:RoomType[n(0x1a9)];return{'name':a['name'],'description':a['description'],'isStartRoom':a[n(0x1ba)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d
|
|
1
|
+
const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=parseInt(h(0x215))/0x1+-parseInt(h(0x220))/0x2*(-parseInt(h(0x219))/0x3)+parseInt(h(0x1ff))/0x4+-parseInt(h(0x21d))/0x5*(parseInt(h(0x223))/0x6)+parseInt(h(0x211))/0x7*(-parseInt(h(0x212))/0x8)+parseInt(h(0x20d))/0x9*(-parseInt(h(0x21c))/0xa)+-parseInt(h(0x20c))/0xb*(parseInt(h(0x214))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x9a532));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0x209)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0x202)]()['search'](j(0x218))['toString']()['constructor'](a42a)[j(0x1f9)]('(((.+)+)+)+$');});a42a();function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1ea;let f=c[d];return f;},a42d(a,b);}import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';function a42c(){const s=['registerCommand','rooms','11CYqUmT','135OoyiFQ','registerCommands','lock','equip','7RYGCPv','4337176AeEXkL','take','1903728GhBkWf','261457DEXLSB','Available\x20Commands:\x0a','getAllRegisteredCommands','(((.+)+)+)+$','2733KeRvUr','maka','createCommand','44140oZpASB','53510wLYMAP','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','getInstance','972YqYjEj','handleInput','player','36jfzVil','unlock','determineStartRoom','currentLocation','-\x20quit:\x20Exit\x20the\x20game.\x0a','execute','initialize','scene','say','slice','Welcome,\x20','currentRoom','getDescription','drop','toLowerCase','getHelpMessage','search','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','clear','trim','split','getWelcomeMessage','3036496wMrFDP','look','unequip','toString','instance','hasOwnProperty','getRooms','help','quit','solve','apply'];a42c=function(){return s;};return a42c();}import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a42k(0x203)];[a42k(0x1f0)];[a42k(0x222)];[a42k(0x1f4)];[a42k(0x20b)];constructor(a,b){const l=a42k;this[l(0x222)]=a,this[l(0x1f0)]=new Scene({'player':a,'roomConfiguration':b}),this['scene'][l(0x1ef)](),this[l(0x222)][l(0x1ec)]=this[l(0x1eb)](),this[l(0x20e)]();}[a42k(0x20e)](){const m=a42k;CommandFactory[m(0x20a)](m(0x200),LookCommand),CommandFactory[m(0x20a)]('go',GoCommand),CommandFactory[m(0x20a)](m(0x213),TakeCommand),CommandFactory[m(0x20a)]('use',UseCommand),CommandFactory[m(0x20a)](m(0x210),EquipCommand),CommandFactory[m(0x20a)](m(0x201),UnequipCommand),CommandFactory['registerCommand'](m(0x208),SolveCommand),CommandFactory[m(0x20a)](m(0x1f6),DropCommand),CommandFactory['registerCommand'](m(0x1ea),UnlockCommand),CommandFactory['registerCommand'](m(0x20f),LockCommand),CommandFactory[m(0x20a)](m(0x1f9),SearchCommand),CommandFactory['registerCommand'](m(0x1f1),SayCommand);}[a42k(0x1eb)](){const n=a42k;return this[n(0x1f0)][n(0x1eb)]();}[a42k(0x1fe)](){const o=a42k;return o(0x1f3)+this[o(0x222)]['name'];}static[a42k(0x21f)](a,b){const p=a42k;return!Game[p(0x203)]&&(Game[p(0x203)]=new Game(a,b)),Game[p(0x203)];}[a42k(0x221)](a){const q=a42k,b=a[q(0x1fc)]()[q(0x1fd)]('\x20'),c=b[0x0][q(0x1f7)](),d=b[q(0x1f2)](0x1);if(c===q(0x207))return null;if(c===q(0x21a))return q(0x21e);if(c===q(0x206))return this[q(0x1f8)]();if(c===q(0x1fb))return'';const e={'actor':this[q(0x222)],'rooms':this[q(0x1f0)][q(0x205)](),'scene':this[q(0x1f0)]},f=CommandFactory[q(0x21b)](c,e);if(f){const g=f[q(0x1ee)](d);return g;}return q(0x1fa)+c+'\x22.';}['getHelpMessage'](){const r=a42k,a=CommandFactory[r(0x217)]();let b=r(0x216);for(const c in a){if(a[r(0x204)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x1f5)]()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+=r(0x1ed),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-
|
|
1
|
+
function a43c(){var h=['580430uJLhcZ','417420ALJAyy','(((.+)+)+)+$','1830969YaWHfR','1195188RKldUV','331096LHvwaD','91jkjbko','805242nQPxjD','12CiQLOe','297GRiaTS','275544PNsCmN','search','toString'];a43c=function(){return h;};return a43c();}function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x1de;var f=c[d];return f;},a43d(a,b);}(function(a,b){var f=a43d,c=a();while(!![]){try{var d=-parseInt(f(0x1e8))/0x1+parseInt(f(0x1e5))/0x2+-parseInt(f(0x1e1))/0x3+-parseInt(f(0x1e6))/0x4*(parseInt(f(0x1df))/0x5)+parseInt(f(0x1e2))/0x6+-parseInt(f(0x1e4))/0x7*(parseInt(f(0x1e3))/0x8)+parseInt(f(0x1e7))/0x9*(parseInt(f(0x1de))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xcdc88));var a43b=(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;};}()),a43a=a43b(this,function(){var g=a43d;return a43a[g(0x1ea)]()[g(0x1e9)]('(((.+)+)+)+$')[g(0x1ea)]()['constructor'](a43a)['search'](g(0x1e0));});a43a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a44i=a44d;function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0xe2;var f=c[d];return f;},a44d(a,b);}function a44c(){var n=['.\x20Used:\x20','1416699QQSYaG','search','.\x20Is\x20Locked:\x20','217272Ktsctp','roomA','roomB','write','18prhAxy','attemptUnlock','Door\x20created\x20between\x20','getOtherSide','isLockable','unlockItemOrSolution','getInstance','(((.+)+)+)+$','isLocked','8939upXJRP','checkIfLocked','checkIfLockable','Door\x20unlocked:\x20','logger','toString','67835rWlWcm','2603960wCvCsc','name','apply','124hWEuET','84cMgBFv','4776enBYbZ','770180qxLkYL'];a44c=function(){return n;};return a44c();}(function(a,b){var f=a44d,c=a();while(!![]){try{var d=parseInt(f(0xef))/0x1+parseInt(f(0xfc))/0x2+-parseInt(f(0xfe))/0x3+-parseInt(f(0xf9))/0x4*(-parseInt(f(0xf5))/0x5)+parseInt(f(0xe2))/0x6*(parseInt(f(0xfa))/0x7)+-parseInt(f(0xfb))/0x8+-parseInt(f(0xe6))/0x9*(parseInt(f(0xf6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x3e628));var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0xf8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a['toString']()[h(0xff)]('(((.+)+)+)+$')[h(0xf4)]()['constructor'](a44a)[h(0xff)](h(0xed));});a44a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a44i(0xe3)];['roomB'];[a44i(0xee)];['unlockItemOrSolution'];[a44i(0xf7)];['logger'];[a44i(0xea)];constructor(a){var j=a44i;super(),this[j(0xe3)]=a[j(0xe3)],this[j(0xe4)]=a['roomB'],this['isLocked']=a[j(0xee)]||![],this[j(0xeb)]=a[j(0xeb)],this[j(0xf7)]=a[j(0xf7)]?capitalCase(a[j(0xf7)]):'To\x20'+a[j(0xe4)][j(0xf7)],this[j(0xf3)]=Logger[j(0xec)](),this[j(0xea)]=!!a[j(0xeb)],this[j(0xf3)][j(0xe5)](j(0xe8)+this[j(0xe3)]['name']+'\x20and\x20'+this['roomB'][j(0xf7)]+j(0x100)+this[j(0xee)]);}[a44i(0xe9)](a){var k=a44i;return this[k(0xe3)]===a?this['roomB']:this['roomA'];}[a44i(0xe7)](a){var l=a44i;if(this[l(0xee)]&&this[l(0xeb)]&&this[l(0xeb)]===a)return this[l(0xee)]=![],this[l(0xf3)][l(0xe5)](l(0xf2)+this['name']+l(0xfd)+a),!![];return this['logger'][l(0xe5)]('Failed\x20to\x20unlock\x20door:\x20'+this[l(0xf7)]+l(0xfd)+a),![];}[a44i(0xf0)](){var m=a44i;return this[m(0xee)];}[a44i(0xf1)](){return this['isLockable'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d
|
|
1
|
+
function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x152;let f=c[d];return f;},a45d(a,b);}const a45i=a45d;function a45c(){const r=['9207930IWvcIS','5TEEXFa','getItem','constructor','27VfdVTE','2494544RnZudY','set','listItems','weight','Added\x20item:\x20','1207373UeBvlT','items','values','\x20in\x20','toLowerCase','search','hasItem','1257IUWkkp','name','keys','delete','Listed\x20items\x20in\x20inventory:\x20','logger','getAllItems','Retrieved\x20details\x20for\x20item:\x20','\x20from\x20inventory.','(((.+)+)+)+$','7342fOynZN','toString','814000XjikLC','4587387gjOIky','write','\x20to\x20inventory.','getWeight','.\x20Item\x20not\x20found.','join','removeItem','apply','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','Failed\x20to\x20remove\x20item:\x20','2037342uHDpdJ','getInstance'];a45c=function(){return r;};return a45c();}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0x16e))/0x1+parseInt(f(0x155))/0x2*(parseInt(f(0x175))/0x3)+parseInt(f(0x157))/0x4+parseInt(f(0x165))/0x5*(parseInt(f(0x162))/0x6)+parseInt(f(0x158))/0x7+-parseInt(f(0x169))/0x8+parseInt(f(0x168))/0x9*(-parseInt(f(0x164))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xd455b));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x15f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x156)]()[h(0x173)](h(0x154))['toString']()[h(0x167)](a45a)[h(0x173)](h(0x154));});a45a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a45i(0x16f)];['logger'];constructor(){const j=a45i;super(),this['items']=new Map(),this[j(0x17a)]=Logger[j(0x163)]();}['addItem'](a){const k=a45i;this[k(0x16f)][k(0x16a)](a['name'][k(0x172)](),a),this['logger']['write'](k(0x16d)+a[k(0x176)]+k(0x15a));}[a45i(0x15e)](a){const l=a45i,b=this['getItem'](a);if(b)return this['items'][l(0x178)](a[l(0x172)]()),this[l(0x17a)]['write']('Removed\x20item:\x20'+a+l(0x153)),b;return this[l(0x17a)]['write'](l(0x161)+a+l(0x15c)),null;}[a45i(0x174)](a){const m=a45i,b=this[m(0x16f)]['has'](a[m(0x172)]()),c=[...this['items'][m(0x177)]()];return this[m(0x17a)][m(0x159)]('Checked\x20for\x20item:\x20'+a+m(0x171)+c[m(0x15d)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}[a45i(0x166)](a){const n=a45i,b=this[n(0x16f)]['get'](a['toLowerCase']())||null;return b?this['logger'][n(0x159)](n(0x152)+a+'.'):this[n(0x17a)]['write'](n(0x160)+a+n(0x15c)),b;}[a45i(0x16b)](){const o=a45i,a=[...this['items']['keys']()],b=a['map'](c=>capitalCase(c));return this[o(0x17a)][o(0x159)](o(0x179)+b[o(0x15d)](',\x20')+'.'),a;}[a45i(0x15b)](){const p=a45i;let a=0x0;for(const b of this[p(0x16f)][p(0x170)]()){a+=b[p(0x16c)];}return a;}[a45i(0x17b)](){const q=a45i;return[...this[q(0x16f)][q(0x170)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a46i=a46d;function a46c(){var l=['name','.\x20Nothing\x20special\x20happens.','rating','apply','77VasPcY','You\x20use\x20the\x20','4DoRfWa','category','size','1koFaGJ','color','1741032SXjEbR','4988352JPfGvH','7zsamwi','description','shape','search','uuid','64450xBjdsB','934614xNnXZy','use','texture','1484265FARIuO','constructor','627366nYgaea','2020254trFQyU','weight'];a46c=function(){return l;};return a46c();}(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0xd9))/0x1*(-parseInt(f(0xe3))/0x2)+-parseInt(f(0xcd))/0x3*(parseInt(f(0xd6))/0x4)+parseInt(f(0xcb))/0x5+parseInt(f(0xce))/0x6*(parseInt(f(0xdd))/0x7)+parseInt(f(0xdc))/0x8+-parseInt(f(0xdb))/0x9+parseInt(f(0xe2))/0xa*(-parseInt(f(0xd4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x53862));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a['toString']()[h(0xe0)]('(((.+)+)+)+$')['toString']()[h(0xcc)](a46a)[h(0xe0)]('(((.+)+)+)+$');});a46a();function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xc9;var f=c[d];return f;},a46d(a,b);}import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a46i(0xe1)];[a46i(0xd0)];[a46i(0xde)];['size'];[a46i(0xd7)];[a46i(0xdf)];[a46i(0xda)];[a46i(0xca)];[a46i(0xd2)];[a46i(0xcf)];constructor(a){var j=a46i;super(),this['name']=a[j(0xd0)],this[j(0xde)]=a[j(0xde)],this[j(0xd8)]=a[j(0xd8)],this[j(0xd7)]=a[j(0xd7)],this[j(0xdf)]=a['shape'],this['color']=a[j(0xda)],this[j(0xca)]=a[j(0xca)],this['rating']=a['rating'],this[j(0xcf)]=a[j(0xcf)],this[j(0xe1)]=a46e();}[a46i(0xc9)](){var k=a46i;return k(0xd5)+this[k(0xd0)]+k(0xd1);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47i=a47d;
|
|
1
|
+
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0x193))/0x1*(parseInt(f(0x1a3))/0x2)+-parseInt(f(0x197))/0x3+parseInt(f(0x192))/0x4+-parseInt(f(0x189))/0x5*(parseInt(f(0x19a))/0x6)+-parseInt(f(0x19b))/0x7+-parseInt(f(0x18c))/0x8+parseInt(f(0x195))/0x9*(parseInt(f(0x18b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xcc8f3));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x19c)]()['search']('(((.+)+)+)+$')[h(0x19c)]()[h(0x198)](a47a)[h(0x18a)](h(0x18d));});function a47c(){const o=['2628009YOasqr','constructor','speak','18WovMvk','9369815GUtkRw','toString','rooms','apply','random','moveTo','floor','_name','958864dUgoZr','1271030zzjRXr','search','296470DnzddU','5113272DPDkQt','(((.+)+)+)+$','length','execute','scene','name','187828ZJbEmx','2QODjcw','_dialogue','1629sXxvcp','autonomousMove'];a47c=function(){return o;};return a47c();}a47a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x189;let f=c[d];return f;},a47d(a,b);}export class NPC extends Player{[a47i(0x1a2)];[a47i(0x194)];[a47i(0x19d)];[a47i(0x190)];constructor(a,b,c,d){const j=a47i;super(d),this['_name']=a,this[j(0x194)]=b,this[j(0x19d)]=c;}get[a47i(0x191)](){const k=a47i;return this[k(0x1a2)];}[a47i(0x199)](){const l=a47i;return this['_dialogue'][Math[l(0x1a1)](Math['random']()*this['_dialogue'][l(0x18e)])];}[a47i(0x196)](a){const m=a47i,b=a[Math['floor'](Math[m(0x19f)]()*a[m(0x18e)])];this[m(0x1a0)](b[m(0x191)]);}[a47i(0x1a0)](a){const n=a47i,b={'actor':this,'rooms':this[n(0x19d)],'scene':this['scene']},c=new GoCommand(b);c[n(0x18f)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-
|
|
1
|
+
const a48i=a48d;function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0xb2;let f=c[d];return f;},a48d(a,b);}(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0xba))/0x1*(-parseInt(f(0xf5))/0x2)+-parseInt(f(0xef))/0x3*(parseInt(f(0xe6))/0x4)+parseInt(f(0xf2))/0x5+-parseInt(f(0xbd))/0x6*(parseInt(f(0xeb))/0x7)+-parseInt(f(0xfd))/0x8*(-parseInt(f(0x103))/0x9)+parseInt(f(0xf3))/0xa+-parseInt(f(0xe4))/0xb*(-parseInt(f(0xcf))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x3e304));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0xb8)]()[h(0xc2)](h(0xb5))[h(0xb8)]()[h(0xe0)](a48a)['search'](h(0xb5));});function a48c(){const A=['.\x20You\x20must\x20unequip\x20it\x20first.','Removed\x20','write','removeItem','unequip','(((.+)+)+)+$','Added\x20','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','toString','hasItem','136012mVGMUx','A\x20featureless\x20room','playerName','556302UQTYmX','LegArmor','arms','determineEquipmentSlot','armarmor','search','addInventory','\x20is\x20now\x20listening\x20in\x20room\x20','weapon','_playerName','includes','currentWeight','body\x20armor','shield','leg\x20armor','category','inventoryItems','error','322872mvBHov','startLocation','weight','equipment','getWeight','bind','maxCarryingWeight','toLowerCase','arm\x20armor','rightHand','bodyarmor','\x20to\x20player\x27s\x20inventory.','canEquip','leaveRoom','Nexus','getInstance','Gloves','constructor','Boots','\x20is\x20no\x20longer\x20listeng\x20in\x20','unequipBySlot','99nGUBHp','Shield','201688GJQDHd','helmet','You\x20unequipped\x20','equip','Helmet','28ChPMyt','boots','feet','head','3hKrjHp','name','Failed\x20to\x20remove\x20','1165385zbudGN','4190160zNqEFv','Max\x20carrying\x20weight\x20must\x20be\x20positive.','6gWFGcg','currentLocation','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','_equipment','inventory','_currentLocation','logger','Hat','25736qbkZzm','apply','\x20from\x20player\x27s\x20inventory.','legarmor','torso','enterRoom','531TSXiDg','Invalid\x20category\x20or\x20slot:\x20','log','addItem','off','gloves','values','_inventory','You\x20can\x27t\x20equip\x20','hear','_maxCarryingWeight','\x20says:\x20\x22'];a48c=function(){return A;};return a48c();}a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a48i(0xc6)];[a48i(0xfa)];['_inventory'];[a48i(0xf8)];[a48i(0x10d)]=0x32;[a48i(0xfb)];constructor(a){const j=a48i;super(),this[j(0xc6)]=a[j(0xbc)],this[j(0xfa)]=a[j(0xd0)]||new Room({'name':j(0xdd),'description':j(0xbb)}),this['_inventory']=new Inventory(),this[j(0xfb)]=Logger[j(0xde)]();if(a?.[j(0xcd)])for(const b of a['inventoryItems']){this[j(0x10a)][j(0x106)](b);}this[j(0xf8)]=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48i(0xf0)](){const k=a48i;return this[k(0xc6)];}get[a48i(0xf6)](){const l=a48i;return this[l(0xfa)];}set[a48i(0xf6)](a){const m=a48i;this[m(0xfa)]!==a&&(this[m(0xdc)](),this[m(0x102)](a)),this['_currentLocation']=a;}get[a48i(0xf9)](){return this['_inventory'];}get[a48i(0xd2)](){return this['_equipment'];}set['equipment'](a){this['_equipment']=a;}get['maxCarryingWeight'](){const n=a48i;return this[n(0x10d)];}set[a48i(0xd5)](a){const o=a48i;a>0x0?this['_maxCarryingWeight']=a:console[o(0xce)](o(0xf4));}get[a48i(0xc8)](){const p=a48i;let a=this[p(0x10a)][p(0xd3)]();for(const b in this[p(0xf8)]){const c=this['_equipment'][b];c&&(a+=c[p(0xd1)]);}return a;}['addInventory'](a){const q=a48i;if(this[q(0xc8)]+a[q(0xd1)]>this[q(0xd5)]){this[q(0xfb)][q(0xb2)]('Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.');throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this[q(0x10a)][q(0x106)](a),this[q(0xfb)]['write'](q(0xb6)+a[q(0xf0)]+q(0xda));}['removeInventory'](a){const r=a48i;if(this[r(0x10a)][r(0xb3)](a[r(0xf0)]))return this[r(0xfb)][r(0xb2)](r(0x110)+a['name']+r(0xff)),!![];return this[r(0xfb)][r(0xb2)](r(0xf1)+a[r(0xf0)]+r(0xff)),![];}[a48i(0xe9)](a){const s=a48i;if(!this[s(0x10a)][s(0xb9)](a[s(0xf0)]))return'You\x20don\x27t\x20have\x20'+a['name']+'\x20in\x20your\x20inventory.';if(!this[s(0xdb)](a))return s(0x10b)+a[s(0xf0)]+'.';const b=this[s(0xc0)](a[s(0xcc)]);if(!b)return a[s(0xf0)]+s(0xf7);if(this[s(0xd2)][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+s(0x10f);return this[s(0xd2)][b]=a,this['removeInventory'](a),'You\x20equipped\x20'+a['name']+'.';}[a48i(0xb4)](a){const t=a48i;let b=a;if(!this[t(0xd2)][camelCase(b)]){b=this[t(0xc0)](a);if(!b)return t(0x104)+a+'.';}return this['unequipBySlot'](b);}[a48i(0xc0)](a){const u=a48i;switch(a['toLowerCase']()){case Category['Weapon']['toLowerCase']():return u(0xd8);case Category[u(0xe5)]['toLowerCase']():return'leftHand';case Category[u(0xdf)][u(0xd6)]():return u(0x108);case Category[u(0xea)]['toLowerCase']():case Category[u(0xfc)][u(0xd6)]():return'head';case Category[u(0xe1)]['toLowerCase']():return u(0xed);case Category[u(0xbe)]['toLowerCase']():return'legs';case Category['ArmArmor'][u(0xd6)]():return u(0xbf);case Category['BodyArmor'][u(0xd6)]():return u(0x101);case u(0xc5):return u(0xd8);case u(0xca):return'leftHand';case'gloves':return'gloves';case u(0xe7):case'hat':return u(0xee);case u(0xec):return'feet';case u(0xcb):case u(0x100):return'legs';case u(0xd7):case u(0xc1):return u(0xbf);case u(0xc9):case u(0xd9):case u(0x101):return'torso';default:return null;}}[a48i(0xdb)](a){const v=a48i;return Object[v(0x109)](Category)[v(0xc7)](a[v(0xcc)]);}[a48i(0xe3)](a){const w=a48i,b=this[w(0xd2)][a];if(!b)return w(0xb7)+a+'\x20slot.';return this[w(0xc3)](b),this[w(0xd2)][a]=null,w(0xe8)+b['name']+'.';}[a48i(0x10c)](a,b){const x=a48i;a!==this&&this[x(0xfb)][x(0x105)](a['name']+x(0x10e)+b+'\x22');}['enterRoom'](a){const y=a48i;this[y(0xfa)]=a,a['on']('speak',this['hear']['bind'](this)),this[y(0xfb)][y(0xb2)](this[y(0xf0)]+y(0xc4)+a[y(0xf0)]);}[a48i(0xdc)](){const z=a48i;this[z(0xfa)]&&(this[z(0xfa)][z(0x107)]('speak',this[z(0x10c)][z(0xd4)](this)),this[z(0xfb)][z(0xb2)](this[z(0xf0)]+z(0xe2)+this[z(0xfa)][z(0xf0)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a49h=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x1ed))/0x1*(parseInt(f(0x1e5))/0x2)+parseInt(f(0x1e8))/0x3*(parseInt(f(0x1df))/0x4)+-parseInt(f(0x1e9))/0x5*(parseInt(f(0x1f5))/0x6)+parseInt(f(0x1e4))/0x7*(-parseInt(f(0x1e1))/0x8)+parseInt(f(0x1f1))/0x9+-parseInt(f(0x1de))/0xa+-parseInt(f(0x1ee))/0xb*(parseInt(f(0x1dc))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x553f1));function a49c(){var m=['You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','5627421NacEFf','search','solved','write','6XPtUuB','logger','rewardItem','hasRequiredItem','riddle','Puzzle:\x20Correct\x20solution\x20provided.','matchesRequiredPhrase','12ZMESZg','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','3845950BPkPUq','5836YrdfrZ','requiredPhrase','130264FjUuqj','getInstance','successMessage','70jlDWhe','4AgHzXZ','failureMessage','hasItem','441tvEBUu','1479985KEgOVd','constructor','(((.+)+)+)+$','You\x20solved\x20the\x20puzzle!','271581PptYJl','2093443BaRqQy','requiredItem'];a49c=function(){return m;};return a49c();}var a49b=(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;};}()),a49a=a49b(this,function(){var g=a49d;return a49a['toString']()[g(0x1f2)](g(0x1eb))['toString']()[g(0x1ea)](a49a)['search'](g(0x1eb));});a49a();import{Logger}from'../utilities/logger.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1d9;var f=c[d];return f;},a49d(a,b);}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a49h(0x1f6)]=Logger[a49h(0x1e2)]();[a49h(0x1f3)]=![];['requiredItem'];['requiredPhrase'];[a49h(0x1d9)];[a49h(0x1f7)];[a49h(0x1e3)];[a49h(0x1e6)];constructor(a){var i=a49h;super(),this['requiredItem']=a[i(0x1ef)],this['requiredPhrase']=a[i(0x1e0)],this[i(0x1d9)]=a[i(0x1d9)],this[i(0x1f7)]=a[i(0x1f7)],this[i(0x1e3)]=a['successMessage']||i(0x1ec),this[i(0x1e6)]=a[i(0x1e6)]||i(0x1f0);}[a49h(0x1f8)](a){var j=a49h;if(this['requiredItem'])return a[j(0x1e7)](this[j(0x1ef)]);return![];}[a49h(0x1db)](a){var k=a49h;return this[k(0x1e0)]===a;}['solve'](a,b){var l=a49h;if(this[l(0x1f3)])return this[l(0x1f6)][l(0x1f4)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this[l(0x1f8)](b)||this['matchesRequiredPhrase'](a)?(this[l(0x1f3)]=!![],this[l(0x1f6)]['write'](l(0x1da)),{'success':!![],'message':this[l(0x1e3)]}):(this[l(0x1f6)]['write'](l(0x1dd)),{'success':![],'message':this['failureMessage']});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50h=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0xde))/0x1*(parseInt(f(0xd5))/0x2)+parseInt(f(0x104))/0x3+-parseInt(f(0xec))/0x4+parseInt(f(0xe3))/0x5+parseInt(f(0x10a))/0x6+-parseInt(f(0xdd))/0x7*(-parseInt(f(0x110))/0x8)+-parseInt(f(0xe9))/0x9*(parseInt(f(0x10b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xde2ab));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(0xd9)]()['search']('(((.+)+)+)+$')[g(0xd9)]()['constructor'](a50a)[g(0xdb)]('(((.+)+)+)+$');});a50a();import{Logger}from'../utilities/logger.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xd5;let f=c[d];return f;},a50d(a,b);}import{RoomType,Direction}from'../types/enums.js';function a50c(){const t=['puzzle','Checking\x20if\x20exit\x20in\x20direction\x20','roomB','name','getOppositeDirection','logger','roomA','addExit','roomType','2279916ZaYmei','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','The\x20','addItem','hasItem','INSIDE','3284088BISWsU','3244110neyFCY','values','attemptUnlock','Puzzle\x20set\x20for\x20room\x20','write','205688QuCyLa','200878ZmDevH','No\x20locked\x20exit\x20found\x20in\x20direction\x20','.\x20Success:\x20','description','toString','setPuzzle','search','Invalid\x20direction:\x20','217SpPmqs','14BTEALv','Room\x20created:\x20','set','removeItem','riddle','7806675zrYFqd','\x20unlocked!','emit','NORTH','inventory','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','81rwlBRW','exits','south','4968592vjGzvy','getExit','Fetching\x20exit\x20in\x20direction:\x20','speak','findExistingDoor','Item\x20added\x20to\x20room\x20','east','isExitLocked','isStartRoom','Item\x20removed\x20from\x20room\x20','getInstance','get','say','west','checkIfLocked'];a50c=function(){return t;};return a50c();}import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{['logger']=Logger[a50h(0xf6)]();[a50h(0xfe)];[a50h(0xd8)];[a50h(0xea)]=new Map();[a50h(0x103)];['isStartRoom'];[a50h(0xe7)]=new Inventory();constructor(a){const i=a50h;super(),this[i(0xfe)]=a[i(0xfe)],this[i(0xd8)]=a[i(0xd8)],this['roomType']=a['roomType']||RoomType[i(0x109)],a[i(0xea)]&&(this[i(0xea)]=a[i(0xea)]||new Map()),a['inventory']&&(this[i(0xe7)]=a[i(0xe7)]),a[i(0xfb)]&&(this[i(0xfb)]=a['puzzle']),this['isStartRoom']=a[i(0xf4)]||![],this['logger'][i(0x10f)](i(0xdf)+this['name']);}[a50h(0xf8)](a,b){const j=a50h;this[j(0xe5)](j(0xef),a,b);}[a50h(0x102)](a,b,c){const k=a50h;let d=this[k(0xf0)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[k(0xea)]['set'](a,d),b[k(0xea)][k(0xe0)](this[k(0xff)](a),d);}['attemptUnlockExit'](a,b){const l=a50h,c=this[l(0xea)]['get'](a);if(c instanceof Door){const d=c[l(0x10d)](b);return this[l(0x100)]['write']('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+l(0xd7)+d),d?l(0x106)+c[l(0xfe)]+l(0xe4):l(0x106)+c[l(0xfe)]+'\x20remains\x20locked.';}return this[l(0x100)][l(0x10f)](l(0xd6)+a),l(0x105);}[a50h(0xed)](a){const m=a50h;return this['logger'][m(0x10f)](m(0xee)+a),this[m(0xea)][m(0xf7)](a);}[a50h(0xf3)](a){const n=a50h,b=this[n(0xea)][n(0xf7)](a),c=b instanceof Door&&b[n(0xfa)]();return this[n(0x100)][n(0x10f)](n(0xfc)+a+'\x20is\x20locked.\x20Result:\x20'+c),c;}['addItem'](a){const o=a50h;this[o(0xe7)][o(0x107)](a),this[o(0x100)][o(0x10f)](o(0xf1)+this[o(0xfe)]+':\x20'+a[o(0xfe)]);}[a50h(0xe1)](a){const p=a50h;this[p(0xe7)][p(0x108)](a[p(0xfe)])?(this[p(0xe7)][p(0xe1)](a['name']),this[p(0x100)]['write'](p(0xf5)+this[p(0xfe)]+':\x20'+a[p(0xfe)])):this[p(0x100)][p(0x10f)](p(0xe8)+this[p(0xfe)]+':\x20'+a['name']);}[a50h(0xda)](a){const q=a50h;this[q(0xfb)]=a,this[q(0x100)][q(0x10f)](q(0x10e)+this[q(0xfe)]+':\x20'+a[q(0xe2)]);}[a50h(0xff)](a){const r=a50h;switch(a){case'north':return Direction['SOUTH'];case r(0xeb):return Direction[r(0xe6)];case r(0xf2):return Direction['WEST'];case r(0xf9):return Direction['EAST'];case'up':return Direction['DOWN'];case'down':return Direction['UP'];default:throw new Error(r(0xdc)+a);}}[a50h(0xf0)](a){const s=a50h;for(const b of this['exits'][s(0x10c)]()){if(b instanceof Door){if(b[s(0x101)]===this&&b['roomB']===a||b[s(0xfd)]===this&&b['roomA']===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x157;let f=c[d];return f;},a51d(a,b);}const a51l=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=parseInt(i(0x15b))/0x1+-parseInt(i(0x1a0))/0x2*(parseInt(i(0x186))/0x3)+-parseInt(i(0x17c))/0x4+parseInt(i(0x16b))/0x5*(parseInt(i(0x174))/0x6)+parseInt(i(0x191))/0x7*(parseInt(i(0x19c))/0x8)+-parseInt(i(0x19a))/0x9*(-parseInt(i(0x17b))/0xa)+-parseInt(i(0x192))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xa2a59));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a51d;if(c){const e=c[j(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const k=a51d;return a51a[k(0x189)]()[k(0x177)](k(0x194))['toString']()['constructor'](a51a)[k(0x177)](k(0x194));});a51a();import{Logger}from'../utilities/logger.js';function a51c(){const C=['toString','write','direction','roomFactory','getActor','set','Failed\x20to\x20set\x20','Failed\x20to\x20add\x20item\x20','3073vRjDLj','8745275YMOIxR','warn','(((.+)+)+)+$','connectRooms','logger','addItem','createRoom','initialize','846INlJAV','push','2344ZsiGZR','getRooms','Room\x20\x22','addItemToRoom','91516kAygtN','rooms','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','join','\x20already\x20exists\x20in\x20the\x20scene.','1179495ANIuZh','\x20found\x20in\x20the\x20scene.','removeRoom','from','exits','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','addPuzzleToRoom','currentLocation','setPuzzle','Failed\x20to\x20add\x20puzzle.\x20Room\x20','Added\x20puzzle\x20to\x20room\x20','setCharacterLocation','allActors','roomConfiguration','name','actors','7035kxKQJI','getCharacterLocation','characterLocations','get','addActor','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','addExit','has','generateRoomsFromConfig','2274gbVQXi','\x20to\x20room\x20','Scene\x20initialized\x20with\x20rooms:\x20','search','\x20not\x20found\x20in\x20scene.','player','keyRequired','101590kcijFX','5157348vLkvLl','toUpperCase','No\x20actor\x20with\x20name\x20','determineStartRoom','getInstance','hasOwnProperty','length','keys','addRoom','apply','3TLoPyy','removeActor','createExitsFromConfig'];a51c=function(){return C;};return a51c();}import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];[a51l(0x179)];['logger'];[a51l(0x16a)];[a51l(0x16d)]=new Map();['roomFactory'];constructor(a){const m=a51l;super(),this[m(0x18c)]=new RoomFactory(),this['player']=a[m(0x179)],this[m(0x157)]=this[m(0x173)](a[m(0x168)]),this[m(0x196)]=Logger[m(0x180)](),this[m(0x16a)]=new Map(),this[m(0x188)](a[m(0x168)]),this['logger'][m(0x18a)](m(0x176)+Object[m(0x183)](this[m(0x157)])[m(0x159)](',\x20'));}[a51l(0x199)](){const n=a51l;this['player'][n(0x162)]=this[n(0x17f)]();}['generateRoomsFromConfig'](a){const o=a51l;if(!this['roomFactory'])throw new Error(o(0x160));const b={};for(const c of a){const d=this[o(0x18c)][o(0x198)](c);b[c['name']]=d;}return b;}['createExitsFromConfig'](a){const p=a51l;for(const b of a){const c=this[p(0x157)][b[p(0x169)]];if(b[p(0x15f)])for(const d of b['exits']){const e=d[p(0x18b)][p(0x17d)](),f=d['targetRoom'],g=d[p(0x17a)],h=this['rooms'][f];h&&c[p(0x171)](Direction[e],h,g);}}}[a51l(0x16f)](a){const q=a51l;if(this[q(0x16a)][q(0x172)](a['name']))throw new Error('Actor\x20with\x20name\x20'+a[q(0x169)]+q(0x15a));this[q(0x16a)][q(0x18e)](a[q(0x169)],a);}[a51l(0x187)](a){const r=a51l;if(!this[r(0x16a)]['has'](a))throw new Error(r(0x17e)+a+r(0x15c));this[r(0x16a)]['delete'](a);}[a51l(0x18d)](a){return this['actors']['get'](a);}get[a51l(0x167)](){const s=a51l;return Array[s(0x15e)](this[s(0x16a)]['values']());}[a51l(0x184)](a){const t=a51l;this[t(0x157)][a[t(0x169)]]=a,this[t(0x196)][t(0x18a)]('Added\x20room\x20to\x20scene:\x20'+a[t(0x169)]);}[a51l(0x15d)](a){const u=a51l;return this[u(0x157)][a]?(delete this[u(0x157)][a],this[u(0x196)][u(0x18a)]('Removed\x20room\x20from\x20scene:\x20'+a),!![]):(this[u(0x196)][u(0x18a)](u(0x170)+a),![]);}[a51l(0x19f)](a,b){const v=a51l,c=this['rooms'][b];c?(c[v(0x197)](a),this[v(0x196)][v(0x18a)]('Added\x20item\x20'+a[v(0x169)]+v(0x175)+c[v(0x169)])):this[v(0x196)]['write'](v(0x190)+a[v(0x169)]+'.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0x161)](a,b){const w=a51l,c=this['rooms'][b];c?(c[w(0x163)](a),this[w(0x196)][w(0x18a)](w(0x165)+c['name'])):this[w(0x196)][w(0x18a)](w(0x164)+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0x166)](a,b){const x=a51l,c=this['rooms'][b];c?(this[x(0x16d)][x(0x18e)](a[x(0x169)],c),this[x(0x196)][x(0x18a)](a[x(0x169)]+'\x20is\x20now\x20in\x20room\x20'+c['name'])):this[x(0x196)][x(0x18a)](x(0x18f)+a[x(0x169)]+'\x27s\x20location.\x20Room\x20'+b+x(0x178));}[a51l(0x16c)](a){const y=a51l;return this['characterLocations'][y(0x16e)](a['name']);}[a51l(0x17f)](){const z=a51l,a=[];for(const c in this[z(0x157)]){if(this[z(0x157)][z(0x181)](c)){const d=this['rooms'][c];d['isStartRoom']&&a[z(0x19b)](d);}}if(a[z(0x182)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a[z(0x182)]===0x1)return a[0x0];const b=Object['keys'](this[z(0x157)]);if(b[z(0x182)]===0x0)throw new Error('No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.');return console[z(0x193)](z(0x158)),this[z(0x157)][b[0x0]];}['getPlayer'](){const A=a51l;return this[A(0x179)];}[a51l(0x19d)](){return this['rooms'];}[a51l(0x195)](a,b,c,d){const B=a51l,e=this['rooms'][a],f=this[B(0x157)][c];if(!e)throw new Error(B(0x19e)+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(B(0x19e)+c+'\x22\x20does\x20not\x20exist.');e[B(0x171)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52j=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a52j=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0xb4))/0x1+parseInt(f(0xd0))/0x2+-parseInt(f(0xbd))/0x3+-parseInt(f(0xbc))/0x4*(-parseInt(f(0xe2))/0x5)+parseInt(f(0xda))/0x6+parseInt(f(0xc4))/0x7*(-parseInt(f(0xb6))/0x8)+-parseInt(f(0xd5))/0x9*(-parseInt(f(0xd9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x9d0a9));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0xe3)]()['search'](h(0xba))['toString']()[h(0xde)](a52a)['search']('(((.+)+)+)+$');});a52a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';function a52c(){var E=['use','2988wOJmlp','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','20380czaHdn','889692bApNWd','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Rifle','You\x20hold\x20the\x20','constructor','ArmArmor','Large','Gloves','2465615bnOaXl','toString','Smooth','Book','Grey','\x20aloft,\x20feeling\x20its\x20immense\x20power.','publishDate','250000CbPMvC','Key','308496qIBkzS','description','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','apply','(((.+)+)+)+$','Rectangle','8NBhYgI','1210425yhkKAw','Common','Short\x20Sword','Holy\x20Grail','A\x20mysterious\x20book.','Small','name','217gaVNHD','Circle','Helmet','Legendary','Blade','Cup','Brown','Medium','Rare','pageCount','Unknown','author','361988DeYOJn','Yellow','Metallic','Weapon'];a52c=function(){return E;};return a52c();}export class BasicItem extends Item{constructor(a,b){var i=a52d;super({'name':a,'description':b,'size':Size[i(0xcb)],'category':Category[i(0xce)],'shape':Shape['Rectangle'],'color':Color['Yellow'],'texture':Texture[i(0xe4)],'rating':Rating[i(0xbe)],'weight':0x1});}[a52j(0xd4)](){var k=a52j;return this[k(0xb7)];}}export class Sword extends Item{constructor(a,b){var l=a52j;super({'name':a,'description':b,'size':Size[l(0xcb)],'category':Category[l(0xd3)],'shape':Shape['Blade'],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var m=a52j;super({'name':a,'description':b,'size':Size[m(0xe0)],'category':Category['Weapon'],'shape':Shape[m(0xdc)],'color':Color['Brown'],'texture':Texture[m(0xd2)],'rating':Rating[m(0xcc)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var n=a52j;super({'name':a,'description':b,'size':Size[n(0xcb)],'category':Category[n(0xc6)],'shape':Shape[n(0xc5)],'color':Color['Grey'],'texture':Texture[n(0xd2)],'rating':Rating['Common'],'weight':0x2});}}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xb0;var f=c[d];return f;},a52d(a,b);}export class BodyArmor extends Item{constructor(a,b){var o=a52j;super({'name':a,'description':b,'size':Size[o(0xe0)],'category':Category['BodyArmor'],'shape':Shape[o(0xbb)],'color':Color['Grey'],'texture':Texture[o(0xd2)],'rating':Rating[o(0xbe)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var p=a52j;super({'name':a,'description':b,'size':Size[p(0xcb)],'category':Category['LegArmor'],'shape':Shape['Rectangle'],'color':Color[p(0xb1)],'texture':Texture[p(0xd2)],'rating':Rating['Common'],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var q=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Boots'],'shape':Shape[q(0xc5)],'color':Color[q(0xca)],'texture':Texture[q(0xe4)],'rating':Rating['Common'],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var r=a52j;super({'name':a,'description':b,'size':Size[r(0xc2)],'category':Category[r(0xe1)],'shape':Shape[r(0xc5)],'color':Color[r(0xca)],'texture':Texture[r(0xe4)],'rating':Rating[r(0xbe)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a52j;super({'name':a,'description':b,'size':Size[s(0xcb)],'category':Category[s(0xdf)],'shape':Shape['Rectangle'],'color':Color[s(0xb1)],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x3});}}export class Key extends Item{constructor(a,b){var t=a52j;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category[t(0xb5)],'shape':Shape[t(0xbb)],'color':Color[t(0xd1)],'texture':Texture['Smooth'],'rating':Rating[t(0xbe)],'weight':0x0});}[a52j(0xd4)](){var u=a52j;return u(0xb8);}}export class Weapon extends Item{constructor(a,b){var v=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Weapon'],'shape':Shape[v(0xc8)],'color':Color[v(0xb1)],'texture':Texture['Metallic'],'rating':Rating[v(0xbe)],'weight':0x3});}[a52j(0xd4)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class Book extends Item{[a52j(0xcf)];['publishDate'];[a52j(0xcd)];constructor(a,b=a52j(0xc1),c='Unknown\x20Author'){var w=a52j;super({'name':a,'description':b,'size':Size[w(0xcb)],'category':Category[w(0xb0)],'shape':Shape['Rectangle'],'color':Color[w(0xca)],'texture':Texture[w(0xe4)],'rating':Rating[w(0xbe)],'weight':0x1}),this['author']=c,this[w(0xb3)]=new Date(),this['pageCount']=0x64;}[a52j(0xd4)](){var x=a52j;return x(0xd8);}}export class ShortSword extends Item{constructor(){var y=a52j;super({'name':y(0xbf),'description':y(0xdb),'size':Size['Medium'],'category':Category[y(0xd3)],'shape':Shape[y(0xc8)],'color':Color['Grey'],'texture':Texture[y(0xd2)],'rating':Rating[y(0xbe)],'weight':0x3});}['use'](){var z=a52j;return z(0xd7);}}export class SniperRifle extends Item{constructor(){var A=a52j;super({'name':'Sniper\x20Rifle','description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size[A(0xe0)],'category':Category[A(0xd3)],'shape':Shape['Rifle'],'color':Color[A(0xca)],'texture':Texture[A(0xe4)],'rating':Rating['Common'],'weight':0x5});}[a52j(0xd4)](){var B=a52j;return B(0xd6);}}export class HolyGrail extends Item{constructor(){var C=a52j;super({'name':C(0xc0),'description':'A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','size':Size['Small'],'category':Category[C(0xc9)],'shape':Shape[C(0xc5)],'color':Color['Gold'],'texture':Texture[C(0xd2)],'rating':Rating[C(0xc7)],'weight':0x1});}['use'](){var D=a52j;return D(0xdd)+this[D(0xc3)]+D(0xb2);}}
|