@maka/maka-cli 4.13.16 → 4.13.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -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/cecr.sub.cmd.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/decr.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/lecr.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 -1
- package/bundle/obf/src/commands/profile.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/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/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.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/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.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/auth.mui.gen.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/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d
|
|
1
|
+
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x1ea))/0x1+parseInt(f(0x1fb))/0x2+-parseInt(f(0x211))/0x3+parseInt(f(0x1ef))/0x4+parseInt(f(0x1e4))/0x5*(parseInt(f(0x1fe))/0x6)+parseInt(f(0x202))/0x7*(-parseInt(f(0x204))/0x8)+-parseInt(f(0x208))/0x9*(-parseInt(f(0x1e9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x51093));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x205)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a['toString']()[h(0x20a)](h(0x1e7))[h(0x1e1)]()['constructor'](a38a)['search'](h(0x1e7));});a38a();import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';function a38c(){const n=['24gDiRfF','Examine\x20your\x20surroundings','You\x27re\x20not\x20in\x20a\x20valid\x20room.','rooms','1939oOWxcW','It\x27s\x20just\x20a\x20regular\x20','6616icQDKV','apply','join','puzzle','152586uFpzZd','isValidDirection','search','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','Below\x20you,\x20','riddle','inspectItem','write','currentLocation','1188510Xobpjy','You\x20don\x27t\x20see\x20any\x20','inventory','Above\x20you,\x20','You\x20cannot\x20see\x20','toString','logger','\x20here.','823045wbfMeL','verb','error','(((.+)+)+)+$','Executing\x20\x27Look\x27\x20command.','80NwmhWe','152668wWpBcV','actor','lookOutside','OUTSIDE','roomType','712272NocIAl','Looking\x20at\x20item\x20\x27','down','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','\x27\x20in\x20current\x20room\x20inventory.','get','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','description','look','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','\x20inventory.','name','275408LBMNEv','string','getItem'];a38c=function(){return n;};return a38c();}function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a38d(a,b);}import{Command}from'./command.js';export class LookCommand extends Command{static [a38i(0x1e5)]=a38i(0x1f7);static ['description']=a38i(0x1ff);['execute'](a=[]){const j=a38i;this[j(0x1e2)][j(0x20f)](j(0x1e8));const b=a[j(0x206)]('\x20');if(b){if(this[j(0x1eb)][j(0x213)]['hasItem'](b))return this['logger'][j(0x20f)]('Looking\x20at\x20item\x20\x27'+b+'\x27\x20in\x20'+this[j(0x1eb)][j(0x1fa)]+j(0x1f9)),this['inspectItem'](b,this[j(0x1eb)][j(0x213)]);else{if(this[j(0x1eb)]['currentLocation'][j(0x213)]['hasItem'](b))return this[j(0x1e2)][j(0x20f)](j(0x1f0)+b+j(0x1f3)),this[j(0x20e)](b,this['actor']['currentLocation']['inventory']);else return this[j(0x209)](b)?(this['logger'][j(0x20f)](j(0x1f2)+b+'\x27.'),this['lookOutside'](b)):j(0x1e0)+b;}}else return this[j(0x1e2)][j(0x20f)](this['actor'][j(0x1fa)]+'\x20is\x20looking\x20around\x20the\x20current\x20room.'),this[j(0x1f7)]();}[a38i(0x1f7)](){const k=a38i,a=this[k(0x1eb)]['currentLocation'];if(!a)return this['logger'][k(0x1e6)](this[k(0x1eb)][k(0x1fa)]+k(0x20b)),k(0x200);let b=a[k(0x1f6)];return a[k(0x207)]&&(b+='\x0a'+a[k(0x207)][k(0x20d)]),b;}[a38i(0x1ec)](a){const l=a38i,b=this[l(0x1eb)][l(0x210)];if(!b)return this['logger']['error'](this[l(0x1eb)][l(0x1fa)]+l(0x20b)),l(0x200);const c=b['exits'][l(0x1f4)](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(0x1fc)){d=this[l(0x201)]&&this['rooms'][c];if(!d)return l(0x1f8)+a+'\x22.';}else return l(0x1f5)+a+'\x22.';}if(d[l(0x1ee)]===RoomType[l(0x1ed)]){if(a==='up')return l(0x214)+d[l(0x1f6)];else return a===l(0x1f1)?l(0x20c)+d['description']:'To\x20the\x20'+a+',\x20you\x20see\x20'+d[l(0x1f6)];}else return'You\x20cannot\x20see\x20through';}[a38i(0x20e)](a,b){const m=a38i,c=b[m(0x1fd)](a);if(!c)return m(0x212)+a+m(0x1e3);return c[m(0x1f6)]||m(0x203)+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-
|
|
1
|
+
function a39c(){const k=['2ohVpvH','search',':\x20\x22','name','execute','240145UsUfac','3604488oZiXBq','What\x20do\x20you\x20want\x20to\x20say?','2339FtJrpO','length','Scene\x20is\x20missing\x20from\x20context.','verb','say','description','446592hCuTxs','allActors','(((.+)+)+)+$','currentLocation','actor','join','log','context','1323504GiCPlI','1335768TQLqDy','filter','scene','logger','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','toString','124134HNsAao','constructor'];a39c=function(){return k;};return a39c();}function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x194;let f=c[d];return f;},a39d(a,b);}const a39i=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=-parseInt(g(0x19e))/0x1+parseInt(g(0x196))/0x2*(-parseInt(g(0x194))/0x3)+parseInt(g(0x1a4))/0x4+parseInt(g(0x19b))/0x5+-parseInt(g(0x1ad))/0x6+-parseInt(g(0x1ac))/0x7+parseInt(g(0x19c))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x25cc5));const a39b=(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;};}()),a39a=a39b(this,function(){const h=a39d;return a39a['toString']()[h(0x197)](h(0x1a6))[h(0x1b2)]()[h(0x195)](a39a)[h(0x197)](h(0x1a6));});a39a();import{Command}from'./command.js';export class SayCommand extends Command{static [a39i(0x1a1)]='say';static [a39i(0x1a3)]=a39i(0x1b1);[a39i(0x1ab)];constructor(a){super(a),this['context']=a;}[a39i(0x19a)](a){const j=a39i;if(a[j(0x19f)]===0x0)return j(0x19d);const b=a[j(0x1a9)]('\x20'),c=this[j(0x1a8)],d=this['context'][j(0x1af)];if(!d)return this['logger']['log'](j(0x1a0)),'An\x20error\x20occurred.';const e=d[j(0x1a5)][j(0x1ae)](f=>f['currentLocation']===c[j(0x1a7)]);for(const f of e){this[j(0x1b0)][j(0x1aa)](c[j(0x199)]+'\x20says\x20to\x20'+f['name']+j(0x198)+b+'\x22'),this[j(0x1a8)][j(0x1a7)][j(0x1a2)](f,b);}return'You\x20say:\x20\x22'+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x1cf))/0x1+parseInt(f(0x1ca))/0x2*(-parseInt(f(0x1bf))/0x3)+parseInt(f(0x1c1))/0x4+parseInt(f(0x1d9))/0x5*(parseInt(f(0x1d5))/0x6)+-parseInt(f(0x1c8))/0x7+parseInt(f(0x1cc))/0x8*(-parseInt(f(0x1ce))/0x9)+-parseInt(f(0x1cb))/0xa*(-parseInt(f(0x1d7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xb93d0));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x1c5)]()[h(0x1d4)](h(0x1d6))[h(0x1c5)]()['constructor'](a40a)['search'](h(0x1d6));});function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x1bd;let f=c[d];return f;},a40d(a,b);}a40a();import{Command}from'./command.js';export class SearchCommand extends Command{static [a40i(0x1c3)]=a40i(0x1d4);static [a40i(0x1c9)]=a40i(0x1cd);['execute'](){const j=a40i,a=this[j(0x1bd)][j(0x1c2)][j(0x1d3)]['listItems']();if(a[j(0x1be)]===0x0)return this[j(0x1d0)]['write'](j(0x1c4)+this[j(0x1bd)][j(0x1c7)]+j(0x1d2)),j(0x1d1);const b=a['join'](',\x20');return this[j(0x1d0)]['write']('SearchCommand:\x20'+this[j(0x1bd)][j(0x1c7)]+j(0x1c0)+b),j(0x1d8)+b;}}function a40c(){const k=['\x20searched\x20the\x20room\x20but\x20found\x20nothing.','inventory','search','30EbqOrM','(((.+)+)+)+$','18273343vHbJfZ','You\x20search\x20the\x20area\x20and\x20find:\x20','297035zMHFFw','actor','length','543xkMkqB','\x20found\x20the\x20following\x20items:\x20','2760600dRvBxu','currentLocation','verb','SearchCommand:\x20','toString','apply','name','9549372KFDBrH','description','9566UIIDVR','10jjvWou','8beIabU','Search\x20for\x20items\x20in\x20your\x20area','6697449uimEgB','1084418ptaqdY','logger','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.'];a40c=function(){return k;};return a40c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0xe7))/0x1*(-parseInt(f(0xf6))/0x2)+parseInt(f(0xe3))/0x3+parseInt(f(0xe6))/0x4*(-parseInt(f(0xfc))/0x5)+-parseInt(f(0xf3))/0x6+-parseInt(f(0xef))/0x7*(parseInt(f(0xf7))/0x8)+parseInt(f(0xe1))/0x9+parseInt(f(0xe5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xb2f25));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0xf9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0xf1)]()[h(0xe4)]('(((.+)+)+)+$')[h(0xf1)]()[h(0xe0)](a41a)[h(0xe4)](h(0xee));});a41a();function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0xe0;let f=c[d];return f;},a41d(a,b);}import{Command}from'./command.js';function a41c(){const k=['write','2959305KYLvFb','search','8359620xAqZOY','632OxLCzR','40759IqujtF','verb','addItem','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','join','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','inventory','(((.+)+)+)+$','16569mupCRy','rewardItem','toString','SolveCommand:\x20','8147694jiDkMl','solve','logger','52gDhnkd','304vTAMjM','puzzle','apply','actor','success','42695iNCsQh','constructor','5831019RxmfwI'];a41c=function(){return k;};return a41c();}export class SolveCommand extends Command{static [a41i(0xe8)]='solve';static ['description']='Attempt\x20to\x20solve\x20a\x20puzzle.';['execute'](a){const j=a41i,b=a[j(0xeb)]('\x20')['toLowerCase'](),c=this[j(0xfa)]['currentLocation'];if(!c||!c['puzzle'])return this[j(0xf5)]['write'](j(0xec)),j(0xea);const d=c[j(0xf8)][j(0xf4)](b,this[j(0xfa)][j(0xed)]);return d[j(0xfb)]&&c[j(0xf8)][j(0xf0)]&&this[j(0xfa)][j(0xed)][j(0xe9)](c[j(0xf8)][j(0xf0)]),this[j(0xf5)][j(0xe2)](j(0xf2)+d['message']),d['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0x164))/0x1+parseInt(f(0x15a))/0x2+-parseInt(f(0x15f))/0x3+parseInt(f(0x14d))/0x4+-parseInt(f(0x158))/0x5*(parseInt(f(0x148))/0x6)+-parseInt(f(0x141))/0x7+parseInt(f(0x13e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x2a56d));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x156)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x13b)]()[h(0x13f)](h(0x155))[h(0x13b)]()[h(0x14e)](a42a)['search'](h(0x155));});function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x13b;let f=c[d];return f;},a42d(a,b);}function a42c(){const l=['1642669hRxlcf','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','actor','\x22\x20not\x20retrieved\x20from\x20','You\x20have\x20taken\x20the\x20','\x22\x20to\x20','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','268500FCjjaF','join','execute','getItem','removeItem','241680GLbxSp','constructor','inventory','name','currentLocation','Item\x20\x22','message','Pick\x20up\x20an\x20item.','(((.+)+)+)+$','apply','take','5VwJBPk','There\x20is\x20no\x20item\x20\x22','314024lvgJLG','Successfully\x20removed\x20\x22','write','logger','addInventory','825720zDyHeS','\x22\x20in\x20this\x20room.','Error\x20during\x20\x27Take\x27\x20command:\x20','\x22\x20from\x20','toLowerCase','43684jyKykT','toString','\x22\x20is\x20too\x20heavy\x20to\x20carry.','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','4434640QNrxks','search','Successfully\x20added\x20\x22'];a42c=function(){return l;};return a42c();}a42a();import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']=a42i(0x157);static ['description']=a42i(0x154);[a42i(0x14a)](a){const j=a42i;return this[j(0x15d)]['write'](j(0x142)+a['join']('\x20')),this[j(0x157)](a);}[a42i(0x157)](a){const k=a42i,b=a[k(0x149)]('\x20')[k(0x163)](),c=this[k(0x143)][k(0x151)];if(!c[k(0x14f)]['hasItem'](b))return this[k(0x15d)]['write'](k(0x152)+b+'\x22\x20not\x20found\x20in\x20'+c[k(0x150)]+'\x20during\x20\x27Take\x27\x20command.'),k(0x159)+b+k(0x160);const d=c['inventory'][k(0x14b)](b);if(!d)return this[k(0x15d)][k(0x15c)](k(0x152)+b+k(0x144)+c['name']+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x159)+b+'\x22\x20in\x20this\x20room.';try{return this['actor'][k(0x15e)](d),this[k(0x15d)][k(0x15c)](k(0x140)+b+k(0x146)+this[k(0x143)]['name']+k(0x13d)),c[k(0x14f)][k(0x14c)](b),this['logger'][k(0x15c)](k(0x15b)+b+k(0x162)+c[k(0x150)]+k(0x147)),k(0x145)+b+'.';}catch(e){return this['logger'][k(0x15c)](k(0x161)+e[k(0x153)]),'The\x20item\x20\x22'+b+k(0x13c);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d
|
|
1
|
+
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0xc5))/0x1*(parseInt(f(0xca))/0x2)+parseInt(f(0xcc))/0x3*(parseInt(f(0xcd))/0x4)+parseInt(f(0xcf))/0x5*(-parseInt(f(0xd2))/0x6)+-parseInt(f(0xc3))/0x7+-parseInt(f(0xd3))/0x8+-parseInt(f(0xd1))/0x9*(parseInt(f(0xd0))/0xa)+-parseInt(f(0xd5))/0xb*(-parseInt(f(0xd4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x7c48e));function a43c(){const k=['toLowerCase','4580tAiLdN','620iBBuIW','109233JHHEDP','5544fswdJv','6324920eojYOE','1371336mzbjhu','275sBquHt','constructor','name','search','unequip','(((.+)+)+)+$','2060926ZeIAwe','toString','1oGgTsC','execute','verb','apply','actor','784776iQzGhC','unqeuip','2185257HuUJvz','4zkpVHt'];a43c=function(){return k;};return a43c();}const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0xc4)]()[h(0xd8)](h(0xda))['toString']()[h(0xd6)](a43a)['search']('(((.+)+)+)+$');});a43a();function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0xc3;let f=c[d];return f;},a43d(a,b);}import{Command}from'./command.js';export class UnequipCommand extends Command{static [a43i(0xc7)]=a43i(0xcb);static ['description']='Unequip\x20an\x20item.';[a43i(0xc6)](a){const j=a43i,b=a['join']('\x20')[j(0xce)](),c=this['actor'][j(0xd9)](b);return this['logger']['write']('UnequipCommand:\x20'+this[j(0xc9)][j(0xd7)]+'\x20unqeuiped\x20'+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44k=a44d;
|
|
1
|
+
const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=parseInt(h(0x1ee))/0x1*(-parseInt(h(0x1f2))/0x2)+-parseInt(h(0x1de))/0x3*(parseInt(h(0x1e3))/0x4)+parseInt(h(0x1f0))/0x5*(parseInt(h(0x1df))/0x6)+-parseInt(h(0x1ea))/0x7+-parseInt(h(0x1e8))/0x8*(-parseInt(h(0x200))/0x9)+parseInt(h(0x1e7))/0xa+-parseInt(h(0x1fb))/0xb*(parseInt(h(0x1f4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xea7e9));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a['toString']()[j(0x1f6)](j(0x208))['toString']()[j(0x1fe)](a44a)[j(0x1f6)](j(0x208));});a44a();import{Door}from'../models/door.js';import{Command}from'./command.js';function a44c(){const n=['write','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','63569NceMtD','length','unlockItemOrSolution','constructor','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','3339mSItLL','exits','isValidDirection','.\x20Result:\x20','logger','has','attemptUnlockExit','unlock','(((.+)+)+)+$','2597331kpJCmc','6243462MgzOzU','execute','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','UnlockCommand:\x20No\x20target\x20specified.','4kQWNUR','getItem','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','inventory','16587490NDZeai','27256NrGNUO','UnlockCommand:\x20','832111stvVRx','There\x27s\x20no\x20door\x20named\x20\x22','actor','toLowerCase','5261IAVFqZ','\x22\x20here.','5uIGReP','hasItem','642ExOmKI','name','684egxnPv','apply','search','Unlock\x20a\x20door.','\x20is\x20attempted\x20to\x20unlock\x20'];a44c=function(){return n;};return a44c();}function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x1de;let f=c[d];return f;},a44d(a,b);}export class UnlockCommand extends Command{static ['verb']=a44k(0x207);static ['description']=a44k(0x1f7);[a44k(0x1e0)](a){const l=a44k;return this[l(0x207)](a);}['unlock'](a){const m=a44k;if(a[m(0x1fc)]===0x0)return this['logger']['error'](m(0x1e2)),m(0x1ff);const b=a[0x0][m(0x1ed)](),c=this[m(0x1ec)]['currentLocation'];if(this[m(0x202)](b)&&c[m(0x201)][m(0x205)](b)){const d=c[m(0x201)]['get'](b);if(d instanceof Door){const e=d[m(0x1fd)]?.[m(0x1ed)]();if(e&&this['actor'][m(0x1e6)][m(0x1f1)](e)){const f=this[m(0x1ec)][m(0x1e6)][m(0x1e4)](e);if(f){const g=c[m(0x206)](b,f[m(0x1f3)]);return this[m(0x204)]['write'](m(0x1e9)+this[m(0x1ec)]['name']+m(0x1f8)+b+m(0x203)+g),g;}}return this[m(0x204)][m(0x1f9)](m(0x1e9)+this['actor']['name']+m(0x1fa)+b+'.'),m(0x1e5);}else return this['logger'][m(0x1f9)](m(0x1e9)+b+m(0x1e1)+c[m(0x1f3)]+'.'),m(0x1eb)+b+m(0x1ef);}else return this[m(0x204)]['write'](m(0x1e9)+b+m(0x1e1)+c['name']+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+m(0x1ef);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45h=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0xdf))/0x1*(parseInt(f(0xe8))/0x2)+parseInt(f(0xed))/0x3*(-parseInt(f(0xfd))/0x4)+-parseInt(f(0xe3))/0x5+parseInt(f(0xe2))/0x6*(parseInt(f(0xf6))/0x7)+-parseInt(f(0xf3))/0x8+parseInt(f(0xe1))/0x9+parseInt(f(0xfe))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xd946d));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 g=a45d;return a45a[g(0xde)]()[g(0xee)]('(((.+)+)+)+$')[g(0xde)]()[g(0xe5)](a45a)[g(0xee)](g(0xea));});function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xdc;let f=c[d];return f;},a45d(a,b);}function a45c(){const k=['(((.+)+)+)+$','\x20attempted\x20to\x20use\x20','\x20to\x20use.','3leGJEz','search','\x20used\x20','hasItem','join','\x20in\x20this\x20way.','10482104PHAplo','You\x20don\x27t\x20have\x20the\x20','actor','7654437xcuwZT','use','\x27s\x20inventory.','You\x20can\x27t\x20use\x20the\x20','execute','name',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','6833972DYDQCa','20313940aKGvRE','verb','write','\x20not\x20retrieved\x20from\x20','\x20doesn\x27t\x20have\x20a\x20use\x20method.','function','toString','1jKlQUf','logger','8802234ohyuFq','6cAiXmq','1901745pQjDty','inventory','constructor','Use\x20an\x20item.','toLowerCase','372318QkRWva','UseCommand:\x20'];a45c=function(){return k;};return a45c();}a45a();import{Command}from'./command.js';export class UseCommand extends Command{static [a45h(0xff)]='use';static ['description']=a45h(0xe6);[a45h(0xfa)](a){const i=a45h;return this[i(0xf7)](a);}[a45h(0xf7)](a){const j=a45h,b=a[j(0xf1)]('\x20')[j(0xe7)]();if(!this[j(0xf5)][j(0xe4)][j(0xf0)](b))return this[j(0xe0)][j(0x100)](j(0xe9)+this[j(0xf5)]['name']+j(0xeb)+b+j(0xfc)),'You\x20don\x27t\x20have\x20the\x20'+b+'\x20to\x20use.';const c=this['actor'][j(0xe4)]['getItem'](b);if(!c)return this['logger'][j(0x100)](j(0xe9)+b+j(0x101)+this[j(0xf5)][j(0xfb)]+j(0xf8)),j(0xf4)+b+j(0xec);if(typeof c[j(0xf7)]===j(0xdd)){const d=c[j(0xf7)]();return this['logger'][j(0x100)](j(0xe9)+this[j(0xf5)][j(0xfb)]+j(0xef)+b+'.'),d;}else return this[j(0xe0)]['write']('UseCommand:\x20'+b+j(0xdc)),j(0xf9)+b+j(0xf2);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a46i=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d=-parseInt(f(0xb9))/0x1*(-parseInt(f(0xbd))/0x2)+-parseInt(f(0xbc))/0x3+parseInt(f(0xb3))/0x4+-parseInt(f(0xb0))/0x5*(parseInt(f(0xaf))/0x6)+-parseInt(f(0xba))/0x7+-parseInt(f(0xb6))/0x8+parseInt(f(0xbe))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xb0a13));function a46c(){const l=['8314740qoBOIi','toString','2100303JldtQP','758oeWmee','13281093BpXWaf','6xZrPeJ','1280745zXlBFt','apply','getAllRegisteredCommands','4553840DckfdU','search','commandMap','7969240fFgCbo','(((.+)+)+)+$','constructor','3297kJqyGo'];a46c=function(){return l;};return a46c();}const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a['toString']()[h(0xb4)](h(0xb7))[h(0xbb)]()[h(0xb8)](a46a)['search'](h(0xb7));});function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0xaf;let f=c[d];return f;},a46d(a,b);}a46a();export class CommandFactory{static [a46i(0xb5)]={};static['registerCommand'](a,b){const j=a46i;this[j(0xb5)][a]=b;}static['createCommand'](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static[a46i(0xb2)](){const k=a46i;return this[k(0xb5)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x118;let f=c[d];return f;},a47d(a,b);}const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x11b))/0x1*(parseInt(f(0x137))/0x2)+parseInt(f(0x13b))/0x3+-parseInt(f(0x130))/0x4+parseInt(f(0x122))/0x5+-parseInt(f(0x13c))/0x6+parseInt(f(0x124))/0x7+-parseInt(f(0x133))/0x8*(parseInt(f(0x12e))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x37d20));function a47c(){const o=['1827810UDacTk','isStartRoom','2696071eIuleH','key','constructor','convertToRoomConfig','inventory','createRoom','toString','type','INSIDE','sword','81UyQMdu','legarmor','931820zOWVTH','createPuzzle','name','768360ufsTdI','apply','search','roomType','892246YdMZAk','description','toUpperCase','book','1102854UuswVC','1430736OiNXEE','puzzle','addItem','content','1REGPiZ','forEach','boots','helmet','rewardItem','items','bodyarmor'];a47c=function(){return o;};return a47c();}const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x12a)]()[h(0x135)]('(((.+)+)+)+$')[h(0x12a)]()[h(0x126)](a47a)[h(0x135)]('(((.+)+)+)+$');});a47a();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{[a47i(0x129)](a){const j=a47i,b=this[j(0x127)](a),c=new Room(b);if(a[j(0x120)]){const d=new Inventory();a[j(0x120)][j(0x11c)](e=>{const k=j;d[k(0x119)](this['createItem'](e));}),c[j(0x128)]=d;}return a[j(0x118)]&&c['setPuzzle'](this[j(0x131)](a['puzzle'])),c;}['createItem'](a){const l=a47i;switch(a[l(0x12b)]){case l(0x125):return new Key(a[l(0x132)],a[l(0x138)]);case l(0x13a):return new Book(a['name'],a[l(0x138)],a[l(0x11a)]);case l(0x12d):return new Sword(a['name'],a[l(0x138)]);case'rifle':return new Rifle(a[l(0x132)],a['description']);case l(0x11e):return new Helmet(a['name'],a[l(0x138)]);case l(0x121):return new BodyArmor(a[l(0x132)],a[l(0x138)]);case l(0x12f):return new LegArmor(a[l(0x132)],a[l(0x138)]);case l(0x11d):return new Boots(a['name'],a[l(0x138)]);case'gloves':return new Gloves(a[l(0x132)],a[l(0x138)]);case'gauntlets':return new Gauntlets(a['name'],a[l(0x138)]);default:return new BasicItem(a[l(0x132)],a[l(0x138)]);}}[a47i(0x131)](a){const m=a47i,b=this['createItem'](a[m(0x11f)]);return new Puzzle({...a,'rewardItem':b});}[a47i(0x127)](a){const n=a47i,b=a['roomType']&&RoomType[a['roomType']['toUpperCase']()]?RoomType[a[n(0x136)][n(0x139)]()]:RoomType[n(0x12c)];return{'name':a[n(0x132)],'description':a[n(0x138)],'isStartRoom':a[n(0x123)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=parseInt(h(0x1c8))/0x1+-parseInt(h(0x1b2))/0x2*(parseInt(h(0x1a3))/0x3)+-parseInt(h(0x1d2))/0x4*(parseInt(h(0x1aa))/0x5)+-parseInt(h(0x1a4))/0x6*(parseInt(h(0x1cd))/0x7)+parseInt(h(0x1b8))/0x8*(parseInt(h(0x1c0))/0x9)+-parseInt(h(0x19f))/0xa*(parseInt(h(0x1d4))/0xb)+parseInt(h(0x1b6))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x6066e));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a[j(0x1b4)]()[j(0x1af)]('(((.+)+)+)+$')['toString']()[j(0x1b5)](a48a)[j(0x1af)]('(((.+)+)+)+$');});a48a();function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x19f;let f=c[d];return f;},a48d(a,b);}import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a48k(0x1a8)];['scene'];['player'];['currentRoom'];[a48k(0x1b1)];constructor(a,b){const l=a48k;this['player']=a,this[l(0x1bf)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x1bf)][l(0x1d3)](),this['player'][l(0x1be)]=this[l(0x1cc)](),this[l(0x1ca)]();}[a48k(0x1ca)](){const m=a48k;CommandFactory[m(0x1a5)](m(0x1bc),LookCommand),CommandFactory[m(0x1a5)]('go',GoCommand),CommandFactory[m(0x1a5)](m(0x1c6),TakeCommand),CommandFactory[m(0x1a5)]('use',UseCommand),CommandFactory[m(0x1a5)](m(0x1ce),EquipCommand),CommandFactory[m(0x1a5)](m(0x1c7),UnequipCommand),CommandFactory[m(0x1a5)]('solve',SolveCommand),CommandFactory[m(0x1a5)](m(0x1ae),DropCommand),CommandFactory['registerCommand'](m(0x1a9),UnlockCommand),CommandFactory[m(0x1a5)](m(0x1c1),LockCommand),CommandFactory[m(0x1a5)](m(0x1af),SearchCommand),CommandFactory[m(0x1a5)](m(0x1a2),SayCommand);}['determineStartRoom'](){const n=a48k;return this[n(0x1bf)][n(0x1cc)]();}[a48k(0x1b7)](){const o=a48k;return o(0x1a6)+this[o(0x1cf)][o(0x1c3)];}static[a48k(0x1d0)](a,b){const p=a48k;return!Game[p(0x1a8)]&&(Game[p(0x1a8)]=new Game(a,b)),Game[p(0x1a8)];}[a48k(0x1d5)](a){const q=a48k,b=a[q(0x1ab)]()[q(0x1ad)]('\x20'),c=b[0x0][q(0x1c4)](),d=b[q(0x1a0)](0x1);if(c===q(0x1c9))return null;if(c==='maka')return q(0x1a1);if(c===q(0x1b9))return this[q(0x1cb)]();if(c===q(0x1a7))return'';const e={'actor':this[q(0x1cf)],'rooms':this[q(0x1bf)][q(0x1ba)](),'scene':this[q(0x1bf)]},f=CommandFactory['createCommand'](c,e);if(f){const g=f[q(0x1bb)](d);return g;}return q(0x1c5)+c+'\x22.';}[a48k(0x1cb)](){const r=a48k,a=CommandFactory[r(0x1b0)]();let b=r(0x1ac);for(const c in a){if(a[r(0x1bd)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x1b3)]()+'\x0a';}}return b+=r(0x1c2),b+='-\x20quit:\x20Exit\x20the\x20game.\x0a',b;}}function a48c(){const s=['equip','player','getInstance','apply','8yZzsCA','initialize','73799kfIHqg','handleInput','590GfpRLe','slice','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','say','3YeyJxx','492ZMmHEv','registerCommand','Welcome,\x20','clear','instance','unlock','1192090eoZSnL','trim','Available\x20Commands:\x0a','split','drop','search','getAllRegisteredCommands','rooms','1119652wqKTdr','getDescription','toString','constructor','13277604yVkCGT','getWelcomeMessage','8jtmTuS','help','getRooms','execute','look','hasOwnProperty','currentLocation','scene','3037041LDIFeW','lock','-\x20clear:\x20Clear\x20the\x20screen.\x0a','name','toLowerCase','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','take','unequip','429605NXtMyG','quit','registerCommands','getHelpMessage','determineStartRoom','3941xAfiPV'];a48c=function(){return s;};return a48c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x1d6))/0x1*(parseInt(f(0x1db))/0x2)+parseInt(f(0x1d9))/0x3*(-parseInt(f(0x1de))/0x4)+-parseInt(f(0x1e0))/0x5+parseInt(f(0x1d8))/0x6+parseInt(f(0x1df))/0x7+-parseInt(f(0x1dc))/0x8*(-parseInt(f(0x1e1))/0x9)+parseInt(f(0x1dd))/0xa*(-parseInt(f(0x1d4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x25787));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a['toString']()[h(0x1d7)](h(0x1d5))['toString']()['constructor'](a49a)[h(0x1d7)](h(0x1d5));});function a49c(){var i=['11KhpdQA','(((.+)+)+)+$','173657NjLUmp','search','670452dNMIGT','627921upCava','apply','2tbCmBO','208Nzrxrd','2871620ELizBH','4PNabvX','1800183nexdZr','595010UMJIAo','78363SICGRy'];a49c=function(){return i;};return a49c();}a49a();export*from'./door.js';export*from'./inventory.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1d4;var f=c[d];return f;},a49d(a,b);}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
|
-
|
|
1
|
+
var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=-parseInt(f(0x136))/0x1*(-parseInt(f(0x135))/0x2)+parseInt(f(0x12a))/0x3+parseInt(f(0x142))/0x4+parseInt(f(0x145))/0x5*(parseInt(f(0x127))/0x6)+-parseInt(f(0x146))/0x7*(-parseInt(f(0x13a))/0x8)+parseInt(f(0x133))/0x9*(-parseInt(f(0x137))/0xa)+-parseInt(f(0x126))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x84d48));var a50b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a50d;if(c){var e=c[g(0x140)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){var h=a50d;return a50a[h(0x134)]()[h(0x128)](h(0x138))[h(0x134)]()[h(0x12d)](a50a)['search'](h(0x138));});a50a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x125;var f=c[d];return f;},a50d(a,b);}function a50c(){var n=['4KSldXA','336318sexqxe','4114840mSfirW','(((.+)+)+)+$','\x20and\x20','4208mjWLXn','name','checkIfLocked','roomA','Door\x20unlocked:\x20','getOtherSide','apply','Failed\x20to\x20unlock\x20door:\x20','4134164lJXesL','checkIfLockable','unlockItemOrSolution','5044855lrXKAo','12775MMOENe','getInstance','Door\x20created\x20between\x20','30003963bqEuNa','6fAmeTQ','search','write','24273GTmoWF','.\x20Is\x20Locked:\x20','isLockable','constructor','logger','To\x20','roomB','isLocked','.\x20Used:\x20','9AYabxo','toString'];a50c=function(){return n;};return a50c();}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a50i(0x13d)];[a50i(0x130)];[a50i(0x131)];[a50i(0x144)];[a50i(0x13b)];[a50i(0x12e)];[a50i(0x12c)];constructor(a){var j=a50i;super(),this[j(0x13d)]=a['roomA'],this[j(0x130)]=a[j(0x130)],this[j(0x131)]=a[j(0x131)]||![],this['unlockItemOrSolution']=a[j(0x144)],this['name']=a[j(0x13b)]?capitalCase(a[j(0x13b)]):j(0x12f)+a[j(0x130)][j(0x13b)],this[j(0x12e)]=Logger[j(0x147)](),this['isLockable']=!!a['unlockItemOrSolution'],this[j(0x12e)][j(0x129)](j(0x125)+this[j(0x13d)][j(0x13b)]+j(0x139)+this['roomB'][j(0x13b)]+j(0x12b)+this[j(0x131)]);}[a50i(0x13f)](a){var k=a50i;return this[k(0x13d)]===a?this[k(0x130)]:this[k(0x13d)];}['attemptUnlock'](a){var l=a50i;if(this[l(0x131)]&&this[l(0x144)]&&this['unlockItemOrSolution']===a)return this[l(0x131)]=![],this[l(0x12e)][l(0x129)](l(0x13e)+this[l(0x13b)]+l(0x132)+a),!![];return this['logger'][l(0x129)](l(0x141)+this[l(0x13b)]+l(0x132)+a),![];}[a50i(0x13c)](){var m=a50i;return this[m(0x131)];}[a50i(0x143)](){return this['isLockable'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d
|
|
1
|
+
function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0xdb;let f=c[d];return f;},a51d(a,b);}const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0xfc))/0x1+-parseInt(f(0x104))/0x2*(-parseInt(f(0x105))/0x3)+-parseInt(f(0xe1))/0x4*(-parseInt(f(0xfb))/0x5)+parseInt(f(0xe2))/0x6+-parseInt(f(0xf2))/0x7+parseInt(f(0xf4))/0x8+parseInt(f(0xe4))/0x9*(-parseInt(f(0xe0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xd85a3));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a['toString']()[h(0xf6)](h(0xec))[h(0x101)]()[h(0x103)](a51a)[h(0xf6)](h(0xec));});a51a();import{capitalCase}from'change-case';function a51c(){const r=['81855qxgViv','Checked\x20for\x20item:\x20','\x20in\x20','hasItem','listItems','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','\x20from\x20inventory.','\x20to\x20inventory.','(((.+)+)+)+$','set','map','.\x20Item\x20not\x20found.','getItem','removeItem','6800850KQigks','toLowerCase','4895984VkoXwf','apply','search','logger','.\x20Exists:\x20','join','weight','5IeIlfH','756753Hxyouw','Listed\x20items\x20in\x20inventory:\x20','getWeight','values','keys','toString','Removed\x20item:\x20','constructor','1888YhVtvn','5250ecNwam','delete','items','write','has','Failed\x20to\x20remove\x20item:\x20','1430Cpgshp','2972472lAfTGx','5447706ILnqxh','name'];a51c=function(){return r;};return a51c();}import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a51i(0xdc)];[a51i(0xf7)];constructor(){const j=a51i;super(),this[j(0xdc)]=new Map(),this['logger']=Logger['getInstance']();}['addItem'](a){const k=a51i;this[k(0xdc)][k(0xed)](a['name'][k(0xf3)](),a),this[k(0xf7)][k(0xdd)]('Added\x20item:\x20'+a[k(0xe3)]+k(0xeb));}[a51i(0xf1)](a){const l=a51i,b=this[l(0xf0)](a);if(b)return this[l(0xdc)][l(0xdb)](a[l(0xf3)]()),this[l(0xf7)][l(0xdd)](l(0x102)+a+l(0xea)),b;return this[l(0xf7)][l(0xdd)](l(0xdf)+a+l(0xef)),null;}[a51i(0xe7)](a){const m=a51i,b=this[m(0xdc)][m(0xde)](a[m(0xf3)]()),c=[...this[m(0xdc)][m(0x100)]()];return this[m(0xf7)][m(0xdd)](m(0xe5)+a+m(0xe6)+c[m(0xf9)](',\x20')+m(0xf8)+b+'.'),b;}[a51i(0xf0)](a){const n=a51i,b=this[n(0xdc)]['get'](a[n(0xf3)]())||null;return b?this['logger'][n(0xdd)]('Retrieved\x20details\x20for\x20item:\x20'+a+'.'):this[n(0xf7)][n(0xdd)](n(0xe9)+a+n(0xef)),b;}[a51i(0xe8)](){const o=a51i,a=[...this[o(0xdc)][o(0x100)]()],b=a[o(0xee)](c=>capitalCase(c));return this[o(0xf7)]['write'](o(0xfd)+b['join'](',\x20')+'.'),a;}[a51i(0xfe)](){const p=a51i;let a=0x0;for(const b of this[p(0xdc)]['values']()){a+=b[p(0xfa)];}return a;}['getAllItems'](){const q=a51i;return[...this['items'][q(0xff)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a52i=a52d;function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xb8;var f=c[d];return f;},a52d(a,b);}function a52c(){var l=['size','26504GwlkUe','category','1289700HQpeKo','apply','texture','color','description','shape','rating','.\x20Nothing\x20special\x20happens.','search','name','(((.+)+)+)+$','222424FIZtXL','2944170mZTUxQ','343GlnbTC','167108XAbQSe','You\x20use\x20the\x20','uuid','9VFDXyO','4ptKZAI','696875hsLBlY','9078660YinuZT','use','toString','weight'];a52c=function(){return l;};return a52c();}(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0xbe))/0x1*(parseInt(f(0xd2))/0x2)+parseInt(f(0xbd))/0x3*(parseInt(f(0xba))/0x4)+-parseInt(f(0xbf))/0x5+parseInt(f(0xc7))/0x6+-parseInt(f(0xb9))/0x7*(-parseInt(f(0xc5))/0x8)+parseInt(f(0xb8))/0x9+-parseInt(f(0xc0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x3781b));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0xc2)]()[h(0xcf)]('(((.+)+)+)+$')[h(0xc2)]()['constructor'](a52a)[h(0xcf)](h(0xd1));});a52a();import{v4 as a52e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a52i(0xbc)];[a52i(0xd0)];['description'];[a52i(0xc4)];[a52i(0xc6)];[a52i(0xcc)];[a52i(0xca)];['texture'];[a52i(0xcd)];[a52i(0xc3)];constructor(a){var j=a52i;super(),this[j(0xd0)]=a[j(0xd0)],this[j(0xcb)]=a['description'],this[j(0xc4)]=a[j(0xc4)],this[j(0xc6)]=a[j(0xc6)],this[j(0xcc)]=a[j(0xcc)],this[j(0xca)]=a[j(0xca)],this[j(0xc9)]=a[j(0xc9)],this[j(0xcd)]=a['rating'],this[j(0xc3)]=a[j(0xc3)],this[j(0xbc)]=a52e();}[a52i(0xc1)](){var k=a52i;return k(0xbb)+this['name']+k(0xce);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a53c(){const n=['3079196MZJSGk','scene','238142MasHyu','length','4080792BAIcAu','_name','moveTo','613116cxzarb','execute','6OgxwMT','5fYpnaD','autonomousMove','7180794HHEfMs','name','search','5822817GbCEfG','toString','floor','10amvHEr','random','_dialogue','76168UfZaEL','(((.+)+)+)+$','rooms'];a53c=function(){return n;};return a53c();}const a53h=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0x18e))/0x1+parseInt(f(0x189))/0x2+-parseInt(f(0x193))/0x3+-parseInt(f(0x18c))/0x4*(parseInt(f(0x196))/0x5)+parseInt(f(0x195))/0x6*(parseInt(f(0x19b))/0x7)+-parseInt(f(0x190))/0x8+-parseInt(f(0x198))/0x9*(-parseInt(f(0x19e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x66f15));const a53b=(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;};}()),a53a=a53b(this,function(){const g=a53d;return a53a[g(0x19c)]()[g(0x19a)](g(0x18a))[g(0x19c)]()['constructor'](a53a)[g(0x19a)](g(0x18a));});a53a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x187;let f=c[d];return f;},a53d(a,b);}export class NPC extends Player{[a53h(0x191)];['_dialogue'];[a53h(0x18b)];['scene'];constructor(a,b,c,d){const i=a53h;super(d),this[i(0x191)]=a,this[i(0x188)]=b,this['rooms']=c;}get[a53h(0x199)](){const j=a53h;return this[j(0x191)];}['speak'](){const k=a53h;return this[k(0x188)][Math[k(0x19d)](Math[k(0x187)]()*this['_dialogue']['length'])];}[a53h(0x197)](a){const l=a53h,b=a[Math[l(0x19d)](Math['random']()*a[l(0x18f)])];this['moveTo'](b['name']);}[a53h(0x192)](a){const m=a53h,b={'actor':this,'rooms':this[m(0x18b)],'scene':this[m(0x18d)]},c=new GoCommand(b);c[m(0x194)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54i=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d=parseInt(f(0xd8))/0x1+parseInt(f(0x10b))/0x2*(parseInt(f(0xff))/0x3)+parseInt(f(0x107))/0x4+parseInt(f(0xcb))/0x5*(-parseInt(f(0x119))/0x6)+parseInt(f(0xef))/0x7+-parseInt(f(0xd5))/0x8+-parseInt(f(0xcf))/0x9*(parseInt(f(0xee))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x811cb));function a54c(){const B=['ArmArmor','maxCarryingWeight','enterRoom','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','shield','apply','playerName','_currentLocation','getInstance','12csVOrj','arm\x20armor','removeItem','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','logger','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','Shield','startLocation','leaveRoom','error','getWeight','Invalid\x20category\x20or\x20slot:\x20','leftHand','\x20to\x20player\x27s\x20inventory.','LegArmor','name','1882885ODSqlh','removeInventory','Max\x20carrying\x20weight\x20must\x20be\x20positive.','constructor','3354102UtwbdW','hear','Helmet','You\x20unequipped\x20','equip','boots','7972408oizXGJ','currentLocation','You\x20can\x27t\x20equip\x20','739087REYIdX','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','gloves','_equipment','weight','Nexus','Hat','\x20is\x20now\x20listening\x20in\x20room\x20','hasItem','initialEquipment','.\x20You\x20must\x20unequip\x20it\x20first.','feet','BodyArmor','body\x20armor','toString','canEquip','\x20says:\x20\x22','weapon','category','off','toLowerCase','legarmor','10NtXzmd','4329717BjOMPz','Gloves','includes','write','determineEquipmentSlot','inventory','bind','helmet','You\x20don\x27t\x20have\x20','head','Added\x20','inventoryItems','_playerName','unequipBySlot','speak','Boots','74691DkPfSe','rightHand','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','equipment','_inventory','Weapon','\x20is\x20no\x20longer\x20listeng\x20in\x20','legs','1489676xUJnGZ','You\x20equipped\x20','A\x20featureless\x20room','torso','74nszdqY','search','addInventory','\x20in\x20your\x20inventory.','_maxCarryingWeight'];a54c=function(){return B;};return a54c();}const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a54d;if(c){const e=c[g(0x115)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const h=a54d;return a54a[h(0xe6)]()[h(0x10c)]('(((.+)+)+)+$')['toString']()[h(0xce)](a54a)[h(0x10c)]('(((.+)+)+)+$');});a54a();import{camelCase}from'change-case';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0xc9;let f=c[d];return f;},a54d(a,b);}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{['_playerName'];[a54i(0x117)];['_inventory'];[a54i(0xdb)];[a54i(0x10f)]=0x32;[a54i(0x11d)];constructor(a){const j=a54i;super(),this[j(0xfb)]=a[j(0x116)],this[j(0x117)]=a[j(0x120)]||new Room({'name':j(0xdd),'description':j(0x109)}),this[j(0x103)]=new Inventory(),this[j(0x11d)]=Logger[j(0x118)]();if(a?.[j(0xfa)])for(const b of a['inventoryItems']){this['_inventory']['addItem'](b);}this[j(0xdb)]=a?.[j(0xe1)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54i(0xca)](){return this['_playerName'];}get['currentLocation'](){const k=a54i;return this[k(0x117)];}set[a54i(0xd6)](a){const l=a54i;this['_currentLocation']!==a&&(this[l(0x121)](),this[l(0x112)](a)),this[l(0x117)]=a;}get[a54i(0xf4)](){const m=a54i;return this[m(0x103)];}get[a54i(0x102)](){return this['_equipment'];}set[a54i(0x102)](a){const n=a54i;this[n(0xdb)]=a;}get[a54i(0x111)](){const o=a54i;return this[o(0x10f)];}set[a54i(0x111)](a){const p=a54i;a>0x0?this[p(0x10f)]=a:console[p(0x122)](p(0xcd));}get['currentWeight'](){const q=a54i;let a=this[q(0x103)][q(0x123)]();for(const b in this['_equipment']){const c=this[q(0xdb)][b];c&&(a+=c[q(0xdc)]);}return a;}[a54i(0x10d)](a){const r=a54i;if(this['currentWeight']+a[r(0xdc)]>this[r(0x111)]){this[r(0x11d)][r(0xf2)](r(0x101));throw new Error(r(0x113));}this['_inventory']['addItem'](a),this[r(0x11d)][r(0xf2)](r(0xf9)+a[r(0xca)]+r(0x126));}[a54i(0xcc)](a){const s=a54i;if(this['_inventory'][s(0x11b)](a[s(0xca)]))return this[s(0x11d)][s(0xf2)]('Removed\x20'+a[s(0xca)]+'\x20from\x20player\x27s\x20inventory.'),!![];return this[s(0x11d)][s(0xf2)]('Failed\x20to\x20remove\x20'+a['name']+'\x20from\x20player\x27s\x20inventory.'),![];}[a54i(0xd3)](a){const t=a54i;if(!this[t(0x103)][t(0xe0)](a[t(0xca)]))return t(0xf7)+a[t(0xca)]+t(0x10e);if(!this['canEquip'](a))return t(0xd7)+a['name']+'.';const b=this['determineEquipmentSlot'](a[t(0xea)]);if(!b)return a[t(0xca)]+t(0xd9);if(this[t(0x102)][b])return t(0x11c)+b+t(0xe2);return this[t(0x102)][b]=a,this[t(0xcc)](a),t(0x108)+a['name']+'.';}['unequip'](a){const u=a54i;let b=a;if(!this[u(0x102)][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return u(0x124)+a+'.';}return this[u(0xfc)](b);}[a54i(0xf3)](a){const v=a54i;switch(a[v(0xec)]()){case Category[v(0x104)][v(0xec)]():return v(0x100);case Category[v(0x11f)][v(0xec)]():return v(0x125);case Category[v(0xf0)][v(0xec)]():return'gloves';case Category[v(0xd1)][v(0xec)]():case Category[v(0xde)][v(0xec)]():return v(0xf8);case Category[v(0xfe)][v(0xec)]():return v(0xe3);case Category[v(0xc9)][v(0xec)]():return v(0x106);case Category[v(0x110)][v(0xec)]():return'arms';case Category[v(0xe4)][v(0xec)]():return v(0x10a);case v(0xe9):return v(0x100);case v(0x114):return'leftHand';case'gloves':return v(0xda);case v(0xf6):case'hat':return v(0xf8);case v(0xd4):return'feet';case'leg\x20armor':case v(0xed):return v(0x106);case v(0x11a):case'armarmor':return'arms';case v(0xe5):case'bodyarmor':case v(0x10a):return v(0x10a);default:return null;}}[a54i(0xe7)](a){const w=a54i;return Object['values'](Category)[w(0xf1)](a['category']);}[a54i(0xfc)](a){const x=a54i,b=this[x(0x102)][a];if(!b)return x(0x11e)+a+'\x20slot.';return this[x(0x10d)](b),this[x(0x102)][a]=null,x(0xd2)+b[x(0xca)]+'.';}['hear'](a,b){const y=a54i;a!==this&&this['logger']['log'](a[y(0xca)]+y(0xe8)+b+'\x22');}[a54i(0x112)](a){const z=a54i;this['_currentLocation']=a,a['on'](z(0xfd),this[z(0xd0)]['bind'](this)),this['logger'][z(0xf2)](this[z(0xca)]+z(0xdf)+a[z(0xca)]);}[a54i(0x121)](){const A=a54i;this[A(0x117)]&&(this['_currentLocation'][A(0xeb)]('speak',this[A(0xd0)][A(0xf5)](this)),this[A(0x11d)][A(0xf2)](this['name']+A(0x105)+this[A(0x117)][A(0xca)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a55h=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x158))/0x1+-parseInt(f(0x148))/0x2+parseInt(f(0x156))/0x3*(parseInt(f(0x15a))/0x4)+-parseInt(f(0x149))/0x5+parseInt(f(0x15e))/0x6+-parseInt(f(0x147))/0x7+-parseInt(f(0x155))/0x8*(-parseInt(f(0x15d))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x4b0d0));function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x143;var f=c[d];return f;},a55d(a,b);}var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var g=a55d;return a55a['toString']()[g(0x14d)]('(((.+)+)+)+$')[g(0x157)]()[g(0x153)](a55a)['search'](g(0x15b));});a55a();function a55c(){var l=['You\x20have\x20already\x20solved\x20this\x20puzzle.','45QtNYvl','1098192MlrKkl','riddle','You\x20solved\x20the\x20puzzle!','successMessage','hasRequiredItem','failureMessage','rewardItem','2838836FpdVqb','790064YkZxyA','1740115Pjohul','solved','write','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','search','solve','requiredItem','hasItem','requiredPhrase','matchesRequiredPhrase','constructor','Puzzle:\x20Correct\x20solution\x20provided.','2214224fsuXPh','3BamEVO','toString','250950CgmibI','logger','560156JHcuib','(((.+)+)+)+$'];a55c=function(){return l;};return a55c();}import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a55h(0x159)]=Logger['getInstance']();['solved']=![];[a55h(0x14f)];[a55h(0x151)];[a55h(0x15f)];[a55h(0x146)];['successMessage'];['failureMessage'];constructor(a){var i=a55h;super(),this['requiredItem']=a[i(0x14f)],this[i(0x151)]=a[i(0x151)],this['riddle']=a['riddle'],this[i(0x146)]=a[i(0x146)],this['successMessage']=a[i(0x143)]||i(0x160),this[i(0x145)]=a[i(0x145)]||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}[a55h(0x144)](a){var j=a55h;if(this[j(0x14f)])return a[j(0x150)](this[j(0x14f)]);return![];}[a55h(0x152)](a){return this['requiredPhrase']===a;}[a55h(0x14e)](a,b){var k=a55h;if(this[k(0x14a)])return this[k(0x159)][k(0x14b)](k(0x14c)),{'success':![],'message':k(0x15c)};return this['hasRequiredItem'](b)||this[k(0x152)](a)?(this[k(0x14a)]=!![],this['logger'][k(0x14b)](k(0x154)),{'success':!![],'message':this[k(0x143)]}):(this[k(0x159)][k(0x14b)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[k(0x145)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d
|
|
1
|
+
const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=-parseInt(f(0xab))/0x1*(parseInt(f(0xac))/0x2)+parseInt(f(0xc0))/0x3+-parseInt(f(0xdd))/0x4*(-parseInt(f(0xd9))/0x5)+-parseInt(f(0xd3))/0x6*(-parseInt(f(0xca))/0x7)+parseInt(f(0xbb))/0x8*(-parseInt(f(0xa7))/0x9)+parseInt(f(0xbc))/0xa+parseInt(f(0xa6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x2c33a));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a[h(0xaf)]()['search'](h(0xb3))['toString']()[h(0xd5)](a56a)[h(0xa4)]('(((.+)+)+)+$');});a56a();import{Logger}from'../utilities/logger.js';function a56c(){const u=['say','isExitLocked','name','Checking\x20if\x20exit\x20in\x20direction\x20','2536064ntipkF','1246000TKMusL','getOppositeDirection','logger','get','944712HkOBvN','getInstance','No\x20locked\x20exit\x20found\x20in\x20direction\x20','south','Invalid\x20direction:\x20','east','Puzzle\x20set\x20for\x20room\x20','roomType','Fetching\x20exit\x20in\x20direction:\x20','\x20remains\x20locked.','7XrQmXR','down','inventory','removeItem','SOUTH','INSIDE','.\x20Success:\x20','hasItem','roomA','134406TukoLV','addExit','constructor','EAST','addItem','findExistingDoor','155405wvwfPg','WEST','attemptUnlockExit','description','16toyoEC','puzzle','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','apply','exits','DOWN','isStartRoom','The\x20','search','set','309518JFDHHx','9WAguop','Item\x20added\x20to\x20room\x20','emit','Item\x20removed\x20from\x20room\x20','1087UXsKhO','214usFmDo','write','roomB','toString','getExit','speak','\x20is\x20locked.\x20Result:\x20','(((.+)+)+)+$','checkIfLocked','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','Room\x20created:\x20'];a56c=function(){return u;};return a56c();}import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0xa0;let f=c[d];return f;},a56d(a,b);}import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a56i(0xbe)]=Logger[a56i(0xc1)]();['name'];[a56i(0xdc)];[a56i(0xa0)]=new Map();[a56i(0xc7)];[a56i(0xa2)];['inventory']=new Inventory();constructor(a){const j=a56i;super(),this[j(0xb9)]=a[j(0xb9)],this[j(0xdc)]=a['description'],this[j(0xc7)]=a[j(0xc7)]||RoomType[j(0xcf)],a[j(0xa0)]&&(this['exits']=a[j(0xa0)]||new Map()),a['inventory']&&(this['inventory']=a[j(0xcc)]),a[j(0xde)]&&(this[j(0xde)]=a[j(0xde)]),this['isStartRoom']=a[j(0xa2)]||![],this[j(0xbe)][j(0xad)](j(0xb6)+this[j(0xb9)]);}[a56i(0xb7)](a,b){const k=a56i;this[k(0xa9)](k(0xb1),a,b);}[a56i(0xd4)](a,b,c){const l=a56i;let d=this[l(0xd8)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0xa0)][l(0xa5)](a,d),b[l(0xa0)][l(0xa5)](this[l(0xbd)](a),d);}[a56i(0xdb)](a,b){const m=a56i,c=this[m(0xa0)][m(0xbf)](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[m(0xbe)][m(0xad)](m(0xb5)+a+m(0xd0)+d),d?m(0xa3)+c['name']+'\x20unlocked!':m(0xa3)+c[m(0xb9)]+m(0xc9);}return this[m(0xbe)][m(0xad)](m(0xc2)+a),m(0xdf);}[a56i(0xb0)](a){const n=a56i;return this[n(0xbe)][n(0xad)](n(0xc8)+a),this[n(0xa0)][n(0xbf)](a);}[a56i(0xb8)](a){const o=a56i,b=this[o(0xa0)][o(0xbf)](a),c=b instanceof Door&&b[o(0xb4)]();return this[o(0xbe)][o(0xad)](o(0xba)+a+o(0xb2)+c),c;}[a56i(0xd7)](a){const p=a56i;this[p(0xcc)][p(0xd7)](a),this[p(0xbe)][p(0xad)](p(0xa8)+this[p(0xb9)]+':\x20'+a[p(0xb9)]);}[a56i(0xcd)](a){const q=a56i;this[q(0xcc)][q(0xd1)](a[q(0xb9)])?(this['inventory'][q(0xcd)](a[q(0xb9)]),this[q(0xbe)][q(0xad)](q(0xaa)+this[q(0xb9)]+':\x20'+a[q(0xb9)])):this['logger'][q(0xad)]('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this[q(0xb9)]+':\x20'+a[q(0xb9)]);}['setPuzzle'](a){const r=a56i;this[r(0xde)]=a,this['logger'][r(0xad)](r(0xc6)+this[r(0xb9)]+':\x20'+a['riddle']);}['getOppositeDirection'](a){const s=a56i;switch(a){case'north':return Direction[s(0xce)];case s(0xc3):return Direction['NORTH'];case s(0xc5):return Direction[s(0xda)];case'west':return Direction[s(0xd6)];case'up':return Direction[s(0xa1)];case s(0xcb):return Direction['UP'];default:throw new Error(s(0xc4)+a);}}['findExistingDoor'](a){const t=a56i;for(const b of this[t(0xa0)]['values']()){if(b instanceof Door){if(b[t(0xd2)]===this&&b[t(0xae)]===a||b[t(0xae)]===this&&b[t(0xd2)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a57c(){const E=['logger','direction','roomConfiguration','has','write','280KdSlqS','3793096tDNSra','\x20already\x20exists\x20in\x20the\x20scene.','addItemToRoom','addExit','getRooms','name','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','determineStartRoom','join','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','removeRoom','values','apply','length','No\x20actor\x20with\x20name\x20','getPlayer','1555254nDeTTz','.\x20Room\x20','delete','224297iNHZyu','keys','targetRoom','Scene\x20initialized\x20with\x20rooms:\x20','1293593bbAHmB','set','actors','push','connectRooms','player','Added\x20room\x20to\x20scene:\x20','roomFactory','toUpperCase','characterLocations','Removed\x20room\x20from\x20scene:\x20','Actor\x20with\x20name\x20','exits','createExitsFromConfig','createRoom','removeActor','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','\x22\x20does\x20not\x20exist.','currentLocation','8700804TUXXZi','729214pgFeKL','toString','Failed\x20to\x20add\x20puzzle.\x20Room\x20','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','Room\x20\x22','addItem','addPuzzleToRoom','setCharacterLocation','30235ZrOJdU','getActor','from','generateRoomsFromConfig','rooms','get','addActor','initialize','\x20not\x20found\x20in\x20scene.','search','3AsFKYy','getCharacterLocation','\x20found\x20in\x20the\x20scene.','hasOwnProperty','(((.+)+)+)+$'];a57c=function(){return E;};return a57c();}const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=-parseInt(i(0x1c6))/0x1+-parseInt(i(0x195))/0x2*(parseInt(i(0x1a8))/0x3)+-parseInt(i(0x1b2))/0x4*(-parseInt(i(0x19e))/0x5)+-parseInt(i(0x1c3))/0x6+parseInt(i(0x1ca))/0x7+-parseInt(i(0x1b3))/0x8+parseInt(i(0x194))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x3dab3));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0x1bf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0x196)]()[k(0x1a7)]('(((.+)+)+)+$')[k(0x196)]()['constructor'](a57a)[k(0x1a7)](k(0x1ac));});function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x18b;let f=c[d];return f;},a57d(a,b);}a57a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a57l(0x1a2)];[a57l(0x1cf)];[a57l(0x1ad)];[a57l(0x1cc)];['characterLocations']=new Map();[a57l(0x1d1)];constructor(a){const m=a57l;super(),this[m(0x1d1)]=new RoomFactory(),this[m(0x1cf)]=a['player'],this[m(0x1a2)]=this[m(0x1a1)](a[m(0x1af)]),this['logger']=Logger['getInstance'](),this[m(0x1cc)]=new Map(),this[m(0x18e)](a[m(0x1af)]),this[m(0x1ad)]['write'](m(0x1c9)+Object[m(0x1c7)](this[m(0x1a2)])[m(0x1bb)](',\x20'));}[a57l(0x1a5)](){const n=a57l;this[n(0x1cf)][n(0x193)]=this['determineStartRoom']();}[a57l(0x1a1)](a){const o=a57l;if(!this[o(0x1d1)])throw new Error(o(0x1bc));const b={};for(const c of a){const d=this[o(0x1d1)][o(0x18f)](c);b[c[o(0x1b8)]]=d;}return b;}[a57l(0x18e)](a){const p=a57l;for(const b of a){const c=this['rooms'][b[p(0x1b8)]];if(b['exits'])for(const d of b[p(0x18d)]){const e=d[p(0x1ae)][p(0x1d2)](),f=d[p(0x1c8)],g=d['keyRequired'],h=this['rooms'][f];h&&c[p(0x1b6)](Direction[e],h,g);}}}[a57l(0x1a4)](a){const q=a57l;if(this[q(0x1cc)][q(0x1b0)](a[q(0x1b8)]))throw new Error(q(0x18c)+a[q(0x1b8)]+q(0x1b4));this[q(0x1cc)]['set'](a[q(0x1b8)],a);}[a57l(0x190)](a){const r=a57l;if(!this[r(0x1cc)][r(0x1b0)](a))throw new Error(r(0x1c1)+a+r(0x1aa));this[r(0x1cc)][r(0x1c5)](a);}[a57l(0x19f)](a){const s=a57l;return this[s(0x1cc)][s(0x1a3)](a);}get['allActors'](){const t=a57l;return Array[t(0x1a0)](this[t(0x1cc)][t(0x1be)]());}['addRoom'](a){const u=a57l;this[u(0x1a2)][a[u(0x1b8)]]=a,this[u(0x1ad)][u(0x1b1)](u(0x1d0)+a[u(0x1b8)]);}[a57l(0x1bd)](a){const v=a57l;return this[v(0x1a2)][a]?(delete this[v(0x1a2)][a],this[v(0x1ad)]['write'](v(0x18b)+a),!![]):(this[v(0x1ad)][v(0x1b1)](v(0x199)+a),![]);}[a57l(0x1b5)](a,b){const w=a57l,c=this[w(0x1a2)][b];c?(c[w(0x19b)](a),this[w(0x1ad)]['write']('Added\x20item\x20'+a[w(0x1b8)]+'\x20to\x20room\x20'+c[w(0x1b8)])):this[w(0x1ad)][w(0x1b1)]('Failed\x20to\x20add\x20item\x20'+a['name']+w(0x1c4)+b+w(0x1a6));}[a57l(0x19c)](a,b){const x=a57l,c=this[x(0x1a2)][b];c?(c['setPuzzle'](a),this[x(0x1ad)]['write']('Added\x20puzzle\x20to\x20room\x20'+c[x(0x1b8)])):this[x(0x1ad)][x(0x1b1)](x(0x197)+b+x(0x1a6));}[a57l(0x19d)](a,b){const y=a57l,c=this['rooms'][b];c?(this[y(0x1d3)][y(0x1cb)](a[y(0x1b8)],c),this[y(0x1ad)][y(0x1b1)](a[y(0x1b8)]+'\x20is\x20now\x20in\x20room\x20'+c[y(0x1b8)])):this[y(0x1ad)][y(0x1b1)]('Failed\x20to\x20set\x20'+a[y(0x1b8)]+'\x27s\x20location.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a57l(0x1a9)](a){const z=a57l;return this[z(0x1d3)]['get'](a[z(0x1b8)]);}[a57l(0x1ba)](){const A=a57l,a=[];for(const c in this['rooms']){if(this[A(0x1a2)][A(0x1ab)](c)){const d=this[A(0x1a2)][c];d['isStartRoom']&&a[A(0x1cd)](d);}}if(a[A(0x1c0)]>0x1)throw new Error(A(0x191));if(a['length']===0x1)return a[0x0];const b=Object[A(0x1c7)](this[A(0x1a2)]);if(b[A(0x1c0)]===0x0)throw new Error(A(0x1b9));return console['warn'](A(0x198)),this[A(0x1a2)][b[0x0]];}[a57l(0x1c2)](){const B=a57l;return this[B(0x1cf)];}[a57l(0x1b7)](){const C=a57l;return this[C(0x1a2)];}[a57l(0x1ce)](a,b,c,d){const D=a57l,e=this['rooms'][a],f=this[D(0x1a2)][c];if(!e)throw new Error(D(0x19a)+a+D(0x192));if(!f)throw new Error(D(0x19a)+c+D(0x192));e[D(0x1b6)](b,f,d);}}
|