@maka/maka-cli 4.12.25 → 4.12.26
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/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/templates/service/docker/Dockerfile +2 -2
- 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
|
-
function
|
|
1
|
+
function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xc4;let f=c[d];return f;},a38d(a,b);}const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0xf2))/0x1*(-parseInt(f(0xcb))/0x2)+parseInt(f(0xec))/0x3+parseInt(f(0xf7))/0x4+-parseInt(f(0xf8))/0x5*(parseInt(f(0xce))/0x6)+-parseInt(f(0xe3))/0x7*(parseInt(f(0xd1))/0x8)+parseInt(f(0xdf))/0x9+-parseInt(f(0xe1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xf25cc));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0xc9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0xdd)]()[h(0xf4)](h(0xdc))[h(0xdd)]()[h(0xfb)](a38a)[h(0xf4)]('(((.+)+)+)+$');});a38a();import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';function a38c(){const n=['\x27\x20in\x20','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','364688IWNSpc','You\x27re\x20not\x20in\x20a\x20valid\x20room.','getOtherSide','Executing\x20\x27Look\x27\x20command.','logger','You\x20cannot\x20see\x20through','\x20is\x20looking\x20around\x20the\x20current\x20room.','It\x27s\x20just\x20a\x20regular\x20','string','Examine\x20your\x20surroundings','You\x20don\x27t\x20see\x20any\x20','(((.+)+)+)+$','toString','roomType','14863095fGCMvE','get','16609350xEnxBN','actor','63bpvpnt','inspectItem','You\x20cannot\x20see\x20','To\x20the\x20','exits','\x27\x20in\x20current\x20room\x20inventory.','Looking\x20at\x20item\x20\x27','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','1063950hvmBww','inventory','execute','write','\x20inventory.','look','2363VkGMUu','OUTSIDE','search','currentLocation','Above\x20you,\x20','2083916zXVzoL','529475jpKawe','rooms','name','constructor','lookOutside','hasItem','description','puzzle','isValidDirection','apply','error','544MbtfeF',',\x20you\x20see\x20','getItem','6oeFRFi'];a38c=function(){return n;};return a38c();}import{Command}from'./command.js';export class LookCommand extends Command{static ['verb']='look';static [a38i(0xc6)]=a38i(0xda);[a38i(0xee)](a=[]){const j=a38i;this[j(0xd5)][j(0xef)](j(0xd4));const b=a['join']('\x20');if(b){if(this[j(0xe2)]['inventory'][j(0xc5)](b))return this['logger']['write']('Looking\x20at\x20item\x20\x27'+b+j(0xcf)+this[j(0xe2)][j(0xfa)]+j(0xf0)),this[j(0xe4)](b,this[j(0xe2)][j(0xed)]);else{if(this[j(0xe2)][j(0xf5)][j(0xed)][j(0xc5)](b))return this[j(0xd5)][j(0xef)](j(0xe9)+b+j(0xe8)),this[j(0xe4)](b,this[j(0xe2)][j(0xf5)][j(0xed)]);else return this[j(0xc8)](b)?(this[j(0xd5)]['write']('Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27'+b+'\x27.'),this[j(0xc4)](b)):j(0xe5)+b;}}else return this[j(0xd5)][j(0xef)](this[j(0xe2)][j(0xfa)]+j(0xd7)),this[j(0xf1)]();}[a38i(0xf1)](){const k=a38i,a=this[k(0xe2)][k(0xf5)];if(!a)return this[k(0xd5)][k(0xca)](this[k(0xe2)][k(0xfa)]+k(0xea)),k(0xd2);let b=a[k(0xc6)];return a[k(0xc7)]&&(b+='\x0a'+a['puzzle']['riddle']),b;}[a38i(0xc4)](a){const l=a38i,b=this[l(0xe2)]['currentLocation'];if(!b)return this['logger']['error'](this[l(0xe2)][l(0xfa)]+l(0xea)),l(0xd2);const c=b[l(0xe7)][l(0xe0)](a);if(!c)return'There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22'+a+'\x22.';let d;if(c instanceof Door)d=c[l(0xd3)](b);else{if(typeof c===l(0xd9)){d=this[l(0xf9)]&&this[l(0xf9)][c];if(!d)return l(0xeb)+a+'\x22.';}else return l(0xd0)+a+'\x22.';}if(d[l(0xde)]===RoomType[l(0xf3)]){if(a==='up')return l(0xf6)+d[l(0xc6)];else return a==='down'?'Below\x20you,\x20'+d[l(0xc6)]:l(0xe6)+a+l(0xcc)+d[l(0xc6)];}else return l(0xd6);}['inspectItem'](a,b){const m=a38i,c=b[m(0xcd)](a);if(!c)return m(0xdb)+a+'\x20here.';return c[m(0xc6)]||m(0xd8)+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39j=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=-parseInt(g(0xa3))/0x1+-parseInt(g(0x9a))/0x2+parseInt(g(0x96))/0x3+parseInt(g(0x93))/0x4*(-parseInt(g(0x99))/0x5)+parseInt(g(0x9f))/0x6*(parseInt(g(0xa7))/0x7)+-parseInt(g(0xa6))/0x8*(parseInt(g(0xa1))/0x9)+parseInt(g(0x8c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xa6be5));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a39d;if(c){const e=c[h(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const i=a39d;return a39a['toString']()['search']('(((.+)+)+)+$')[i(0x97)]()[i(0xa0)](a39a)[i(0x90)]('(((.+)+)+)+$');});a39a();function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x8a;let f=c[d];return f;},a39d(a,b);}import{Command}from'./command.js';export class SayCommand extends Command{static [a39j(0x8f)]=a39j(0x9d);static [a39j(0x94)]=a39j(0x9b);[a39j(0x98)];constructor(a){const k=a39j;super(a),this[k(0x98)]=a;}[a39j(0x9c)](a){const l=a39j;if(a['length']===0x0)return l(0xa9);const b=a[l(0x8d)]('\x20'),c=this[l(0x8e)],d=this[l(0x98)][l(0x9e)];if(!d)return this[l(0x8a)][l(0xa5)](l(0x95)),l(0xa2);const e=d[l(0xa4)]['filter'](f=>f['currentLocation']===c[l(0x8b)]);for(const f of e){this['logger']['log'](c[l(0x92)]+l(0x91)+f[l(0x92)]+':\x20\x22'+b+'\x22'),this[l(0x8e)]['currentLocation'][l(0x9d)](f,b);}return l(0xa8)+b+'\x22';}}function a39c(){const m=['9419337kboioP','An\x20error\x20occurred.','37390DWoFiQ','allActors','log','8RAnrNl','7nLdJdO','You\x20say:\x20\x22','What\x20do\x20you\x20want\x20to\x20say?','apply','logger','currentLocation','20120150tLrsfz','join','actor','verb','search','\x20says\x20to\x20','name','36BQrURJ','description','Scene\x20is\x20missing\x20from\x20context.','1089495GKmhoQ','toString','context','123355jdBMBQ','922548ELUcpR','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','execute','say','scene','450582IjRRfw','constructor'];a39c=function(){return m;};return a39c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a40i=a40d;function a40c(){const k=['5141832qoBgoP','\x20found\x20the\x20following\x20items:\x20','search','(((.+)+)+)+$','67045svTtOt','actor','inventory','apply','2945025sFbbZY','execute','259PdafUs','listItems','Search\x20for\x20items\x20in\x20your\x20area','SearchCommand:\x20','write','332tuzPOf','join','name','currentLocation','constructor','802yDaWHc','logger','toString','7364528VdGpeP','8267700bIWyiC','description','length','9IbRLjq','verb','13933120xhXMnf'];a40c=function(){return k;};return a40c();}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x198))/0x1*(-parseInt(f(0x184))/0x2)+-parseInt(f(0x196))/0x3+-parseInt(f(0x17f))/0x4*(-parseInt(f(0x192))/0x5)+-parseInt(f(0x18e))/0x6+parseInt(f(0x188))/0x7+-parseInt(f(0x187))/0x8+parseInt(f(0x18b))/0x9*(parseInt(f(0x18d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xc93df));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x195)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a['toString']()['search'](h(0x191))[h(0x186)]()[h(0x183)](a40a)[h(0x190)](h(0x191));});a40a();function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x17b;let f=c[d];return f;},a40d(a,b);}import{Command}from'./command.js';export class SearchCommand extends Command{static [a40i(0x18c)]=a40i(0x190);static [a40i(0x189)]=a40i(0x17c);[a40i(0x197)](){const j=a40i,a=this[j(0x193)][j(0x182)][j(0x194)][j(0x17b)]();if(a[j(0x18a)]===0x0)return this[j(0x185)][j(0x17e)](j(0x17d)+this[j(0x193)][j(0x181)]+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),'You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.';const b=a[j(0x180)](',\x20');return this['logger'][j(0x17e)](j(0x17d)+this[j(0x193)]['name']+j(0x18f)+b),'You\x20search\x20the\x20area\x20and\x20find:\x20'+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41h=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x19f))/0x1+-parseInt(f(0x1b3))/0x2+-parseInt(f(0x1b2))/0x3+-parseInt(f(0x1aa))/0x4+-parseInt(f(0x1a9))/0x5*(-parseInt(f(0x1a4))/0x6)+-parseInt(f(0x1a5))/0x7+parseInt(f(0x1a1))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x67db3));function a41c(){const j=['search','puzzle','verb','1728654pSFqEC','1522196FlttkG','Attempt\x20to\x20solve\x20a\x20puzzle.','toString','(((.+)+)+)+$','constructor','join','logger','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','595568FHRaTK','actor','18339048nygUmc','toLowerCase','currentLocation','2200638whBkUw','1605786IObydE','rewardItem','message','write','5QuUyTv','285908PHjZnc','execute','SolveCommand:\x20','inventory','description'];a41c=function(){return j;};return a41c();}function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x19a;let f=c[d];return f;},a41d(a,b);}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 g=a41d;return a41a['toString']()[g(0x1af)](g(0x19a))[g(0x1b5)]()[g(0x19b)](a41a)[g(0x1af)]('(((.+)+)+)+$');});a41a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a41h(0x1b1)]='solve';static [a41h(0x1ae)]=a41h(0x1b4);[a41h(0x1ab)](a){const i=a41h,b=a[i(0x19c)]('\x20')[i(0x1a2)](),c=this[i(0x1a0)][i(0x1a3)];if(!c||!c[i(0x1b0)])return this[i(0x19d)][i(0x1a8)](i(0x19e)),'There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.';const d=c[i(0x1b0)]['solve'](b,this[i(0x1a0)][i(0x1ad)]);return d['success']&&c['puzzle']['rewardItem']&&this['actor'][i(0x1ad)]['addItem'](c['puzzle'][i(0x1a6)]),this[i(0x19d)][i(0x1a8)](i(0x1ac)+d[i(0x1a7)]),d[i(0x1a7)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a42h=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0xb4))/0x1+-parseInt(f(0xd6))/0x2+-parseInt(f(0xc7))/0x3+parseInt(f(0xcc))/0x4+parseInt(f(0xbb))/0x5+parseInt(f(0xcd))/0x6+parseInt(f(0xd1))/0x7*(-parseInt(f(0xc5))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x28a1e));const a42b=(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;};}()),a42a=a42b(this,function(){const g=a42d;return a42a['toString']()[g(0xb6)](g(0xbd))[g(0xaf)]()[g(0xb9)](a42a)['search'](g(0xbd));});a42a();function a42c(){const k=['1075224yXnbCU','1437378kiDJjz','description','toLowerCase','removeItem','14vynlJP','message','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','Pick\x20up\x20an\x20item.','addInventory','543404nPIfqr','logger','\x22\x20in\x20this\x20room.','toString','\x22\x20is\x20too\x20heavy\x20to\x20carry.','name','Item\x20\x22','join','213312wnjtdF','getItem','search','You\x20have\x20taken\x20the\x20','write','constructor','actor','1423365HGBTii','The\x20item\x20\x22','(((.+)+)+)+$','Successfully\x20added\x20\x22','take','execute','There\x20is\x20no\x20item\x20\x22','\x22\x20not\x20found\x20in\x20','inventory','currentLocation','2241896LJsWsd','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','23244mpgEFY','hasItem','\x22\x20not\x20retrieved\x20from\x20','Successfully\x20removed\x20\x22','verb'];a42c=function(){return k;};return a42c();}function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xaf;let f=c[d];return f;},a42d(a,b);}import{Command}from'./command.js';export class TakeCommand extends Command{static [a42h(0xcb)]=a42h(0xbf);static [a42h(0xce)]=a42h(0xd4);[a42h(0xc0)](a){const i=a42h;return this[i(0xd7)][i(0xb8)](i(0xc6)+a[i(0xb3)]('\x20')),this[i(0xbf)](a);}[a42h(0xbf)](a){const j=a42h,b=a['join']('\x20')[j(0xcf)](),c=this[j(0xba)][j(0xc4)];if(!c['inventory'][j(0xc8)](b))return this[j(0xd7)][j(0xb8)]('Item\x20\x22'+b+j(0xc2)+c[j(0xb1)]+'\x20during\x20\x27Take\x27\x20command.'),j(0xc1)+b+j(0xd8);const d=c[j(0xc3)][j(0xb5)](b);if(!d)return this[j(0xd7)]['write'](j(0xb2)+b+j(0xc9)+c[j(0xb1)]+j(0xd3)),j(0xc1)+b+j(0xd8);try{return this[j(0xba)][j(0xd5)](d),this['logger'][j(0xb8)](j(0xbe)+b+'\x22\x20to\x20'+this[j(0xba)][j(0xb1)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[j(0xc3)][j(0xd0)](b),this[j(0xd7)][j(0xb8)](j(0xca)+b+'\x22\x20from\x20'+c[j(0xb1)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),j(0xb7)+b+'.';}catch(e){return this[j(0xd7)][j(0xb8)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[j(0xd2)]),j(0xbc)+b+j(0xb0);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x13e))/0x1*(parseInt(f(0x129))/0x2)+-parseInt(f(0x134))/0x3+parseInt(f(0x13b))/0x4+-parseInt(f(0x132))/0x5*(parseInt(f(0x136))/0x6)+-parseInt(f(0x12f))/0x7*(-parseInt(f(0x13c))/0x8)+-parseInt(f(0x12a))/0x9+-parseInt(f(0x12b))/0xa*(-parseInt(f(0x135))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xb3b47));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x128)]()[h(0x13d)](h(0x140))[h(0x128)]()[h(0x127)](a43a)[h(0x13d)](h(0x140));});function a43c(){const k=['actor','logger','description','8237957sqaUQK','toLowerCase','execute','165020wXhokO','unqeuip','2686815ZwlQBt','15763JDmDyh','102uEdgzZ','write','join','apply','\x20unqeuiped\x20','2772432wJiHHX','8uhzUey','search','1UFFcfN','UnequipCommand:\x20','(((.+)+)+)+$','constructor','toString','2870930FgZKXX','4436937WPZnar','15710qzAZnZ'];a43c=function(){return k;};return a43c();}a43a();import{Command}from'./command.js';function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x127;let f=c[d];return f;},a43d(a,b);}export class UnequipCommand extends Command{static ['verb']=a43i(0x133);static [a43i(0x12e)]='Unequip\x20an\x20item.';[a43i(0x131)](a){const j=a43i,b=a[j(0x138)]('\x20')[j(0x130)](),c=this[j(0x12c)]['unequip'](b);return this[j(0x12d)][j(0x137)](j(0x13f)+this[j(0x12c)]['name']+j(0x13a)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a44k=a44d;function a44c(){const n=['name','32188goDWBE','There\x27s\x20no\x20door\x20named\x20\x22','getItem','isValidDirection','Unlock\x20a\x20door.','toLowerCase','(((.+)+)+)+$','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','attemptUnlockExit','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','constructor','actor','exits','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','\x20is\x20attempted\x20to\x20unlock\x20','\x22\x20here.','write','execute','1890456XkhwfO','apply','toString','get','99118NbefLZ','27655bPKJLR','48wyJelb','.\x20Result:\x20','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','6727168aYymeE','verb','inventory','error','has','hasItem','9IsqzxM','6512024xmtUTr','unlock','search','UnlockCommand:\x20','description','492CfBvlK','logger','25396190DpcfzR'];a44c=function(){return n;};return a44c();}(function(a,b){const h=a44d,c=a();while(!![]){try{const d=-parseInt(h(0x97))/0x1+parseInt(h(0x82))/0x2*(-parseInt(h(0x84))/0x3)+-parseInt(h(0x93))/0x4*(parseInt(h(0x83))/0x5)+-parseInt(h(0xa9))/0x6+-parseInt(h(0x87))/0x7+-parseInt(h(0x8e))/0x8*(-parseInt(h(0x8d))/0x9)+parseInt(h(0x95))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x8baad));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a[j(0x80)]()[j(0x90)](j(0x9d))[j(0x80)]()[j(0xa1)](a44a)['search']('(((.+)+)+)+$');});a44a();import{Door}from'../models/door.js';import{Command}from'./command.js';function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x7f;let f=c[d];return f;},a44d(a,b);}export class UnlockCommand extends Command{static [a44k(0x88)]=a44k(0x8f);static [a44k(0x92)]=a44k(0x9b);[a44k(0xa8)](a){const l=a44k;return this[l(0x8f)](a);}[a44k(0x8f)](a){const m=a44k;if(a['length']===0x0)return this[m(0x94)][m(0x8a)]('UnlockCommand:\x20No\x20target\x20specified.'),m(0x9e);const b=a[0x0][m(0x9c)](),c=this[m(0xa2)]['currentLocation'];if(this[m(0x9a)](b)&&c['exits'][m(0x8b)](b)){const d=c[m(0xa3)][m(0x81)](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.['toLowerCase']();if(e&&this['actor'][m(0x89)][m(0x8c)](e)){const f=this[m(0xa2)]['inventory'][m(0x99)](e);if(f){const g=c[m(0x9f)](b,f['name']);return this['logger']['write'](m(0x91)+this[m(0xa2)][m(0x96)]+m(0xa5)+b+m(0x85)+g),g;}}return this[m(0x94)][m(0xa7)](m(0x91)+this['actor'][m(0x96)]+m(0x86)+b+'.'),m(0xa0);}else return this[m(0x94)][m(0xa7)]('UnlockCommand:\x20'+b+m(0xa4)+c[m(0x96)]+'.'),m(0x98)+b+m(0xa6);}else return this[m(0x94)][m(0xa7)](m(0x91)+b+m(0xa4)+c[m(0x96)]+'.'),m(0x98)+b+m(0xa6);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45h=a45d;function a45c(){const k=['logger','\x27s\x20inventory.','\x20not\x20retrieved\x20from\x20','55557CYwayk','name',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','10CJrFPv','4930040RFFXnM','Use\x20an\x20item.','verb','description','2734038efamJy','\x20doesn\x27t\x20have\x20a\x20use\x20method.','You\x20can\x27t\x20use\x20the\x20','write','search','\x20to\x20use.','1784oYJQyN','1197nMQVWZ','471qnrbcd','\x20in\x20this\x20way.','use','9534912FUqdNS','(((.+)+)+)+$','toString','11gUxcdT','function','3023427mWSOLt','join','You\x20don\x27t\x20have\x20the\x20','inventory','670cykFls','610dIedxz','actor','UseCommand:\x20'];a45c=function(){return k;};return a45c();}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0xcc))/0x1*(parseInt(f(0xb6))/0x2)+-parseInt(f(0xb1))/0x3+parseInt(f(0xc0))/0x4+-parseInt(f(0xbf))/0x5*(parseInt(f(0xc4))/0x6)+-parseInt(f(0xcb))/0x7*(parseInt(f(0xca))/0x8)+-parseInt(f(0xbc))/0x9*(-parseInt(f(0xb5))/0xa)+-parseInt(f(0xaf))/0xb*(-parseInt(f(0xcf))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x99164));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['toString']()[g(0xc8)]('(((.+)+)+)+$')[g(0xae)]()['constructor'](a45a)[g(0xc8)](g(0xd0));});function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xae;let f=c[d];return f;},a45d(a,b);}a45a();import{Command}from'./command.js';export class UseCommand extends Command{static [a45h(0xc2)]=a45h(0xce);static [a45h(0xc3)]=a45h(0xc1);['execute'](a){const i=a45h;return this[i(0xce)](a);}['use'](a){const j=a45h,b=a[j(0xb2)]('\x20')['toLowerCase']();if(!this[j(0xb7)][j(0xb4)]['hasItem'](b))return this['logger'][j(0xc7)](j(0xb8)+this[j(0xb7)][j(0xbd)]+'\x20attempted\x20to\x20use\x20'+b+j(0xbe)),j(0xb3)+b+j(0xc9);const c=this['actor'][j(0xb4)]['getItem'](b);if(!c)return this[j(0xb9)]['write'](j(0xb8)+b+j(0xbb)+this[j(0xb7)][j(0xbd)]+j(0xba)),'You\x20don\x27t\x20have\x20the\x20'+b+j(0xc9);if(typeof c[j(0xce)]===j(0xb0)){const d=c[j(0xce)]();return this[j(0xb9)][j(0xc7)](j(0xb8)+this[j(0xb7)]['name']+'\x20used\x20'+b+'.'),d;}else return this[j(0xb9)][j(0xc7)](j(0xb8)+b+j(0xc5)),j(0xc6)+b+j(0xcd);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a46c(){const m=['2206560SXzzUx','930870vBmLTi','toString','227784AItBwh','823291WEZfof','search','5706eIeSpP','apply','1362cuyzlS','24HWJAmr','getAllRegisteredCommands','constructor','298qZIFvm','commandMap','(((.+)+)+)+$','661256KOwROb','45LGTBhI'];a46c=function(){return m;};return a46c();}const a46k=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d=parseInt(f(0xd5))/0x1*(-parseInt(f(0xd9))/0x2)+parseInt(f(0xce))/0x3+-parseInt(f(0xdc))/0x4+parseInt(f(0xcc))/0x5*(parseInt(f(0xd0))/0x6)+parseInt(f(0xd1))/0x7+-parseInt(f(0xd6))/0x8*(parseInt(f(0xd3))/0x9)+-parseInt(f(0xcd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x2ba51));function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0xcc;let f=c[d];return f;},a46d(a,b);}const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a[h(0xcf)]()[h(0xd2)](h(0xdb))[h(0xcf)]()[h(0xd8)](a46a)['search']('(((.+)+)+)+$');});a46a();export class CommandFactory{static ['commandMap']={};static['registerCommand'](a,b){const i=a46d;this[i(0xda)][a]=b;}static['createCommand'](a,b){const j=a46d,c=this[j(0xda)][a];if(c)return new c(b);return null;}static[a46k(0xd7)](){const l=a46k;return this[l(0xda)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x17c;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(0x1a4))/0x1*(-parseInt(f(0x17d))/0x2)+-parseInt(f(0x190))/0x3*(parseInt(f(0x195))/0x4)+-parseInt(f(0x194))/0x5*(parseInt(f(0x185))/0x6)+-parseInt(f(0x1a5))/0x7+parseInt(f(0x1a2))/0x8*(-parseInt(f(0x183))/0x9)+parseInt(f(0x181))/0xa+parseInt(f(0x17f))/0xb*(parseInt(f(0x18a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x9b26f));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x189)]()['search'](h(0x18c))[h(0x189)]()['constructor'](a47a)[h(0x180)](h(0x18c));});a47a();import{Room,Puzzle,Inventory}from'../models/_index.js';function a47c(){const n=['2979sqijoP','book','3176088AJgUrG','INSIDE','forEach','gloves','toString','180xmZFIK','items','(((.+)+)+)+$','sword','key','convertToRoomConfig','1779171GlKrqm','gauntlets','createRoom','boots','5ghbcUq','4IGJcEC','legarmor','puzzle','inventory','bodyarmor','content','apply','roomType','toUpperCase','description','createPuzzle','rifle','addItem','5488kIDsUt','createItem','81753VWWqfe','7619563CyqmSW','name','4MuOItD','helmet','2095676xgaCgH','search','3792490NcQLhY','isStartRoom'];a47c=function(){return n;};return a47c();}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(0x192)](a){const j=a47i,b=this[j(0x18f)](a),c=new Room(b);if(a[j(0x18b)]){const d=new Inventory();a['items'][j(0x187)](e=>{const k=j;d[k(0x1a1)](this[k(0x1a3)](e));}),c[j(0x198)]=d;}return a[j(0x197)]&&c['setPuzzle'](this[j(0x19f)](a[j(0x197)])),c;}[a47i(0x1a3)](a){const l=a47i;switch(a['type']){case l(0x18e):return new Key(a[l(0x17c)],a['description']);case l(0x184):return new Book(a[l(0x17c)],a[l(0x19e)],a[l(0x19a)]);case l(0x18d):return new Sword(a['name'],a[l(0x19e)]);case l(0x1a0):return new Rifle(a[l(0x17c)],a[l(0x19e)]);case l(0x17e):return new Helmet(a[l(0x17c)],a[l(0x19e)]);case l(0x199):return new BodyArmor(a[l(0x17c)],a['description']);case l(0x196):return new LegArmor(a[l(0x17c)],a['description']);case l(0x193):return new Boots(a[l(0x17c)],a[l(0x19e)]);case l(0x188):return new Gloves(a[l(0x17c)],a['description']);case l(0x191):return new Gauntlets(a[l(0x17c)],a[l(0x19e)]);default:return new BasicItem(a[l(0x17c)],a[l(0x19e)]);}}[a47i(0x19f)](a){const b=this['createItem'](a['rewardItem']);return new Puzzle({...a,'rewardItem':b});}[a47i(0x18f)](a){const m=a47i,b=a[m(0x19c)]&&RoomType[a['roomType'][m(0x19d)]()]?RoomType[a[m(0x19c)][m(0x19d)]()]:RoomType[m(0x186)];return{'name':a[m(0x17c)],'description':a[m(0x19e)],'isStartRoom':a[m(0x182)],'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(0x115))/0x1*(parseInt(h(0x111))/0x2)+-parseInt(h(0x12c))/0x3*(parseInt(h(0x120))/0x4)+parseInt(h(0x135))/0x5*(-parseInt(h(0x11b))/0x6)+parseInt(h(0x136))/0x7*(parseInt(h(0x12b))/0x8)+-parseInt(h(0x13a))/0x9+-parseInt(h(0x138))/0xa*(parseInt(h(0x12e))/0xb)+-parseInt(h(0x145))/0xc*(-parseInt(h(0x143))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xe5168));function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x111;let f=c[d];return f;},a48d(a,b);}const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a['toString']()[j(0x127)](j(0x142))[j(0x129)]()['constructor'](a48a)[j(0x127)]('(((.+)+)+)+$');});a48a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';function a48c(){const s=['getDescription','832208cRSpXv','537IyKdYE','rooms','11whVeic','split','hasOwnProperty','look','unlock','solve','getAllRegisteredCommands','65KCOUsf','70UFXGSC','-\x20clear:\x20Clear\x20the\x20screen.\x0a','12607310DYBUDB','lock','9400554Qwzcvc','clear','instance','scene','apply','Available\x20Commands:\x0a','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','equip','(((.+)+)+)+$','50750544nNuWcN','registerCommands','12bgRJoY','help','maka','2FtBAqL','getInstance','use','toLowerCase','679643yOuDqC','trim','player','slice','currentRoom','getHelpMessage','44322aJrplR','execute','name','getRooms','quit','20668oLIbCs','-\x20quit:\x20Exit\x20the\x20game.\x0a','handleInput','drop','getWelcomeMessage','determineStartRoom','registerCommand','search','take','toString'];a48c=function(){return s;};return a48c();}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(0x13c)];[a48k(0x13d)];[a48k(0x117)];[a48k(0x119)];[a48k(0x12d)];constructor(a,b){const l=a48k;this[l(0x117)]=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this[l(0x13d)]['initialize'](),this['player']['currentLocation']=this[l(0x125)](),this[l(0x144)]();}[a48k(0x144)](){const m=a48k;CommandFactory[m(0x126)](m(0x131),LookCommand),CommandFactory[m(0x126)]('go',GoCommand),CommandFactory[m(0x126)](m(0x128),TakeCommand),CommandFactory['registerCommand'](m(0x113),UseCommand),CommandFactory[m(0x126)](m(0x141),EquipCommand),CommandFactory[m(0x126)]('unequip',UnequipCommand),CommandFactory[m(0x126)](m(0x133),SolveCommand),CommandFactory['registerCommand'](m(0x123),DropCommand),CommandFactory['registerCommand'](m(0x132),UnlockCommand),CommandFactory['registerCommand'](m(0x139),LockCommand),CommandFactory[m(0x126)](m(0x127),SearchCommand),CommandFactory[m(0x126)]('say',SayCommand);}['determineStartRoom'](){const n=a48k;return this[n(0x13d)][n(0x125)]();}[a48k(0x124)](){const o=a48k;return'Welcome,\x20'+this[o(0x117)][o(0x11d)];}static[a48k(0x112)](a,b){const p=a48k;return!Game[p(0x13c)]&&(Game['instance']=new Game(a,b)),Game[p(0x13c)];}[a48k(0x122)](a){const q=a48k,b=a[q(0x116)]()[q(0x12f)]('\x20'),c=b[0x0][q(0x114)](),d=b[q(0x118)](0x1);if(c===q(0x11f))return null;if(c===q(0x147))return q(0x140);if(c===q(0x146))return this[q(0x11a)]();if(c===q(0x13b))return'';const e={'actor':this['player'],'rooms':this[q(0x13d)][q(0x11e)](),'scene':this['scene']},f=CommandFactory['createCommand'](c,e);if(f){const g=f[q(0x11c)](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}[a48k(0x11a)](){const r=a48k,a=CommandFactory[r(0x134)]();let b=r(0x13f);for(const c in a){if(a[r(0x130)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x12a)]()+'\x0a';}}return b+=r(0x137),b+=r(0x121),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a49d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x1e6))/0x1+-parseInt(f(0x1e8))/0x2+-parseInt(f(0x1ed))/0x3+parseInt(f(0x1e7))/0x4*(parseInt(f(0x1ec))/0x5)+parseInt(f(0x1e5))/0x6+parseInt(f(0x1e4))/0x7+parseInt(f(0x1ea))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x91ae5));function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1e3;var f=c[d];return f;},a49d(a,b);}var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var g=a49d;return a49a[g(0x1e9)]()['search'](g(0x1e3))['toString']()['constructor'](a49a)[g(0x1eb)](g(0x1e3));});a49a();export*from'./door.js';export*from'./inventory.js';function a49c(){var h=['8GcsloD','767962QOwOgI','toString','7334408YeCDji','search','2344610ArtbQM','3558816hyPTGd','(((.+)+)+)+$','4615730jvVKqt','1229724GQKGqf','552027iACVsF'];a49c=function(){return h;};return a49c();}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
|
+
function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x17a;var f=c[d];return f;},a50d(a,b);}var a50h=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=-parseInt(f(0x191))/0x1*(-parseInt(f(0x195))/0x2)+parseInt(f(0x17e))/0x3+-parseInt(f(0x182))/0x4*(parseInt(f(0x17a))/0x5)+-parseInt(f(0x189))/0x6+-parseInt(f(0x17c))/0x7+-parseInt(f(0x17f))/0x8+-parseInt(f(0x185))/0x9*(-parseInt(f(0x197))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xb268a));var a50b=(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;};}()),a50a=a50b(this,function(){var g=a50d;return a50a['toString']()['search'](g(0x18c))[g(0x17b)]()['constructor'](a50a)[g(0x188)]('(((.+)+)+)+$');});function a50c(){var n=['unlockItemOrSolution','(((.+)+)+)+$','roomB','write','isLocked','roomA','29006kamtTT','getInstance','logger','checkIfLockable','76AGyrmJ','Failed\x20to\x20unlock\x20door:\x20','11967530aYmAVy','1882195UkLqvW','toString','6597801mtzyJG','.\x20Is\x20Locked:\x20','2835522tpYbTS','4544352bDvipg','To\x20','name','4nRzOjL','isLockable','Door\x20created\x20between\x20','9SxVmRW','.\x20Used:\x20','\x20and\x20','search','3758202zZyArU','Door\x20unlocked:\x20'];a50c=function(){return n;};return a50c();}a50a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a50h(0x190)];[a50h(0x18d)];[a50h(0x18f)];['unlockItemOrSolution'];[a50h(0x181)];[a50h(0x193)];['isLockable'];constructor(a){var i=a50h;super(),this[i(0x190)]=a[i(0x190)],this[i(0x18d)]=a[i(0x18d)],this[i(0x18f)]=a['isLocked']||![],this[i(0x18b)]=a[i(0x18b)],this[i(0x181)]=a[i(0x181)]?capitalCase(a[i(0x181)]):i(0x180)+a['roomB']['name'],this['logger']=Logger[i(0x192)](),this[i(0x183)]=!!a[i(0x18b)],this[i(0x193)][i(0x18e)](i(0x184)+this[i(0x190)][i(0x181)]+i(0x187)+this[i(0x18d)][i(0x181)]+i(0x17d)+this[i(0x18f)]);}['getOtherSide'](a){var j=a50h;return this['roomA']===a?this[j(0x18d)]:this[j(0x190)];}['attemptUnlock'](a){var k=a50h;if(this['isLocked']&&this[k(0x18b)]&&this[k(0x18b)]===a)return this[k(0x18f)]=![],this['logger'][k(0x18e)](k(0x18a)+this[k(0x181)]+k(0x186)+a),!![];return this[k(0x193)][k(0x18e)](k(0x196)+this[k(0x181)]+k(0x186)+a),![];}['checkIfLocked'](){var l=a50h;return this[l(0x18f)];}[a50h(0x194)](){var m=a50h;return this[m(0x183)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x1a3))/0x1*(parseInt(f(0x17c))/0x2)+-parseInt(f(0x1a2))/0x3*(-parseInt(f(0x182))/0x4)+parseInt(f(0x189))/0x5*(parseInt(f(0x19a))/0x6)+parseInt(f(0x1a6))/0x7*(-parseInt(f(0x187))/0x8)+parseInt(f(0x19c))/0x9*(-parseInt(f(0x19b))/0xa)+-parseInt(f(0x18f))/0xb+parseInt(f(0x17d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x41aec));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x186)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0x192)]()[h(0x19e)](h(0x198))[h(0x192)]()[h(0x197)](a51a)['search'](h(0x198));});function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x17c;let f=c[d];return f;},a51d(a,b);}a51a();function a51c(){const r=['map','39788lKrTNX','join','getWeight','weight','apply','872oDCWcT','set','804605BsyQEi','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','.\x20Item\x20not\x20found.','\x20to\x20inventory.','keys','getInstance','1304314xqXIbh','values','name','toString','Removed\x20item:\x20','get','Retrieved\x20details\x20for\x20item:\x20','Checked\x20for\x20item:\x20','constructor','(((.+)+)+)+$','has','12CZgqrE','682300RjXOfM','9ssjFlR','delete','search','items','Failed\x20to\x20remove\x20item:\x20','hasItem','21MmMXlH','1aFDGlF','Added\x20item:\x20','logger','24878nhkzlY','.\x20Exists:\x20','addItem','toLowerCase','write','listItems','436196BXnKgH','8038236klmFco','getItem','\x20in\x20','removeItem'];a51c=function(){return r;};return a51c();}import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a51i(0x19f)];[a51i(0x1a5)];constructor(){const j=a51i;super(),this[j(0x19f)]=new Map(),this[j(0x1a5)]=Logger[j(0x18e)]();}[a51i(0x1a8)](a){const k=a51i;this[k(0x19f)][k(0x188)](a['name'][k(0x1a9)](),a),this[k(0x1a5)][k(0x1aa)](k(0x1a4)+a[k(0x191)]+k(0x18c));}[a51i(0x180)](a){const l=a51i,b=this[l(0x17e)](a);if(b)return this[l(0x19f)][l(0x19d)](a[l(0x1a9)]()),this[l(0x1a5)][l(0x1aa)](l(0x193)+a+'\x20from\x20inventory.'),b;return this[l(0x1a5)][l(0x1aa)](l(0x1a0)+a+l(0x18b)),null;}[a51i(0x1a1)](a){const m=a51i,b=this[m(0x19f)][m(0x199)](a[m(0x1a9)]()),c=[...this[m(0x19f)][m(0x18d)]()];return this[m(0x1a5)][m(0x1aa)](m(0x196)+a+m(0x17f)+c[m(0x183)](',\x20')+m(0x1a7)+b+'.'),b;}[a51i(0x17e)](a){const n=a51i,b=this['items'][n(0x194)](a[n(0x1a9)]())||null;return b?this[n(0x1a5)][n(0x1aa)](n(0x195)+a+'.'):this[n(0x1a5)][n(0x1aa)](n(0x18a)+a+n(0x18b)),b;}[a51i(0x1ab)](){const o=a51i,a=[...this[o(0x19f)][o(0x18d)]()],b=a[o(0x181)](c=>capitalCase(c));return this[o(0x1a5)][o(0x1aa)]('Listed\x20items\x20in\x20inventory:\x20'+b[o(0x183)](',\x20')+'.'),a;}[a51i(0x184)](){const p=a51i;let a=0x0;for(const b of this[p(0x19f)][p(0x190)]()){a+=b[p(0x185)];}return a;}['getAllItems'](){const q=a51i;return[...this[q(0x19f)][q(0x190)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x145;var f=c[d];return f;},a52d(a,b);}var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x155))/0x1+-parseInt(f(0x145))/0x2+-parseInt(f(0x147))/0x3+-parseInt(f(0x151))/0x4*(-parseInt(f(0x15d))/0x5)+-parseInt(f(0x14a))/0x6+-parseInt(f(0x146))/0x7+parseInt(f(0x15f))/0x8*(parseInt(f(0x14b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x62dec));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x156)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x148)]()[h(0x15c)](h(0x158))[h(0x148)]()[h(0x149)](a52a)[h(0x15c)](h(0x158));});a52a();import{v4 as a52e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a52i(0x157)];['name'];[a52i(0x15e)];[a52i(0x14d)];[a52i(0x152)];[a52i(0x15a)];[a52i(0x14f)];[a52i(0x14c)];[a52i(0x15b)];[a52i(0x159)];constructor(a){var j=a52i;super(),this[j(0x154)]=a[j(0x154)],this[j(0x15e)]=a[j(0x15e)],this[j(0x14d)]=a['size'],this[j(0x152)]=a[j(0x152)],this[j(0x15a)]=a[j(0x15a)],this[j(0x14f)]=a[j(0x14f)],this['texture']=a[j(0x14c)],this[j(0x15b)]=a[j(0x15b)],this[j(0x159)]=a['weight'],this[j(0x157)]=a52e();}[a52i(0x150)](){var k=a52i;return k(0x153)+this['name']+k(0x14e);}}function a52c(){var l=['apply','uuid','(((.+)+)+)+$','weight','shape','rating','search','30565OaFHUc','description','1435080dQTxzR','1308618wzRBwq','1632274YQGEyZ','822270qxiVpx','toString','constructor','285894BsmEaT','99cxTzcn','texture','size','.\x20Nothing\x20special\x20happens.','color','use','140OkIsqX','category','You\x20use\x20the\x20','name','572988Ukiycg'];a52c=function(){return l;};return a52c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a53c(){const o=['_name','toString','21563364apzRxe','43cYNEyh','floor','5244aPgLIf','9glfOUI','3415445Zmsqkb','apply','name','623924IaRYQb','14ggHoxp','search','random','3617368krYGYz','constructor','(((.+)+)+)+$','13tTexnt','5060010oWmkDs','42752OgQgXO','moveTo','autonomousMove','9XrjsFu','scene','_dialogue','speak','rooms','1930YFsdow','length'];a53c=function(){return o;};return a53c();}const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0xfa))/0x1*(-parseInt(f(0x10a))/0x2)+parseInt(f(0xf0))/0x3*(parseInt(f(0x101))/0x4)+-parseInt(f(0xf5))/0x5*(-parseInt(f(0xfc))/0x6)+-parseInt(f(0x102))/0x7*(parseInt(f(0x105))/0x8)+-parseInt(f(0xfd))/0x9*(parseInt(f(0x109))/0xa)+parseInt(f(0xfe))/0xb+parseInt(f(0xf9))/0xc*(parseInt(f(0x108))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x8e646));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0xf8)]()[h(0x103)](h(0x107))[h(0xf8)]()[h(0x106)](a53a)[h(0x103)](h(0x107));});a53a();import{Player}from'./player.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xee;let f=c[d];return f;},a53d(a,b);}import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a53i(0xf7)];[a53i(0xf2)];[a53i(0xf4)];[a53i(0xf1)];constructor(a,b,c,d){const j=a53i;super(d),this[j(0xf7)]=a,this[j(0xf2)]=b,this[j(0xf4)]=c;}get[a53i(0x100)](){const k=a53i;return this[k(0xf7)];}[a53i(0xf3)](){const l=a53i;return this['_dialogue'][Math[l(0xfb)](Math['random']()*this['_dialogue'][l(0xf6)])];}[a53i(0xef)](a){const m=a53i,b=a[Math['floor'](Math[m(0x104)]()*a[m(0xf6)])];this[m(0xee)](b[m(0x100)]);}['moveTo'](a){const n=a53i,b={'actor':this,'rooms':this[n(0xf4)],'scene':this[n(0xf1)]},c=new GoCommand(b);c['execute']([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54h=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a54h=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d=parseInt(f(0xf0))/0x1+-parseInt(f(0xf8))/0x2*(-parseInt(f(0xdd))/0x3)+parseInt(f(0xe5))/0x4*(parseInt(f(0xea))/0x5)+parseInt(f(0xf4))/0x6*(parseInt(f(0x106))/0x7)+-parseInt(f(0xdf))/0x8*(parseInt(f(0xcc))/0x9)+parseInt(f(0x112))/0xa+-parseInt(f(0xbf))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0xb9eb8));const a54b=(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;};}()),a54a=a54b(this,function(){const g=a54d;return a54a[g(0xda)]()['search']('(((.+)+)+)+$')[g(0xda)]()[g(0x113)](a54a)['search'](g(0xe2));});a54a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0xba;let f=c[d];return f;},a54d(a,b);}import{Room}from'./room.js';function a54c(){const C=['name','hasItem','removeInventory','Nexus','includes','ArmArmor','category','\x20is\x20now\x20listening\x20in\x20room\x20','legs','gloves','You\x20don\x27t\x20have\x20','Removed\x20','2944665icZOUG','helmet','_inventory','weapon','unequip','playerName','armarmor','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','write','torso','logger','determineEquipmentSlot','enterRoom','startLocation','toString','inventoryItems','You\x20can\x27t\x20equip\x20','2262edHULu','hear','8EIVwyS','addInventory','getInstance','(((.+)+)+)+$','toLowerCase','currentWeight','436YLQlPL','leaveRoom','values','You\x20equipped\x20','Invalid\x20category\x20or\x20slot:\x20','43965OWbSgq','\x20is\x20no\x20longer\x20listeng\x20in\x20','maxCarryingWeight','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','\x20in\x20your\x20inventory.','\x20to\x20player\x27s\x20inventory.','606261nSZjYF','unequipBySlot','rightHand','_maxCarryingWeight','12dSxAua','removeItem','legarmor','.\x20You\x20must\x20unequip\x20it\x20first.','350uWUfzv','head','currentLocation','feet','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','leg\x20armor','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','addItem','Gloves','weight','Boots','_currentLocation','_equipment','_playerName','2169041zMAlAL','equipment','arms','speak','getWeight','Max\x20carrying\x20weight\x20must\x20be\x20positive.','hat','\x20from\x20player\x27s\x20inventory.','leftHand','\x20slot.','body\x20armor','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','13876910kFHoPh','constructor','initialEquipment','Weapon','LegArmor','bind','log','bodyarmor','BodyArmor','Hat','Helmet','off','boots','28768872yXqwbc'];a54c=function(){return C;};return a54c();}import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{['_playerName'];[a54h(0x103)];[a54h(0xce)];[a54h(0x104)];[a54h(0xf3)]=0x32;['logger'];constructor(a){const i=a54h;super(),this[i(0x105)]=a[i(0xd1)],this[i(0x103)]=a[i(0xd9)]||new Room({'name':i(0xc3),'description':'A\x20featureless\x20room'}),this[i(0xce)]=new Inventory(),this[i(0xd6)]=Logger[i(0xe1)]();if(a?.[i(0xdb)])for(const b of a['inventoryItems']){this[i(0xce)][i(0xff)](b);}this[i(0x104)]=a?.[i(0x114)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54h(0xc0)](){const j=a54h;return this[j(0x105)];}get[a54h(0xfa)](){const k=a54h;return this[k(0x103)];}set[a54h(0xfa)](a){const l=a54h;this[l(0x103)]!==a&&(this[l(0xe6)](),this[l(0xd8)](a)),this[l(0x103)]=a;}get['inventory'](){const m=a54h;return this[m(0xce)];}get[a54h(0x107)](){const n=a54h;return this[n(0x104)];}set[a54h(0x107)](a){const o=a54h;this[o(0x104)]=a;}get[a54h(0xec)](){const p=a54h;return this[p(0xf3)];}set[a54h(0xec)](a){const q=a54h;a>0x0?this['_maxCarryingWeight']=a:console['error'](q(0x10b));}get['currentWeight'](){const r=a54h;let a=this[r(0xce)][r(0x10a)]();for(const b in this[r(0x104)]){const c=this[r(0x104)][b];c&&(a+=c[r(0x101)]);}return a;}['addInventory'](a){const s=a54h;if(this[s(0xe4)]+a[s(0x101)]>this['maxCarryingWeight']){this[s(0xd6)]['write'](s(0xfc));throw new Error(s(0xfe));}this[s(0xce)][s(0xff)](a),this[s(0xd6)][s(0xd4)]('Added\x20'+a[s(0xc0)]+s(0xef));}[a54h(0xc2)](a){const t=a54h;if(this[t(0xce)][t(0xf5)](a[t(0xc0)]))return this[t(0xd6)][t(0xd4)](t(0xcb)+a[t(0xc0)]+t(0x10d)),!![];return this['logger'][t(0xd4)]('Failed\x20to\x20remove\x20'+a[t(0xc0)]+t(0x10d)),![];}['equip'](a){const u=a54h;if(!this['_inventory'][u(0xc1)](a[u(0xc0)]))return u(0xca)+a[u(0xc0)]+u(0xee);if(!this['canEquip'](a))return u(0xdc)+a['name']+'.';const b=this['determineEquipmentSlot'](a[u(0xc6)]);if(!b)return a['name']+u(0xd3);if(this['equipment'][b])return u(0x111)+b+u(0xf7);return this[u(0x107)][b]=a,this[u(0xc2)](a),u(0xe8)+a[u(0xc0)]+'.';}[a54h(0xd0)](a){const v=a54h;let b=a;if(!this[v(0x107)][camelCase(b)]){b=this[v(0xd7)](a);if(!b)return v(0xe9)+a+'.';}return this[v(0xf1)](b);}[a54h(0xd7)](a){const w=a54h;switch(a[w(0xe3)]()){case Category[w(0x115)][w(0xe3)]():return w(0xf2);case Category['Shield'][w(0xe3)]():return w(0x10e);case Category[w(0x100)]['toLowerCase']():return w(0xc9);case Category[w(0xbc)][w(0xe3)]():case Category[w(0xbb)][w(0xe3)]():return w(0xf9);case Category[w(0x102)][w(0xe3)]():return w(0xfb);case Category[w(0x116)][w(0xe3)]():return w(0xc8);case Category[w(0xc5)][w(0xe3)]():return'arms';case Category[w(0xba)]['toLowerCase']():return w(0xd5);case w(0xcf):return w(0xf2);case'shield':return w(0x10e);case w(0xc9):return w(0xc9);case w(0xcd):case w(0x10c):return'head';case w(0xbe):return w(0xfb);case w(0xfd):case w(0xf6):return'legs';case'arm\x20armor':case w(0xd2):return w(0x108);case w(0x110):case w(0x119):case w(0xd5):return w(0xd5);default:return null;}}['canEquip'](a){const x=a54h;return Object[x(0xe7)](Category)[x(0xc4)](a[x(0xc6)]);}['unequipBySlot'](a){const y=a54h,b=this[y(0x107)][a];if(!b)return y(0xed)+a+y(0x10f);return this[y(0xe0)](b),this[y(0x107)][a]=null,'You\x20unequipped\x20'+b[y(0xc0)]+'.';}[a54h(0xde)](a,b){const z=a54h;a!==this&&this[z(0xd6)][z(0x118)](a[z(0xc0)]+'\x20says:\x20\x22'+b+'\x22');}[a54h(0xd8)](a){const A=a54h;this[A(0x103)]=a,a['on'](A(0x109),this['hear']['bind'](this)),this[A(0xd6)][A(0xd4)](this[A(0xc0)]+A(0xc7)+a[A(0xc0)]);}[a54h(0xe6)](){const B=a54h;this[B(0x103)]&&(this['_currentLocation'][B(0xbd)]('speak',this[B(0xde)][B(0x117)](this)),this[B(0xd6)][B(0xd4)](this[B(0xc0)]+B(0xeb)+this[B(0x103)][B(0xc0)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x1c5))/0x1*(-parseInt(f(0x1bc))/0x2)+parseInt(f(0x1be))/0x3*(parseInt(f(0x1ba))/0x4)+-parseInt(f(0x1cf))/0x5*(-parseInt(f(0x1bf))/0x6)+-parseInt(f(0x1b8))/0x7+-parseInt(f(0x1cd))/0x8*(-parseInt(f(0x1c7))/0x9)+parseInt(f(0x1cb))/0xa+-parseInt(f(0x1b4))/0xb*(parseInt(f(0x1c1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x54fa4));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x1bd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x1d1)]()['search']('(((.+)+)+)+$')['toString']()[h(0x1b7)](a55a)['search'](h(0x1cc));});a55a();function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x1b4;var f=c[d];return f;},a55d(a,b);}import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';function a55c(){var m=['6LZYNpy','hasItem','623268UjsqDq','failureMessage','Puzzle:\x20Correct\x20solution\x20provided.','rewardItem','2IZRlCl','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','486ikKwSx','matchesRequiredPhrase','requiredPhrase','write','2764640zUqemN','(((.+)+)+)+$','90112LgHaDO','hasRequiredItem','584920UDYODm','logger','toString','solved','253xRORbo','solve','You\x20have\x20already\x20solved\x20this\x20puzzle.','constructor','839188BEglba','requiredItem','2622676FgQuth','successMessage','5176pLIyNa','apply','3jDSDIM'];a55c=function(){return m;};return a55c();}export class Puzzle extends AbstractPuzzle{[a55i(0x1d0)]=Logger['getInstance']();[a55i(0x1d2)]=![];[a55i(0x1b9)];[a55i(0x1c9)];['riddle'];[a55i(0x1c4)];[a55i(0x1bb)];[a55i(0x1c2)];constructor(a){var j=a55i;super(),this[j(0x1b9)]=a['requiredItem'],this[j(0x1c9)]=a['requiredPhrase'],this['riddle']=a['riddle'],this['rewardItem']=a['rewardItem'],this[j(0x1bb)]=a[j(0x1bb)]||'You\x20solved\x20the\x20puzzle!',this['failureMessage']=a[j(0x1c2)]||j(0x1c6);}['hasRequiredItem'](a){var k=a55i;if(this[k(0x1b9)])return a[k(0x1c0)](this[k(0x1b9)]);return![];}[a55i(0x1c8)](a){return this['requiredPhrase']===a;}[a55i(0x1b5)](a,b){var l=a55i;if(this['solved'])return this['logger'][l(0x1ca)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':l(0x1b6)};return this[l(0x1ce)](b)||this[l(0x1c8)](a)?(this['solved']=!![],this[l(0x1d0)][l(0x1ca)](l(0x1c3)),{'success':!![],'message':this['successMessage']}):(this[l(0x1d0)][l(0x1ca)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this['failureMessage']});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a56i=a56d;function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0xa1;let f=c[d];return f;},a56d(a,b);}(function(a,b){const f=a56d,c=a();while(!![]){try{const d=parseInt(f(0xd7))/0x1+parseInt(f(0xa8))/0x2*(parseInt(f(0xcd))/0x3)+-parseInt(f(0xac))/0x4+-parseInt(f(0xa1))/0x5*(-parseInt(f(0xbf))/0x6)+-parseInt(f(0xad))/0x7*(parseInt(f(0xc2))/0x8)+parseInt(f(0xbc))/0x9+-parseInt(f(0xb2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x6cc52));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0xbd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a[h(0xd4)]()[h(0xc9)]('(((.+)+)+)+$')[h(0xd4)]()[h(0xd5)](a56a)[h(0xc9)]('(((.+)+)+)+$');});function a56c(){const u=['DOWN','6375580NigJcj','logger','set','INSIDE','attemptUnlock','description','get','north','name','NORTH','6834582Dukvgs','apply','getOppositeDirection','762GpUYTt','attemptUnlockExit','Invalid\x20direction:\x20','112RwYgEy','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','isStartRoom','inventory','WEST','The\x20','roomA','search','Item\x20added\x20to\x20room\x20','down','Room\x20created:\x20','94863EWRTFt','west','Checking\x20if\x20exit\x20in\x20direction\x20','speak','findExistingDoor','roomType','exits','toString','constructor','checkIfLocked','890240qUCKII','.\x20Success:\x20','say','\x20unlocked!','1345LJLtJy','write','removeItem','getInstance','setPuzzle','isExitLocked','values','14jVYHfg','roomB','addItem','puzzle','1169176nlJlzF','264887yBNwjR','east','south','No\x20locked\x20exit\x20found\x20in\x20direction\x20'];a56c=function(){return u;};return a56c();}a56a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a56i(0xb3)]=Logger[a56i(0xa4)]();[a56i(0xba)];[a56i(0xb7)];['exits']=new Map();[a56i(0xd2)];[a56i(0xc4)];[a56i(0xc5)]=new Inventory();constructor(a){const j=a56i;super(),this[j(0xba)]=a[j(0xba)],this[j(0xb7)]=a[j(0xb7)],this[j(0xd2)]=a[j(0xd2)]||RoomType[j(0xb5)],a[j(0xd3)]&&(this['exits']=a['exits']||new Map()),a['inventory']&&(this[j(0xc5)]=a[j(0xc5)]),a[j(0xab)]&&(this[j(0xab)]=a[j(0xab)]),this['isStartRoom']=a[j(0xc4)]||![],this[j(0xb3)]['write'](j(0xcc)+this[j(0xba)]);}[a56i(0xd9)](a,b){const k=a56i;this['emit'](k(0xd0),a,b);}['addExit'](a,b,c){const l=a56i;let d=this[l(0xd1)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits'][l(0xb4)](a,d),b[l(0xd3)][l(0xb4)](this['getOppositeDirection'](a),d);}[a56i(0xc0)](a,b){const m=a56i,c=this['exits'][m(0xb8)](a);if(c instanceof Door){const d=c[m(0xb6)](b);return this[m(0xb3)][m(0xa2)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+m(0xd8)+d),d?'The\x20'+c['name']+m(0xda):m(0xc7)+c[m(0xba)]+'\x20remains\x20locked.';}return this[m(0xb3)][m(0xa2)](m(0xb0)+a),'There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.';}['getExit'](a){const n=a56i;return this[n(0xb3)][n(0xa2)]('Fetching\x20exit\x20in\x20direction:\x20'+a),this[n(0xd3)][n(0xb8)](a);}[a56i(0xa6)](a){const o=a56i,b=this[o(0xd3)][o(0xb8)](a),c=b instanceof Door&&b[o(0xd6)]();return this['logger'][o(0xa2)](o(0xcf)+a+'\x20is\x20locked.\x20Result:\x20'+c),c;}[a56i(0xaa)](a){const p=a56i;this[p(0xc5)][p(0xaa)](a),this['logger'][p(0xa2)](p(0xca)+this[p(0xba)]+':\x20'+a[p(0xba)]);}[a56i(0xa3)](a){const q=a56i;this[q(0xc5)]['hasItem'](a[q(0xba)])?(this['inventory'][q(0xa3)](a[q(0xba)]),this['logger'][q(0xa2)]('Item\x20removed\x20from\x20room\x20'+this[q(0xba)]+':\x20'+a[q(0xba)])):this['logger']['write'](q(0xc3)+this[q(0xba)]+':\x20'+a['name']);}[a56i(0xa5)](a){const r=a56i;this['puzzle']=a,this['logger'][r(0xa2)]('Puzzle\x20set\x20for\x20room\x20'+this['name']+':\x20'+a['riddle']);}[a56i(0xbe)](a){const s=a56i;switch(a){case s(0xb9):return Direction['SOUTH'];case s(0xaf):return Direction[s(0xbb)];case s(0xae):return Direction[s(0xc6)];case s(0xce):return Direction['EAST'];case'up':return Direction[s(0xb1)];case s(0xcb):return Direction['UP'];default:throw new Error(s(0xc1)+a);}}[a56i(0xd1)](a){const t=a56i;for(const b of this[t(0xd3)][t(0xa7)]()){if(b instanceof Door){if(b[t(0xc8)]===this&&b[t(0xa9)]===a||b[t(0xa9)]===this&&b[t(0xc8)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a57d(a,b);}const a57l=a57d;function a57c(){const D=['currentLocation','getCharacterLocation','player','\x20already\x20exists\x20in\x20the\x20scene.','addItemToRoom','search','determineStartRoom','\x20to\x20room\x20','Added\x20item\x20','hasOwnProperty','18136CJRwmC','roomConfiguration','apply','name','keys','initialize','createExitsFromConfig','characterLocations','Room\x20\x22','connectRooms','setCharacterLocation','516261vYvSoV','1310552agQcBZ','313020nPoHlr','logger','Failed\x20to\x20set\x20','No\x20actor\x20with\x20name\x20','join','addExit','Added\x20puzzle\x20to\x20room\x20','has','constructor','\x20found\x20in\x20the\x20scene.','389700tcsPHk','toString','actors','getActor','\x27s\x20location.\x20Room\x20','addRoom','Removed\x20room\x20from\x20scene:\x20','targetRoom','1774iIVOBI','setPuzzle','get','Failed\x20to\x20add\x20puzzle.\x20Room\x20','66ZnIFGW','50680phFhxF','values','set','\x20not\x20found\x20in\x20scene.','roomFactory','toUpperCase','createRoom','.\x20Room\x20','addPuzzleToRoom','(((.+)+)+)+$','Added\x20room\x20to\x20scene:\x20','keyRequired','1029yOYfSf','generateRoomsFromConfig','write','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','delete','getInstance','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','rooms','removeActor','length','Failed\x20to\x20add\x20item\x20','exits','getRooms','addActor','isStartRoom'];a57c=function(){return D;};return a57c();}(function(a,b){const i=a57d,c=a();while(!![]){try{const d=parseInt(i(0x1b3))/0x1+-parseInt(i(0x1ea))/0x2+parseInt(i(0x1e8))/0x3+-parseInt(i(0x1e9))/0x4+parseInt(i(0x1b8))/0x5*(parseInt(i(0x1b7))/0x6)+parseInt(i(0x1c4))/0x7*(parseInt(i(0x1dd))/0x8)+parseInt(i(0x1ab))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x2b65e));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0x1ac)]()[k(0x1d8)]('(((.+)+)+)+$')[k(0x1ac)]()[k(0x1f2)](a57a)[k(0x1d8)](k(0x1c1));});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(0x1cb)];['player'];[a57l(0x1eb)];[a57l(0x1ad)];[a57l(0x1e4)]=new Map();[a57l(0x1bc)];constructor(a){const m=a57l;super(),this[m(0x1bc)]=new RoomFactory(),this['player']=a[m(0x1d5)],this[m(0x1cb)]=this[m(0x1c5)](a[m(0x1de)]),this[m(0x1eb)]=Logger[m(0x1c9)](),this[m(0x1ad)]=new Map(),this[m(0x1e3)](a[m(0x1de)]),this['logger'][m(0x1c6)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[m(0x1e1)](this[m(0x1cb)])[m(0x1ee)](',\x20'));}[a57l(0x1e2)](){const n=a57l;this[n(0x1d5)][n(0x1d3)]=this[n(0x1d9)]();}['generateRoomsFromConfig'](a){const o=a57l;if(!this['roomFactory'])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this[o(0x1bc)][o(0x1be)](c);b[c[o(0x1e0)]]=d;}return b;}[a57l(0x1e3)](a){const p=a57l;for(const b of a){const c=this[p(0x1cb)][b[p(0x1e0)]];if(b[p(0x1cf)])for(const d of b[p(0x1cf)]){const e=d['direction'][p(0x1bd)](),f=d[p(0x1b2)],g=d[p(0x1c3)],h=this['rooms'][f];h&&c[p(0x1ef)](Direction[e],h,g);}}}[a57l(0x1d1)](a){const q=a57l;if(this[q(0x1ad)][q(0x1f1)](a[q(0x1e0)]))throw new Error('Actor\x20with\x20name\x20'+a[q(0x1e0)]+q(0x1d6));this[q(0x1ad)][q(0x1ba)](a[q(0x1e0)],a);}[a57l(0x1cc)](a){const r=a57l;if(!this['actors']['has'](a))throw new Error(r(0x1ed)+a+r(0x1aa));this[r(0x1ad)][r(0x1c8)](a);}[a57l(0x1ae)](a){const s=a57l;return this['actors'][s(0x1b5)](a);}get['allActors'](){const t=a57l;return Array['from'](this[t(0x1ad)][t(0x1b9)]());}[a57l(0x1b0)](a){const u=a57l;this[u(0x1cb)][a[u(0x1e0)]]=a,this[u(0x1eb)][u(0x1c6)](u(0x1c2)+a[u(0x1e0)]);}['removeRoom'](a){const v=a57l;return this[v(0x1cb)][a]?(delete this['rooms'][a],this[v(0x1eb)][v(0x1c6)](v(0x1b1)+a),!![]):(this[v(0x1eb)][v(0x1c6)](v(0x1ca)+a),![]);}[a57l(0x1d7)](a,b){const w=a57l,c=this[w(0x1cb)][b];c?(c['addItem'](a),this[w(0x1eb)][w(0x1c6)](w(0x1db)+a[w(0x1e0)]+w(0x1da)+c[w(0x1e0)])):this[w(0x1eb)]['write'](w(0x1ce)+a[w(0x1e0)]+w(0x1bf)+b+w(0x1bb));}[a57l(0x1c0)](a,b){const x=a57l,c=this['rooms'][b];c?(c[x(0x1b4)](a),this['logger']['write'](x(0x1f0)+c[x(0x1e0)])):this['logger'][x(0x1c6)](x(0x1b6)+b+x(0x1bb));}[a57l(0x1e7)](a,b){const y=a57l,c=this['rooms'][b];c?(this[y(0x1e4)][y(0x1ba)](a['name'],c),this[y(0x1eb)][y(0x1c6)](a[y(0x1e0)]+'\x20is\x20now\x20in\x20room\x20'+c[y(0x1e0)])):this[y(0x1eb)]['write'](y(0x1ec)+a[y(0x1e0)]+y(0x1af)+b+y(0x1bb));}[a57l(0x1d4)](a){const z=a57l;return this[z(0x1e4)][z(0x1b5)](a[z(0x1e0)]);}[a57l(0x1d9)](){const A=a57l,a=[];for(const c in this['rooms']){if(this[A(0x1cb)][A(0x1dc)](c)){const d=this[A(0x1cb)][c];d[A(0x1d2)]&&a['push'](d);}}if(a[A(0x1cd)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a['length']===0x1)return a[0x0];const b=Object[A(0x1e1)](this[A(0x1cb)]);if(b[A(0x1cd)]===0x0)throw new Error(A(0x1c7));return console['warn']('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this[A(0x1cb)][b[0x0]];}['getPlayer'](){return this['player'];}[a57l(0x1d0)](){const B=a57l;return this[B(0x1cb)];}[a57l(0x1e6)](a,b,c,d){const C=a57l,e=this['rooms'][a],f=this['rooms'][c];if(!e)throw new Error(C(0x1e5)+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(C(0x1e5)+c+'\x22\x20does\x20not\x20exist.');e[C(0x1ef)](b,f,d);}}
|