@maka/maka-cli 5.0.27 → 5.0.28
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/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/templates/meteor/api/graphql-api.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/cfg/cfg.class.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/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.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
|
|
1
|
+
function a38c(){const m=['861816LMDFuJ','5TyNRxt','Below\x20you,\x20','12582TwapIW','actor','Looking\x20at\x20item\x20\x27','637840VmEsxM','\x27\x20in\x20current\x20room\x20inventory.','Executing\x20\x27Look\x27\x20command.','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','look','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','description','puzzle','25994avguky','name','write','Examine\x20your\x20surroundings','search','hasItem','execute','inventory','Above\x20you,\x20','rooms','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','You\x20cannot\x20see\x20through','1066146OCPVOT','exits','658370paCYec','\x27\x20in\x20','verb','inspectItem','It\x27s\x20just\x20a\x20regular\x20',',\x20you\x20see\x20','\x20is\x20looking\x20around\x20the\x20current\x20room.','lookOutside','string','error','(((.+)+)+)+$','constructor','1213331nxcLzP','122GEIasY','getItem','You\x20don\x27t\x20see\x20any\x20','You\x20cannot\x20see\x20','roomType','\x20inventory.','45UqUNot','You\x27re\x20not\x20in\x20a\x20valid\x20room.','logger','isValidDirection','getOtherSide','currentLocation','\x20here.','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.'];a38c=function(){return m;};return a38c();}const a38h=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0x1ff))/0x1+-parseInt(f(0x1e3))/0x2*(parseInt(f(0x1f4))/0x3)+parseInt(f(0x1f1))/0x4*(-parseInt(f(0x1f2))/0x5)+parseInt(f(0x20c))/0x6+parseInt(f(0x1e2))/0x7+-parseInt(f(0x1f7))/0x8+parseInt(f(0x1e9))/0x9*(parseInt(f(0x20e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x25e31));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const g=a38d;return a38a['toString']()[g(0x203)](g(0x1e0))['toString']()[g(0x1e1)](a38a)['search']('(((.+)+)+)+$');});a38a();import{Door}from'../models/door.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a38d(a,b);}import{RoomType}from'../types/enums.js';import{Command}from'./command.js';export class LookCommand extends Command{static [a38h(0x210)]='look';static [a38h(0x1fd)]=a38h(0x202);[a38h(0x205)](a=[]){const i=a38h;this['logger'][i(0x201)](i(0x1f9));const b=a['join']('\x20');if(b){if(this[i(0x1f5)]['inventory'][i(0x204)](b))return this['logger']['write']('Looking\x20at\x20item\x20\x27'+b+i(0x20f)+this[i(0x1f5)]['name']+i(0x1e8)),this[i(0x211)](b,this['actor'][i(0x206)]);else{if(this[i(0x1f5)]['currentLocation'][i(0x206)]['hasItem'](b))return this[i(0x1eb)]['write'](i(0x1f6)+b+i(0x1f8)),this[i(0x211)](b,this['actor']['currentLocation']['inventory']);else return this[i(0x1ec)](b)?(this[i(0x1eb)][i(0x201)](i(0x20a)+b+'\x27.'),this[i(0x1dd)](b)):i(0x1e6)+b;}}else return this['logger'][i(0x201)](this[i(0x1f5)][i(0x200)]+i(0x214)),this['look']();}[a38h(0x1fb)](){const j=a38h,a=this[j(0x1f5)][j(0x1ee)];if(!a)return this[j(0x1eb)]['error'](this['actor'][j(0x200)]+j(0x1f0)),'You\x27re\x20not\x20in\x20a\x20valid\x20room.';let b=a[j(0x1fd)];return a[j(0x1fe)]&&(b+='\x0a'+a['puzzle']['riddle']),b;}[a38h(0x1dd)](a){const k=a38h,b=this[k(0x1f5)][k(0x1ee)];if(!b)return this['logger'][k(0x1df)](this[k(0x1f5)][k(0x200)]+k(0x1f0)),k(0x1ea);const c=b[k(0x20d)]['get'](a);if(!c)return k(0x1fa)+a+'\x22.';let d;if(c instanceof Door)d=c[k(0x1ed)](b);else{if(typeof c===k(0x1de)){d=this[k(0x208)]&&this[k(0x208)][c];if(!d)return k(0x209)+a+'\x22.';}else return k(0x1fc)+a+'\x22.';}if(d[k(0x1e7)]===RoomType['OUTSIDE']){if(a==='up')return k(0x207)+d[k(0x1fd)];else return a==='down'?k(0x1f3)+d[k(0x1fd)]:'To\x20the\x20'+a+k(0x213)+d[k(0x1fd)];}else return k(0x20b);}[a38h(0x211)](a,b){const l=a38h,c=b[l(0x1e4)](a);if(!c)return l(0x1e5)+a+l(0x1ef);return c[l(0x1fd)]||l(0x212)+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-
|
|
1
|
+
const a39i=a39d;function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x190;let f=c[d];return f;},a39d(a,b);}(function(a,b){const g=a39d,c=a();while(!![]){try{const d=parseInt(g(0x192))/0x1*(parseInt(g(0x1a0))/0x2)+-parseInt(g(0x1a3))/0x3*(parseInt(g(0x1a8))/0x4)+parseInt(g(0x194))/0x5*(parseInt(g(0x1aa))/0x6)+parseInt(g(0x1a6))/0x7+-parseInt(g(0x1ac))/0x8+parseInt(g(0x1a4))/0x9+-parseInt(g(0x1a7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xe17ee));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']()['search'](h(0x193))[h(0x1a2)]()['constructor'](a39a)[h(0x19c)](h(0x193));});a39a();import{Command}from'./command.js';export class SayCommand extends Command{static [a39i(0x1af)]=a39i(0x1a5);static [a39i(0x190)]=a39i(0x195);[a39i(0x1ae)];constructor(a){const j=a39i;super(a),this[j(0x1ae)]=a;}[a39i(0x1a9)](a){const k=a39i;if(a[k(0x196)]===0x0)return k(0x199);const b=a[k(0x19b)]('\x20'),c=this[k(0x197)],d=this[k(0x1ae)][k(0x191)];if(!d)return this[k(0x19a)]['log']('Scene\x20is\x20missing\x20from\x20context.'),'An\x20error\x20occurred.';const e=d[k(0x19d)][k(0x19f)](f=>f[k(0x1a1)]===c['currentLocation']);for(const f of e){this[k(0x19a)][k(0x19e)](c[k(0x1ad)]+'\x20says\x20to\x20'+f[k(0x1ad)]+k(0x1ab)+b+'\x22'),this['actor']['currentLocation']['say'](f,b);}return k(0x198)+b+'\x22';}}function a39c(){const l=['What\x20do\x20you\x20want\x20to\x20say?','logger','join','search','allActors','log','filter','12346CAMMCP','currentLocation','toString','10986pXwYAK','16614243SCPshN','say','9544297FFtHJD','25169060vvpfmY','340ejYGHM','execute','12QwEQzw',':\x20\x22','10070848fPBjev','name','context','verb','description','scene','86xAraoH','(((.+)+)+)+$','3175715RWMgqE','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','length','actor','You\x20say:\x20\x22'];a39c=function(){return l;};return a39c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d
|
|
1
|
+
function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x1df;let f=c[d];return f;},a40d(a,b);}const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x1fa))/0x1*(parseInt(f(0x1e4))/0x2)+parseInt(f(0x1e8))/0x3*(parseInt(f(0x1f5))/0x4)+parseInt(f(0x1e5))/0x5+-parseInt(f(0x1f2))/0x6+parseInt(f(0x1e3))/0x7+parseInt(f(0x1f1))/0x8*(parseInt(f(0x1ed))/0x9)+parseInt(f(0x1ee))/0xa*(-parseInt(f(0x1f3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x3e5b5));function a40c(){const k=['constructor','24lhrfeD','69426MXoPCm','176SSmvUw','listItems','8FkRcad','Search\x20for\x20items\x20in\x20your\x20area','You\x20search\x20the\x20area\x20and\x20find:\x20','SearchCommand:\x20','currentLocation','331RiqiTh','apply','write','join','toString','actor','length','\x20found\x20the\x20following\x20items:\x20','3083528MGEkxw','932fKZXYE','815350oLeUoS','logger','inventory','126039YmdseH','name','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','search','1435446WWriYk','658340NZferP','(((.+)+)+)+$'];a40c=function(){return k;};return a40c();}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x1fb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a['toString']()[h(0x1ec)]('(((.+)+)+)+$')[h(0x1df)]()[h(0x1f0)](a40a)[h(0x1ec)](h(0x1ef));});a40a();import{Command}from'./command.js';export class SearchCommand extends Command{static ['verb']='search';static ['description']=a40i(0x1f6);['execute'](){const j=a40i,a=this['actor'][j(0x1f9)][j(0x1e7)][j(0x1f4)]();if(a[j(0x1e1)]===0x0)return this['logger'][j(0x1fc)](j(0x1f8)+this[j(0x1e0)][j(0x1e9)]+j(0x1eb)),j(0x1ea);const b=a[j(0x1fd)](',\x20');return this[j(0x1e6)][j(0x1fc)](j(0x1f8)+this[j(0x1e0)][j(0x1e9)]+j(0x1e2)+b),j(0x1f7)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x1c1))/0x1+-parseInt(f(0x1bb))/0x2+-parseInt(f(0x1ba))/0x3*(parseInt(f(0x1c9))/0x4)+-parseInt(f(0x1c0))/0x5*(parseInt(f(0x1d4))/0x6)+-parseInt(f(0x1c6))/0x7+-parseInt(f(0x1d2))/0x8*(parseInt(f(0x1d0))/0x9)+-parseInt(f(0x1ce))/0xa*(-parseInt(f(0x1b9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x29363));function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1b9;let f=c[d];return f;},a41d(a,b);}const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x1c3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x1bd)]()['search']('(((.+)+)+)+$')[h(0x1bd)]()['constructor'](a41a)[h(0x1c4)](h(0x1d5));});a41a();import{Command}from'./command.js';function a41c(){const k=['toString','toLowerCase','success','20595xlUcez','278968YVWYjI','message','apply','search','description','937937vwelSS','solve','actor','883396njEPEc','puzzle','rewardItem','logger','write','323100kAWxww','Attempt\x20to\x20solve\x20a\x20puzzle.','998946PXJSuV','addItem','8eGwBVK','SolveCommand:\x20','366UYoRnt','(((.+)+)+)+$','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','inventory','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','495UhECgn','3SIwZnM','578172JZwXqz','currentLocation'];a41c=function(){return k;};return a41c();}export class SolveCommand extends Command{static ['verb']=a41i(0x1c7);static [a41i(0x1c5)]=a41i(0x1cf);['execute'](a){const j=a41i,b=a['join']('\x20')[j(0x1be)](),c=this[j(0x1c8)][j(0x1bc)];if(!c||!c[j(0x1ca)])return this[j(0x1cc)][j(0x1cd)](j(0x1d6)),j(0x1d8);const d=c[j(0x1ca)]['solve'](b,this[j(0x1c8)][j(0x1d7)]);return d[j(0x1bf)]&&c[j(0x1ca)][j(0x1cb)]&&this['actor'][j(0x1d7)][j(0x1d1)](c[j(0x1ca)][j(0x1cb)]),this[j(0x1cc)][j(0x1cd)](j(0x1d3)+d[j(0x1c2)]),d[j(0x1c2)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xa3;let f=c[d];return f;},a42d(a,b);}const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0xaf))/0x1*(-parseInt(f(0xb9))/0x2)+-parseInt(f(0xb7))/0x3*(parseInt(f(0xa9))/0x4)+parseInt(f(0xa7))/0x5+-parseInt(f(0xb8))/0x6+parseInt(f(0xb3))/0x7+parseInt(f(0xa5))/0x8*(-parseInt(f(0xbb))/0x9)+parseInt(f(0xb1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x37c46));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0xa6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0xb5)]()['search'](h(0xaa))[h(0xb5)]()['constructor'](a42a)[h(0xc1)](h(0xaa));});a42a();import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']='take';static [a42i(0xb4)]=a42i(0xa8);[a42i(0xc9)](a){const j=a42i;return this[j(0xb2)]['write'](j(0xc6)+a['join']('\x20')),this[j(0xa3)](a);}[a42i(0xa3)](a){const k=a42i,b=a[k(0xae)]('\x20')[k(0xc4)](),c=this[k(0xc7)]['currentLocation'];if(!c[k(0xc0)]['hasItem'](b))return this[k(0xb2)]['write']('Item\x20\x22'+b+'\x22\x20not\x20found\x20in\x20'+c[k(0xb6)]+k(0xba)),k(0xc5)+b+'\x22\x20in\x20this\x20room.';const d=c[k(0xc0)][k(0xcb)](b);if(!d)return this['logger']['write'](k(0xbc)+b+'\x22\x20not\x20retrieved\x20from\x20'+c[k(0xb6)]+k(0xb0)),'There\x20is\x20no\x20item\x20\x22'+b+k(0xad);try{return this[k(0xc7)][k(0xab)](d),this[k(0xb2)][k(0xa4)](k(0xca)+b+k(0xbf)+this[k(0xc7)][k(0xb6)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[k(0xc0)]['removeItem'](b),this['logger'][k(0xa4)](k(0xc2)+b+k(0xbd)+c[k(0xb6)]+k(0xb0)),k(0xac)+b+'.';}catch(e){return this['logger']['write'](k(0xc3)+e[k(0xc8)]),k(0xbe)+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}function a42c(){const l=['14205TkagUD','1748802chxAOy','30838jMXUVx','\x20during\x20\x27Take\x27\x20command.','1557yJbElQ','Item\x20\x22','\x22\x20from\x20','The\x20item\x20\x22','\x22\x20to\x20','inventory','search','Successfully\x20removed\x20\x22','Error\x20during\x20\x27Take\x27\x20command:\x20','toLowerCase','There\x20is\x20no\x20item\x20\x22','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','actor','message','execute','Successfully\x20added\x20\x22','getItem','take','write','2536dWjHux','apply','747130Nqiqbp','Pick\x20up\x20an\x20item.','60AtsJkn','(((.+)+)+)+$','addInventory','You\x20have\x20taken\x20the\x20','\x22\x20in\x20this\x20room.','join','1HOvMyF','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','4418400EecBxs','logger','489356vBpZeq','description','toString','name'];a42c=function(){return l;};return a42c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a43c(){const j=['unequip','name','2EErBcJ','logger','3806840zgWlnf','39116QtLqfh','1215AcqwSz','(((.+)+)+)+$','1507152StEhZW','actor','569387vUxlbT','toString','constructor','toLowerCase','search','\x20unqeuiped\x20','8ZWQkfp','868827nSgJiL','7214040paxuKb','verb','186980QCzNJu','description'];a43c=function(){return j;};return a43c();}const a43h=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x185))/0x1*(parseInt(f(0x17d))/0x2)+parseInt(f(0x176))/0x3*(parseInt(f(0x175))/0x4)+parseInt(f(0x17f))/0x5+parseInt(f(0x183))/0x6+parseInt(f(0x180))/0x7+parseInt(f(0x177))/0x8+parseInt(f(0x181))/0x9*(-parseInt(f(0x179))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x84e16));const a43b=(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;};}()),a43a=a43b(this,function(){const g=a43d;return a43a[g(0x186)]()[g(0x189)](g(0x182))[g(0x186)]()[g(0x187)](a43a)[g(0x189)]('(((.+)+)+)+$');});function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x175;let f=c[d];return f;},a43d(a,b);}a43a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a43h(0x178)]='unqeuip';static [a43h(0x17a)]='Unequip\x20an\x20item.';['execute'](a){const i=a43h,b=a['join']('\x20')[i(0x188)](),c=this[i(0x184)][i(0x17b)](b);return this[i(0x17e)]['write']('UnequipCommand:\x20'+this[i(0x184)][i(0x17c)]+i(0x18a)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a44k=a44d;function a44c(){const m=['5tNcdUj','\x22\x20here.','UnlockCommand:\x20','search','logger','618FxlOjc','verb','exits','execute','apply','get','6648NHCNzg','1VVlIef','name','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','has','2392458Wwkpwa','currentLocation','259182mHhQFK','write','11356MxInno','12174890TCqrqy','description','\x20is\x20attempted\x20to\x20unlock\x20','There\x27s\x20no\x20door\x20named\x20\x22','.\x20Result:\x20','length','inventory','toLowerCase','hasItem','constructor','isValidDirection','7776ULCDWO','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','UnlockCommand:\x20No\x20target\x20specified.','error','9237310PWtVQU','(((.+)+)+)+$','actor','5062440TvlWfZ','attemptUnlockExit','44yApgRQ'];a44c=function(){return m;};return a44c();}(function(a,b){const h=a44d,c=a();while(!![]){try{const d=-parseInt(h(0x1da))/0x1*(-parseInt(h(0x1de))/0x2)+-parseInt(h(0x1fd))/0x3*(parseInt(h(0x1e2))/0x4)+-parseInt(h(0x1f8))/0x5*(-parseInt(h(0x1e0))/0x6)+parseInt(h(0x1e3))/0x7+parseInt(h(0x203))/0x8*(-parseInt(h(0x1ee))/0x9)+parseInt(h(0x1f2))/0xa+parseInt(h(0x1f7))/0xb*(-parseInt(h(0x1f5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xdeb01));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x201)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a['toString']()[j(0x1fb)]('(((.+)+)+)+$')['toString']()[j(0x1ec)](a44a)[j(0x1fb)](j(0x1f3));});function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x1da;let f=c[d];return f;},a44d(a,b);}a44a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a44k(0x1fe)]='unlock';static [a44k(0x1e4)]='Unlock\x20a\x20door.';[a44k(0x200)](a){return this['unlock'](a);}['unlock'](a){const l=a44k;if(a[l(0x1e8)]===0x0)return this[l(0x1fc)][l(0x1f1)](l(0x1f0)),'Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.';const b=a[0x0]['toLowerCase'](),c=this[l(0x1f4)][l(0x1df)];if(this[l(0x1ed)](b)&&c[l(0x1ff)][l(0x1dd)](b)){const d=c[l(0x1ff)][l(0x202)](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.[l(0x1ea)]();if(e&&this[l(0x1f4)][l(0x1e9)][l(0x1eb)](e)){const f=this['actor'][l(0x1e9)]['getItem'](e);if(f){const g=c[l(0x1f6)](b,f[l(0x1db)]);return this[l(0x1fc)][l(0x1e1)](l(0x1fa)+this[l(0x1f4)][l(0x1db)]+l(0x1e5)+b+l(0x1e7)+g),g;}}return this['logger'][l(0x1e1)]('UnlockCommand:\x20'+this[l(0x1f4)]['name']+l(0x1dc)+b+'.'),'You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.';}else return this['logger'][l(0x1e1)](l(0x1fa)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[l(0x1db)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+l(0x1f9);}else return this['logger']['write']('UnlockCommand:\x20'+b+l(0x1ef)+c[l(0x1db)]+'.'),l(0x1e6)+b+l(0x1f9);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45h=a45d;function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xff;let f=c[d];return f;},a45d(a,b);}function a45c(){const k=['(((.+)+)+)+$','constructor','actor','4377393qTjlxZ','search','629335DkbNuE','description','inventory','8GCMTtS','440uOgaYN','\x27s\x20inventory.','hasItem','write','236899sOeLhq','7340976rGGTVD','2rHGJeV','20725490iwRiWq','use','execute','\x20to\x20use.','join','\x20not\x20retrieved\x20from\x20','UseCommand:\x20','getItem','\x20doesn\x27t\x20have\x20a\x20use\x20method.','logger','function','3798303raPwIr','name','toString','\x20in\x20this\x20way.','\x20attempted\x20to\x20use\x20','53096VnwGvQ','You\x20don\x27t\x20have\x20the\x20'];a45c=function(){return k;};return a45c();}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0x115))/0x1*(-parseInt(f(0x117))/0x2)+parseInt(f(0x101))/0x3+-parseInt(f(0x106))/0x4*(-parseInt(f(0x111))/0x5)+parseInt(f(0x116))/0x6+-parseInt(f(0x10d))/0x7+parseInt(f(0x110))/0x8*(-parseInt(f(0x10b))/0x9)+-parseInt(f(0x118))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xbc78b));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(0x103)]()[g(0x10c)](g(0x108))[g(0x103)]()[g(0x109)](a45a)[g(0x10c)](g(0x108));});a45a();import{Command}from'./command.js';export class UseCommand extends Command{static ['verb']=a45h(0x119);static [a45h(0x10e)]='Use\x20an\x20item.';[a45h(0x11a)](a){const i=a45h;return this[i(0x119)](a);}[a45h(0x119)](a){const j=a45h,b=a[j(0x11c)]('\x20')['toLowerCase']();if(!this[j(0x10a)][j(0x10f)][j(0x113)](b))return this[j(0xff)][j(0x114)](j(0x11e)+this[j(0x10a)][j(0x102)]+j(0x105)+b+',\x20which\x20is\x20not\x20in\x20their\x20inventory.'),j(0x107)+b+j(0x11b);const c=this['actor'][j(0x10f)][j(0x11f)](b);if(!c)return this[j(0xff)][j(0x114)]('UseCommand:\x20'+b+j(0x11d)+this['actor'][j(0x102)]+j(0x112)),j(0x107)+b+'\x20to\x20use.';if(typeof c['use']===j(0x100)){const d=c[j(0x119)]();return this[j(0xff)]['write']('UseCommand:\x20'+this['actor'][j(0x102)]+'\x20used\x20'+b+'.'),d;}else return this[j(0xff)][j(0x114)](j(0x11e)+b+j(0x120)),'You\x20can\x27t\x20use\x20the\x20'+b+j(0x104);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46i=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d
|
|
1
|
+
const a46i=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d=-parseInt(f(0xee))/0x1+parseInt(f(0xfd))/0x2+parseInt(f(0xf8))/0x3+-parseInt(f(0xf6))/0x4*(parseInt(f(0xf7))/0x5)+-parseInt(f(0xf0))/0x6+parseInt(f(0xf4))/0x7+parseInt(f(0xf1))/0x8*(parseInt(f(0xf3))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x4ad78));function a46c(){const l=['getAllRegisteredCommands','1719RQQMmU','758443GvPnOv','(((.+)+)+)+$','123700nlqxtg','90YqvnqV','1131195PPUmCu','commandMap','search','toString','apply','903674gqrvOG','createCommand','601097HexBwk','constructor','1170738NpFOQp','30248KfNkhU'];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(0xfc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a[h(0xfb)]()[h(0xfa)](h(0xf5))[h(0xfb)]()[h(0xef)](a46a)[h(0xfa)](h(0xf5));});a46a();function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0xee;let f=c[d];return f;},a46d(a,b);}export class CommandFactory{static [a46i(0xf9)]={};static['registerCommand'](a,b){const j=a46i;this[j(0xf9)][a]=b;}static[a46i(0xfe)](a,b){const k=a46i,c=this[k(0xf9)][a];if(c)return new c(b);return null;}static[a46i(0xf2)](){return this['commandMap'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d
|
|
1
|
+
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x114))/0x1+-parseInt(f(0x107))/0x2*(parseInt(f(0x11b))/0x3)+-parseInt(f(0x11a))/0x4+parseInt(f(0x10a))/0x5+-parseInt(f(0x11c))/0x6*(parseInt(f(0x105))/0x7)+-parseInt(f(0x106))/0x8+parseInt(f(0x10c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x25827));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x117)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x115)]()[h(0x118)](h(0x10d))[h(0x115)]()[h(0x112)](a47a)[h(0x118)](h(0x10d));});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';function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x100;let f=c[d];return f;},a47d(a,b);}function a47c(){const n=['name','constructor','convertToRoomConfig','182024ilGYyN','toString','puzzle','apply','search','roomType','274176KtCxDI','3PLavci','20472muLoev','forEach','createPuzzle','setPuzzle','inventory','addItem','boots','legarmor','gloves','INSIDE','273zGXRNd','2098512ZsayTx','159238MElPdX','description','items','1168860zOLSoQ','toUpperCase','2532492XFPXzT','(((.+)+)+)+$','createRoom','content','helmet'];a47c=function(){return n;};return a47c();}export class RoomFactory{[a47i(0x10e)](a){const j=a47i,b=this[j(0x113)](a),c=new Room(b);if(a[j(0x109)]){const d=new Inventory();a[j(0x109)][j(0x11d)](e=>{const k=j;d[k(0x100)](this['createItem'](e));}),c[j(0x120)]=d;}return a['puzzle']&&c[j(0x11f)](this[j(0x11e)](a[j(0x116)])),c;}['createItem'](a){const l=a47i;switch(a['type']){case'key':return new Key(a['name'],a['description']);case'book':return new Book(a[l(0x111)],a[l(0x108)],a[l(0x10f)]);case'sword':return new Sword(a[l(0x111)],a[l(0x108)]);case'rifle':return new Rifle(a[l(0x111)],a[l(0x108)]);case l(0x110):return new Helmet(a[l(0x111)],a[l(0x108)]);case'bodyarmor':return new BodyArmor(a['name'],a[l(0x108)]);case l(0x102):return new LegArmor(a[l(0x111)],a[l(0x108)]);case l(0x101):return new Boots(a[l(0x111)],a[l(0x108)]);case l(0x103):return new Gloves(a[l(0x111)],a[l(0x108)]);case'gauntlets':return new Gauntlets(a[l(0x111)],a['description']);default:return new BasicItem(a[l(0x111)],a[l(0x108)]);}}['createPuzzle'](a){const b=this['createItem'](a['rewardItem']);return new Puzzle({...a,'rewardItem':b});}['convertToRoomConfig'](a){const m=a47i,b=a[m(0x119)]&&RoomType[a[m(0x119)]['toUpperCase']()]?RoomType[a[m(0x119)][m(0x10b)]()]:RoomType[m(0x104)];return{'name':a[m(0x111)],'description':a[m(0x108)],'isStartRoom':a['isStartRoom'],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=-parseInt(h(0xf1))/0x1*(parseInt(h(0xde))/0x2)+-parseInt(h(0xe6))/0x3+-parseInt(h(0xc9))/0x4*(-parseInt(h(0xf6))/0x5)+parseInt(h(0xd1))/0x6*(-parseInt(h(0xe0))/0x7)+-parseInt(h(0xdc))/0x8*(parseInt(h(0xf4))/0x9)+parseInt(h(0xf5))/0xa*(parseInt(h(0xd8))/0xb)+parseInt(h(0xf2))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xd050b));function a48c(){const s=['instance','initialize','name','currentLocation','apply','split','toLowerCase','determineStartRoom','maka','search','1YusvVc','27004728cIUlKH','getHelpMessage','639JsoDfm','3457920GBWXfO','19020UKwFPX','scene','handleInput','rooms','player','drop','getRooms','execute','652ItcLEY','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','registerCommands','-\x20quit:\x20Exit\x20the\x20game.\x0a','unequip','trim','(((.+)+)+)+$','getAllRegisteredCommands','12zHpbns','quit','registerCommand','say','createCommand','use','slice','44JdpUNg','toString','getDescription','getInstance','143912ytBYkM','constructor','1713662MsGmHE','take','4167884oBRFrK','clear','getWelcomeMessage','Available\x20Commands:\x0a','-\x20clear:\x20Clear\x20the\x20screen.\x0a','currentRoom','226443stDleD'];a48c=function(){return s;};return a48c();}const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a[j(0xd9)]()['search'](j(0xcf))['toString']()[j(0xdd)](a48a)['search'](j(0xcf));});a48a();import{Scene}from'./models/scene.js';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0xc5;let f=c[d];return f;},a48d(a,b);}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(0xe7)];[a48k(0xf7)];[a48k(0xc5)];[a48k(0xe5)];[a48k(0xf9)];constructor(a,b){const l=a48k;this[l(0xc5)]=a,this[l(0xf7)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0xf7)][l(0xe8)](),this['player'][l(0xea)]=this[l(0xee)](),this[l(0xcb)]();}['registerCommands'](){const m=a48k;CommandFactory[m(0xd3)]('look',LookCommand),CommandFactory[m(0xd3)]('go',GoCommand),CommandFactory[m(0xd3)](m(0xdf),TakeCommand),CommandFactory[m(0xd3)](m(0xd6),UseCommand),CommandFactory[m(0xd3)]('equip',EquipCommand),CommandFactory[m(0xd3)](m(0xcd),UnequipCommand),CommandFactory[m(0xd3)]('solve',SolveCommand),CommandFactory[m(0xd3)](m(0xc6),DropCommand),CommandFactory['registerCommand']('unlock',UnlockCommand),CommandFactory[m(0xd3)]('lock',LockCommand),CommandFactory[m(0xd3)](m(0xf0),SearchCommand),CommandFactory[m(0xd3)](m(0xd4),SayCommand);}[a48k(0xee)](){const n=a48k;return this[n(0xf7)][n(0xee)]();}[a48k(0xe2)](){const o=a48k;return'Welcome,\x20'+this[o(0xc5)][o(0xe9)];}static[a48k(0xdb)](a,b){const p=a48k;return!Game['instance']&&(Game[p(0xe7)]=new Game(a,b)),Game[p(0xe7)];}[a48k(0xf8)](a){const q=a48k,b=a[q(0xce)]()[q(0xec)]('\x20'),c=b[0x0][q(0xed)](),d=b[q(0xd7)](0x1);if(c===q(0xd2))return null;if(c===q(0xef))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c==='help')return this[q(0xf3)]();if(c===q(0xe1))return'';const e={'actor':this[q(0xc5)],'rooms':this['scene'][q(0xc7)](),'scene':this['scene']},f=CommandFactory[q(0xd5)](c,e);if(f){const g=f[q(0xc8)](d);return g;}return q(0xca)+c+'\x22.';}[a48k(0xf3)](){const r=a48k,a=CommandFactory[r(0xd0)]();let b=r(0xe3);for(const c in a){if(a['hasOwnProperty'](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0xda)]()+'\x0a';}}return b+=r(0xe4),b+=r(0xcc),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(0x123))/0x1+-parseInt(f(0x128))/0x2+parseInt(f(0x12f))/0x3+parseInt(f(0x124))/0x4*(-parseInt(f(0x12c))/0x5)+-parseInt(f(0x129))/0x6*(parseInt(f(0x12b))/0x7)+-parseInt(f(0x131))/0x8*(parseInt(f(0x130))/0x9)+parseInt(f(0x127))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x202a3));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x126)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a['toString']()[h(0x125)]('(((.+)+)+)+$')[h(0x12e)]()[h(0x12a)](a49a)[h(0x125)](h(0x12d));});a49a();export*from'./door.js';export*from'./inventory.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x123;var f=c[d];return f;},a49d(a,b);}export*from'./item.js';export*from'./npc.js';export*from'./player.js';function a49c(){var i=['apply','7079470sxcugl','458690zFMEWp','68946KAheUY','constructor','49ZEOZSb','116140CJkgOU','(((.+)+)+)+$','toString','737514gPWuHv','351RldhCI','46408NIpwuQ','262789JEhwQG','4howfWv','search'];a49c=function(){return i;};return a49c();}export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a50h=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=parseInt(f(0x167))/0x1*(-parseInt(f(0x155))/0x2)+-parseInt(f(0x153))/0x3+parseInt(f(0x159))/0x4*(-parseInt(f(0x15e))/0x5)+-parseInt(f(0x152))/0x6+-parseInt(f(0x166))/0x7+parseInt(f(0x14d))/0x8+parseInt(f(0x15b))/0x9*(parseInt(f(0x15c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xc45a1));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[g(0x150)]()[g(0x158)](g(0x14c))[g(0x150)]()['constructor'](a50a)['search'](g(0x14c));});a50a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a50h(0x14b)];[a50h(0x164)];[a50h(0x15f)];[a50h(0x15a)];[a50h(0x154)];[a50h(0x162)];['isLockable'];constructor(a){var i=a50h;super(),this[i(0x14b)]=a[i(0x14b)],this['roomB']=a['roomB'],this['isLocked']=a[i(0x15f)]||![],this[i(0x15a)]=a['unlockItemOrSolution'],this['name']=a[i(0x154)]?capitalCase(a[i(0x154)]):i(0x163)+a[i(0x164)][i(0x154)],this[i(0x162)]=Logger[i(0x151)](),this[i(0x14f)]=!!a[i(0x15a)],this[i(0x162)]['write']('Door\x20created\x20between\x20'+this[i(0x14b)]['name']+i(0x161)+this[i(0x164)][i(0x154)]+'.\x20Is\x20Locked:\x20'+this[i(0x15f)]);}['getOtherSide'](a){var j=a50h;return this['roomA']===a?this[j(0x164)]:this['roomA'];}[a50h(0x15d)](a){var k=a50h;if(this[k(0x15f)]&&this[k(0x15a)]&&this[k(0x15a)]===a)return this[k(0x15f)]=![],this[k(0x162)][k(0x14e)](k(0x156)+this[k(0x154)]+k(0x160)+a),!![];return this[k(0x162)]['write'](k(0x165)+this['name']+'.\x20Used:\x20'+a),![];}['checkIfLocked'](){var l=a50h;return this[l(0x15f)];}[a50h(0x157)](){var m=a50h;return this[m(0x14f)];}}function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x14b;var f=c[d];return f;},a50d(a,b);}function a50c(){var n=['roomA','(((.+)+)+)+$','1639312bOLkOd','write','isLockable','toString','getInstance','388440SWmghR','566823SATfrr','name','22042fTpXLu','Door\x20unlocked:\x20','checkIfLockable','search','53492vWaLBZ','unlockItemOrSolution','23958243vdGxRd','20tXHZMV','attemptUnlock','535PLWJCK','isLocked','.\x20Used:\x20','\x20and\x20','logger','To\x20','roomB','Failed\x20to\x20unlock\x20door:\x20','10943135aciqpI','134rnFUhG'];a50c=function(){return n;};return a50c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0xb5))/0x1+-parseInt(f(0xb1))/0x2*(parseInt(f(0xbb))/0x3)+parseInt(f(0xba))/0x4*(-parseInt(f(0xc1))/0x5)+-parseInt(f(0xd1))/0x6+-parseInt(f(0xc6))/0x7*(-parseInt(f(0xaf))/0x8)+parseInt(f(0xbe))/0x9*(-parseInt(f(0xcd))/0xa)+parseInt(f(0xb6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x67467));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0xb8)]()[h(0xc4)](h(0xc7))[h(0xb8)]()[h(0xbf)](a51a)[h(0xc4)](h(0xc7));});a51a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';function a51c(){const r=['486EJpHVw','name','toLowerCase','getItem','722767Ywkbdf','31761070ysvQky','map','toString','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','28kMUDEM','2418VXjEox','join','keys','45kdEnMT','constructor','listItems','393865YemwVV','values','getAllItems','search','get','644YwLrMA','(((.+)+)+)+$','items','removeItem','logger','.\x20Exists:\x20','\x20from\x20inventory.','373330NaCyTI','weight','Added\x20item:\x20','write','5058996KbVTNp','apply','hasItem','\x20in\x20','set','addItem','Retrieved\x20details\x20for\x20item:\x20','3088oHSnrd','getWeight'];a51c=function(){return r;};return a51c();}function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0xaa;let f=c[d];return f;},a51d(a,b);}import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a51i(0xc8)];[a51i(0xca)];constructor(){const j=a51i;super(),this[j(0xc8)]=new Map(),this[j(0xca)]=Logger['getInstance']();}[a51i(0xad)](a){const k=a51i;this['items'][k(0xac)](a[k(0xb2)][k(0xb3)](),a),this[k(0xca)][k(0xd0)](k(0xcf)+a[k(0xb2)]+'\x20to\x20inventory.');}[a51i(0xc9)](a){const l=a51i,b=this[l(0xb4)](a);if(b)return this['items']['delete'](a[l(0xb3)]()),this[l(0xca)][l(0xd0)]('Removed\x20item:\x20'+a+l(0xcc)),b;return this['logger']['write']('Failed\x20to\x20remove\x20item:\x20'+a+'.\x20Item\x20not\x20found.'),null;}[a51i(0xaa)](a){const m=a51i,b=this[m(0xc8)]['has'](a[m(0xb3)]()),c=[...this['items'][m(0xbd)]()];return this[m(0xca)][m(0xd0)]('Checked\x20for\x20item:\x20'+a+m(0xab)+c[m(0xbc)](',\x20')+m(0xcb)+b+'.'),b;}[a51i(0xb4)](a){const n=a51i,b=this[n(0xc8)][n(0xc5)](a[n(0xb3)]())||null;return b?this[n(0xca)][n(0xd0)](n(0xae)+a+'.'):this[n(0xca)][n(0xd0)](n(0xb9)+a+'.\x20Item\x20not\x20found.'),b;}[a51i(0xc0)](){const o=a51i,a=[...this['items'][o(0xbd)]()],b=a[o(0xb7)](c=>capitalCase(c));return this[o(0xca)][o(0xd0)]('Listed\x20items\x20in\x20inventory:\x20'+b['join'](',\x20')+'.'),a;}[a51i(0xb0)](){const p=a51i;let a=0x0;for(const b of this['items']['values']()){a+=b[p(0xce)];}return a;}[a51i(0xc3)](){const q=a51i;return[...this[q(0xc8)][q(0xc2)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0xf6))/0x1*(parseInt(f(0xf4))/0x2)+-parseInt(f(0xf8))/0x3*(parseInt(f(0xf2))/0x4)+-parseInt(f(0xea))/0x5+parseInt(f(0xfe))/0x6*(-parseInt(f(0xee))/0x7)+parseInt(f(0x101))/0x8*(parseInt(f(0xf5))/0x9)+-parseInt(f(0xfb))/0xa*(parseInt(f(0x100))/0xb)+parseInt(f(0xf9))/0xc*(parseInt(f(0xe7))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x82eb8));var a52b=(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;};}()),a52a=a52b(this,function(){var g=a52d;return a52a[g(0xff)]()['search'](g(0xe5))[g(0xff)]()[g(0xeb)](a52a)[g(0xec)](g(0xe5));});function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xe5;var f=c[d];return f;},a52d(a,b);}a52a();import{v4 as a52e}from'uuid';import{AbstractItem}from'../types/abstracts.js';function a52c(){var k=['category','4FQfnnf','color','2VGvfSe','36IKniTf','653566GwlGCo','description','641214kmSZAM','38216484xZDJri','rating','2030qQMVqW','You\x20use\x20the\x20','name','50118FftFRI','toString','40546PRKgMj','144184KhMpFP','(((.+)+)+)+$','uuid','13SMPuyD','weight','.\x20Nothing\x20special\x20happens.','3561990MmkwXv','constructor','search','texture','329qPVdxI','shape','size'];a52c=function(){return k;};return a52c();}export class Item extends AbstractItem{[a52h(0xe6)];[a52h(0xfd)];[a52h(0xf7)];['size'];[a52h(0xf1)];[a52h(0xef)];[a52h(0xf3)];[a52h(0xed)];['rating'];[a52h(0xe8)];constructor(a){var i=a52h;super(),this[i(0xfd)]=a[i(0xfd)],this[i(0xf7)]=a[i(0xf7)],this[i(0xf0)]=a['size'],this['category']=a[i(0xf1)],this['shape']=a[i(0xef)],this[i(0xf3)]=a['color'],this['texture']=a[i(0xed)],this[i(0xfa)]=a[i(0xfa)],this[i(0xe8)]=a['weight'],this[i(0xe6)]=a52e();}['use'](){var j=a52h;return j(0xfc)+this[j(0xfd)]+j(0xe9);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x103))/0x1*(parseInt(f(0xf0))/0x2)+-parseInt(f(0x101))/0x3+-parseInt(f(0xff))/0x4*(parseInt(f(0xee))/0x5)+parseInt(f(0xed))/0x6+parseInt(f(0x100))/0x7+parseInt(f(0xef))/0x8*(-parseInt(f(0xfc))/0x9)+parseInt(f(0xf1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x8cd07));function a53c(){const o=['_name','name','(((.+)+)+)+$','speak','random','scene','length','floor','moveTo','execute','1819413OCNUuh','rooms','constructor','392164IMEgEY','7777161AexTkE','1691352FwuHyL','autonomousMove','1PedQry','apply','_dialogue','5565318rrQZEb','30xUTQeQ','8hIZNzZ','346646kUtsUR','657090EfitKE'];a53c=function(){return o;};return a53c();}const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a['toString']()['search'](h(0xf4))['toString']()[h(0xfe)](a53a)['search'](h(0xf4));});function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xeb;let f=c[d];return f;},a53d(a,b);}a53a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a53i(0xf2)];[a53i(0xec)];['rooms'];[a53i(0xf7)];constructor(a,b,c,d){const j=a53i;super(d),this[j(0xf2)]=a,this[j(0xec)]=b,this[j(0xfd)]=c;}get[a53i(0xf3)](){const k=a53i;return this[k(0xf2)];}[a53i(0xf5)](){const l=a53i;return this[l(0xec)][Math[l(0xf9)](Math['random']()*this[l(0xec)][l(0xf8)])];}[a53i(0x102)](a){const m=a53i,b=a[Math['floor'](Math[m(0xf6)]()*a['length'])];this['moveTo'](b[m(0xf3)]);}[a53i(0xfa)](a){const n=a53i,b={'actor':this,'rooms':this['rooms'],'scene':this['scene']},c=new GoCommand(b);c[n(0xfb)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54i=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d=parseInt(f(0xb6))/0x1+-parseInt(f(0xd3))/0x2+parseInt(f(0x99))/0x3*(-parseInt(f(0xd7))/0x4)+-parseInt(f(0x9e))/0x5*(parseInt(f(0xc9))/0x6)+parseInt(f(0xbc))/0x7+parseInt(f(0xbe))/0x8+parseInt(f(0xe9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0xf2230));function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x95;let f=c[d];return f;},a54d(a,b);}const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a54d;if(c){const e=c[g(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const h=a54d;return a54a[h(0xd9)]()['search'](h(0xea))['toString']()[h(0xa4)](a54a)['search']('(((.+)+)+)+$');});function a54c(){const C=['log','currentWeight','off','arms','equip','5015931ZhGDMm','inventory','removeItem','rightHand','bind','481285eRVjqq','Added\x20','includes','Hat','You\x20equipped\x20','You\x20don\x27t\x20have\x20','constructor','getInstance','hat','write','category','addItem','speak','boots','Gloves','getWeight','_playerName','values','\x20in\x20your\x20inventory.','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','_inventory','_equipment','armarmor','Removed\x20','221631refsRj','logger','Weapon','Boots','removeInventory','toLowerCase','9230711MmBhLL','A\x20featureless\x20room','1321720HoSdNe','Failed\x20to\x20remove\x20','Nexus','legs','\x20to\x20player\x27s\x20inventory.','torso','head','name','ArmArmor','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','apply','42wOtXXO','hear','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','error','You\x20unequipped\x20','BodyArmor','maxCarryingWeight','_currentLocation','\x20says:\x20\x22','equipment','1543080FVwkTY','bodyarmor','arm\x20armor','shield','4pSDJvb','initialEquipment','toString','leftHand','weight','leaveRoom','canEquip','Helmet','\x20from\x20player\x27s\x20inventory.','inventoryItems','determineEquipmentSlot','unequipBySlot','weapon','feet','addInventory','gloves','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','enterRoom','21632301MKOaWS','(((.+)+)+)+$','hasItem','leg\x20armor','Shield','currentLocation','.\x20You\x20must\x20unequip\x20it\x20first.','_maxCarryingWeight'];a54c=function(){return C;};return a54c();}a54a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a54i(0xae)];[a54i(0xd0)];[a54i(0xb2)];[a54i(0xb3)];['_maxCarryingWeight']=0x32;[a54i(0xb7)];constructor(a){const j=a54i;super(),this[j(0xae)]=a['playerName'],this['_currentLocation']=a['startLocation']||new Room({'name':j(0xc0),'description':j(0xbd)}),this[j(0xb2)]=new Inventory(),this[j(0xb7)]=Logger[j(0xa5)]();if(a?.[j(0xe0)])for(const b of a['inventoryItems']){this[j(0xb2)]['addItem'](b);}this[j(0xb3)]=a?.[j(0xd8)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54i(0xc5)](){const k=a54i;return this[k(0xae)];}get[a54i(0xee)](){const l=a54i;return this[l(0xd0)];}set[a54i(0xee)](a){const m=a54i;this[m(0xd0)]!==a&&(this[m(0xdc)](),this[m(0xe8)](a)),this['_currentLocation']=a;}get[a54i(0x9a)](){return this['_inventory'];}get[a54i(0xd2)](){const n=a54i;return this[n(0xb3)];}set[a54i(0xd2)](a){const o=a54i;this[o(0xb3)]=a;}get[a54i(0xcf)](){const p=a54i;return this[p(0xf0)];}set[a54i(0xcf)](a){const q=a54i;a>0x0?this['_maxCarryingWeight']=a:console[q(0xcc)]('Max\x20carrying\x20weight\x20must\x20be\x20positive.');}get[a54i(0x95)](){const r=a54i;let a=this[r(0xb2)][r(0xad)]();for(const b in this[r(0xb3)]){const c=this[r(0xb3)][b];c&&(a+=c['weight']);}return a;}[a54i(0xe5)](a){const s=a54i;if(this[s(0x95)]+a[s(0xdb)]>this['maxCarryingWeight']){this[s(0xb7)][s(0xa7)]('Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.');throw new Error(s(0xcb));}this[s(0xb2)][s(0xa9)](a),this['logger'][s(0xa7)](s(0x9f)+a[s(0xc5)]+s(0xc2));}[a54i(0xba)](a){const t=a54i;if(this[t(0xb2)][t(0x9b)](a[t(0xc5)]))return this['logger'][t(0xa7)](t(0xb5)+a[t(0xc5)]+t(0xdf)),!![];return this[t(0xb7)][t(0xa7)](t(0xbf)+a[t(0xc5)]+t(0xdf)),![];}[a54i(0x98)](a){const u=a54i;if(!this[u(0xb2)][u(0xeb)](a[u(0xc5)]))return u(0xa3)+a[u(0xc5)]+u(0xb0);if(!this[u(0xdd)](a))return'You\x20can\x27t\x20equip\x20'+a[u(0xc5)]+'.';const b=this[u(0xe1)](a[u(0xa8)]);if(!b)return a[u(0xc5)]+u(0xc7);if(this['equipment'][b])return u(0xb1)+b+u(0xef);return this[u(0xd2)][b]=a,this['removeInventory'](a),u(0xa2)+a[u(0xc5)]+'.';}['unequip'](a){const v=a54i;let b=a;if(!this[v(0xd2)][camelCase(b)]){b=this[v(0xe1)](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this[v(0xe2)](b);}['determineEquipmentSlot'](a){const w=a54i;switch(a[w(0xbb)]()){case Category[w(0xb8)]['toLowerCase']():return w(0x9c);case Category[w(0xed)]['toLowerCase']():return w(0xda);case Category[w(0xac)][w(0xbb)]():return'gloves';case Category[w(0xde)][w(0xbb)]():case Category[w(0xa1)][w(0xbb)]():return w(0xc4);case Category[w(0xb9)]['toLowerCase']():return w(0xe4);case Category['LegArmor'][w(0xbb)]():return w(0xc1);case Category[w(0xc6)]['toLowerCase']():return w(0x97);case Category[w(0xce)][w(0xbb)]():return w(0xc3);case w(0xe3):return'rightHand';case w(0xd6):return w(0xda);case w(0xe6):return w(0xe6);case'helmet':case w(0xa6):return'head';case w(0xab):return w(0xe4);case w(0xec):case'legarmor':return w(0xc1);case w(0xd5):case w(0xb4):return w(0x97);case'body\x20armor':case w(0xd4):case w(0xc3):return'torso';default:return null;}}[a54i(0xdd)](a){const x=a54i;return Object[x(0xaf)](Category)[x(0xa0)](a[x(0xa8)]);}[a54i(0xe2)](a){const y=a54i,b=this[y(0xd2)][a];if(!b)return y(0xe7)+a+'\x20slot.';return this[y(0xe5)](b),this['equipment'][a]=null,y(0xcd)+b[y(0xc5)]+'.';}[a54i(0xca)](a,b){const z=a54i;a!==this&&this[z(0xb7)][z(0xf1)](a[z(0xc5)]+z(0xd1)+b+'\x22');}[a54i(0xe8)](a){const A=a54i;this[A(0xd0)]=a,a['on'](A(0xaa),this[A(0xca)][A(0x9d)](this)),this[A(0xb7)][A(0xa7)](this[A(0xc5)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[A(0xc5)]);}[a54i(0xdc)](){const B=a54i;this[B(0xd0)]&&(this[B(0xd0)][B(0x96)]('speak',this[B(0xca)][B(0x9d)](this)),this[B(0xb7)][B(0xa7)](this[B(0xc5)]+'\x20is\x20no\x20longer\x20listeng\x20in\x20'+this[B(0xd0)][B(0xc5)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a55c(){var m=['9356040Crfcnx','2531266xoatGV','2077344kcoPqu','solve','requiredPhrase','toString','12784648GIfPXt','constructor','hasItem','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','write','riddle','solved','620645RSUqLB','search','hasRequiredItem','successMessage','11613lnQtfL','638404LDGRYR','matchesRequiredPhrase','Puzzle:\x20Correct\x20solution\x20provided.','logger','5358SpFAUw','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','rewardItem','(((.+)+)+)+$','You\x20solved\x20the\x20puzzle!','52AwveWE','failureMessage','requiredItem'];a55c=function(){return m;};return a55c();}var a55h=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x1ea))/0x1+parseInt(f(0x1f7))/0x2+parseInt(f(0x1f8))/0x3+-parseInt(f(0x1f3))/0x4*(parseInt(f(0x1e5))/0x5)+parseInt(f(0x1ee))/0x6*(-parseInt(f(0x1e9))/0x7)+parseInt(f(0x1fc))/0x8+parseInt(f(0x1f6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xd27ca));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[g(0x1fb)]()[g(0x1e6)](g(0x1f1))[g(0x1fb)]()[g(0x1fd)](a55a)[g(0x1e6)]('(((.+)+)+)+$');});function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x1e3;var f=c[d];return f;},a55d(a,b);}a55a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger['getInstance']();[a55h(0x1e4)]=![];[a55h(0x1f5)];[a55h(0x1fa)];['riddle'];[a55h(0x1f0)];[a55h(0x1e8)];[a55h(0x1f4)];constructor(a){var i=a55h;super(),this['requiredItem']=a[i(0x1f5)],this[i(0x1fa)]=a[i(0x1fa)],this[i(0x1e3)]=a[i(0x1e3)],this[i(0x1f0)]=a[i(0x1f0)],this[i(0x1e8)]=a[i(0x1e8)]||i(0x1f2),this['failureMessage']=a['failureMessage']||i(0x1ff);}[a55h(0x1e7)](a){var j=a55h;if(this[j(0x1f5)])return a[j(0x1fe)](this[j(0x1f5)]);return![];}['matchesRequiredPhrase'](a){var k=a55h;return this[k(0x1fa)]===a;}[a55h(0x1f9)](a,b){var l=a55h;if(this[l(0x1e4)])return this[l(0x1ed)][l(0x201)](l(0x200)),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this['hasRequiredItem'](b)||this[l(0x1eb)](a)?(this[l(0x1e4)]=!![],this[l(0x1ed)][l(0x201)](l(0x1ec)),{'success':!![],'message':this['successMessage']}):(this[l(0x1ed)][l(0x201)](l(0x1ef)),{'success':![],'message':this[l(0x1f4)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=parseInt(f(0x1ab))/0x1*(parseInt(f(0x18b))/0x2)+-parseInt(f(0x1a6))/0x3*(-parseInt(f(0x16d))/0x4)+-parseInt(f(0x176))/0x5+-parseInt(f(0x194))/0x6+-parseInt(f(0x19a))/0x7+parseInt(f(0x17c))/0x8*(-parseInt(f(0x1a0))/0x9)+-parseInt(f(0x17b))/0xa*(-parseInt(f(0x1a9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x2358f));function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x16d;let f=c[d];return f;},a56d(a,b);}const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a['toString']()[h(0x182)](h(0x197))[h(0x181)]()[h(0x186)](a56a)[h(0x182)](h(0x197));});a56a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';function a56c(){const u=['548920rILFdq','set','Puzzle\x20set\x20for\x20room\x20','addExit','attemptUnlockExit','SOUTH','east','roomType','exits','931416KpobHS','get','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','(((.+)+)+)+$','riddle','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','337764ADSmjk','inventory','addItem','\x20remains\x20locked.','Fetching\x20exit\x20in\x20direction:\x20','Item\x20added\x20to\x20room\x20','1592397PZMNuy','emit','isStartRoom','isExitLocked','getExit','Invalid\x20direction:\x20','482889BiARsU','NORTH','Room\x20created:\x20','2652067PhuqJg','west','1nrhGwp','4FGrMmL','Item\x20removed\x20from\x20room\x20','WEST','findExistingDoor','setPuzzle','description','north','removeItem','getOppositeDirection','756580dwSXfM','write','\x20is\x20locked.\x20Result:\x20','speak','puzzle','10YBypTF','8dMfEwR','The\x20','apply','.\x20Success:\x20','Checking\x20if\x20exit\x20in\x20direction\x20','toString','search','roomB','roomA','name','constructor','down','hasItem','values','logger'];a56c=function(){return u;};return a56c();}import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a56i(0x18a)]=Logger['getInstance']();['name'];[a56i(0x172)];[a56i(0x193)]=new Map();['roomType'];[a56i(0x1a2)];[a56i(0x19b)]=new Inventory();constructor(a){const j=a56i;super(),this[j(0x185)]=a[j(0x185)],this[j(0x172)]=a['description'],this[j(0x192)]=a[j(0x192)]||RoomType['INSIDE'],a[j(0x193)]&&(this[j(0x193)]=a[j(0x193)]||new Map()),a[j(0x19b)]&&(this[j(0x19b)]=a['inventory']),a[j(0x17a)]&&(this[j(0x17a)]=a['puzzle']),this[j(0x1a2)]=a[j(0x1a2)]||![],this[j(0x18a)][j(0x177)](j(0x1a8)+this[j(0x185)]);}['say'](a,b){const k=a56i;this[k(0x1a1)](k(0x179),a,b);}[a56i(0x18e)](a,b,c){const l=a56i;let d=this[l(0x170)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits'][l(0x18c)](a,d),b[l(0x193)][l(0x18c)](this[l(0x175)](a),d);}[a56i(0x18f)](a,b){const m=a56i,c=this[m(0x193)]['get'](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[m(0x18a)]['write']('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+m(0x17f)+d),d?m(0x17d)+c[m(0x185)]+'\x20unlocked!':m(0x17d)+c[m(0x185)]+m(0x19d);}return this[m(0x18a)]['write']('No\x20locked\x20exit\x20found\x20in\x20direction\x20'+a),m(0x199);}[a56i(0x1a4)](a){const n=a56i;return this[n(0x18a)]['write'](n(0x19e)+a),this[n(0x193)][n(0x195)](a);}[a56i(0x1a3)](a){const o=a56i,b=this[o(0x193)]['get'](a),c=b instanceof Door&&b['checkIfLocked']();return this[o(0x18a)][o(0x177)](o(0x180)+a+o(0x178)+c),c;}[a56i(0x19c)](a){const p=a56i;this[p(0x19b)][p(0x19c)](a),this[p(0x18a)][p(0x177)](p(0x19f)+this[p(0x185)]+':\x20'+a['name']);}[a56i(0x174)](a){const q=a56i;this[q(0x19b)][q(0x188)](a['name'])?(this[q(0x19b)][q(0x174)](a['name']),this[q(0x18a)][q(0x177)](q(0x16e)+this[q(0x185)]+':\x20'+a[q(0x185)])):this['logger']['write'](q(0x196)+this[q(0x185)]+':\x20'+a[q(0x185)]);}[a56i(0x171)](a){const r=a56i;this[r(0x17a)]=a,this[r(0x18a)]['write'](r(0x18d)+this[r(0x185)]+':\x20'+a[r(0x198)]);}[a56i(0x175)](a){const s=a56i;switch(a){case s(0x173):return Direction[s(0x190)];case'south':return Direction[s(0x1a7)];case s(0x191):return Direction[s(0x16f)];case s(0x1aa):return Direction['EAST'];case'up':return Direction['DOWN'];case s(0x187):return Direction['UP'];default:throw new Error(s(0x1a5)+a);}}[a56i(0x170)](a){const t=a56i;for(const b of this[t(0x193)][t(0x189)]()){if(b instanceof Door){if(b['roomA']===this&&b[t(0x183)]===a||b[t(0x183)]===this&&b[t(0x184)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=parseInt(i(0x1f4))/0x1*(parseInt(i(0x213))/0x2)+parseInt(i(0x214))/0x3+parseInt(i(0x1f8))/0x4+parseInt(i(0x20f))/0x5+-parseInt(i(0x1f1))/0x6+-parseInt(i(0x200))/0x7*(-parseInt(i(0x1fa))/0x8)+-parseInt(i(0x1de))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x8c122));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0x1db)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a['toString']()[k(0x1fd)](k(0x1f5))[k(0x1f2)]()[k(0x1fc)](a57a)[k(0x1fd)](k(0x1f5));});function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1ce;let f=c[d];return f;},a57d(a,b);}a57a();import{Logger}from'../utilities/logger.js';function a57c(){const D=['Failed\x20to\x20add\x20item\x20','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','player','\x20is\x20now\x20in\x20room\x20','Added\x20room\x20to\x20scene:\x20','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','from','warn','3924036rkXMrI','toString','Failed\x20to\x20add\x20puzzle.\x20Room\x20','7zIWBSj','(((.+)+)+)+$','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','\x27s\x20location.\x20Room\x20','3874872aQFYJT','addRoom','779896kfJjzN','logger','constructor','search','getPlayer','getActor','63aEquWU','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','getCharacterLocation','rooms','get','addPuzzleToRoom','Removed\x20room\x20from\x20scene:\x20','set','setCharacterLocation','\x20not\x20found\x20in\x20scene.','addItemToRoom','roomConfiguration','initialize','name','exits','4431555nJMpLW','direction','keys','connectRooms','191606ADMQit','2306883pCWEnV','\x22\x20does\x20not\x20exist.','write','createRoom','Added\x20puzzle\x20to\x20room\x20','No\x20actor\x20with\x20name\x20','getRooms','\x20already\x20exists\x20in\x20the\x20scene.','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','createExitsFromConfig','\x20found\x20in\x20the\x20scene.','determineStartRoom','targetRoom','characterLocations','Failed\x20to\x20set\x20','apply','isStartRoom','push','26498322rxqMwr','length','getInstance','\x20to\x20room\x20','actors','Room\x20\x22','generateRoomsFromConfig','Added\x20item\x20','addExit','has','roomFactory'];a57c=function(){return D;};return a57c();}import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];[a57l(0x1eb)];[a57l(0x1fb)];['actors'];[a57l(0x1d9)]=new Map();[a57l(0x1e8)];constructor(a){const m=a57l;super(),this[m(0x1e8)]=new RoomFactory(),this[m(0x1eb)]=a[m(0x1eb)],this[m(0x203)]=this[m(0x1e4)](a[m(0x20b)]),this[m(0x1fb)]=Logger[m(0x1e0)](),this['actors']=new Map(),this[m(0x1d5)](a[m(0x20b)]),this['logger'][m(0x1ce)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[m(0x211)](this[m(0x203)])['join'](',\x20'));}[a57l(0x20c)](){const n=a57l;this[n(0x1eb)]['currentLocation']=this[n(0x1d7)]();}['generateRoomsFromConfig'](a){const o=a57l;if(!this[o(0x1e8)])throw new Error(o(0x201));const b={};for(const c of a){const d=this[o(0x1e8)][o(0x1cf)](c);b[c[o(0x20d)]]=d;}return b;}['createExitsFromConfig'](a){const p=a57l;for(const b of a){const c=this[p(0x203)][b['name']];if(b['exits'])for(const d of b[p(0x20e)]){const e=d[p(0x210)]['toUpperCase'](),f=d[p(0x1d8)],g=d['keyRequired'],h=this[p(0x203)][f];h&&c['addExit'](Direction[e],h,g);}}}['addActor'](a){const q=a57l;if(this[q(0x1e2)][q(0x1e7)](a[q(0x20d)]))throw new Error('Actor\x20with\x20name\x20'+a[q(0x20d)]+q(0x1d3));this[q(0x1e2)][q(0x207)](a[q(0x20d)],a);}['removeActor'](a){const r=a57l;if(!this[r(0x1e2)][r(0x1e7)](a))throw new Error(r(0x1d1)+a+r(0x1d6));this[r(0x1e2)]['delete'](a);}[a57l(0x1ff)](a){const s=a57l;return this[s(0x1e2)][s(0x204)](a);}get['allActors'](){const t=a57l;return Array[t(0x1ef)](this[t(0x1e2)]['values']());}[a57l(0x1f9)](a){const u=a57l;this[u(0x203)][a['name']]=a,this[u(0x1fb)][u(0x1ce)](u(0x1ed)+a[u(0x20d)]);}['removeRoom'](a){const v=a57l;return this[v(0x203)][a]?(delete this['rooms'][a],this[v(0x1fb)]['write'](v(0x206)+a),!![]):(this[v(0x1fb)][v(0x1ce)](v(0x1f6)+a),![]);}[a57l(0x20a)](a,b){const w=a57l,c=this[w(0x203)][b];c?(c['addItem'](a),this['logger'][w(0x1ce)](w(0x1e5)+a[w(0x20d)]+w(0x1e1)+c[w(0x20d)])):this[w(0x1fb)]['write'](w(0x1e9)+a['name']+'.\x20Room\x20'+b+w(0x209));}[a57l(0x205)](a,b){const x=a57l,c=this[x(0x203)][b];c?(c['setPuzzle'](a),this['logger'][x(0x1ce)](x(0x1d0)+c[x(0x20d)])):this[x(0x1fb)][x(0x1ce)](x(0x1f3)+b+x(0x209));}[a57l(0x208)](a,b){const y=a57l,c=this[y(0x203)][b];c?(this[y(0x1d9)][y(0x207)](a[y(0x20d)],c),this[y(0x1fb)][y(0x1ce)](a[y(0x20d)]+y(0x1ec)+c[y(0x20d)])):this[y(0x1fb)][y(0x1ce)](y(0x1da)+a[y(0x20d)]+y(0x1f7)+b+'\x20not\x20found\x20in\x20scene.');}[a57l(0x202)](a){const z=a57l;return this['characterLocations'][z(0x204)](a[z(0x20d)]);}[a57l(0x1d7)](){const A=a57l,a=[];for(const c in this['rooms']){if(this['rooms']['hasOwnProperty'](c)){const d=this['rooms'][c];d[A(0x1dc)]&&a[A(0x1dd)](d);}}if(a[A(0x1df)]>0x1)throw new Error(A(0x1d4));if(a[A(0x1df)]===0x1)return a[0x0];const b=Object['keys'](this[A(0x203)]);if(b['length']===0x0)throw new Error(A(0x1ea));return console[A(0x1f0)](A(0x1ee)),this['rooms'][b[0x0]];}[a57l(0x1fe)](){return this['player'];}[a57l(0x1d2)](){const B=a57l;return this[B(0x203)];}[a57l(0x212)](a,b,c,d){const C=a57l,e=this['rooms'][a],f=this[C(0x203)][c];if(!e)throw new Error('Room\x20\x22'+a+C(0x215));if(!f)throw new Error(C(0x1e3)+c+C(0x215));e[C(0x1e6)](b,f,d);}}
|