@maka/maka-cli 4.6.22 → 4.7.0
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/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/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 -0
- 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/react/kit/mui/frame/{basic-app-bar.js.jsx → app-bars/basic-app-bar.js.jsx} +12 -2
- package/bundle/obf/src/templates/react/kit/mui/frame/{basic-app-bar.js → app-bars/basic-app-bar.js.tsx} +10 -2
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +118 -0
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +116 -0
- 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
- package/bundle/obf/src/generators/kits/mui/layout.mui.gen.js +0 -1
- package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js.ts +0 -0
- package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js.tsx +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d=parseInt(f(0xf8))/0x1+-parseInt(f(0xdb))/0x2+-parseInt(f(0x103))/0x3*(parseInt(f(0xe1))/0x4)+parseInt(f(0xd7))/0x5+parseInt(f(0xe3))/0x6+parseInt(f(0xef))/0x7*(-parseInt(f(0xda))/0x8)+parseInt(f(0xfa))/0x9*(parseInt(f(0xdc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a35c,0xd19c0));const a35b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a35d;if(c){const e=c[g(0xf7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a35a=a35b(this,function(){const h=a35d;return a35a[h(0xf4)]()[h(0x101)](h(0xfd))['toString']()[h(0xe2)](a35a)[h(0x101)](h(0xfd));});a35a();function a35c(){const n=['Examine\x20your\x20surroundings','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','apply','278244fRQxyB','execute','11910348OuGYrL','Looking\x20at\x20item\x20\x27','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','(((.+)+)+)+$','riddle','isValidDirection','write','search','OUTSIDE','18603vEkPCz','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','string','verb','You\x27re\x20not\x20in\x20a\x20valid\x20room.','puzzle','roomType','\x20inventory.','Executing\x20\x27Look\x27\x20command.','name','join','4032795NmFCMB','You\x20cannot\x20see\x20through','getItem','3760VdBHrZ','566608otYMOS','10KoszxD','error','lookOutside','hasItem','inspectItem','708weexnF','constructor','2041656IFxaDP','actor','description','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','inventory','exits',',\x20you\x20see\x20','\x27\x20in\x20current\x20room\x20inventory.','You\x20cannot\x20see\x20','look','logger','Below\x20you,\x20','7581ZNomMm','rooms','To\x20the\x20','get','currentLocation','toString'];a35c=function(){return n;};return a35c();}import{Door}from'../models/door.js';function a35d(a,b){const c=a35c();return a35d=function(d,e){d=d-0xd7;let f=c[d];return f;},a35d(a,b);}import{RoomType}from'../types/enums.js';import{Command}from'./command.js';export class LookCommand extends Command{static [a35i(0x106)]=a35i(0xec);static [a35i(0xe5)]=a35i(0xf5);[a35i(0xf9)](a=[]){const j=a35i;this[j(0xed)][j(0x100)](j(0x10b));const b=a[j(0x10d)]('\x20');if(b){if(this[j(0xe4)][j(0xe7)][j(0xdf)](b))return this['logger'][j(0x100)](j(0xfb)+b+'\x27\x20in\x20'+this[j(0xe4)][j(0x10c)]+j(0x10a)),this[j(0xe0)](b,this[j(0xe4)][j(0xe7)]);else{if(this[j(0xe4)][j(0xf3)][j(0xe7)][j(0xdf)](b))return this['logger'][j(0x100)](j(0xfb)+b+j(0xea)),this[j(0xe0)](b,this[j(0xe4)]['currentLocation']['inventory']);else return this[j(0xff)](b)?(this[j(0xed)]['write'](j(0xf6)+b+'\x27.'),this['lookOutside'](b)):j(0xeb)+b;}}else return this[j(0xed)]['write'](this[j(0xe4)][j(0x10c)]+'\x20is\x20looking\x20around\x20the\x20current\x20room.'),this[j(0xec)]();}[a35i(0xec)](){const k=a35i,a=this['actor'][k(0xf3)];if(!a)return this[k(0xed)]['error'](this[k(0xe4)][k(0x10c)]+k(0xe6)),k(0x107);let b=a[k(0xe5)];return a[k(0x108)]&&(b+='\x0a'+a[k(0x108)][k(0xfe)]),b;}[a35i(0xde)](a){const l=a35i,b=this[l(0xe4)]['currentLocation'];if(!b)return this[l(0xed)][l(0xdd)](this[l(0xe4)]['name']+l(0xe6)),l(0x107);const c=b[l(0xe8)][l(0xf2)](a);if(!c)return'There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22'+a+'\x22.';let d;if(c instanceof Door)d=c['getOtherSide'](b);else{if(typeof c===l(0x105)){d=this[l(0xf0)]&&this[l(0xf0)][c];if(!d)return l(0xfc)+a+'\x22.';}else return l(0x104)+a+'\x22.';}if(d[l(0x109)]===RoomType[l(0x102)]){if(a==='up')return'Above\x20you,\x20'+d['description'];else return a==='down'?l(0xee)+d['description']:l(0xf1)+a+l(0xe9)+d[l(0xe5)];}else return l(0xd8);}[a35i(0xe0)](a,b){const m=a35i,c=b[m(0xd9)](a);if(!c)return'You\x20don\x27t\x20see\x20any\x20'+a+'\x20here.';return c[m(0xe5)]||'It\x27s\x20just\x20a\x20regular\x20'+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a36j=a36d;(function(a,b){const g=a36d,c=a();while(!![]){try{const d
|
|
1
|
+
const a36j=a36d;function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x134;let f=c[d];return f;},a36d(a,b);}(function(a,b){const g=a36d,c=a();while(!![]){try{const d=-parseInt(g(0x13f))/0x1*(parseInt(g(0x13a))/0x2)+-parseInt(g(0x144))/0x3*(-parseInt(g(0x14d))/0x4)+-parseInt(g(0x150))/0x5+-parseInt(g(0x137))/0x6*(parseInt(g(0x142))/0x7)+parseInt(g(0x14a))/0x8+-parseInt(g(0x14e))/0x9+parseInt(g(0x134))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x43f9d));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a36d;if(c){const e=c[h(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const i=a36d;return a36a[i(0x14f)]()[i(0x140)](i(0x148))['toString']()['constructor'](a36a)['search'](i(0x148));});function a36c(){const m=['71692mreyqV','1459224CTkfuO','toString','578605TYoCjn','allActors','\x20says\x20to\x20','6117280NyaZzp','filter','name','290010nQbcrC','context','apply','666kwgZYN','You\x20say:\x20\x22','execute','description','Scene\x20is\x20missing\x20from\x20context.','1427ZbRLRN','search','logger','21woTYVm','join','51DCwnAk','What\x20do\x20you\x20want\x20to\x20say?','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','log','(((.+)+)+)+$','verb','2080504vxuXHM','actor','currentLocation'];a36c=function(){return m;};return a36c();}a36a();import{Command}from'./command.js';export class SayCommand extends Command{static [a36j(0x149)]='say';static [a36j(0x13d)]=a36j(0x146);[a36j(0x138)];constructor(a){const k=a36j;super(a),this[k(0x138)]=a;}[a36j(0x13c)](a){const l=a36j;if(a['length']===0x0)return l(0x145);const b=a[l(0x143)]('\x20'),c=this[l(0x14b)],d=this[l(0x138)]['scene'];if(!d)return this[l(0x141)][l(0x147)](l(0x13e)),'An\x20error\x20occurred.';const e=d[l(0x151)][l(0x135)](f=>f[l(0x14c)]===c['currentLocation']);for(const f of e){this[l(0x141)]['log'](c[l(0x136)]+l(0x152)+f[l(0x136)]+':\x20\x22'+b+'\x22'),this['actor']['currentLocation']['say'](f,b);}return l(0x13b)+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37h=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0x183))/0x1+parseInt(f(0x185))/0x2*(-parseInt(f(0x17d))/0x3)+parseInt(f(0x178))/0x4*(-parseInt(f(0x179))/0x5)+-parseInt(f(0x17f))/0x6+-parseInt(f(0x18c))/0x7*(parseInt(f(0x18e))/0x8)+-parseInt(f(0x187))/0x9+-parseInt(f(0x17b))/0xa*(-parseInt(f(0x17c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xeaf80));function a37c(){const j=['\x20found\x20the\x20following\x20items:\x20','1737967elqqOe','SearchCommand:\x20','216374pyYhYT','actor','2471229NgOZfp','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','name','toString','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','56EfAPco','inventory','443288bOuuMP','search','description','write','(((.+)+)+)+$','8uuqhZm','2546115HtCsRp','currentLocation','67121550RCVSAs','11fLpmsb','39NarKCQ','join','5214060GQDbTx','logger','Search\x20for\x20items\x20in\x20your\x20area'];a37c=function(){return j;};return a37c();}const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const g=a37d;return a37a[g(0x18a)]()[g(0x18f)](g(0x177))['toString']()['constructor'](a37a)[g(0x18f)]('(((.+)+)+)+$');});a37a();import{Command}from'./command.js';function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x177;let f=c[d];return f;},a37d(a,b);}export class SearchCommand extends Command{static ['verb']='search';static [a37h(0x190)]=a37h(0x181);['execute'](){const i=a37h,a=this[i(0x186)][i(0x17a)][i(0x18d)]['listItems']();if(a['length']===0x0)return this[i(0x180)][i(0x191)](i(0x184)+this['actor'][i(0x189)]+i(0x188)),i(0x18b);const b=a[i(0x17e)](',\x20');return this[i(0x180)][i(0x191)](i(0x184)+this['actor'][i(0x189)]+i(0x182)+b),'You\x20search\x20the\x20area\x20and\x20find:\x20'+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38h=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0x1c2))/0x1*(-parseInt(f(0x1b4))/0x2)+-parseInt(f(0x1b7))/0x3+-parseInt(f(0x1bf))/0x4*(parseInt(f(0x1ab))/0x5)+-parseInt(f(0x1aa))/0x6+-parseInt(f(0x1b3))/0x7+-parseInt(f(0x1bc))/0x8*(parseInt(f(0x1ac))/0x9)+-parseInt(f(0x1a7))/0xa*(-parseInt(f(0x1bd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xa9013));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const g=a38d;return a38a[g(0x1b9)]()[g(0x1b8)](g(0x1c0))[g(0x1b9)]()[g(0x1a5)](a38a)['search'](g(0x1c0));});function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a38d(a,b);}a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a38h(0x1be)]=a38h(0x1b2);static [a38h(0x1c4)]=a38h(0x1b0);[a38h(0x1bb)](a){const i=a38h,b=a[i(0x1af)]('\x20')[i(0x1c1)](),c=this['actor'][i(0x1b6)];if(!c||!c[i(0x1c3)])return this[i(0x1ae)][i(0x1a6)](i(0x1a9)),i(0x1a8);const d=c[i(0x1c3)][i(0x1b2)](b,this[i(0x1c5)][i(0x1ba)]);return d['success']&&c[i(0x1c3)][i(0x1b5)]&&this['actor'][i(0x1ba)][i(0x1ad)](c[i(0x1c3)]['rewardItem']),this['logger'][i(0x1a6)]('SolveCommand:\x20'+d[i(0x1b1)]),d[i(0x1b1)];}}function a38c(){const j=['actor','constructor','write','274090byKwXd','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','1084716wKMBLx','2760395QCSOoP','99YTIVzw','addItem','logger','join','Attempt\x20to\x20solve\x20a\x20puzzle.','message','solve','2109107MkVrAt','2TStjwF','rewardItem','currentLocation','1915821ZeIklZ','search','toString','inventory','execute','307432FMAJvs','1551uDAATV','verb','8CSlhFF','(((.+)+)+)+$','toLowerCase','524855eYzIuU','puzzle','description'];a38c=function(){return j;};return a38c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39i=a39d;function
|
|
1
|
+
const a39i=a39d;function a39c(){const l=['write','actor','23862806EktBQx','\x20during\x20\x27Take\x27\x20command.','3750024agkQFn','10pSIPrO','search','execute','(((.+)+)+)+$','addInventory','toString','\x22\x20in\x20this\x20room.','name','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','3OYLTuo','10104822ypRIUD','logger','There\x20is\x20no\x20item\x20\x22','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','join','message','verb','422751mRkurL','2694244zqoOOv','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','inventory','Item\x20\x22','\x22\x20from\x20','Successfully\x20added\x20\x22','currentLocation','\x22\x20to\x20','\x22\x20not\x20found\x20in\x20','1103390XKUfTG','constructor','The\x20item\x20\x22','2091175axeOlR','\x22\x20is\x20too\x20heavy\x20to\x20carry.','removeItem','168NcDjdW','2djTdYf','take','apply','Successfully\x20removed\x20\x22'];a39c=function(){return l;};return a39c();}(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x153))/0x1*(parseInt(f(0x14c))/0x2)+parseInt(f(0x165))/0x3*(parseInt(f(0x143))/0x4)+parseInt(f(0x14f))/0x5+parseInt(f(0x15b))/0x6+-parseInt(f(0x142))/0x7*(-parseInt(f(0x152))/0x8)+-parseInt(f(0x166))/0x9+-parseInt(f(0x15c))/0xa*(parseInt(f(0x159))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xc26b3));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x161)]()[h(0x15d)](h(0x15f))[h(0x161)]()[h(0x14d)](a39a)[h(0x15d)](h(0x15f));});a39a();function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x141;let f=c[d];return f;},a39d(a,b);}import{Command}from'./command.js';export class TakeCommand extends Command{static [a39i(0x141)]=a39i(0x154);static ['description']='Pick\x20up\x20an\x20item.';[a39i(0x15e)](a){const j=a39i;return this[j(0x167)]['write'](j(0x144)+a[j(0x16a)]('\x20')),this['take'](a);}['take'](a){const k=a39i,b=a[k(0x16a)]('\x20')['toLowerCase'](),c=this[k(0x158)][k(0x149)];if(!c['inventory']['hasItem'](b))return this[k(0x167)][k(0x157)](k(0x146)+b+k(0x14b)+c[k(0x163)]+k(0x15a)),k(0x168)+b+k(0x162);const d=c[k(0x145)]['getItem'](b);if(!d)return this['logger'][k(0x157)](k(0x146)+b+'\x22\x20not\x20retrieved\x20from\x20'+c['name']+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),'There\x20is\x20no\x20item\x20\x22'+b+k(0x162);try{return this[k(0x158)][k(0x160)](d),this[k(0x167)]['write'](k(0x148)+b+k(0x14a)+this[k(0x158)]['name']+k(0x164)),c['inventory'][k(0x151)](b),this['logger'][k(0x157)](k(0x156)+b+k(0x147)+c[k(0x163)]+k(0x169)),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this[k(0x167)][k(0x157)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[k(0x16b)]),k(0x14e)+b+k(0x150);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x143))/0x1*(parseInt(f(0x130))/0x2)+-parseInt(f(0x13e))/0x3*(parseInt(f(0x145))/0x4)+-parseInt(f(0x147))/0x5*(parseInt(f(0x135))/0x6)+parseInt(f(0x134))/0x7+-parseInt(f(0x13a))/0x8*(parseInt(f(0x12f))/0x9)+-parseInt(f(0x144))/0xa*(parseInt(f(0x131))/0xb)+-parseInt(f(0x13f))/0xc*(-parseInt(f(0x138))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x67844));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x148)]()[h(0x132)]('(((.+)+)+)+$')[h(0x148)]()[h(0x141)](a40a)['search'](h(0x146));});function a40c(){const k=['constructor','actor','10NszRrl','30LPqxlP','100VviJnS','(((.+)+)+)+$','803410tiwSry','toString','toLowerCase','join','4387311GAVHYq','159492yCsXre','844393XnJfRX','search','Unequip\x20an\x20item.','378182whJgGO','6XHeUbX','write','execute','34944169JfFzYr','unqeuip','8bQlPHH','unequip','description','apply','77055VpICCk','12naCyhN','UnequipCommand:\x20'];a40c=function(){return k;};return a40c();}a40a();import{Command}from'./command.js';function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x12d;let f=c[d];return f;},a40d(a,b);}export class UnequipCommand extends Command{static ['verb']=a40i(0x139);static [a40i(0x13c)]=a40i(0x133);[a40i(0x137)](a){const j=a40i,b=a[j(0x12e)]('\x20')[j(0x12d)](),c=this[j(0x142)][j(0x13b)](b);return this['logger'][j(0x136)](j(0x140)+this[j(0x142)]['name']+'\x20unqeuiped\x20'+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41j=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=-parseInt(h(0x1df))/0x1+parseInt(h(0x1e4))/0x2+-parseInt(h(0x1ff))/0x3*(-parseInt(h(0x1f7))/0x4)+parseInt(h(0x1ed))/0x5+-parseInt(h(0x1fb))/0x6+-parseInt(h(0x1fc))/0x7*(parseInt(h(0x1f5))/0x8)+parseInt(h(0x1e1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x889e7));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const i=a41d;return a41a[i(0x1ee)]()[i(0x1e9)](i(0x1e7))[i(0x1ee)]()['constructor'](a41a)[i(0x1e9)](i(0x1e7));});a41a();function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1da;let f=c[d];return f;},a41d(a,b);}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a41j(0x1fd)]=a41j(0x1ef);static ['description']=a41j(0x1f4);['execute'](a){const k=a41j;return this[k(0x1ef)](a);}[a41j(0x1ef)](a){const l=a41j;if(a[l(0x1da)]===0x0)return this[l(0x1f8)][l(0x1f2)](l(0x1f9)),l(0x1dd);const b=a[0x0][l(0x1db)](),c=this['actor'][l(0x1f6)];if(this[l(0x1de)](b)&&c[l(0x200)][l(0x1fe)](b)){const d=c[l(0x200)][l(0x1e6)](b);if(d instanceof Door){const e=d[l(0x1e2)]?.[l(0x1db)]();if(e&&this[l(0x1f3)][l(0x1e8)][l(0x1f0)](e)){const f=this[l(0x1f3)][l(0x1e8)]['getItem'](e);if(f){const g=c['attemptUnlockExit'](b,f[l(0x1ea)]);return this['logger'][l(0x1fa)](l(0x1eb)+this[l(0x1f3)]['name']+l(0x1f1)+b+'.\x20Result:\x20'+g),g;}}return this[l(0x1f8)][l(0x1fa)](l(0x1eb)+this['actor'][l(0x1ea)]+l(0x1dc)+b+'.'),l(0x1ec);}else return this[l(0x1f8)][l(0x1fa)](l(0x1eb)+b+l(0x1e5)+c['name']+'.'),l(0x1e0)+b+'\x22\x20here.';}else return this[l(0x1f8)][l(0x1fa)]('UnlockCommand:\x20'+b+l(0x1e5)+c['name']+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+l(0x1e3);}}function a41c(){const m=['7sIbwbn','verb','has','220251zEUPPn','exits','length','toLowerCase','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','isValidDirection','744900FSbNsO','There\x27s\x20no\x20door\x20named\x20\x22','10874727lniBEl','unlockItemOrSolution','\x22\x20here.','455034ykuRvB','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','get','(((.+)+)+)+$','inventory','search','name','UnlockCommand:\x20','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','4354285lEcEbZ','toString','unlock','hasItem','\x20is\x20attempted\x20to\x20unlock\x20','error','actor','Unlock\x20a\x20door.','8544424clyomB','currentLocation','20IKkIee','logger','UnlockCommand:\x20No\x20target\x20specified.','write','1807308TqOwZX'];a41c=function(){return m;};return a41c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0xfc))/0x1+-parseInt(f(0xff))/0x2*(-parseInt(f(0xf9))/0x3)+parseInt(f(0xe1))/0x4+-parseInt(f(0xef))/0x5+-parseInt(f(0xed))/0x6*(-parseInt(f(0xf3))/0x7)+parseInt(f(0xfb))/0x8*(parseInt(f(0xfd))/0x9)+-parseInt(f(0x100))/0xa*(parseInt(f(0xee))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x36643));function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xe1;let f=c[d];return f;},a42d(a,b);}function a42c(){const l=['\x20not\x20retrieved\x20from\x20','write','Use\x20an\x20item.','6TddyqZ','inventory','72PtCOMm','398895gXEZPH','112122oWkVgq','use','274982IEGpQu','610wuictD','UseCommand:\x20','logger','\x20attempted\x20to\x20use\x20','726660cUvRDz','toString',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','toLowerCase','description','join','\x20to\x20use.','name','\x27s\x20inventory.','(((.+)+)+)+$','actor','search','1240188kBFRLm','19822kSYCgZ','1252805hRDQAn','You\x20don\x27t\x20have\x20the\x20','\x20doesn\x27t\x20have\x20a\x20use\x20method.','apply','14VifJPd','\x20used\x20','getItem'];a42c=function(){return l;};return a42c();}const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0xf2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0xe2)]()[h(0xec)](h(0xea))[h(0xe2)]()['constructor'](a42a)[h(0xec)]('(((.+)+)+)+$');});a42a();import{Command}from'./command.js';export class UseCommand extends Command{static ['verb']='use';static [a42i(0xe5)]=a42i(0xf8);['execute'](a){const j=a42i;return this[j(0xfe)](a);}[a42i(0xfe)](a){const k=a42i,b=a[k(0xe6)]('\x20')[k(0xe4)]();if(!this[k(0xeb)]['inventory']['hasItem'](b))return this['logger'][k(0xf7)](k(0x101)+this[k(0xeb)][k(0xe8)]+k(0x103)+b+k(0xe3)),k(0xf0)+b+k(0xe7);const c=this['actor'][k(0xfa)][k(0xf5)](b);if(!c)return this[k(0x102)][k(0xf7)]('UseCommand:\x20'+b+k(0xf6)+this[k(0xeb)]['name']+k(0xe9)),k(0xf0)+b+'\x20to\x20use.';if(typeof c['use']==='function'){const d=c[k(0xfe)]();return this[k(0x102)][k(0xf7)](k(0x101)+this[k(0xeb)][k(0xe8)]+k(0xf4)+b+'.'),d;}else return this[k(0x102)][k(0xf7)](k(0x101)+b+k(0xf1)),'You\x20can\x27t\x20use\x20the\x20'+b+'\x20in\x20this\x20way.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x76;let f=c[d];return f;},a43d(a,b);}const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x77))/0x1*(-parseInt(f(0x80))/0x2)+-parseInt(f(0x7c))/0x3+-parseInt(f(0x78))/0x4+parseInt(f(0x7e))/0x5+parseInt(f(0x82))/0x6*(parseInt(f(0x86))/0x7)+parseInt(f(0x84))/0x8+parseInt(f(0x83))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xacef3));function a43c(){const l=['21249324zTqvbv','3379984UGGDUv','toString','7JMmSHH','createCommand','1OElZFi','3709124zRnahF','getAllRegisteredCommands','(((.+)+)+)+$','constructor','3683067IuWUZY','search','838675EvJTPY','commandMap','875122QzeGlx','apply','2097606GGoMbD'];a43c=function(){return l;};return a43c();}const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x85)]()['search'](h(0x7a))[h(0x85)]()[h(0x7b)](a43a)[h(0x7d)](h(0x7a));});a43a();export class CommandFactory{static [a43i(0x7f)]={};static['registerCommand'](a,b){const j=a43i;this[j(0x7f)][a]=b;}static[a43i(0x76)](a,b){const k=a43i,c=this[k(0x7f)][a];if(c)return new c(b);return null;}static[a43i(0x79)](){return this['commandMap'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44i=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(0x143))/0x1+parseInt(f(0x14b))/0x2+parseInt(f(0x15e))/0x3+parseInt(f(0x15c))/0x4*(parseInt(f(0x152))/0x5)+parseInt(f(0x161))/0x6*(parseInt(f(0x15d))/0x7)+-parseInt(f(0x162))/0x8+parseInt(f(0x146))/0x9*(-parseInt(f(0x150))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x55b44));function a44c(){const o=['3519192mBGvDw','rewardItem','helmet','constructor','key','bodyarmor','createPuzzle','puzzle','content','isStartRoom','toString','legarmor','511429OhkgEU','gauntlets','addItem','1381599kehnDB','(((.+)+)+)+$','apply','forEach','sword','142128oSnAQf','boots','type','roomType','name','10QEpspu','toUpperCase','300wFppct','search','rifle','inventory','INSIDE','gloves','convertToRoomConfig','book','createItem','description','46308BHdehs','14cowiuI','2033337OdoJlH','items','createRoom','37260obbftM'];a44c=function(){return o;};return a44c();}function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x13b;let f=c[d];return f;},a44d(a,b);}const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0x141)]()[h(0x153)](h(0x147))[h(0x141)]()[h(0x165)](a44a)[h(0x153)]('(((.+)+)+)+$');});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';export class RoomFactory{[a44i(0x160)](a){const j=a44i,b=this['convertToRoomConfig'](a),c=new Room(b);if(a[j(0x15f)]){const d=new Inventory();a['items'][j(0x149)](e=>{const k=j;d[k(0x145)](this[k(0x15a)](e));}),c[j(0x155)]=d;}return a[j(0x13e)]&&c['setPuzzle'](this[j(0x13d)](a['puzzle'])),c;}['createItem'](a){const l=a44i;switch(a[l(0x14d)]){case l(0x13b):return new Key(a[l(0x14f)],a[l(0x15b)]);case l(0x159):return new Book(a['name'],a['description'],a[l(0x13f)]);case l(0x14a):return new Sword(a['name'],a[l(0x15b)]);case l(0x154):return new Rifle(a['name'],a['description']);case l(0x164):return new Helmet(a['name'],a['description']);case l(0x13c):return new BodyArmor(a['name'],a[l(0x15b)]);case l(0x142):return new LegArmor(a[l(0x14f)],a[l(0x15b)]);case l(0x14c):return new Boots(a[l(0x14f)],a[l(0x15b)]);case l(0x157):return new Gloves(a[l(0x14f)],a[l(0x15b)]);case l(0x144):return new Gauntlets(a['name'],a[l(0x15b)]);default:return new BasicItem(a[l(0x14f)],a[l(0x15b)]);}}['createPuzzle'](a){const m=a44i,b=this[m(0x15a)](a[m(0x163)]);return new Puzzle({...a,'rewardItem':b});}[a44i(0x158)](a){const n=a44i,b=a[n(0x14e)]&&RoomType[a[n(0x14e)][n(0x151)]()]?RoomType[a[n(0x14e)]['toUpperCase']()]:RoomType[n(0x156)];return{'name':a[n(0x14f)],'description':a[n(0x15b)],'isStartRoom':a[n(0x140)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45j=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d
|
|
1
|
+
const a45j=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(0x1b9))/0x1+parseInt(h(0x1bf))/0x2*(parseInt(h(0x1c7))/0x3)+-parseInt(h(0x1ad))/0x4+-parseInt(h(0x1b2))/0x5+-parseInt(h(0x1d0))/0x6+-parseInt(h(0x1c3))/0x7*(parseInt(h(0x1ab))/0x8)+parseInt(h(0x1d3))/0x9*(parseInt(h(0x1cf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x6a1d4));const a45b=(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;};}()),a45a=a45b(this,function(){const i=a45d;return a45a[i(0x1c5)]()[i(0x1d1)](i(0x1bb))[i(0x1c5)]()[i(0x1ca)](a45a)['search'](i(0x1bb));});a45a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';function a45c(){const r=['instance','-\x20clear:\x20Clear\x20the\x20screen.\x0a','use','296PkZMNV','lock','1505212EYVRMd','split','slice','registerCommand','hasOwnProperty','639830GQvdyi','take','player','getDescription','Welcome,\x20','determineStartRoom','Available\x20Commands:\x0a','377459ANxRJb','createCommand','(((.+)+)+)+$','equip','say','getHelpMessage','2ISsHkS','clear','unlock','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','66731HTmspx','getRooms','toString','scene','2523699pImVOo','look','currentLocation','constructor','rooms','getWelcomeMessage','maka','trim','20LpNINn','2584056wANXhM','search','unequip','2266281PjopzQ','name','getAllRegisteredCommands','execute','-\x20quit:\x20Exit\x20the\x20game.\x0a','handleInput'];a45c=function(){return r;};return a45c();}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';import{LockCommand}from'./commands/lock.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a45d(a,b);}import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a45j(0x1a8)];['scene'];['player'];['currentRoom'];[a45j(0x1cb)];constructor(a,b){const k=a45j;this[k(0x1b4)]=a,this[k(0x1c6)]=new Scene({'player':a,'roomConfiguration':b}),this[k(0x1c6)]['initialize'](),this['player'][k(0x1c9)]=this[k(0x1b7)](),this['registerCommands']();}['registerCommands'](){const l=a45j;CommandFactory[l(0x1b0)](l(0x1c8),LookCommand),CommandFactory[l(0x1b0)]('go',GoCommand),CommandFactory['registerCommand'](l(0x1b3),TakeCommand),CommandFactory[l(0x1b0)](l(0x1aa),UseCommand),CommandFactory[l(0x1b0)](l(0x1bc),EquipCommand),CommandFactory[l(0x1b0)](l(0x1d2),UnequipCommand),CommandFactory[l(0x1b0)]('solve',SolveCommand),CommandFactory[l(0x1b0)]('drop',DropCommand),CommandFactory[l(0x1b0)](l(0x1c1),UnlockCommand),CommandFactory[l(0x1b0)](l(0x1ac),LockCommand),CommandFactory['registerCommand']('search',SearchCommand),CommandFactory['registerCommand'](l(0x1bd),SayCommand);}[a45j(0x1b7)](){const m=a45j;return this['scene'][m(0x1b7)]();}[a45j(0x1cc)](){const n=a45j;return n(0x1b6)+this[n(0x1b4)][n(0x1d4)];}static['getInstance'](a,b){const o=a45j;return!Game['instance']&&(Game[o(0x1a8)]=new Game(a,b)),Game[o(0x1a8)];}[a45j(0x1a7)](a){const p=a45j,b=a[p(0x1ce)]()[p(0x1ae)]('\x20'),c=b[0x0]['toLowerCase'](),d=b[p(0x1af)](0x1);if(c==='quit')return null;if(c===p(0x1cd))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c==='help')return this[p(0x1be)]();if(c===p(0x1c0))return'';const e={'actor':this['player'],'rooms':this[p(0x1c6)][p(0x1c4)](),'scene':this[p(0x1c6)]},f=CommandFactory[p(0x1ba)](c,e);if(f){const g=f[p(0x1d6)](d);return g;}return p(0x1c2)+c+'\x22.';}[a45j(0x1be)](){const q=a45j,a=CommandFactory[q(0x1d5)]();let b=q(0x1b8);for(const c in a){if(a[q(0x1b1)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[q(0x1b5)]()+'\x0a';}}return b+=q(0x1a9),b+=q(0x1a6),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x1f1;var f=c[d];return f;},a46d(a,b);}(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0x1f8))/0x1*(-parseInt(f(0x1ff))/0x2)+parseInt(f(0x1f1))/0x3*(parseInt(f(0x1fa))/0x4)+parseInt(f(0x1fb))/0x5*(parseInt(f(0x1fc))/0x6)+parseInt(f(0x1f4))/0x7*(-parseInt(f(0x1fe))/0x8)+-parseInt(f(0x1f3))/0x9*(parseInt(f(0x1f6))/0xa)+-parseInt(f(0x201))/0xb*(parseInt(f(0x1f9))/0xc)+parseInt(f(0x1f2))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xd150b));var a46b=(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;};}()),a46a=a46b(this,function(){var g=a46d;return a46a[g(0x1f7)]()[g(0x200)](g(0x1f5))['toString']()[g(0x1fd)](a46a)[g(0x200)]('(((.+)+)+)+$');});function a46c(){var h=['2JRvkMM','search','139667bjUhqx','2730264AkNurO','25970633XHijSY','5598WykkUB','1726193PYSHnh','(((.+)+)+)+$','24370aNhMBS','toString','528159RCSlEk','1164rOULsx','4iBjnMu','195yqqXvp','63906Jgknbr','constructor','8cHlony'];a46c=function(){return h;};return a46c();}a46a();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
|
+
function a47c(){var n=['7779840hQeTYP','roomB','To\x20','name','search','94hFBLuX','.\x20Used:\x20','4803OEDDJQ','2334MKkjPy','Door\x20unlocked:\x20','isLockable','Failed\x20to\x20unlock\x20door:\x20','1010dladQY','roomA','logger','checkIfLockable','.\x20Is\x20Locked:\x20','24oIuESY','attemptUnlock','isLocked','toString','unlockItemOrSolution','230012NqoZJN','11112XjPVlA','\x20and\x20','(((.+)+)+)+$','Door\x20created\x20between\x20','write','constructor','387016KNxuMl','1247742FPyeTh','getOtherSide'];a47c=function(){return n;};return a47c();}function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0xaa;var f=c[d];return f;},a47d(a,b);}var a47h=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=-parseInt(f(0xc9))/0x1*(parseInt(f(0xc7))/0x2)+parseInt(f(0xb9))/0x3+-parseInt(f(0xb8))/0x4+parseInt(f(0xae))/0x5*(-parseInt(f(0xaa))/0x6)+-parseInt(f(0xbf))/0x7*(parseInt(f(0xb3))/0x8)+-parseInt(f(0xc0))/0x9+parseInt(f(0xc2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x1c2a4));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['toString']()['search']('(((.+)+)+)+$')[g(0xb6)]()[g(0xbe)](a47a)[g(0xc6)](g(0xbb));});a47a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a47h(0xaf)];[a47h(0xc3)];[a47h(0xb5)];['unlockItemOrSolution'];['name'];[a47h(0xb0)];[a47h(0xac)];constructor(a){var i=a47h;super(),this['roomA']=a[i(0xaf)],this[i(0xc3)]=a['roomB'],this[i(0xb5)]=a['isLocked']||![],this[i(0xb7)]=a[i(0xb7)],this['name']=a[i(0xc5)]?capitalCase(a[i(0xc5)]):i(0xc4)+a['roomB'][i(0xc5)],this['logger']=Logger['getInstance'](),this[i(0xac)]=!!a['unlockItemOrSolution'],this[i(0xb0)]['write'](i(0xbc)+this[i(0xaf)][i(0xc5)]+i(0xba)+this[i(0xc3)][i(0xc5)]+i(0xb2)+this[i(0xb5)]);}[a47h(0xc1)](a){var j=a47h;return this[j(0xaf)]===a?this['roomB']:this[j(0xaf)];}[a47h(0xb4)](a){var k=a47h;if(this[k(0xb5)]&&this[k(0xb7)]&&this[k(0xb7)]===a)return this['isLocked']=![],this[k(0xb0)][k(0xbd)](k(0xab)+this[k(0xc5)]+'.\x20Used:\x20'+a),!![];return this['logger']['write'](k(0xad)+this[k(0xc5)]+k(0xc8)+a),![];}['checkIfLocked'](){var l=a47h;return this[l(0xb5)];}[a47h(0xb1)](){var m=a47h;return this[m(0xac)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d
|
|
1
|
+
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x185))/0x1+-parseInt(f(0x1a2))/0x2*(parseInt(f(0x18e))/0x3)+-parseInt(f(0x192))/0x4+parseInt(f(0x19b))/0x5+parseInt(f(0x187))/0x6*(parseInt(f(0x188))/0x7)+parseInt(f(0x1a3))/0x8+parseInt(f(0x19c))/0x9*(-parseInt(f(0x199))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x7714c));function a48c(){const r=['removeItem','keys','logger','91956tSwuRJ','7669040llxEpg','name','.\x20Item\x20not\x20found.','toLowerCase','apply','Failed\x20to\x20remove\x20item:\x20','getWeight','toString','listItems','has','values','getAllItems','799780GiSeOY','getItem','24HjwvrL','420749GzkKPX','Retrieved\x20details\x20for\x20item:\x20','get','set','items','\x20in\x20','24ozFWwO','weight','Listed\x20items\x20in\x20inventory:\x20','hasItem','47664MRWZGy','\x20from\x20inventory.','join','(((.+)+)+)+$','constructor','getInstance','search','1196430fuQzuD','\x20to\x20inventory.','3537520gRAoHN','18nEuRwU','write','Checked\x20for\x20item:\x20'];a48c=function(){return r;};return a48c();}const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x180)]()[h(0x198)]('(((.+)+)+)+$')['toString']()[h(0x196)](a48a)[h(0x198)](h(0x195));});function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x17b;let f=c[d];return f;},a48d(a,b);}a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48i(0x18c)];[a48i(0x1a1)];constructor(){const j=a48i;super(),this['items']=new Map(),this[j(0x1a1)]=Logger[j(0x197)]();}['addItem'](a){const k=a48i;this[k(0x18c)][k(0x18b)](a[k(0x1a4)]['toLowerCase'](),a),this[k(0x1a1)][k(0x19d)]('Added\x20item:\x20'+a[k(0x1a4)]+k(0x19a));}[a48i(0x19f)](a){const l=a48i,b=this['getItem'](a);if(b)return this['items']['delete'](a['toLowerCase']()),this[l(0x1a1)][l(0x19d)]('Removed\x20item:\x20'+a+l(0x193)),b;return this[l(0x1a1)][l(0x19d)](l(0x17e)+a+l(0x17b)),null;}[a48i(0x191)](a){const m=a48i,b=this['items'][m(0x182)](a[m(0x17c)]()),c=[...this['items'][m(0x1a0)]()];return this['logger'][m(0x19d)](m(0x19e)+a+m(0x18d)+c[m(0x194)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}[a48i(0x186)](a){const n=a48i,b=this['items'][n(0x18a)](a[n(0x17c)]())||null;return b?this[n(0x1a1)][n(0x19d)](n(0x189)+a+'.'):this[n(0x1a1)][n(0x19d)]('Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'+a+n(0x17b)),b;}[a48i(0x181)](){const o=a48i,a=[...this[o(0x18c)]['keys']()],b=a['map'](c=>capitalCase(c));return this[o(0x1a1)][o(0x19d)](o(0x190)+b[o(0x194)](',\x20')+'.'),a;}[a48i(0x17f)](){const p=a48i;let a=0x0;for(const b of this['items'][p(0x183)]()){a+=b[p(0x18f)];}return a;}[a48i(0x184)](){const q=a48i;return[...this['items'][q(0x183)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-
|
|
1
|
+
var a49i=a49d;function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xf1;var f=c[d];return f;},a49d(a,b);}function a49c(){var l=['You\x20use\x20the\x20','texture','(((.+)+)+)+$','27928PUkZjF','category','toString','1225udgidP','521039wnTIVl','size','weight','846FvJram','12776BDGEtz','uuid','11561lLKmmB','5ZDBQVG','color','apply','use','shape','7014234pzNdHC','rating','description','614402AzzHZT','1343808AAltfc','search','name','2630VvcTdc'];a49c=function(){return l;};return a49c();}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x109))/0x1+parseInt(f(0xfd))/0x2+parseInt(f(0xf1))/0x3*(parseInt(f(0xf2))/0x4)+-parseInt(f(0xf5))/0x5*(parseInt(f(0xfa))/0x6)+parseInt(f(0x108))/0x7*(parseInt(f(0x105))/0x8)+-parseInt(f(0xfe))/0x9+-parseInt(f(0x101))/0xa*(parseInt(f(0xf4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xb5e95));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0xf7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a['toString']()[h(0xff)](h(0x104))[h(0x107)]()['constructor'](a49a)[h(0xff)](h(0x104));});a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{['uuid'];[a49i(0x100)];[a49i(0xfc)];[a49i(0x10a)];[a49i(0x106)];[a49i(0xf9)];[a49i(0xf6)];['texture'];[a49i(0xfb)];['weight'];constructor(a){var j=a49i;super(),this[j(0x100)]=a[j(0x100)],this[j(0xfc)]=a[j(0xfc)],this[j(0x10a)]=a[j(0x10a)],this[j(0x106)]=a['category'],this['shape']=a[j(0xf9)],this[j(0xf6)]=a[j(0xf6)],this[j(0x103)]=a['texture'],this[j(0xfb)]=a[j(0xfb)],this['weight']=a[j(0x10b)],this[j(0xf3)]=a49e();}[a49i(0xf8)](){var k=a49i;return k(0x102)+this['name']+'.\x20Nothing\x20special\x20happens.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=-parseInt(f(0xc9))/0x1+parseInt(f(0xbd))/0x2+parseInt(f(0xc3))/0x3+-parseInt(f(0xbf))/0x4+-parseInt(f(0xb6))/0x5*(-parseInt(f(0xc0))/0x6)+-parseInt(f(0xc8))/0x7*(parseInt(f(0xcb))/0x8)+parseInt(f(0xb4))/0x9*(parseInt(f(0xc4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x6c3d5));function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xb3;let f=c[d];return f;},a50d(a,b);}const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0xb7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0xb8)]()[h(0xc2)](h(0xb5))[h(0xb8)]()[h(0xc1)](a50a)['search']('(((.+)+)+)+$');});function a50c(){const o=['autonomousMove','1673304qrpoSs','30cFDvWL','constructor','search','372651hZXHDr','10ROfvZB','floor','name','random','2360757cWVNfM','742831LaJHrb','scene','8BRdENk','_dialogue','execute','11761677iHkEOj','(((.+)+)+)+$','18805FBbKPB','apply','toString','_name','length','moveTo','rooms','983764QzIvsl'];a50c=function(){return o;};return a50c();}a50a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a50i(0xb9)];[a50i(0xcc)];[a50i(0xbc)];[a50i(0xca)];constructor(a,b,c,d){const j=a50i;super(d),this[j(0xb9)]=a,this[j(0xcc)]=b,this['rooms']=c;}get[a50i(0xc6)](){const k=a50i;return this[k(0xb9)];}['speak'](){const l=a50i;return this[l(0xcc)][Math['floor'](Math[l(0xc7)]()*this[l(0xcc)][l(0xba)])];}[a50i(0xbe)](a){const m=a50i,b=a[Math[m(0xc5)](Math[m(0xc7)]()*a[m(0xba)])];this[m(0xbb)](b[m(0xc6)]);}[a50i(0xbb)](a){const n=a50i,b={'actor':this,'rooms':this[n(0xbc)],'scene':this[n(0xca)]},c=new GoCommand(b);c[n(0xb3)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51h=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0x19f))/0x1*(-parseInt(f(0x1c0))/0x2)+parseInt(f(0x1ca))/0x3+parseInt(f(0x1aa))/0x4*(-parseInt(f(0x1b6))/0x5)+parseInt(f(0x1b9))/0x6+parseInt(f(0x1bd))/0x7*(parseInt(f(0x1ce))/0x8)+parseInt(f(0x191))/0x9+-parseInt(f(0x1c8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x98650));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const g=a51d;return a51a[g(0x1a5)]()['search'](g(0x1c5))[g(0x1a5)]()[g(0x1e4)](a51a)[g(0x1d9)](g(0x1c5));});a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';function a51c(){const B=['Gloves','write','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','startLocation','boots','hear','weight','5SOYqZz','Added\x20','Weapon','2416548PdYAuZ','shield','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','determineEquipmentSlot','7AhruNh','unequipBySlot','\x20says:\x20\x22','6hebONm','You\x20don\x27t\x20have\x20','You\x20can\x27t\x20equip\x20','equipment','inventory','(((.+)+)+)+$','Max\x20carrying\x20weight\x20must\x20be\x20positive.','inventoryItems','13692350LjjqwT','Hat','3178677wgIuCG','You\x20unequipped\x20','A\x20featureless\x20room','head','4999792nHHrMW','hasItem','off','\x20to\x20player\x27s\x20inventory.','bodyarmor','leftHand','\x20is\x20now\x20listening\x20in\x20room\x20','rightHand','speak','logger','LegArmor','search','feet','\x20in\x20your\x20inventory.','arms','Nexus','hat','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','includes','BodyArmor','legarmor','maxCarryingWeight','constructor','Boots','.\x20You\x20must\x20unequip\x20it\x20first.','addItem','bind','removeItem','unequip','_equipment','equip','\x20slot.','body\x20armor','name','_playerName','7605333FqdIXw','You\x20equipped\x20','getWeight','canEquip','currentWeight','torso','getInstance','weapon','legs','Shield','removeInventory','_currentLocation','_inventory','toLowerCase','47794IRfMxK','enterRoom','\x20from\x20player\x27s\x20inventory.','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','gloves','_maxCarryingWeight','toString','currentLocation','addInventory','log','armarmor','3182012npsoPn','category','\x20is\x20no\x20longer\x20listeng\x20in\x20','leaveRoom','Removed\x20'];a51c=function(){return B;};return a51c();}import{Inventory}from'./inventory.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x187;let f=c[d];return f;},a51d(a,b);}import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a51h(0x190)];[a51h(0x19c)];[a51h(0x19d)];[a51h(0x18b)];[a51h(0x1a4)]=0x32;['logger'];constructor(a){const i=a51h;super(),this[i(0x190)]=a['playerName'],this[i(0x19c)]=a[i(0x1b2)]||new Room({'name':i(0x1dd),'description':i(0x1cc)}),this[i(0x19d)]=new Inventory(),this['logger']=Logger[i(0x197)]();if(a?.[i(0x1c7)])for(const b of a[i(0x1c7)]){this[i(0x19d)][i(0x187)](b);}this[i(0x18b)]=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51h(0x18f)](){const j=a51h;return this[j(0x190)];}get[a51h(0x1a6)](){const k=a51h;return this[k(0x19c)];}set[a51h(0x1a6)](a){const l=a51h;this[l(0x19c)]!==a&&(this[l(0x1ad)](),this[l(0x1a0)](a)),this[l(0x19c)]=a;}get[a51h(0x1c4)](){const m=a51h;return this[m(0x19d)];}get[a51h(0x1c3)](){const n=a51h;return this[n(0x18b)];}set[a51h(0x1c3)](a){const o=a51h;this[o(0x18b)]=a;}get[a51h(0x1e3)](){return this['_maxCarryingWeight'];}set[a51h(0x1e3)](a){const p=a51h;a>0x0?this[p(0x1a4)]=a:console['error'](p(0x1c6));}get[a51h(0x195)](){const q=a51h;let a=this['_inventory'][q(0x193)]();for(const b in this[q(0x18b)]){const c=this[q(0x18b)][b];c&&(a+=c[q(0x1b5)]);}return a;}['addInventory'](a){const r=a51h;if(this[r(0x195)]+a['weight']>this['maxCarryingWeight']){this[r(0x1d7)][r(0x1b0)](r(0x1bb));throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this[r(0x19d)][r(0x187)](a),this['logger']['write'](r(0x1b7)+a[r(0x18f)]+r(0x1d1));}[a51h(0x19b)](a){const s=a51h;if(this[s(0x19d)][s(0x189)](a[s(0x18f)]))return this[s(0x1d7)][s(0x1b0)](s(0x1ae)+a[s(0x18f)]+s(0x1a1)),!![];return this['logger']['write']('Failed\x20to\x20remove\x20'+a['name']+s(0x1a1)),![];}[a51h(0x18c)](a){const t=a51h;if(!this[t(0x19d)][t(0x1cf)](a[t(0x18f)]))return t(0x1c1)+a[t(0x18f)]+t(0x1db);if(!this['canEquip'](a))return t(0x1c2)+a[t(0x18f)]+'.';const b=this[t(0x1bc)](a[t(0x1ab)]);if(!b)return a[t(0x18f)]+t(0x1df);if(this[t(0x1c3)][b])return t(0x1a2)+b+t(0x1e6);return this[t(0x1c3)][b]=a,this[t(0x19b)](a),t(0x192)+a[t(0x18f)]+'.';}[a51h(0x18a)](a){const u=a51h;let b=a;if(!this[u(0x1c3)][camelCase(b)]){b=this[u(0x1bc)](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this[u(0x1be)](b);}['determineEquipmentSlot'](a){const v=a51h;switch(a['toLowerCase']()){case Category[v(0x1b8)][v(0x19e)]():return v(0x1d5);case Category[v(0x19a)][v(0x19e)]():return v(0x1d3);case Category[v(0x1af)][v(0x19e)]():return v(0x1a3);case Category['Helmet'][v(0x19e)]():case Category[v(0x1c9)][v(0x19e)]():return'head';case Category[v(0x1e5)]['toLowerCase']():return v(0x1da);case Category[v(0x1d8)]['toLowerCase']():return v(0x199);case Category['ArmArmor'][v(0x19e)]():return v(0x1dc);case Category[v(0x1e1)][v(0x19e)]():return v(0x196);case v(0x198):return'rightHand';case v(0x1ba):return v(0x1d3);case v(0x1a3):return'gloves';case'helmet':case v(0x1de):return v(0x1cd);case v(0x1b3):return v(0x1da);case'leg\x20armor':case v(0x1e2):return'legs';case'arm\x20armor':case v(0x1a9):return v(0x1dc);case v(0x18e):case v(0x1d2):case v(0x196):return v(0x196);default:return null;}}[a51h(0x194)](a){const w=a51h;return Object['values'](Category)[w(0x1e0)](a[w(0x1ab)]);}['unequipBySlot'](a){const x=a51h,b=this[x(0x1c3)][a];if(!b)return x(0x1b1)+a+x(0x18d);return this[x(0x1a7)](b),this[x(0x1c3)][a]=null,x(0x1cb)+b[x(0x18f)]+'.';}[a51h(0x1b4)](a,b){const y=a51h;a!==this&&this['logger'][y(0x1a8)](a[y(0x18f)]+y(0x1bf)+b+'\x22');}['enterRoom'](a){const z=a51h;this['_currentLocation']=a,a['on'](z(0x1d6),this[z(0x1b4)][z(0x188)](this)),this[z(0x1d7)][z(0x1b0)](this[z(0x18f)]+z(0x1d4)+a['name']);}[a51h(0x1ad)](){const A=a51h;this[A(0x19c)]&&(this[A(0x19c)][A(0x1d0)]('speak',this[A(0x1b4)][A(0x188)](this)),this[A(0x1d7)]['write'](this[A(0x18f)]+A(0x1ac)+this[A(0x19c)][A(0x18f)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52i=a52d;
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x171))/0x1*(-parseInt(f(0x168))/0x2)+parseInt(f(0x167))/0x3+parseInt(f(0x15f))/0x4*(-parseInt(f(0x172))/0x5)+-parseInt(f(0x15e))/0x6+parseInt(f(0x16c))/0x7*(parseInt(f(0x163))/0x8)+-parseInt(f(0x166))/0x9+parseInt(f(0x178))/0xa*(-parseInt(f(0x17b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x7df10));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x16a)]()[h(0x160)](h(0x17c))[h(0x16a)]()[h(0x161)](a52a)[h(0x160)](h(0x17c));});a52a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x15e;var f=c[d];return f;},a52d(a,b);}function a52c(){var n=['write','apply','riddle','681631eHPDeN','15thDBKQ','logger','You\x20have\x20already\x20solved\x20this\x20puzzle.','requiredPhrase','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','2370XpMEzT','hasRequiredItem','matchesRequiredPhrase','17589fBtsBA','(((.+)+)+)+$','rewardItem','4314240MPaTZH','472548qKZzHd','search','constructor','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','8fVJrDs','requiredItem','failureMessage','1107342MOtDga','2444556BETfzS','2TkqBDc','solved','toString','successMessage','4163775JxNOBZ','solve'];a52c=function(){return n;};return a52c();}export class Puzzle extends AbstractPuzzle{[a52i(0x173)]=Logger['getInstance']();['solved']=![];[a52i(0x164)];[a52i(0x175)];[a52i(0x170)];[a52i(0x17d)];[a52i(0x16b)];[a52i(0x165)];constructor(a){var j=a52i;super(),this[j(0x164)]=a[j(0x164)],this[j(0x175)]=a[j(0x175)],this[j(0x170)]=a[j(0x170)],this[j(0x17d)]=a[j(0x17d)],this[j(0x16b)]=a[j(0x16b)]||'You\x20solved\x20the\x20puzzle!',this['failureMessage']=a[j(0x165)]||j(0x162);}['hasRequiredItem'](a){var k=a52i;if(this[k(0x164)])return a['hasItem'](this[k(0x164)]);return![];}['matchesRequiredPhrase'](a){var l=a52i;return this[l(0x175)]===a;}[a52i(0x16d)](a,b){var m=a52i;if(this['solved'])return this[m(0x173)]['write'](m(0x176)),{'success':![],'message':m(0x174)};return this[m(0x179)](b)||this[m(0x17a)](a)?(this[m(0x169)]=!![],this[m(0x173)][m(0x16e)]('Puzzle:\x20Correct\x20solution\x20provided.'),{'success':!![],'message':this[m(0x16b)]}):(this[m(0x173)][m(0x16e)](m(0x177)),{'success':![],'message':this[m(0x165)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a53i=a53d;function a53c(){const u=['removeItem','north','toString','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','south','get','exits','\x20unlocked!','roomA','values','4526598NNpZsC','.\x20Success:\x20','constructor','7lhrgRw','21189756rbQcxg','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','name','checkIfLocked','INSIDE','Puzzle\x20set\x20for\x20room\x20','584019DONlCB','say','roomB','puzzle','getExit','addItem','\x20is\x20locked.\x20Result:\x20','SOUTH','isStartRoom','description','WEST','7755jJiBvT','21933OwRNQC','12210KROQLB','emit','79047bslrHL','Item\x20added\x20to\x20room\x20','Fetching\x20exit\x20in\x20direction:\x20','No\x20locked\x20exit\x20found\x20in\x20direction\x20','getInstance','down','4RazueH','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','6044240ObBhci','west','write','Checking\x20if\x20exit\x20in\x20direction\x20','apply','Invalid\x20direction:\x20','hasItem','22hmwGRL','search','logger','speak','riddle','(((.+)+)+)+$','isExitLocked','inventory','\x20remains\x20locked.','Item\x20removed\x20from\x20room\x20','attemptUnlock','attemptUnlockExit','NORTH','DOWN','roomType','8kNtLDk'];a53c=function(){return u;};return a53c();}(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x103))/0x1*(parseInt(f(0xd3))/0x2)+parseInt(f(0xf7))/0x3*(parseInt(f(0x10c))/0x4)+-parseInt(f(0x10e))/0x5+parseInt(f(0xed))/0x6*(-parseInt(f(0xf0))/0x7)+-parseInt(f(0xe2))/0x8*(parseInt(f(0x106))/0x9)+-parseInt(f(0x104))/0xa*(-parseInt(f(0x102))/0xb)+parseInt(f(0xf1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x946dc));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0xe5)]()[h(0xd4)](h(0xd8))[h(0xe5)]()[h(0xef)](a53a)['search'](h(0xd8));});a53a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xcd;let f=c[d];return f;},a53d(a,b);}import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a53i(0xd5)]=Logger[a53i(0x10a)]();[a53i(0xf3)];[a53i(0x100)];[a53i(0xe9)]=new Map();['roomType'];[a53i(0xff)];[a53i(0xda)]=new Inventory();constructor(a){const j=a53i;super(),this['name']=a[j(0xf3)],this[j(0x100)]=a[j(0x100)],this[j(0xe1)]=a[j(0xe1)]||RoomType[j(0xf5)],a[j(0xe9)]&&(this[j(0xe9)]=a['exits']||new Map()),a[j(0xda)]&&(this[j(0xda)]=a[j(0xda)]),a[j(0xfa)]&&(this[j(0xfa)]=a[j(0xfa)]),this[j(0xff)]=a[j(0xff)]||![],this[j(0xd5)][j(0xce)]('Room\x20created:\x20'+this['name']);}[a53i(0xf8)](a,b){const k=a53i;this[k(0x105)](k(0xd6),a,b);}['addExit'](a,b,c){const l=a53i;let d=this['findExistingDoor'](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0xe9)]['set'](a,d),b[l(0xe9)]['set'](this['getOppositeDirection'](a),d);}[a53i(0xde)](a,b){const m=a53i,c=this[m(0xe9)][m(0xe8)](a);if(c instanceof Door){const d=c[m(0xdd)](b);return this[m(0xd5)][m(0xce)](m(0xf2)+a+m(0xee)+d),d?'The\x20'+c[m(0xf3)]+m(0xea):'The\x20'+c[m(0xf3)]+m(0xdb);}return this[m(0xd5)][m(0xce)](m(0x109)+a),m(0x10d);}[a53i(0xfb)](a){const n=a53i;return this[n(0xd5)][n(0xce)](n(0x108)+a),this[n(0xe9)][n(0xe8)](a);}[a53i(0xd9)](a){const o=a53i,b=this[o(0xe9)][o(0xe8)](a),c=b instanceof Door&&b[o(0xf4)]();return this['logger']['write'](o(0xcf)+a+o(0xfd)+c),c;}[a53i(0xfc)](a){const p=a53i;this['inventory'][p(0xfc)](a),this[p(0xd5)][p(0xce)](p(0x107)+this[p(0xf3)]+':\x20'+a['name']);}[a53i(0xe3)](a){const q=a53i;this[q(0xda)][q(0xd2)](a[q(0xf3)])?(this[q(0xda)]['removeItem'](a['name']),this['logger'][q(0xce)](q(0xdc)+this[q(0xf3)]+':\x20'+a[q(0xf3)])):this[q(0xd5)][q(0xce)](q(0xe6)+this[q(0xf3)]+':\x20'+a['name']);}['setPuzzle'](a){const r=a53i;this['puzzle']=a,this[r(0xd5)]['write'](r(0xf6)+this['name']+':\x20'+a[r(0xd7)]);}['getOppositeDirection'](a){const s=a53i;switch(a){case s(0xe4):return Direction[s(0xfe)];case s(0xe7):return Direction[s(0xdf)];case'east':return Direction[s(0x101)];case s(0xcd):return Direction['EAST'];case'up':return Direction[s(0xe0)];case s(0x10b):return Direction['UP'];default:throw new Error(s(0xd1)+a);}}['findExistingDoor'](a){const t=a53i;for(const b of this[t(0xe9)][t(0xec)]()){if(b instanceof Door){if(b[t(0xeb)]===this&&b[t(0xf9)]===a||b['roomB']===this&&b[t(0xeb)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a54l=a54d;function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x151;let f=c[d];return f;},a54d(a,b);}(function(a,b){const i=a54d,c=a();while(!![]){try{const d=-parseInt(i(0x151))/0x1*(-parseInt(i(0x15f))/0x2)+parseInt(i(0x16b))/0x3+-parseInt(i(0x17f))/0x4*(-parseInt(i(0x199))/0x5)+parseInt(i(0x197))/0x6+parseInt(i(0x16a))/0x7*(-parseInt(i(0x178))/0x8)+parseInt(i(0x168))/0x9+-parseInt(i(0x17c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0xceaf4));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a['toString']()[k(0x190)](k(0x166))[k(0x187)]()[k(0x173)](a54a)[k(0x190)](k(0x166));});a54a();import{Logger}from'../utilities/logger.js';function a54c(){const E=['getActor','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','actors','33901040zfSoth','delete','isStartRoom','48veJDqR','logger','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','setCharacterLocation','exits','createExitsFromConfig','addRoom','Failed\x20to\x20set\x20','toString','\x20not\x20found\x20in\x20scene.','Failed\x20to\x20add\x20item\x20','generateRoomsFromConfig','roomFactory','addPuzzleToRoom','.\x20Room\x20','\x20already\x20exists\x20in\x20the\x20scene.','write','search','hasOwnProperty','length','from','targetRoom','name','rooms','5326338ORPhBe','determineStartRoom','301985VLenBk','join','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','2188jJtjsS','apply','Removed\x20room\x20from\x20scene:\x20','Scene\x20initialized\x20with\x20rooms:\x20','initialize','get','Room\x20\x22','getPlayer','\x20found\x20in\x20the\x20scene.','connectRooms','toUpperCase','keys','set','warn','490RMWJVQ','setPuzzle','No\x20actor\x20with\x20name\x20','addExit','currentLocation','push','removeActor','(((.+)+)+)+$','removeRoom','13720014nPcmpP','characterLocations','14385nWviUL','2190438PQtKws','direction','createRoom','addItemToRoom','getRooms','addItem','allActors','player','constructor','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','getInstance','\x22\x20does\x20not\x20exist.','has','648PIYifY'];a54c=function(){return E;};return a54c();}import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a54l(0x196)];[a54l(0x172)];['logger'];['actors'];[a54l(0x169)]=new Map();[a54l(0x18b)];constructor(a){const m=a54l;super(),this[m(0x18b)]=new RoomFactory(),this[m(0x172)]=a[m(0x172)],this[m(0x196)]=this['generateRoomsFromConfig'](a['roomConfiguration']),this[m(0x180)]=Logger[m(0x175)](),this[m(0x17b)]=new Map(),this[m(0x184)](a['roomConfiguration']),this['logger'][m(0x18f)](m(0x154)+Object['keys'](this['rooms'])[m(0x19a)](',\x20'));}[a54l(0x155)](){const n=a54l;this[n(0x172)][n(0x163)]=this[n(0x198)]();}[a54l(0x18a)](a){const o=a54l;if(!this[o(0x18b)])throw new Error(o(0x19b));const b={};for(const c of a){const d=this['roomFactory'][o(0x16d)](c);b[c[o(0x195)]]=d;}return b;}['createExitsFromConfig'](a){const p=a54l;for(const b of a){const c=this['rooms'][b[p(0x195)]];if(b[p(0x183)])for(const d of b[p(0x183)]){const e=d[p(0x16c)][p(0x15b)](),f=d[p(0x194)],g=d['keyRequired'],h=this[p(0x196)][f];h&&c[p(0x162)](Direction[e],h,g);}}}['addActor'](a){const q=a54l;if(this[q(0x17b)]['has'](a[q(0x195)]))throw new Error('Actor\x20with\x20name\x20'+a['name']+q(0x18e));this[q(0x17b)][q(0x15d)](a['name'],a);}[a54l(0x165)](a){const r=a54l;if(!this['actors'][r(0x177)](a))throw new Error(r(0x161)+a+r(0x159));this[r(0x17b)][r(0x17d)](a);}[a54l(0x179)](a){const s=a54l;return this[s(0x17b)][s(0x156)](a);}get[a54l(0x171)](){const t=a54l;return Array[t(0x193)](this[t(0x17b)]['values']());}[a54l(0x185)](a){const u=a54l;this['rooms'][a[u(0x195)]]=a,this[u(0x180)][u(0x18f)]('Added\x20room\x20to\x20scene:\x20'+a['name']);}[a54l(0x167)](a){const v=a54l;return this[v(0x196)][a]?(delete this[v(0x196)][a],this[v(0x180)][v(0x18f)](v(0x153)+a),!![]):(this['logger'][v(0x18f)](v(0x181)+a),![]);}[a54l(0x16e)](a,b){const w=a54l,c=this[w(0x196)][b];c?(c[w(0x170)](a),this[w(0x180)][w(0x18f)]('Added\x20item\x20'+a[w(0x195)]+'\x20to\x20room\x20'+c[w(0x195)])):this[w(0x180)][w(0x18f)](w(0x189)+a[w(0x195)]+w(0x18d)+b+w(0x188));}[a54l(0x18c)](a,b){const x=a54l,c=this['rooms'][b];c?(c[x(0x160)](a),this[x(0x180)][x(0x18f)]('Added\x20puzzle\x20to\x20room\x20'+c[x(0x195)])):this[x(0x180)][x(0x18f)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a54l(0x182)](a,b){const y=a54l,c=this[y(0x196)][b];c?(this[y(0x169)]['set'](a[y(0x195)],c),this[y(0x180)][y(0x18f)](a[y(0x195)]+'\x20is\x20now\x20in\x20room\x20'+c['name'])):this[y(0x180)][y(0x18f)](y(0x186)+a[y(0x195)]+'\x27s\x20location.\x20Room\x20'+b+y(0x188));}['getCharacterLocation'](a){const z=a54l;return this[z(0x169)]['get'](a['name']);}['determineStartRoom'](){const A=a54l,a=[];for(const c in this[A(0x196)]){if(this[A(0x196)][A(0x191)](c)){const d=this[A(0x196)][c];d[A(0x17e)]&&a[A(0x164)](d);}}if(a[A(0x192)]>0x1)throw new Error(A(0x17a));if(a[A(0x192)]===0x1)return a[0x0];const b=Object[A(0x15c)](this[A(0x196)]);if(b['length']===0x0)throw new Error(A(0x174));return console[A(0x15e)]('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this[A(0x196)][b[0x0]];}[a54l(0x158)](){const B=a54l;return this[B(0x172)];}[a54l(0x16f)](){const C=a54l;return this[C(0x196)];}[a54l(0x15a)](a,b,c,d){const D=a54l,e=this[D(0x196)][a],f=this[D(0x196)][c];if(!e)throw new Error(D(0x157)+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(D(0x157)+c+D(0x176));e[D(0x162)](b,f,d);}}
|