@maka/maka-cli 4.8.16 → 4.9.1
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 +2 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -0
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js +8 -4
- package/bundle/obf/src/templates/meteor/api/api.js.ts +8 -4
- package/bundle/obf/src/templates/meteor/project/package.json +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a37h=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0x13a))/0x1*(-parseInt(f(0x13f))/0x2)+-parseInt(f(0x140))/0x3+parseInt(f(0x128))/0x4*(-parseInt(f(0x13e))/0x5)+parseInt(f(0x130))/0x6*(parseInt(f(0x137))/0x7)+-parseInt(f(0x139))/0x8*(-parseInt(f(0x12a))/0x9)+parseInt(f(0x134))/0xa+-parseInt(f(0x12b))/0xb*(parseInt(f(0x13c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x7c882));function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x128;let f=c[d];return f;},a37d(a,b);}const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const g=a37d;return a37a['toString']()[g(0x135)]('(((.+)+)+)+$')[g(0x132)]()[g(0x144)](a37a)[g(0x135)](g(0x133));});a37a();import{Command}from'./command.js';function a37c(){const j=['1LOpOkm','SearchCommand:\x20','60PFfBVU','inventory','5LbaGLA','1838126PsLccQ','1908924WPIbGx','execute','currentLocation','listItems','constructor','2864908IzUlYD','logger','27RQttrU','369853sBPMvC','write','name','actor','join','9138JgaZEC','\x20found\x20the\x20following\x20items:\x20','toString','(((.+)+)+)+$','4227830lFKOxa','search','verb','301PONrMj','length','1662392HLutGn'];a37c=function(){return j;};return a37c();}export class SearchCommand extends Command{static [a37h(0x136)]=a37h(0x135);static ['description']='Search\x20for\x20items\x20in\x20your\x20area';[a37h(0x141)](){const i=a37h,a=this[i(0x12e)][i(0x142)][i(0x13d)][i(0x143)]();if(a[i(0x138)]===0x0)return this['logger'][i(0x12c)](i(0x13b)+this[i(0x12e)][i(0x12d)]+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),'You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.';const b=a[i(0x12f)](',\x20');return this[i(0x129)]['write'](i(0x13b)+this[i(0x12e)][i(0x12d)]+i(0x131)+b),'You\x20search\x20the\x20area\x20and\x20find:\x20'+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x16a;let f=c[d];return f;},a38d(a,b);}const a38i=a38d;function a38c(){const k=['6zDWFAD','logger','constructor','write','2BPVVBy','rewardItem','6886452sqzAzt','description','search','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','397625ugbDbB','11DHAUse','2928470oYqMns','343510rdNzLm','toLowerCase','(((.+)+)+)+$','execute','Attempt\x20to\x20solve\x20a\x20puzzle.','1222023VKMZeR','success','5985WrryPd','1746054CNBhMp','addItem','inventory','message','puzzle','toString','1008NzVMGQ','apply','4bedXfP','solve','join','SolveCommand:\x20','currentLocation','actor'];a38c=function(){return k;};return a38c();}(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x184))/0x1*(-parseInt(f(0x17b))/0x2)+parseInt(f(0x189))/0x3*(parseInt(f(0x171))/0x4)+-parseInt(f(0x181))/0x5*(-parseInt(f(0x177))/0x6)+-parseInt(f(0x18b))/0x7*(parseInt(f(0x16f))/0x8)+-parseInt(f(0x18c))/0x9+parseInt(f(0x183))/0xa*(parseInt(f(0x182))/0xb)+-parseInt(f(0x17d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x3c740));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x16e)]()['search'](h(0x186))[h(0x16e)]()[h(0x179)](a38a)[h(0x17f)](h(0x186));});a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static ['verb']=a38i(0x172);static [a38i(0x17e)]=a38i(0x188);[a38i(0x187)](a){const j=a38i,b=a[j(0x173)]('\x20')[j(0x185)](),c=this[j(0x176)][j(0x175)];if(!c||!c['puzzle'])return this['logger'][j(0x17a)]('SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.'),j(0x180);const d=c[j(0x16d)][j(0x172)](b,this[j(0x176)]['inventory']);return d[j(0x18a)]&&c[j(0x16d)][j(0x17c)]&&this[j(0x176)][j(0x16b)][j(0x16a)](c['puzzle'][j(0x17c)]),this[j(0x178)]['write'](j(0x174)+d[j(0x16c)]),d['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d
|
|
1
|
+
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0xf8))/0x1+-parseInt(f(0xee))/0x2*(-parseInt(f(0xfd))/0x3)+parseInt(f(0xe7))/0x4*(parseInt(f(0xf0))/0x5)+parseInt(f(0xdf))/0x6+parseInt(f(0xeb))/0x7+-parseInt(f(0xf5))/0x8+parseInt(f(0xfb))/0x9*(-parseInt(f(0xe6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x7b568));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0xf2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0xdc)]()['search'](h(0xec))[h(0xdc)]()['constructor'](a39a)[h(0xde)]('(((.+)+)+)+$');});function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xd6;let f=c[d];return f;},a39d(a,b);}a39a();import{Command}from'./command.js';function a39c(){const l=['toString','\x22\x20to\x20','search','1719534hIbfLc','join','currentLocation','\x22\x20in\x20this\x20room.','Successfully\x20added\x20\x22','message','You\x20have\x20taken\x20the\x20','6446810ZRBCCo','129388HCSWvo','take','toLowerCase','inventory','5441289iXUitD','(((.+)+)+)+$','verb','4xkuvUD','hasItem','95gtWLTu','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','apply','There\x20is\x20no\x20item\x20\x22','getItem','6100016KRTiXF','write','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','44196RHpcSA','logger','addInventory','9ZlmbAI','actor','417093pmTuPZ','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','\x22\x20not\x20found\x20in\x20','Item\x20\x22','\x20during\x20\x27Take\x27\x20command.','removeItem','name','\x22\x20from\x20','Pick\x20up\x20an\x20item.'];a39c=function(){return l;};return a39c();}export class TakeCommand extends Command{static [a39i(0xed)]=a39i(0xe8);static ['description']=a39i(0xdb);['execute'](a){const j=a39i;return this['logger']['write'](j(0xfe)+a[j(0xe0)]('\x20')),this[j(0xe8)](a);}[a39i(0xe8)](a){const k=a39i,b=a['join']('\x20')[k(0xe9)](),c=this[k(0xfc)][k(0xe1)];if(!c[k(0xea)][k(0xef)](b))return this[k(0xf9)][k(0xf6)](k(0xd6)+b+k(0xff)+c[k(0xd9)]+k(0xd7)),k(0xf3)+b+k(0xe2);const d=c[k(0xea)][k(0xf4)](b);if(!d)return this[k(0xf9)][k(0xf6)]('Item\x20\x22'+b+'\x22\x20not\x20retrieved\x20from\x20'+c[k(0xd9)]+k(0xf7)),k(0xf3)+b+k(0xe2);try{return this['actor'][k(0xfa)](d),this[k(0xf9)][k(0xf6)](k(0xe3)+b+k(0xdd)+this[k(0xfc)]['name']+k(0xf1)),c[k(0xea)][k(0xd8)](b),this[k(0xf9)]['write']('Successfully\x20removed\x20\x22'+b+k(0xda)+c['name']+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0xe5)+b+'.';}catch(e){return this[k(0xf9)][k(0xf6)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[k(0xe4)]),'The\x20item\x20\x22'+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x14b))/0x1*(-parseInt(f(0x155))/0x2)+-parseInt(f(0x152))/0x3*(parseInt(f(0x153))/0x4)+-parseInt(f(0x14a))/0x5*(parseInt(f(0x145))/0x6)+parseInt(f(0x144))/0x7+-parseInt(f(0x149))/0x8*(-parseInt(f(0x157))/0x9)+parseInt(f(0x14e))/0xa+parseInt(f(0x143))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xca5b7));function a40c(){const k=['(((.+)+)+)+$','672brkPJi','190awoiQk','5sFyJvn','unqeuip','actor','15904460HqeJAp','write','name','UnequipCommand:\x20','116592CfxcLM','88EdESno','\x20unqeuiped\x20','180254XlyVkP','logger','14742ZHUwMX','join','unequip','toString','verb','constructor','15937900YTrHkQ','370636Igbktg','172956YgeqHB','search','apply'];a40c=function(){return k;};return a40c();}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x147)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x15a)]()[h(0x146)]('(((.+)+)+)+$')[h(0x15a)]()[h(0x142)](a40a)['search'](h(0x148));});a40a();import{Command}from'./command.js';function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x142;let f=c[d];return f;},a40d(a,b);}export class UnequipCommand extends Command{static [a40i(0x15b)]=a40i(0x14c);static ['description']='Unequip\x20an\x20item.';['execute'](a){const j=a40i,b=a[j(0x158)]('\x20')['toLowerCase'](),c=this[j(0x14d)][j(0x159)](b);return this[j(0x156)][j(0x14f)](j(0x151)+this['actor'][j(0x150)]+j(0x154)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d
|
|
1
|
+
function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a41d(a,b);}function a41c(){const n=['2539380jsmfUx','There\x27s\x20no\x20door\x20named\x20\x22','error','currentLocation','(((.+)+)+)+$','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','28510XpKAky','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','14WvSDRu','1317735NcdPww','toString','4gOqzUF','execute','unlockItemOrSolution','logger','70ZAPRnN','attemptUnlockExit','apply','inventory','toLowerCase','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','945344VnJreR','exits','\x22\x20here.','unlock','62946pRpdpC','9516552voLixh','description','name','UnlockCommand:\x20No\x20target\x20specified.','search','write','8811aHKFbK','UnlockCommand:\x20','getItem','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','226148UivKVV','actor'];a41c=function(){return n;};return a41c();}const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=parseInt(h(0x1e1))/0x1+parseInt(h(0x1e3))/0x2*(-parseInt(h(0x1fe))/0x3)+-parseInt(h(0x1fc))/0x4*(-parseInt(h(0x1e7))/0x5)+-parseInt(h(0x1f2))/0x6+parseInt(h(0x1e0))/0x7*(-parseInt(h(0x1ed))/0x8)+-parseInt(h(0x1f1))/0x9+parseInt(h(0x1de))/0xa*(parseInt(h(0x1f8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xd48a2));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a41d;if(c){const e=c[i(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a[j(0x1e2)]()[j(0x1f6)](j(0x202))[j(0x1e2)]()['constructor'](a41a)['search']('(((.+)+)+)+$');});a41a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static ['verb']=a41k(0x1f0);static [a41k(0x1f3)]='Unlock\x20a\x20door.';[a41k(0x1e4)](a){const l=a41k;return this[l(0x1f0)](a);}[a41k(0x1f0)](a){const m=a41k;if(a['length']===0x0)return this['logger'][m(0x200)](m(0x1f5)),m(0x1fb);const b=a[0x0]['toLowerCase'](),c=this[m(0x1fd)][m(0x201)];if(this['isValidDirection'](b)&&c['exits']['has'](b)){const d=c[m(0x1ee)]['get'](b);if(d instanceof Door){const e=d[m(0x1e5)]?.[m(0x1eb)]();if(e&&this[m(0x1fd)][m(0x1ea)]['hasItem'](e)){const f=this['actor'][m(0x1ea)][m(0x1fa)](e);if(f){const g=c[m(0x1e8)](b,f[m(0x1f4)]);return this[m(0x1e6)][m(0x1f7)](m(0x1f9)+this['actor'][m(0x1f4)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+'.\x20Result:\x20'+g),g;}}return this[m(0x1e6)][m(0x1f7)]('UnlockCommand:\x20'+this[m(0x1fd)][m(0x1f4)]+m(0x1ec)+b+'.'),m(0x1df);}else return this[m(0x1e6)]['write'](m(0x1f9)+b+m(0x1dd)+c[m(0x1f4)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+'\x22\x20here.';}else return this['logger'][m(0x1f7)](m(0x1f9)+b+m(0x1dd)+c['name']+'.'),m(0x1ff)+b+m(0x1ef);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a42i=a42d;function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x150;let f=c[d];return f;},a42d(a,b);}(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x170))/0x1*(-parseInt(f(0x159))/0x2)+-parseInt(f(0x155))/0x3+-parseInt(f(0x16a))/0x4+-parseInt(f(0x164))/0x5*(parseInt(f(0x166))/0x6)+-parseInt(f(0x156))/0x7+parseInt(f(0x168))/0x8+parseInt(f(0x152))/0x9*(parseInt(f(0x150))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x8ed2d));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x157)]()['search']('(((.+)+)+)+$')['toString']()[h(0x151)](a42a)[h(0x158)]('(((.+)+)+)+$');});a42a();import{Command}from'./command.js';function a42c(){const l=['15852HPirky','\x27s\x20inventory.','3227064jtxVWq',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','3657868uxaWNT','toLowerCase','inventory','UseCommand:\x20','\x20used\x20','hasItem','1883QgBubF','\x20not\x20retrieved\x20from\x20','description','You\x20can\x27t\x20use\x20the\x20','18470DQDPEI','constructor','15102EajtDC','getItem','actor','945585VbfEOu','3253117KWRqxh','toString','search','362VstSXP','name','use','\x20in\x20this\x20way.','Use\x20an\x20item.','execute','\x20to\x20use.','apply','\x20attempted\x20to\x20use\x20','logger','write','1670BFyUsL','\x20doesn\x27t\x20have\x20a\x20use\x20method.'];a42c=function(){return l;};return a42c();}export class UseCommand extends Command{static ['verb']='use';static [a42i(0x172)]=a42i(0x15d);[a42i(0x15e)](a){const j=a42i;return this[j(0x15b)](a);}[a42i(0x15b)](a){const k=a42i,b=a['join']('\x20')[k(0x16b)]();if(!this['actor'][k(0x16c)][k(0x16f)](b))return this[k(0x162)][k(0x163)]('UseCommand:\x20'+this[k(0x154)][k(0x15a)]+k(0x161)+b+k(0x169)),'You\x20don\x27t\x20have\x20the\x20'+b+'\x20to\x20use.';const c=this[k(0x154)][k(0x16c)][k(0x153)](b);if(!c)return this['logger']['write'](k(0x16d)+b+k(0x171)+this['actor'][k(0x15a)]+k(0x167)),'You\x20don\x27t\x20have\x20the\x20'+b+k(0x15f);if(typeof c[k(0x15b)]==='function'){const d=c[k(0x15b)]();return this['logger'][k(0x163)]('UseCommand:\x20'+this['actor'][k(0x15a)]+k(0x16e)+b+'.'),d;}else return this[k(0x162)][k(0x163)](k(0x16d)+b+k(0x165)),k(0x173)+b+k(0x15c);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x156))/0x1+-parseInt(f(0x151))/0x2+-parseInt(f(0x155))/0x3*(parseInt(f(0x153))/0x4)+parseInt(f(0x154))/0x5+parseInt(f(0x15b))/0x6+parseInt(f(0x150))/0x7*(-parseInt(f(0x15a))/0x8)+-parseInt(f(0x161))/0x9*(-parseInt(f(0x15d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xcd8be));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x152)]()[h(0x159)](h(0x158))['toString']()[h(0x14f)](a43a)[h(0x159)](h(0x158));});a43a();function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x14f;let f=c[d];return f;},a43d(a,b);}function a43c(){const l=['3323214TMGYjy','createCommand','115390IKYbRj','commandMap','registerCommand','getAllRegisteredCommands','1143zMldmW','constructor','66339yzwDtU','2208314dzbFsJ','toString','36uedRHl','472965EXwWPS','355197qLiJWt','1665388syMGoV','apply','(((.+)+)+)+$','search','648Cehwpw'];a43c=function(){return l;};return a43c();}export class CommandFactory{static [a43i(0x15e)]={};static[a43i(0x15f)](a,b){const j=a43i;this[j(0x15e)][a]=b;}static[a43i(0x15c)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static[a43i(0x160)](){const k=a43i;return this[k(0x15e)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a44c(){const o=['createPuzzle','addItem','content','boots','key','13dcsPPQ','39747arUdIH','puzzle','bodyarmor','gloves','125388kzLLzD','835wQCRyC','createItem','9noLRnf','constructor','sword','toString','description','name','44QWTPAo','convertToRoomConfig','(((.+)+)+)+$','helmet','5567344LwEwcb','toUpperCase','rifle','42XUmyYT','205278aQBMTQ','apply','gauntlets','book','1427998QJlNkM','items','40WhEvll','19268GVhfEH','4554132gNCVEp','type','isStartRoom','roomType','setPuzzle'];a44c=function(){return o;};return a44c();}const a44m=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(0xc2))/0x1+-parseInt(f(0xcb))/0x2*(-parseInt(f(0xbe))/0x3)+-parseInt(f(0xda))/0x4*(parseInt(f(0xc3))/0x5)+parseInt(f(0xd3))/0x6*(parseInt(f(0xd2))/0x7)+-parseInt(f(0xcf))/0x8*(-parseInt(f(0xc5))/0x9)+-parseInt(f(0xd9))/0xa*(-parseInt(f(0xd7))/0xb)+-parseInt(f(0xdb))/0xc*(parseInt(f(0xbd))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x624b0));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0xc8)]()['search'](h(0xcd))[h(0xc8)]()[h(0xc6)](a44a)['search'](h(0xcd));});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-0xb8;let f=c[d];return f;},a44d(a,b);}export class RoomFactory{['createRoom'](a){const i=a44d,b=this[i(0xcc)](a),c=new Room(b);if(a[i(0xd8)]){const d=new Inventory();a[i(0xd8)]['forEach'](e=>{const j=i;d[j(0xb9)](this[j(0xc4)](e));}),c['inventory']=d;}return a[i(0xbf)]&&c[i(0xdf)](this[i(0xb8)](a['puzzle'])),c;}['createItem'](a){const k=a44d;switch(a[k(0xdc)]){case k(0xbc):return new Key(a[k(0xca)],a[k(0xc9)]);case k(0xd6):return new Book(a[k(0xca)],a[k(0xc9)],a[k(0xba)]);case k(0xc7):return new Sword(a[k(0xca)],a['description']);case k(0xd1):return new Rifle(a['name'],a[k(0xc9)]);case k(0xce):return new Helmet(a[k(0xca)],a['description']);case k(0xc0):return new BodyArmor(a[k(0xca)],a[k(0xc9)]);case'legarmor':return new LegArmor(a[k(0xca)],a[k(0xc9)]);case k(0xbb):return new Boots(a[k(0xca)],a[k(0xc9)]);case k(0xc1):return new Gloves(a['name'],a['description']);case k(0xd5):return new Gauntlets(a['name'],a[k(0xc9)]);default:return new BasicItem(a[k(0xca)],a[k(0xc9)]);}}['createPuzzle'](a){const l=a44d,b=this[l(0xc4)](a['rewardItem']);return new Puzzle({...a,'rewardItem':b});}[a44m(0xcc)](a){const n=a44m,b=a[n(0xde)]&&RoomType[a[n(0xde)][n(0xd0)]()]?RoomType[a[n(0xde)][n(0xd0)]()]:RoomType['INSIDE'];return{'name':a[n(0xca)],'description':a['description'],'isStartRoom':a[n(0xdd)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=-parseInt(h(0x151))/0x1*(parseInt(h(0x139))/0x2)+-parseInt(h(0x127))/0x3+-parseInt(h(0x142))/0x4+-parseInt(h(0x137))/0x5+parseInt(h(0x13a))/0x6*(-parseInt(h(0x150))/0x7)+parseInt(h(0x134))/0x8+parseInt(h(0x138))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x4c036));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a45d;if(c){const e=c[i(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const j=a45d;return a45a[j(0x155)]()[j(0x132)]('(((.+)+)+)+$')['toString']()[j(0x14d)](a45a)[j(0x132)](j(0x148));});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';import{UnlockCommand}from'./commands/unlock.js';function a45c(){const s=['determineStartRoom','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','(((.+)+)+)+$','currentRoom','-\x20quit:\x20Exit\x20the\x20game.\x0a','getDescription','initialize','constructor','take','getAllRegisteredCommands','50477HIVoim','46724PRjcmu','name','-\x20clear:\x20Clear\x20the\x20screen.\x0a','unequip','toString','getWelcomeMessage','help','scene','quit','767130Rjifub','drop','getHelpMessage','Available\x20Commands:\x0a','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','say','apply','slice','player','unlock','split','search','handleInput','820752dHQChz','toLowerCase','lock','1782595mCPcTD','19429452uAnWJo','26chNzQZ','114dAtxiu','registerCommand','getRooms','currentLocation','getInstance','look','instance','execute','2373688ZkocJQ','Welcome,\x20','createCommand','use'];a45c=function(){return s;};return a45c();}function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x126;let f=c[d];return f;},a45d(a,b);}import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a45k(0x140)];[a45k(0x158)];['player'];[a45k(0x149)];['rooms'];constructor(a,b){const l=a45k;this[l(0x12f)]=a,this[l(0x158)]=new Scene({'player':a,'roomConfiguration':b}),this['scene'][l(0x14c)](),this[l(0x12f)][l(0x13d)]=this[l(0x146)](),this['registerCommands']();}['registerCommands'](){const m=a45k;CommandFactory[m(0x13b)](m(0x13f),LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory[m(0x13b)](m(0x14e),TakeCommand),CommandFactory[m(0x13b)](m(0x145),UseCommand),CommandFactory['registerCommand']('equip',EquipCommand),CommandFactory[m(0x13b)](m(0x154),UnequipCommand),CommandFactory[m(0x13b)]('solve',SolveCommand),CommandFactory['registerCommand'](m(0x128),DropCommand),CommandFactory['registerCommand'](m(0x130),UnlockCommand),CommandFactory[m(0x13b)](m(0x136),LockCommand),CommandFactory['registerCommand'](m(0x132),SearchCommand),CommandFactory[m(0x13b)](m(0x12c),SayCommand);}[a45k(0x146)](){const n=a45k;return this['scene'][n(0x146)]();}[a45k(0x156)](){const o=a45k;return o(0x143)+this['player'][o(0x152)];}static[a45k(0x13e)](a,b){const p=a45k;return!Game[p(0x140)]&&(Game[p(0x140)]=new Game(a,b)),Game[p(0x140)];}[a45k(0x133)](a){const q=a45k,b=a['trim']()[q(0x131)]('\x20'),c=b[0x0][q(0x135)](),d=b[q(0x12e)](0x1);if(c===q(0x126))return null;if(c==='maka')return q(0x12b);if(c===q(0x157))return this[q(0x129)]();if(c==='clear')return'';const e={'actor':this[q(0x12f)],'rooms':this[q(0x158)][q(0x13c)](),'scene':this[q(0x158)]},f=CommandFactory[q(0x144)](c,e);if(f){const g=f[q(0x141)](d);return g;}return q(0x147)+c+'\x22.';}['getHelpMessage'](){const r=a45k,a=CommandFactory[r(0x14f)]();let b=r(0x12a);for(const c in a){if(a['hasOwnProperty'](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x14b)]()+'\x0a';}}return b+=r(0x153),b+=r(0x14a),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0xe4))/0x1+-parseInt(f(0xd8))/0x2*(parseInt(f(0xe2))/0x3)+parseInt(f(0xd7))/0x4*(parseInt(f(0xdd))/0x5)+parseInt(f(0xda))/0x6*(-parseInt(f(0xdb))/0x7)+parseInt(f(0xe5))/0x8*(-parseInt(f(0xe3))/0x9)+parseInt(f(0xe0))/0xa+parseInt(f(0xd9))/0xb*(parseInt(f(0xd6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x1abd7));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0xde)]()[h(0xdc)](h(0xe1))[h(0xde)]()['constructor'](a46a)['search'](h(0xe1));});a46a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xd6;var f=c[d];return f;},a46d(a,b);}export*from'./player.js';export*from'./puzzle.js';function a46c(){var i=['649LTBVri','55404nZnPVM','56ALQWfR','search','475zvMtbV','toString','apply','1779720gcnBAA','(((.+)+)+)+$','363KtIZRJ','1602RlrjPT','207976eqkYHk','8888lpihvd','28284PZUvny','1580kBPQzM','2998KCmejX'];a46c=function(){return i;};return a46c();}export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a47h=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=-parseInt(f(0x7f))/0x1*(parseInt(f(0x72))/0x2)+parseInt(f(0x6d))/0x3+-parseInt(f(0x8a))/0x4+-parseInt(f(0x76))/0x5*(-parseInt(f(0x81))/0x6)+parseInt(f(0x86))/0x7*(parseInt(f(0x6f))/0x8)+parseInt(f(0x8b))/0x9+-parseInt(f(0x79))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x47f2a));var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var g=a47d;return a47a[g(0x7b)]()[g(0x89)](g(0x84))[g(0x7b)]()['constructor'](a47a)[g(0x89)](g(0x84));});function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x6d;var f=c[d];return f;},a47d(a,b);}a47a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a47c(){var n=['name','To\x20','50GvnFmz','.\x20Used:\x20','Door\x20unlocked:\x20','write','20yXUefp','Door\x20created\x20between\x20','isLockable','8764840ONMhvk','checkIfLockable','toString','getInstance','checkIfLocked','Failed\x20to\x20unlock\x20door:\x20','16874PKANMN','attemptUnlock','831144NucUrf','roomA','logger','(((.+)+)+)+$','.\x20Is\x20Locked:\x20','21xMtReS','roomB','unlockItemOrSolution','search','86076dvQfAq','2238777FzKuLZ','1419690OTlskC','isLocked','902592ioVxNd'];a47c=function(){return n;};return a47c();}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a47h(0x82)];['roomB'];[a47h(0x6e)];[a47h(0x88)];[a47h(0x70)];[a47h(0x83)];[a47h(0x78)];constructor(a){var i=a47h;super(),this['roomA']=a[i(0x82)],this[i(0x87)]=a['roomB'],this[i(0x6e)]=a['isLocked']||![],this[i(0x88)]=a[i(0x88)],this[i(0x70)]=a[i(0x70)]?capitalCase(a[i(0x70)]):i(0x71)+a[i(0x87)][i(0x70)],this[i(0x83)]=Logger[i(0x7c)](),this['isLockable']=!!a[i(0x88)],this['logger'][i(0x75)](i(0x77)+this[i(0x82)][i(0x70)]+'\x20and\x20'+this[i(0x87)][i(0x70)]+i(0x85)+this[i(0x6e)]);}['getOtherSide'](a){var j=a47h;return this['roomA']===a?this[j(0x87)]:this[j(0x82)];}[a47h(0x80)](a){var k=a47h;if(this[k(0x6e)]&&this[k(0x88)]&&this[k(0x88)]===a)return this[k(0x6e)]=![],this[k(0x83)]['write'](k(0x74)+this[k(0x70)]+k(0x73)+a),!![];return this[k(0x83)]['write'](k(0x7e)+this[k(0x70)]+k(0x73)+a),![];}[a47h(0x7d)](){var l=a47h;return this[l(0x6e)];}[a47h(0x7a)](){var m=a47h;return this[m(0x78)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0xe7))/0x1+parseInt(f(0xf0))/0x2*(-parseInt(f(0xe1))/0x3)+parseInt(f(0xf9))/0x4*(parseInt(f(0xed))/0x5)+-parseInt(f(0xef))/0x6*(-parseInt(f(0xda))/0x7)+parseInt(f(0xe8))/0x8+-parseInt(f(0xdc))/0x9+parseInt(f(0xf7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xf0136));function a48c(){const r=['addItem','toString','listItems','constructor','1383918jgFOuS','10497704VGGSth','values','getItem','hasItem','Checked\x20for\x20item:\x20','549715CkfUMh','Retrieved\x20details\x20for\x20item:\x20','936930hbRVgT','74EthNZB','apply','getInstance','logger','getWeight','.\x20Item\x20not\x20found.','search','9481530qjcccc','name','12MlRCUa','.\x20Exists:\x20','Listed\x20items\x20in\x20inventory:\x20','\x20to\x20inventory.','has','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','Removed\x20item:\x20','join','keys','delete','removeItem','77xOvgOg','weight','8095401nWuQzI','\x20in\x20','getAllItems','items','write','84417oLjToi','toLowerCase'];a48c=function(){return r;};return a48c();}function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0xd1;let f=c[d];return f;},a48d(a,b);}const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0xf1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a['toString']()[h(0xf6)]('(((.+)+)+)+$')[h(0xe4)]()[h(0xe6)](a48a)[h(0xf6)]('(((.+)+)+)+$');});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48i(0xdf)];[a48i(0xf3)];constructor(){const j=a48i;super(),this[j(0xdf)]=new Map(),this[j(0xf3)]=Logger[j(0xf2)]();}[a48i(0xe3)](a){const k=a48i;this[k(0xdf)]['set'](a['name'][k(0xe2)](),a),this[k(0xf3)]['write']('Added\x20item:\x20'+a[k(0xf8)]+k(0xd2));}[a48i(0xd9)](a){const l=a48i,b=this[l(0xea)](a);if(b)return this[l(0xdf)][l(0xd8)](a[l(0xe2)]()),this['logger'][l(0xe0)](l(0xd5)+a+'\x20from\x20inventory.'),b;return this[l(0xf3)][l(0xe0)]('Failed\x20to\x20remove\x20item:\x20'+a+l(0xf5)),null;}[a48i(0xeb)](a){const m=a48i,b=this[m(0xdf)][m(0xd3)](a[m(0xe2)]()),c=[...this[m(0xdf)]['keys']()];return this['logger'][m(0xe0)](m(0xec)+a+m(0xdd)+c[m(0xd6)](',\x20')+m(0xfa)+b+'.'),b;}[a48i(0xea)](a){const n=a48i,b=this[n(0xdf)]['get'](a[n(0xe2)]())||null;return b?this[n(0xf3)][n(0xe0)](n(0xee)+a+'.'):this[n(0xf3)][n(0xe0)](n(0xd4)+a+n(0xf5)),b;}[a48i(0xe5)](){const o=a48i,a=[...this['items'][o(0xd7)]()],b=a['map'](c=>capitalCase(c));return this[o(0xf3)]['write'](o(0xd1)+b[o(0xd6)](',\x20')+'.'),a;}[a48i(0xf4)](){const p=a48i;let a=0x0;for(const b of this[p(0xdf)][p(0xe9)]()){a+=b[p(0xdb)];}return a;}[a48i(0xde)](){const q=a48i;return[...this[q(0xdf)][q(0xe9)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-
|
|
1
|
+
function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1a6;var f=c[d];return f;},a49d(a,b);}var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x1b8))/0x1+parseInt(f(0x1a6))/0x2+parseInt(f(0x1b7))/0x3*(-parseInt(f(0x1ba))/0x4)+parseInt(f(0x1bc))/0x5*(parseInt(f(0x1c1))/0x6)+parseInt(f(0x1ad))/0x7*(-parseInt(f(0x1b6))/0x8)+-parseInt(f(0x1a8))/0x9+parseInt(f(0x1bb))/0xa*(parseInt(f(0x1b4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xc5f0b));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x1b3)]()['search'](h(0x1c0))[h(0x1b3)]()[h(0x1bf)](a49a)[h(0x1a9)]('(((.+)+)+)+$');});function a49c(){var l=['category','constructor','(((.+)+)+)+$','6CbUlfX','629780FqMPRg','name','9656235ZdLQrJ','search','apply','description','shape','14fkbCfS','You\x20use\x20the\x20','weight','color','rating','.\x20Nothing\x20special\x20happens.','toString','12696783hvheYD','uuid','1618888UXHCts','1359MiVEgI','199416pgmhpZ','use','2460mkGmIj','10TBFFTl','4492180JKlOQP','texture'];a49c=function(){return l;};return a49c();}a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{['uuid'];['name'];[a49i(0x1ab)];['size'];[a49i(0x1be)];[a49i(0x1ac)];['color'];['texture'];['rating'];[a49i(0x1af)];constructor(a){var j=a49i;super(),this[j(0x1a7)]=a[j(0x1a7)],this[j(0x1ab)]=a['description'],this['size']=a['size'],this['category']=a['category'],this[j(0x1ac)]=a['shape'],this[j(0x1b0)]=a[j(0x1b0)],this[j(0x1bd)]=a[j(0x1bd)],this[j(0x1b1)]=a[j(0x1b1)],this[j(0x1af)]=a['weight'],this[j(0x1b5)]=a49e();}[a49i(0x1b9)](){var k=a49i;return k(0x1ae)+this[k(0x1a7)]+k(0x1b2);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x88))/0x1+parseInt(f(0x7a))/0x2+parseInt(f(0x76))/0x3*(parseInt(f(0x80))/0x4)+-parseInt(f(0x85))/0x5+parseInt(f(0x84))/0x6+-parseInt(f(0x71))/0x7*(-parseInt(f(0x73))/0x8)+-parseInt(f(0x7c))/0x9*(parseInt(f(0x78))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xa2c3f));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0x86)]()[h(0x82)]('(((.+)+)+)+$')[h(0x86)]()[h(0x7b)](a50a)[h(0x82)]('(((.+)+)+)+$');});function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x71;let f=c[d];return f;},a50d(a,b);}a50a();function a50c(){const o=['3536358haBJTg','6212655XZjMTQ','toString','_dialogue','962892eIGaSE','speak','433118kqRJSc','floor','80PumYPr','execute','scene','93UoYQus','moveTo','10cxDAoV','random','551300Ojnucw','constructor','15833619EzwHUX','_name','rooms','apply','157656FcKgXS','length','search','name'];a50c=function(){return o;};return a50c();}import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a50i(0x7d)];['_dialogue'];[a50i(0x7e)];[a50i(0x75)];constructor(a,b,c,d){const j=a50i;super(d),this[j(0x7d)]=a,this[j(0x87)]=b,this[j(0x7e)]=c;}get[a50i(0x83)](){const k=a50i;return this[k(0x7d)];}[a50i(0x89)](){const l=a50i;return this['_dialogue'][Math[l(0x72)](Math[l(0x79)]()*this[l(0x87)]['length'])];}['autonomousMove'](a){const m=a50i,b=a[Math['floor'](Math[m(0x79)]()*a[m(0x81)])];this[m(0x77)](b['name']);}['moveTo'](a){const n=a50i,b={'actor':this,'rooms':this['rooms'],'scene':this[n(0x75)]},c=new GoCommand(b);c[n(0x74)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0x1f5))/0x1*(-parseInt(f(0x249))/0x2)+parseInt(f(0x20b))/0x3*(-parseInt(f(0x220))/0x4)+-parseInt(f(0x23d))/0x5+parseInt(f(0x222))/0x6*(parseInt(f(0x1fa))/0x7)+parseInt(f(0x214))/0x8+parseInt(f(0x240))/0x9+-parseInt(f(0x205))/0xa*(-parseInt(f(0x22d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x7bdc8));function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a51d(a,b);}const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x223)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a['toString']()[h(0x212)](h(0x207))[h(0x1f8)]()[h(0x24f)](a51a)[h(0x212)](h(0x207));});a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a51i(0x203)];[a51i(0x24b)];[a51i(0x242)];['_equipment'];['_maxCarryingWeight']=0x32;[a51i(0x1f9)];constructor(a){const j=a51i;super(),this[j(0x203)]=a[j(0x239)],this[j(0x24b)]=a[j(0x22f)]||new Room({'name':'Nexus','description':j(0x1fd)}),this['_inventory']=new Inventory(),this['logger']=Logger[j(0x213)]();if(a?.[j(0x235)])for(const b of a[j(0x235)]){this[j(0x242)][j(0x217)](b);}this[j(0x226)]=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get['name'](){const k=a51i;return this[k(0x203)];}get['currentLocation'](){const l=a51i;return this[l(0x24b)];}set[a51i(0x23c)](a){const m=a51i;this[m(0x24b)]!==a&&(this[m(0x244)](),this[m(0x243)](a)),this[m(0x24b)]=a;}get['inventory'](){const n=a51i;return this[n(0x242)];}get[a51i(0x245)](){const o=a51i;return this[o(0x226)];}set[a51i(0x245)](a){const p=a51i;this[p(0x226)]=a;}get[a51i(0x219)](){const q=a51i;return this[q(0x241)];}set['maxCarryingWeight'](a){const r=a51i;a>0x0?this[r(0x241)]=a:console['error'](r(0x22c));}get[a51i(0x22a)](){const s=a51i;let a=this['_inventory'][s(0x20e)]();for(const b in this[s(0x226)]){const c=this[s(0x226)][b];c&&(a+=c[s(0x210)]);}return a;}['addInventory'](a){const t=a51i;if(this[t(0x22a)]+a[t(0x210)]>this[t(0x219)]){this[t(0x1f9)][t(0x22e)](t(0x1f4));throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this[t(0x242)][t(0x217)](a),this['logger'][t(0x22e)](t(0x233)+a[t(0x24e)]+t(0x1fe));}[a51i(0x21c)](a){const u=a51i;if(this[u(0x242)]['removeItem'](a[u(0x24e)]))return this[u(0x1f9)]['write'](u(0x206)+a['name']+'\x20from\x20player\x27s\x20inventory.'),!![];return this[u(0x1f9)][u(0x22e)](u(0x229)+a[u(0x24e)]+u(0x22b)),![];}[a51i(0x1f6)](a){const v=a51i;if(!this[v(0x242)][v(0x21b)](a[v(0x24e)]))return'You\x20don\x27t\x20have\x20'+a[v(0x24e)]+v(0x247);if(!this[v(0x23b)](a))return v(0x234)+a[v(0x24e)]+'.';const b=this[v(0x227)](a['category']);if(!b)return a['name']+v(0x224);if(this[v(0x245)][b])return v(0x246)+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this[v(0x245)][b]=a,this['removeInventory'](a),'You\x20equipped\x20'+a['name']+'.';}['unequip'](a){const w=a51i;let b=a;if(!this[w(0x245)][camelCase(b)]){b=this[w(0x227)](a);if(!b)return w(0x1fc)+a+'.';}return this[w(0x232)](b);}['determineEquipmentSlot'](a){const x=a51i;switch(a['toLowerCase']()){case Category[x(0x1f7)][x(0x211)]():return'rightHand';case Category['Shield'][x(0x211)]():return'leftHand';case Category[x(0x209)][x(0x211)]():return x(0x1ff);case Category[x(0x236)][x(0x211)]():case Category[x(0x20a)]['toLowerCase']():return x(0x221);case Category[x(0x228)][x(0x211)]():return x(0x225);case Category[x(0x24c)][x(0x211)]():return x(0x218);case Category[x(0x23a)][x(0x211)]():return x(0x21e);case Category[x(0x201)][x(0x211)]():return x(0x238);case x(0x21a):return x(0x23e);case x(0x216):return x(0x230);case'gloves':return x(0x1ff);case x(0x24a):case'hat':return x(0x221);case'boots':return x(0x225);case x(0x237):case x(0x215):return x(0x218);case x(0x231):case'armarmor':return x(0x21e);case x(0x20c):case x(0x23f):case x(0x238):return x(0x238);default:return null;}}['canEquip'](a){const y=a51i;return Object['values'](Category)[y(0x1fb)](a[y(0x204)]);}[a51i(0x232)](a){const z=a51i,b=this[z(0x245)][a];if(!b)return'You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20'+a+z(0x20f);return this[z(0x202)](b),this[z(0x245)][a]=null,z(0x248)+b[z(0x24e)]+'.';}[a51i(0x200)](a,b){const A=a51i;a!==this&&this[A(0x1f9)][A(0x20d)](a[A(0x24e)]+A(0x21f)+b+'\x22');}[a51i(0x243)](a){const B=a51i;this[B(0x24b)]=a,a['on'](B(0x24d),this['hear'][B(0x208)](this)),this[B(0x1f9)][B(0x22e)](this[B(0x24e)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[B(0x24e)]);}[a51i(0x244)](){const C=a51i;this[C(0x24b)]&&(this[C(0x24b)][C(0x21d)](C(0x24d),this[C(0x200)][C(0x208)](this)),this[C(0x1f9)][C(0x22e)](this[C(0x24e)]+C(0x1f3)+this[C(0x24b)][C(0x24e)]));}}function a51c(){const D=['_playerName','category','1280HfhaNz','Removed\x20','(((.+)+)+)+$','bind','Gloves','Hat','27QpMUpE','body\x20armor','log','getWeight','\x20slot.','weight','toLowerCase','search','getInstance','3533192ZvexfF','legarmor','shield','addItem','legs','maxCarryingWeight','weapon','hasItem','removeInventory','off','arms','\x20says:\x20\x22','219392KFiHQH','head','132XfbYsT','apply','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','feet','_equipment','determineEquipmentSlot','Boots','Failed\x20to\x20remove\x20','currentWeight','\x20from\x20player\x27s\x20inventory.','Max\x20carrying\x20weight\x20must\x20be\x20positive.','61149kpQgjS','write','startLocation','leftHand','arm\x20armor','unequipBySlot','Added\x20','You\x20can\x27t\x20equip\x20','inventoryItems','Helmet','leg\x20armor','torso','playerName','ArmArmor','canEquip','currentLocation','1273725NeCVZf','rightHand','bodyarmor','1938888LfPsqm','_maxCarryingWeight','_inventory','enterRoom','leaveRoom','equipment','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','\x20in\x20your\x20inventory.','You\x20unequipped\x20','1692hbfrWF','helmet','_currentLocation','LegArmor','speak','name','constructor','\x20is\x20no\x20longer\x20listeng\x20in\x20','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','567xMNYMu','equip','Weapon','toString','logger','116697jtVlQl','includes','Invalid\x20category\x20or\x20slot:\x20','A\x20featureless\x20room','\x20to\x20player\x27s\x20inventory.','gloves','hear','BodyArmor','addInventory'];a51c=function(){return D;};return a51c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x201))/0x1*(-parseInt(f(0x1fd))/0x2)+-parseInt(f(0x1ff))/0x3*(-parseInt(f(0x209))/0x4)+parseInt(f(0x1fe))/0x5*(-parseInt(f(0x1f2))/0x6)+parseInt(f(0x204))/0x7*(parseInt(f(0x210))/0x8)+-parseInt(f(0x212))/0x9+-parseInt(f(0x1fc))/0xa*(-parseInt(f(0x213))/0xb)+parseInt(f(0x207))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x596ab));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x20c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a['toString']()[h(0x20a)](h(0x1f4))[h(0x1f3)]()[h(0x205)](a52a)[h(0x20a)](h(0x1f4));});function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x1f2;var f=c[d];return f;},a52d(a,b);}a52a();import{Logger}from'../utilities/logger.js';function a52c(){var m=['hasItem','hasRequiredItem','10ZIBYVm','84nNNBUb','25MgZGcT','942ZNwkOY','requiredItem','402QNHACN','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','riddle','14sIFKsu','constructor','getInstance','1620624yLiLjo','rewardItem','2756yKWjaQ','search','failureMessage','apply','Puzzle:\x20Correct\x20solution\x20provided.','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','solved','2382944hNtpOW','You\x20have\x20already\x20solved\x20this\x20puzzle.','4224627qOOBmx','3564979MxVaXA','502422HxkHmX','toString','(((.+)+)+)+$','requiredPhrase','write','logger','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','successMessage'];a52c=function(){return m;};return a52c();}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52i(0x1f7)]=Logger[a52i(0x206)]();['solved']=![];[a52i(0x200)];[a52i(0x1f5)];[a52i(0x203)];[a52i(0x208)];[a52i(0x1f9)];[a52i(0x20b)];constructor(a){var j=a52i;super(),this['requiredItem']=a[j(0x200)],this[j(0x1f5)]=a[j(0x1f5)],this[j(0x203)]=a['riddle'],this['rewardItem']=a[j(0x208)],this[j(0x1f9)]=a['successMessage']||'You\x20solved\x20the\x20puzzle!',this['failureMessage']=a['failureMessage']||j(0x1f8);}[a52i(0x1fb)](a){var k=a52i;if(this[k(0x200)])return a[k(0x1fa)](this[k(0x200)]);return![];}['matchesRequiredPhrase'](a){return this['requiredPhrase']===a;}['solve'](a,b){var l=a52i;if(this['solved'])return this[l(0x1f7)]['write'](l(0x20e)),{'success':![],'message':l(0x211)};return this[l(0x1fb)](b)||this['matchesRequiredPhrase'](a)?(this[l(0x20f)]=!![],this[l(0x1f7)][l(0x1f6)](l(0x20d)),{'success':!![],'message':this[l(0x1f9)]}):(this[l(0x1f7)][l(0x1f6)](l(0x202)),{'success':![],'message':this[l(0x20b)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x123))/0x1+parseInt(f(0xfc))/0x2*(parseInt(f(0x125))/0x3)+parseInt(f(0x112))/0x4+-parseInt(f(0x11d))/0x5*(parseInt(f(0x116))/0x6)+-parseInt(f(0x129))/0x7+parseInt(f(0x117))/0x8*(parseInt(f(0x124))/0x9)+parseInt(f(0x11f))/0xa*(parseInt(f(0xfe))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xb068d));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0x119)]()[h(0x100)](h(0x10e))[h(0x119)]()[h(0xfb)](a53a)[h(0x100)](h(0x10e));});a53a();import{Logger}from'../utilities/logger.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xed;let f=c[d];return f;},a53d(a,b);}import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a53i(0x107)]=Logger[a53i(0xf2)]();[a53i(0xf3)];['description'];[a53i(0x109)]=new Map();[a53i(0x102)];[a53i(0xf6)];['inventory']=new Inventory();constructor(a){const j=a53i;super(),this['name']=a['name'],this[j(0x121)]=a[j(0x121)],this[j(0x102)]=a[j(0x102)]||RoomType[j(0xfd)],a[j(0x109)]&&(this[j(0x109)]=a['exits']||new Map()),a[j(0x122)]&&(this[j(0x122)]=a[j(0x122)]),a[j(0x113)]&&(this[j(0x113)]=a[j(0x113)]),this['isStartRoom']=a[j(0xf6)]||![],this['logger'][j(0x110)](j(0xf9)+this[j(0xf3)]);}[a53i(0xee)](a,b){const k=a53i;this[k(0x114)](k(0x12a),a,b);}[a53i(0xed)](a,b,c){const l=a53i;let d=this[l(0xfa)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits']['set'](a,d),b[l(0x109)][l(0xf7)](this[l(0x10f)](a),d);}['attemptUnlockExit'](a,b){const m=a53i,c=this[m(0x109)][m(0x128)](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[m(0x107)][m(0x110)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+m(0x12b)+d),d?m(0xf8)+c['name']+'\x20unlocked!':'The\x20'+c[m(0xf3)]+m(0x10c);}return this[m(0x107)][m(0x110)](m(0x120)+a),m(0x11b);}[a53i(0xf4)](a){const n=a53i;return this[n(0x107)][n(0x110)](n(0x10b)+a),this[n(0x109)]['get'](a);}[a53i(0x10d)](a){const o=a53i,b=this[o(0x109)][o(0x128)](a),c=b instanceof Door&&b[o(0x104)]();return this['logger']['write'](o(0xef)+a+o(0x118)+c),c;}['addItem'](a){const p=a53i;this['inventory']['addItem'](a),this[p(0x107)][p(0x110)](p(0xf5)+this[p(0xf3)]+':\x20'+a[p(0xf3)]);}[a53i(0x11a)](a){const q=a53i;this[q(0x122)][q(0x111)](a[q(0xf3)])?(this[q(0x122)]['removeItem'](a[q(0xf3)]),this[q(0x107)][q(0x110)](q(0x115)+this[q(0xf3)]+':\x20'+a[q(0xf3)])):this[q(0x107)]['write'](q(0x126)+this['name']+':\x20'+a[q(0xf3)]);}[a53i(0xf1)](a){const r=a53i;this['puzzle']=a,this['logger'][r(0x110)](r(0xff)+this[r(0xf3)]+':\x20'+a['riddle']);}[a53i(0x10f)](a){const s=a53i;switch(a){case s(0x108):return Direction[s(0xf0)];case s(0x12e):return Direction[s(0x106)];case s(0x12d):return Direction[s(0x127)];case s(0x101):return Direction['EAST'];case'up':return Direction[s(0x105)];case'down':return Direction['UP'];default:throw new Error(s(0x12c)+a);}}['findExistingDoor'](a){const t=a53i;for(const b of this[t(0x109)][t(0x10a)]()){if(b instanceof Door){if(b[t(0x103)]===this&&b[t(0x11e)]===a||b[t(0x11e)]===this&&b['roomA']===a)return b;}}return undefined;}}function a53c(){const u=['Puzzle\x20set\x20for\x20room\x20','search','west','roomType','roomA','checkIfLocked','DOWN','NORTH','logger','north','exits','values','Fetching\x20exit\x20in\x20direction:\x20','\x20remains\x20locked.','isExitLocked','(((.+)+)+)+$','getOppositeDirection','write','hasItem','3213864UailMN','puzzle','emit','Item\x20removed\x20from\x20room\x20','30POIrPT','2097400oBkzxc','\x20is\x20locked.\x20Result:\x20','toString','removeItem','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','apply','546275RftKat','roomB','910RHucUq','No\x20locked\x20exit\x20found\x20in\x20direction\x20','description','inventory','142204YZiekt','45QOhdCt','243837VTeGht','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','WEST','get','7116550MgfZwb','speak','.\x20Success:\x20','Invalid\x20direction:\x20','east','south','addExit','say','Checking\x20if\x20exit\x20in\x20direction\x20','SOUTH','setPuzzle','getInstance','name','getExit','Item\x20added\x20to\x20room\x20','isStartRoom','set','The\x20','Room\x20created:\x20','findExistingDoor','constructor','6KoVuBB','INSIDE','8404XQArkP'];a53c=function(){return u;};return a53c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54l=a54d;function a54c(){const C=['\x20is\x20now\x20in\x20room\x20','\x20found\x20in\x20the\x20scene.','apply','targetRoom','937285NcQdPB','player','4UejOXe','removeActor','createRoom','Failed\x20to\x20add\x20item\x20','generateRoomsFromConfig','4132XQQEBc','\x20to\x20room\x20','addItemToRoom','write','1196907LPGkha','313290MuNhGI','logger','\x20not\x20found\x20in\x20scene.','250389enDuAV','\x22\x20does\x20not\x20exist.','roomConfiguration','isStartRoom','setCharacterLocation','push','set','direction','setPuzzle','join','warn','rooms','addExit','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','addItem','exits','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','addRoom','keys','name','search','roomFactory','determineStartRoom','currentLocation','getRooms','has','Failed\x20to\x20set\x20','(((.+)+)+)+$','2905632IEOyRE','Added\x20item\x20','Added\x20puzzle\x20to\x20room\x20','getPlayer','Removed\x20room\x20from\x20scene:\x20','actors','278VIscpA','keyRequired','characterLocations','from','Room\x20\x22','allActors','connectRooms','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','Actor\x20with\x20name\x20','toString','\x20already\x20exists\x20in\x20the\x20scene.','2710869zDWscb','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','constructor','length','Added\x20room\x20to\x20scene:\x20','280weIdnv','get'];a54c=function(){return C;};return a54c();}(function(a,b){const i=a54d,c=a();while(!![]){try{const d=-parseInt(i(0x1fb))/0x1*(parseInt(i(0x1de))/0x2)+parseInt(i(0x1ff))/0x3*(-parseInt(i(0x1f6))/0x4)+-parseInt(i(0x1f4))/0x5+-parseInt(i(0x200))/0x6+parseInt(i(0x1e9))/0x7+parseInt(i(0x1d8))/0x8+-parseInt(i(0x203))/0x9*(-parseInt(i(0x1ee))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x4d436));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a[k(0x1e7)]()[k(0x1d0)](k(0x1d7))[k(0x1e7)]()[k(0x1eb)](a54a)[k(0x1d0)](k(0x1d7));});a54a();import{Logger}from'../utilities/logger.js';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a54d(a,b);}import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a54l(0x20e)];[a54l(0x1f5)];[a54l(0x201)];[a54l(0x1dd)];['characterLocations']=new Map();[a54l(0x1d1)];constructor(a){const m=a54l;super(),this[m(0x1d1)]=new RoomFactory(),this[m(0x1f5)]=a[m(0x1f5)],this[m(0x20e)]=this[m(0x1fa)](a[m(0x205)]),this[m(0x201)]=Logger['getInstance'](),this['actors']=new Map(),this['createExitsFromConfig'](a['roomConfiguration']),this[m(0x201)][m(0x1fe)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[m(0x215)](this['rooms'])[m(0x20c)](',\x20'));}['initialize'](){const n=a54l;this[n(0x1f5)][n(0x1d3)]=this['determineStartRoom']();}['generateRoomsFromConfig'](a){const o=a54l;if(!this['roomFactory'])throw new Error(o(0x1ea));const b={};for(const c of a){const d=this['roomFactory'][o(0x1f8)](c);b[c[o(0x216)]]=d;}return b;}['createExitsFromConfig'](a){const p=a54l;for(const b of a){const c=this[p(0x20e)][b['name']];if(b['exits'])for(const d of b[p(0x212)]){const e=d[p(0x20a)]['toUpperCase'](),f=d[p(0x1f3)],g=d[p(0x1df)],h=this[p(0x20e)][f];h&&c[p(0x20f)](Direction[e],h,g);}}}['addActor'](a){const q=a54l;if(this[q(0x1dd)][q(0x1d5)](a[q(0x216)]))throw new Error(q(0x1e6)+a[q(0x216)]+q(0x1e8));this[q(0x1dd)]['set'](a[q(0x216)],a);}[a54l(0x1f7)](a){const r=a54l;if(!this['actors'][r(0x1d5)](a))throw new Error('No\x20actor\x20with\x20name\x20'+a+r(0x1f1));this['actors']['delete'](a);}['getActor'](a){return this['actors']['get'](a);}get[a54l(0x1e3)](){const s=a54l;return Array[s(0x1e1)](this[s(0x1dd)]['values']());}[a54l(0x214)](a){const t=a54l;this['rooms'][a['name']]=a,this[t(0x201)]['write'](t(0x1ed)+a[t(0x216)]);}['removeRoom'](a){const u=a54l;return this[u(0x20e)][a]?(delete this[u(0x20e)][a],this[u(0x201)]['write'](u(0x1dc)+a),!![]):(this[u(0x201)][u(0x1fe)]('Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20'+a),![]);}[a54l(0x1fd)](a,b){const v=a54l,c=this[v(0x20e)][b];c?(c[v(0x211)](a),this[v(0x201)][v(0x1fe)](v(0x1d9)+a[v(0x216)]+v(0x1fc)+c[v(0x216)])):this[v(0x201)]['write'](v(0x1f9)+a[v(0x216)]+'.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}['addPuzzleToRoom'](a,b){const w=a54l,c=this[w(0x20e)][b];c?(c[w(0x20b)](a),this['logger']['write'](w(0x1da)+c[w(0x216)])):this['logger']['write']('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+w(0x202));}[a54l(0x207)](a,b){const x=a54l,c=this[x(0x20e)][b];c?(this[x(0x1e0)][x(0x209)](a['name'],c),this[x(0x201)][x(0x1fe)](a[x(0x216)]+x(0x1f0)+c['name'])):this['logger'][x(0x1fe)](x(0x1d6)+a['name']+'\x27s\x20location.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}['getCharacterLocation'](a){const y=a54l;return this['characterLocations'][y(0x1ef)](a['name']);}[a54l(0x1d2)](){const z=a54l,a=[];for(const c in this[z(0x20e)]){if(this[z(0x20e)]['hasOwnProperty'](c)){const d=this[z(0x20e)][c];d[z(0x206)]&&a[z(0x208)](d);}}if(a[z(0x1ec)]>0x1)throw new Error(z(0x213));if(a[z(0x1ec)]===0x1)return a[0x0];const b=Object[z(0x215)](this[z(0x20e)]);if(b[z(0x1ec)]===0x0)throw new Error(z(0x210));return console[z(0x20d)](z(0x1e5)),this[z(0x20e)][b[0x0]];}[a54l(0x1db)](){const A=a54l;return this[A(0x1f5)];}[a54l(0x1d4)](){return this['rooms'];}[a54l(0x1e4)](a,b,c,d){const B=a54l,e=this['rooms'][a],f=this[B(0x20e)][c];if(!e)throw new Error(B(0x1e2)+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(B(0x1e2)+c+B(0x204));e[B(0x20f)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a55j=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d
|
|
1
|
+
var a55j=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x1c8))/0x1*(-parseInt(f(0x1be))/0x2)+parseInt(f(0x1e8))/0x3*(-parseInt(f(0x1da))/0x4)+parseInt(f(0x1ec))/0x5+parseInt(f(0x1df))/0x6+-parseInt(f(0x1d0))/0x7+parseInt(f(0x1cf))/0x8*(-parseInt(f(0x1c2))/0x9)+parseInt(f(0x1ba))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xe91fb));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x1e2)]()['search'](h(0x1e0))['toString']()[h(0x1ed)](a55a)[h(0x1c6)]('(((.+)+)+)+$');});a55a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x1ba;var f=c[d];return f;},a55d(a,b);}import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a55d;super({'name':a,'description':b,'size':Size[i(0x1dc)],'category':Category[i(0x1ce)],'shape':Shape[i(0x1c3)],'color':Color[i(0x1d2)],'texture':Texture[i(0x1e4)],'rating':Rating[i(0x1ee)],'weight':0x1});}[a55j(0x1c0)](){var k=a55j;return this[k(0x1d8)];}}export class Sword extends Item{constructor(a,b){var l=a55j;super({'name':a,'description':b,'size':Size[l(0x1dc)],'category':Category['Weapon'],'shape':Shape[l(0x1c9)],'color':Color[l(0x1c5)],'texture':Texture['Metallic'],'rating':Rating[l(0x1ee)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var m=a55j;super({'name':a,'description':b,'size':Size[m(0x1d4)],'category':Category['Weapon'],'shape':Shape[m(0x1e7)],'color':Color[m(0x1ca)],'texture':Texture[m(0x1c1)],'rating':Rating[m(0x1d6)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var n=a55j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[n(0x1d7)],'shape':Shape[n(0x1e3)],'color':Color['Grey'],'texture':Texture[n(0x1c1)],'rating':Rating[n(0x1ee)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var o=a55j;super({'name':a,'description':b,'size':Size[o(0x1d4)],'category':Category[o(0x1cd)],'shape':Shape[o(0x1c3)],'color':Color[o(0x1c5)],'texture':Texture[o(0x1c1)],'rating':Rating[o(0x1ee)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var p=a55j;super({'name':a,'description':b,'size':Size[p(0x1dc)],'category':Category['LegArmor'],'shape':Shape[p(0x1c3)],'color':Color[p(0x1c5)],'texture':Texture[p(0x1c1)],'rating':Rating[p(0x1ee)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var q=a55j;super({'name':a,'description':b,'size':Size[q(0x1dc)],'category':Category[q(0x1d3)],'shape':Shape[q(0x1e3)],'color':Color['Brown'],'texture':Texture['Smooth'],'rating':Rating[q(0x1ee)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var r=a55j;super({'name':a,'description':b,'size':Size[r(0x1eb)],'category':Category[r(0x1dd)],'shape':Shape[r(0x1e3)],'color':Color['Brown'],'texture':Texture[r(0x1e4)],'rating':Rating[r(0x1ee)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a55j;super({'name':a,'description':b,'size':Size[s(0x1dc)],'category':Category['ArmArmor'],'shape':Shape[s(0x1c3)],'color':Color['Grey'],'texture':Texture[s(0x1c1)],'rating':Rating['Common'],'weight':0x3});}}export class Key extends Item{constructor(a,b){var t=a55j;super({'name':a,'description':b,'size':Size[t(0x1e9)],'category':Category['Key'],'shape':Shape[t(0x1c3)],'color':Color[t(0x1d2)],'texture':Texture['Smooth'],'rating':Rating[t(0x1ee)],'weight':0x0});}[a55j(0x1c0)](){var u=a55j;return u(0x1ef);}}export class Weapon extends Item{constructor(a,b){var v=a55j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[v(0x1c7)],'shape':Shape[v(0x1c9)],'color':Color[v(0x1c5)],'texture':Texture[v(0x1c1)],'rating':Rating[v(0x1ee)],'weight':0x3});}[a55j(0x1c0)](){var w=a55j;return w(0x1d9);}}export class Book extends Item{[a55j(0x1d5)];[a55j(0x1db)];[a55j(0x1ea)];constructor(a,b=a55j(0x1d1),c=a55j(0x1cc)){var x=a55j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[x(0x1bc)],'shape':Shape[x(0x1c3)],'color':Color[x(0x1ca)],'texture':Texture['Smooth'],'rating':Rating[x(0x1ee)],'weight':0x1}),this[x(0x1d5)]=c,this['publishDate']=new Date(),this[x(0x1ea)]=0x64;}['use'](){var y=a55j;return y(0x1bb);}}export class ShortSword extends Item{constructor(){var z=a55j;super({'name':z(0x1de),'description':'A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','size':Size['Medium'],'category':Category[z(0x1c7)],'shape':Shape[z(0x1c9)],'color':Color[z(0x1c5)],'texture':Texture[z(0x1c1)],'rating':Rating['Common'],'weight':0x3});}[a55j(0x1c0)](){var A=a55j;return A(0x1d9);}}export class SniperRifle extends Item{constructor(){var B=a55j;super({'name':'Sniper\x20Rifle','description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size[B(0x1d4)],'category':Category[B(0x1c7)],'shape':Shape[B(0x1e7)],'color':Color['Brown'],'texture':Texture[B(0x1e4)],'rating':Rating[B(0x1ee)],'weight':0x5});}[a55j(0x1c0)](){var C=a55j;return C(0x1e6);}}export class HolyGrail extends Item{constructor(){var D=a55j;super({'name':D(0x1bd),'description':'A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','size':Size[D(0x1eb)],'category':Category[D(0x1bf)],'shape':Shape['Circle'],'color':Color[D(0x1e1)],'texture':Texture[D(0x1c1)],'rating':Rating['Legendary'],'weight':0x1});}[a55j(0x1c0)](){var E=a55j;return'You\x20hold\x20the\x20'+this[E(0x1c4)]+E(0x1e5);}}function a55c(){var F=['Blade','Brown','apply','Unknown\x20Author','BodyArmor','Unknown','64776HKlCmr','1219379peydOi','A\x20mysterious\x20book.','Yellow','Boots','Large','author','Rare','Helmet','description','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','575464ibLcQf','publishDate','Medium','Gloves','Short\x20Sword','11093412zKHrzT','(((.+)+)+)+$','Gold','toString','Circle','Smooth','\x20aloft,\x20feeling\x20its\x20immense\x20power.','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Rifle','39KdJNOT','Tiny','pageCount','Small','1045570ouXsHb','constructor','Common','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','20033500QQochb','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','Book','Holy\x20Grail','151692ffhCIW','Cup','use','Metallic','1602cnYHDU','Rectangle','name','Grey','search','Weapon','5KPJyhn'];a55c=function(){return F;};return a55c();}
|