@maka/maka-cli 5.0.5 → 5.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38h=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0xce))/0x1+-parseInt(f(0xee))/0x2*(parseInt(f(0xd7))/0x3)+parseInt(f(0xb9))/0x4*(parseInt(f(0xc5))/0x5)+-parseInt(f(0xbb))/0x6*(-parseInt(f(0xe4))/0x7)+-parseInt(f(0xc3))/0x8*(-parseInt(f(0xe1))/0x9)+-parseInt(f(0xd8))/0xa*(parseInt(f(0xdf))/0xb)+-parseInt(f(0xde))/0xc*(parseInt(f(0xcd))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xc1895));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(0xdd)](g(0xea))[g(0xda)]()[g(0xeb)](a38a)[g(0xdd)]('(((.+)+)+)+$');});a38a();import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';function a38c(){const m=['name','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','To\x20the\x20','Executing\x20\x27Look\x27\x20command.','hasItem','verb','lookOutside','13fwHlVA','1500557kGciqB','execute','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','rooms','It\x27s\x20just\x20a\x20regular\x20','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','inspectItem','Below\x20you,\x20','13365xXDOVh','470RsBzMU','You\x20cannot\x20see\x20through','toString','Examine\x20your\x20surroundings','actor','search','21525828qNLVVt','268169EtlFBQ','isValidDirection','27Dwuvkk','down','description','8498AfNOQB','puzzle','write','roomType','string','getOtherSide','(((.+)+)+)+$','constructor','inventory','exits','82KlXlKn','1108lCrPdW','error','4326MlLsBS','logger','get','\x27\x20in\x20current\x20room\x20inventory.','You\x20cannot\x20see\x20','currentLocation','join','look','2347880GtpyqX','\x20inventory.','11890kFulDv'];a38c=function(){return m;};return a38c();}import{Command}from'./command.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xb9;let f=c[d];return f;},a38d(a,b);}export class LookCommand extends Command{static [a38h(0xcb)]=a38h(0xc2);static [a38h(0xe3)]=a38h(0xdb);[a38h(0xcf)](a=[]){const i=a38h;this[i(0xbc)][i(0xe6)](i(0xc9));const b=a[i(0xc1)]('\x20');if(b){if(this[i(0xdc)]['inventory'][i(0xca)](b))return this['logger']['write']('Looking\x20at\x20item\x20\x27'+b+'\x27\x20in\x20'+this[i(0xdc)][i(0xc6)]+i(0xc4)),this['inspectItem'](b,this[i(0xdc)][i(0xec)]);else{if(this[i(0xdc)][i(0xc0)][i(0xec)][i(0xca)](b))return this[i(0xbc)][i(0xe6)]('Looking\x20at\x20item\x20\x27'+b+i(0xbe)),this[i(0xd5)](b,this[i(0xdc)][i(0xc0)][i(0xec)]);else return this[i(0xe0)](b)?(this[i(0xbc)][i(0xe6)](i(0xc7)+b+'\x27.'),this['lookOutside'](b)):i(0xbf)+b;}}else return this[i(0xbc)]['write'](this['actor'][i(0xc6)]+'\x20is\x20looking\x20around\x20the\x20current\x20room.'),this[i(0xc2)]();}[a38h(0xc2)](){const j=a38h,a=this[j(0xdc)][j(0xc0)];if(!a)return this[j(0xbc)]['error'](this[j(0xdc)]['name']+j(0xd0)),'You\x27re\x20not\x20in\x20a\x20valid\x20room.';let b=a[j(0xe3)];return a[j(0xe5)]&&(b+='\x0a'+a['puzzle']['riddle']),b;}[a38h(0xcc)](a){const k=a38h,b=this[k(0xdc)][k(0xc0)];if(!b)return this[k(0xbc)][k(0xba)](this['actor'][k(0xc6)]+k(0xd0)),'You\x27re\x20not\x20in\x20a\x20valid\x20room.';const c=b[k(0xed)][k(0xbd)](a);if(!c)return k(0xd4)+a+'\x22.';let d;if(c instanceof Door)d=c[k(0xe9)](b);else{if(typeof c===k(0xe8)){d=this['rooms']&&this[k(0xd2)][c];if(!d)return'There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22'+a+'\x22.';}else return k(0xd1)+a+'\x22.';}if(d[k(0xe7)]===RoomType['OUTSIDE']){if(a==='up')return'Above\x20you,\x20'+d['description'];else return a===k(0xe2)?k(0xd6)+d[k(0xe3)]:k(0xc8)+a+',\x20you\x20see\x20'+d['description'];}else return k(0xd9);}[a38h(0xd5)](a,b){const l=a38h,c=b['getItem'](a);if(!c)return'You\x20don\x27t\x20see\x20any\x20'+a+'\x20here.';return c[l(0xe3)]||l(0xd3)+a+'.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39j=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=parseInt(g(0x153))/0x1+parseInt(g(0x16a))/0x2+-parseInt(g(0x169))/0x3*(parseInt(g(0x15f))/0x4)+parseInt(g(0x15e))/0x5*(-parseInt(g(0x152))/0x6)+parseInt(g(0x157))/0x7*(parseInt(g(0x155))/0x8)+-parseInt(g(0x15a))/0x9*(-parseInt(g(0x167))/0xa)+-parseInt(g(0x163))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x50385));function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x14d;let f=c[d];return f;},a39d(a,b);}const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a39d;if(c){const e=c[h(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const i=a39d;return a39a[i(0x15c)]()[i(0x159)](i(0x15d))[i(0x15c)]()[i(0x16b)](a39a)[i(0x159)](i(0x15d));});a39a();import{Command}from'./command.js';function a39c(){const l=['Scene\x20is\x20missing\x20from\x20context.','description','7448958fNpUlP','\x20says\x20to\x20','You\x20say:\x20\x22','filter','170ANNOgY','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','965541OwHjKi','1249224QMduzJ','constructor','actor','logger','apply','scene','An\x20error\x20occurred.','What\x20do\x20you\x20want\x20to\x20say?','context','log','allActors','currentLocation','12tiBFSG','563002ZQmtnU','name','44368uoYBgN','join','266TFqCvU','execute','search','133821NvEGJl','say','toString','(((.+)+)+)+$','4205TQMzYL','8MoJFLf',':\x20\x22'];a39c=function(){return l;};return a39c();}export class SayCommand extends Command{static ['verb']=a39j(0x15b);static [a39j(0x162)]=a39j(0x168);[a39j(0x14e)];constructor(a){super(a),this['context']=a;}[a39j(0x158)](a){const k=a39j;if(a['length']===0x0)return k(0x14d);const b=a[k(0x156)]('\x20'),c=this[k(0x16c)],d=this['context'][k(0x16f)];if(!d)return this[k(0x16d)][k(0x14f)](k(0x161)),k(0x170);const e=d[k(0x150)][k(0x166)](f=>f[k(0x151)]===c[k(0x151)]);for(const f of e){this[k(0x16d)][k(0x14f)](c[k(0x154)]+k(0x164)+f[k(0x154)]+k(0x160)+b+'\x22'),this['actor'][k(0x151)]['say'](f,b);}return k(0x165)+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a40c(){const k=['listItems','apply','description','SearchCommand:\x20','write','verb','join','14722296CFqSUi','(((.+)+)+)+$','4886885XvbeUK','You\x20search\x20the\x20area\x20and\x20find:\x20','557064onNBiV','5941117piwZKe','actor','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','logger','execute','2911236TiXPfu','\x20found\x20the\x20following\x20items:\x20','constructor','Search\x20for\x20items\x20in\x20your\x20area','length','1891432YunrWU','inventory','2RISulX','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','currentLocation','247031sjFTiW','search','name','toString'];a40c=function(){return k;};return a40c();}const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0xdd))/0x1*(parseInt(f(0xda))/0x2)+-parseInt(f(0xec))/0x3+parseInt(f(0xd8))/0x4+parseInt(f(0xea))/0x5+parseInt(f(0xd3))/0x6+parseInt(f(0xed))/0x7+-parseInt(f(0xe8))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x7ccbe));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0xe0)]()[h(0xde)](h(0xe9))[h(0xe0)]()[h(0xd5)](a40a)[h(0xde)](h(0xe9));});a40a();import{Command}from'./command.js';function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0xcf;let f=c[d];return f;},a40d(a,b);}export class SearchCommand extends Command{static [a40i(0xe6)]=a40i(0xde);static [a40i(0xe3)]=a40i(0xd6);[a40i(0xd2)](){const j=a40i,a=this[j(0xcf)][j(0xdc)][j(0xd9)][j(0xe1)]();if(a[j(0xd7)]===0x0)return this[j(0xd1)][j(0xe5)](j(0xe4)+this[j(0xcf)][j(0xdf)]+j(0xd0)),j(0xdb);const b=a[j(0xe7)](',\x20');return this[j(0xd1)][j(0xe5)](j(0xe4)+this['actor'][j(0xdf)]+j(0xd4)+b),j(0xeb)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d
|
|
1
|
+
const a41i=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0xbf;let f=c[d];return f;},a41d(a,b);}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=parseInt(f(0xce))/0x1*(parseInt(f(0xd3))/0x2)+-parseInt(f(0xdc))/0x3*(-parseInt(f(0xd6))/0x4)+-parseInt(f(0xc4))/0x5+parseInt(f(0xc7))/0x6*(-parseInt(f(0xd8))/0x7)+-parseInt(f(0xca))/0x8+parseInt(f(0xc9))/0x9+-parseInt(f(0xd4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x683fd));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0xda)]()[h(0xd0)](h(0xc3))['toString']()['constructor'](a41a)[h(0xd0)](h(0xc3));});function a41c(){const k=['description','38526ckttAN','apply','346662ACXcIG','1307536jMDauU','addItem','Attempt\x20to\x20solve\x20a\x20puzzle.','actor','2162hyLqMZ','solve','search','rewardItem','currentLocation','678ySBDTv','1221830nSJtMa','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','30316orjpyJ','inventory','70zctKQi','SolveCommand:\x20','toString','success','15MLXoQk','message','write','toLowerCase','join','puzzle','execute','(((.+)+)+)+$','162455XSERxs','logger'];a41c=function(){return k;};return a41c();}a41a();import{Command}from'./command.js';export class SolveCommand extends Command{static ['verb']=a41i(0xcf);static [a41i(0xc6)]=a41i(0xcc);[a41i(0xc2)](a){const j=a41i,b=a[j(0xc0)]('\x20')[j(0xbf)](),c=this[j(0xcd)][j(0xd2)];if(!c||!c[j(0xc1)])return this['logger'][j(0xde)]('SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.'),j(0xd5);const d=c['puzzle'][j(0xcf)](b,this[j(0xcd)]['inventory']);return d[j(0xdb)]&&c['puzzle'][j(0xd1)]&&this[j(0xcd)][j(0xd7)][j(0xcb)](c[j(0xc1)]['rewardItem']),this[j(0xc5)]['write'](j(0xd9)+d[j(0xdd)]),d[j(0xdd)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42i=a42d;function a42c(){const l=['3181912RoMaGf','constructor','hasItem','removeItem','Successfully\x20removed\x20\x22','search','3355390xSDIpH','The\x20item\x20\x22','message','name','1404164ejyXrY','You\x20have\x20taken\x20the\x20','verb','\x22\x20is\x20too\x20heavy\x20to\x20carry.','Item\x20\x22','description','17374hoysTW','getItem','168282QtPvdR','actor','logger','Error\x20during\x20\x27Take\x27\x20command:\x20','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','addInventory','toString','apply','take','There\x20is\x20no\x20item\x20\x22','write','(((.+)+)+)+$','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','\x22\x20not\x20retrieved\x20from\x20','inventory','8227038JWHdXD','Successfully\x20added\x20\x22','\x22\x20to\x20','3472sZsMLL','5433420nPSmoX','\x22\x20in\x20this\x20room.','join','\x22\x20from\x20','toLowerCase','\x22\x20not\x20found\x20in\x20'];a42c=function(){return l;};return a42c();}(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x15b))/0x1+parseInt(f(0x157))/0x2+parseInt(f(0x163))/0x3+-parseInt(f(0x17c))/0x4+-parseInt(f(0x176))/0x5+-parseInt(f(0x172))/0x6+parseInt(f(0x161))/0x7*(parseInt(f(0x175))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xead0e));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x169)]()[h(0x181)]('(((.+)+)+)+$')[h(0x169)]()[h(0x17d)](a42a)[h(0x181)](h(0x16e));});a42a();import{Command}from'./command.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x157;let f=c[d];return f;},a42d(a,b);}export class TakeCommand extends Command{static [a42i(0x15d)]=a42i(0x16b);static [a42i(0x160)]='Pick\x20up\x20an\x20item.';['execute'](a){const j=a42i;return this['logger'][j(0x16d)]('Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20'+a[j(0x178)]('\x20')),this[j(0x16b)](a);}[a42i(0x16b)](a){const k=a42i,b=a[k(0x178)]('\x20')[k(0x17a)](),c=this['actor']['currentLocation'];if(!c[k(0x171)][k(0x17e)](b))return this[k(0x165)][k(0x16d)](k(0x15f)+b+k(0x17b)+c[k(0x15a)]+'\x20during\x20\x27Take\x27\x20command.'),k(0x16c)+b+k(0x177);const d=c[k(0x171)][k(0x162)](b);if(!d)return this[k(0x165)][k(0x16d)](k(0x15f)+b+k(0x170)+c['name']+k(0x16f)),k(0x16c)+b+k(0x177);try{return this[k(0x164)][k(0x168)](d),this['logger'][k(0x16d)](k(0x173)+b+k(0x174)+this[k(0x164)]['name']+k(0x167)),c[k(0x171)][k(0x17f)](b),this['logger']['write'](k(0x180)+b+k(0x179)+c[k(0x15a)]+k(0x16f)),k(0x15c)+b+'.';}catch(e){return this[k(0x165)][k(0x16d)](k(0x166)+e[k(0x159)]),k(0x158)+b+k(0x15e);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43h=a43d;function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x128;let f=c[d];return f;},a43d(a,b);}(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x130))/0x1+parseInt(f(0x13c))/0x2*(-parseInt(f(0x134))/0x3)+parseInt(f(0x12b))/0x4*(parseInt(f(0x13a))/0x5)+-parseInt(f(0x136))/0x6*(parseInt(f(0x138))/0x7)+-parseInt(f(0x133))/0x8+parseInt(f(0x128))/0x9+parseInt(f(0x131))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x46912));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['toString']()[g(0x12c)](g(0x12a))[g(0x139)]()[g(0x132)](a43a)[g(0x12c)]('(((.+)+)+)+$');});a43a();import{Command}from'./command.js';function a43c(){const j=['(((.+)+)+)+$','2476gcIwrk','search','UnequipCommand:\x20','logger','Unequip\x20an\x20item.','308534xTDCbB','8069590WTSZQU','constructor','2405864nbpnqZ','1041rHvtsK','toLowerCase','42pmDLvM','name','377951rDXUkA','toString','1235QSGnph','unqeuip','2372zsuKxs','actor','997938MnEymt','execute'];a43c=function(){return j;};return a43c();}export class UnequipCommand extends Command{static ['verb']=a43h(0x13b);static ['description']=a43h(0x12f);[a43h(0x129)](a){const i=a43h,b=a['join']('\x20')[i(0x135)](),c=this['actor']['unequip'](b);return this[i(0x12e)]['write'](i(0x12d)+this[i(0x13d)][i(0x137)]+'\x20unqeuiped\x20'+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-
|
|
1
|
+
const a44k=a44d;function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xdc;let f=c[d];return f;},a44d(a,b);}(function(a,b){const h=a44d,c=a();while(!![]){try{const d=-parseInt(h(0xed))/0x1*(-parseInt(h(0xe3))/0x2)+parseInt(h(0xf2))/0x3+-parseInt(h(0xde))/0x4*(-parseInt(h(0xe2))/0x5)+-parseInt(h(0xf7))/0x6+-parseInt(h(0xec))/0x7*(-parseInt(h(0x100))/0x8)+-parseInt(h(0x102))/0x9*(parseInt(h(0xf5))/0xa)+-parseInt(h(0xe1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x3ad48));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a['toString']()[j(0xfe)](j(0xdc))[j(0x104)]()[j(0xf3)](a44a)[j(0xfe)]('(((.+)+)+)+$');});a44a();import{Door}from'../models/door.js';function a44c(){const n=['2xqukJY','actor','attemptUnlockExit','\x22\x20here.','execute','1147722LSDBQb','constructor','UnlockCommand:\x20No\x20target\x20specified.','9490NVbsdF','unlock','438978MQJNJO','toLowerCase','currentLocation','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','getItem','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','error','search','UnlockCommand:\x20','9488dSdbXV','name','1269HFsxwu','hasItem','toString','(((.+)+)+)+$','has','1564748cvuGoz','logger','inventory','5880325nvpQma','5yMPkVc','207568qtgZzc','write','apply','get','Unlock\x20a\x20door.','.\x20Result:\x20','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','length','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','7DLFICn'];a44c=function(){return n;};return a44c();}import{Command}from'./command.js';export class UnlockCommand extends Command{static ['verb']='unlock';static ['description']=a44k(0xe7);[a44k(0xf1)](a){const l=a44k;return this[l(0xf6)](a);}[a44k(0xf6)](a){const m=a44k;if(a[m(0xea)]===0x0)return this[m(0xdf)][m(0xfd)](m(0xf4)),m(0xeb);const b=a[0x0][m(0xf8)](),c=this[m(0xee)][m(0xf9)];if(this['isValidDirection'](b)&&c['exits'][m(0xdd)](b)){const d=c['exits'][m(0xe6)](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.[m(0xf8)]();if(e&&this[m(0xee)][m(0xe0)][m(0x103)](e)){const f=this[m(0xee)]['inventory'][m(0xfb)](e);if(f){const g=c[m(0xef)](b,f[m(0x101)]);return this[m(0xdf)][m(0xe4)](m(0xff)+this['actor'][m(0x101)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+m(0xe8)+g),g;}}return this['logger'][m(0xe4)]('UnlockCommand:\x20'+this[m(0xee)][m(0x101)]+m(0xfc)+b+'.'),m(0xfa);}else return this[m(0xdf)][m(0xe4)](m(0xff)+b+m(0xe9)+c[m(0x101)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+m(0xf0);}else return this[m(0xdf)][m(0xe4)](m(0xff)+b+m(0xe9)+c[m(0x101)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+m(0xf0);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a45c(){const l=['174493LQCWZd','inventory','1115916YuTjzQ','You\x20can\x27t\x20use\x20the\x20','770aVgsSp','search','28PUQmFT','name','constructor','\x20not\x20retrieved\x20from\x20','2957275GuHgfK','toString','function','38012KDVlvx','description','use','You\x20don\x27t\x20have\x20the\x20','getItem','toLowerCase','join','execute','write','apply','(((.+)+)+)+$','608338dAXvGL','\x20attempted\x20to\x20use\x20','UseCommand:\x20','825624ebNIhh','Use\x20an\x20item.','actor','33VViYMd','27kYzpco','\x20to\x20use.','logger','11416oLVlty','\x20doesn\x27t\x20have\x20a\x20use\x20method.'];a45c=function(){return l;};return a45c();}const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0x16c))/0x1+parseInt(f(0x153))/0x2+parseInt(f(0x159))/0x3*(-parseInt(f(0x15d))/0x4)+-parseInt(f(0x169))/0x5+parseInt(f(0x161))/0x6*(-parseInt(f(0x165))/0x7)+-parseInt(f(0x156))/0x8*(-parseInt(f(0x15a))/0x9)+-parseInt(f(0x163))/0xa*(-parseInt(f(0x15f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x69158));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x151)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x16a)]()[h(0x164)](h(0x152))['toString']()[h(0x167)](a45a)['search'](h(0x152));});a45a();import{Command}from'./command.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x14a;let f=c[d];return f;},a45d(a,b);}export class UseCommand extends Command{static ['verb']=a45i(0x14a);static [a45i(0x16d)]=a45i(0x157);[a45i(0x14f)](a){const j=a45i;return this[j(0x14a)](a);}[a45i(0x14a)](a){const k=a45i,b=a[k(0x14e)]('\x20')[k(0x14d)]();if(!this['actor'][k(0x160)]['hasItem'](b))return this[k(0x15c)][k(0x150)](k(0x155)+this[k(0x158)][k(0x166)]+k(0x154)+b+',\x20which\x20is\x20not\x20in\x20their\x20inventory.'),k(0x14b)+b+k(0x15b);const c=this['actor'][k(0x160)][k(0x14c)](b);if(!c)return this[k(0x15c)]['write'](k(0x155)+b+k(0x168)+this['actor'][k(0x166)]+'\x27s\x20inventory.'),k(0x14b)+b+k(0x15b);if(typeof c[k(0x14a)]===k(0x16b)){const d=c[k(0x14a)]();return this[k(0x15c)][k(0x150)](k(0x155)+this['actor'][k(0x166)]+'\x20used\x20'+b+'.'),d;}else return this[k(0x15c)]['write']('UseCommand:\x20'+b+k(0x15e)),k(0x162)+b+'\x20in\x20this\x20way.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a46c(){const m=['163708rjrZfS','registerCommand','2ttecCb','search','createCommand','2799258WSXsRX','getAllRegisteredCommands','25OqblVf','2625528tiUqiV','7601336QgvKUj','5352408JPECzP','24563763JvGpeQ','apply','commandMap','798351BRyBDr','toString','(((.+)+)+)+$'];a46c=function(){return m;};return a46c();}const a46i=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d=-parseInt(f(0x19a))/0x1*(-parseInt(f(0x19f))/0x2)+-parseInt(f(0x194))/0x3+parseInt(f(0x19d))/0x4*(parseInt(f(0x193))/0x5)+-parseInt(f(0x196))/0x6+-parseInt(f(0x191))/0x7+-parseInt(f(0x195))/0x8+parseInt(f(0x197))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x9624c));const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a['toString']()[h(0x18f)](h(0x19c))[h(0x19b)]()['constructor'](a46a)[h(0x18f)](h(0x19c));});function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0x18f;let f=c[d];return f;},a46d(a,b);}a46a();export class CommandFactory{static [a46i(0x199)]={};static[a46i(0x19e)](a,b){const j=a46i;this[j(0x199)][a]=b;}static[a46i(0x190)](a,b){const k=a46i,c=this[k(0x199)][a];if(c)return new c(b);return null;}static[a46i(0x192)](){const l=a46i;return this[l(0x199)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0x1dd))/0x1+-parseInt(f(0x1d6))/0x2*(-parseInt(f(0x1d1))/0x3)+parseInt(f(0x1e5))/0x4+parseInt(f(0x1d8))/0x5*(parseInt(f(0x1e2))/0x6)+parseInt(f(0x1e6))/0x7*(parseInt(f(0x1ed))/0x8)+parseInt(f(0x1de))/0x9*(parseInt(f(0x1d0))/0xa)+parseInt(f(0x1d5))/0xb*(-parseInt(f(0x1e7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xb6614));function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x1cf;let f=c[d];return f;},a47d(a,b);}const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x1ee)]()[h(0x1ec)](h(0x1da))[h(0x1ee)]()[h(0x1d3)](a47a)['search'](h(0x1da));});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 a47c(){const o=['429389gEzqQQ','243eIAEFg','apply','name','createItem','342JBibMF','roomType','items','869096xbeCGM','392AfQxlJ','108QlcIKd','legarmor','gloves','key','forEach','search','108464utOGVX','toString','puzzle','addItem','description','convertToRoomConfig','helmet','gauntlets','book','createPuzzle','348590fseXzb','872427GTCuKH','bodyarmor','constructor','toUpperCase','1745293gybGHL','4VksgzJ','sword','9215Szxiim','createRoom','(((.+)+)+)+$','rewardItem','content'];a47c=function(){return o;};return a47c();}export class RoomFactory{[a47i(0x1d9)](a){const j=a47i,b=this[j(0x1f2)](a),c=new Room(b);if(a[j(0x1e4)]){const d=new Inventory();a['items'][j(0x1eb)](e=>{const k=j;d[k(0x1f0)](this[k(0x1e1)](e));}),c['inventory']=d;}return a[j(0x1ef)]&&c['setPuzzle'](this[j(0x1cf)](a[j(0x1ef)])),c;}[a47i(0x1e1)](a){const l=a47i;switch(a['type']){case l(0x1ea):return new Key(a[l(0x1e0)],a['description']);case l(0x1f5):return new Book(a[l(0x1e0)],a[l(0x1f1)],a[l(0x1dc)]);case l(0x1d7):return new Sword(a['name'],a[l(0x1f1)]);case'rifle':return new Rifle(a['name'],a['description']);case l(0x1f3):return new Helmet(a[l(0x1e0)],a[l(0x1f1)]);case l(0x1d2):return new BodyArmor(a['name'],a[l(0x1f1)]);case l(0x1e8):return new LegArmor(a[l(0x1e0)],a['description']);case'boots':return new Boots(a['name'],a[l(0x1f1)]);case l(0x1e9):return new Gloves(a[l(0x1e0)],a[l(0x1f1)]);case l(0x1f4):return new Gauntlets(a[l(0x1e0)],a[l(0x1f1)]);default:return new BasicItem(a[l(0x1e0)],a[l(0x1f1)]);}}[a47i(0x1cf)](a){const m=a47i,b=this[m(0x1e1)](a[m(0x1db)]);return new Puzzle({...a,'rewardItem':b});}['convertToRoomConfig'](a){const n=a47i,b=a[n(0x1e3)]&&RoomType[a[n(0x1e3)]['toUpperCase']()]?RoomType[a['roomType'][n(0x1d4)]()]:RoomType['INSIDE'];return{'name':a[n(0x1e0)],'description':a[n(0x1f1)],'isStartRoom':a['isStartRoom'],'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 a48c(){const s=['execute','-\x20clear:\x20Clear\x20the\x20screen.\x0a','getRooms','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','registerCommand','constructor','Welcome,\x20','currentLocation','-\x20quit:\x20Exit\x20the\x20game.\x0a','19887633FHvyGx','determineStartRoom','help','maka','take','3755140hFQFJN','hasOwnProperty','getDescription','name','apply','toString','Available\x20Commands:\x0a','3133134FJgbaX','8Yybvsw','instance','look','4177929tKEtHy','getHelpMessage','rooms','handleInput','player','registerCommands','drop','scene','6158532tVRFzb','510360szhsHu','say','getWelcomeMessage','search','equip','clear','6ihuPhh','use','slice','211496wtDDJQ','I\x20don\x27t\x20understand\x20the\x20command\x20\x22'];a48c=function(){return s;};return a48c();}(function(a,b){const h=a48d,c=a();while(!![]){try{const d=-parseInt(h(0x1a6))/0x1+-parseInt(h(0x182))/0x2*(parseInt(h(0x1ac))/0x3)+-parseInt(h(0x1a5))/0x4+parseInt(h(0x192))/0x5+-parseInt(h(0x199))/0x6+parseInt(h(0x19d))/0x7+-parseInt(h(0x19a))/0x8*(-parseInt(h(0x18d))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xbcf2e));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x196)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a[j(0x197)]()[j(0x1a9)]('(((.+)+)+)+$')[j(0x197)]()[j(0x189)](a48a)[j(0x1a9)]('(((.+)+)+)+$');});a48a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x180;let f=c[d];return f;},a48d(a,b);}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(0x19b)];[a48k(0x1a4)];[a48k(0x1a1)];['currentRoom'];[a48k(0x19f)];constructor(a,b){const l=a48k;this['player']=a,this[l(0x1a4)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x1a4)]['initialize'](),this[l(0x1a1)][l(0x18b)]=this['determineStartRoom'](),this[l(0x1a2)]();}[a48k(0x1a2)](){const m=a48k;CommandFactory['registerCommand'](m(0x19c),LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory[m(0x188)](m(0x191),TakeCommand),CommandFactory[m(0x188)](m(0x180),UseCommand),CommandFactory['registerCommand'](m(0x1aa),EquipCommand),CommandFactory['registerCommand']('unequip',UnequipCommand),CommandFactory[m(0x188)]('solve',SolveCommand),CommandFactory[m(0x188)](m(0x1a3),DropCommand),CommandFactory[m(0x188)]('unlock',UnlockCommand),CommandFactory[m(0x188)]('lock',LockCommand),CommandFactory[m(0x188)](m(0x1a9),SearchCommand),CommandFactory[m(0x188)](m(0x1a7),SayCommand);}[a48k(0x18e)](){const n=a48k;return this[n(0x1a4)]['determineStartRoom']();}[a48k(0x1a8)](){const o=a48k;return o(0x18a)+this['player'][o(0x195)];}static['getInstance'](a,b){const p=a48k;return!Game[p(0x19b)]&&(Game[p(0x19b)]=new Game(a,b)),Game['instance'];}[a48k(0x1a0)](a){const q=a48k,b=a['trim']()['split']('\x20'),c=b[0x0]['toLowerCase'](),d=b[q(0x181)](0x1);if(c==='quit')return null;if(c===q(0x190))return q(0x187);if(c===q(0x18f))return this[q(0x19e)]();if(c===q(0x1ab))return'';const e={'actor':this['player'],'rooms':this[q(0x1a4)][q(0x186)](),'scene':this[q(0x1a4)]},f=CommandFactory['createCommand'](c,e);if(f){const g=f[q(0x184)](d);return g;}return q(0x183)+c+'\x22.';}[a48k(0x19e)](){const r=a48k,a=CommandFactory['getAllRegisteredCommands']();let b=r(0x198);for(const c in a){if(a[r(0x193)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x194)]()+'\x0a';}}return b+=r(0x185),b+=r(0x18c),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a49d,c=a();while(!![]){try{var d
|
|
1
|
+
function a49c(){var h=['1817802RQwKmW','6997088IZlFRY','11353288LqfJQr','24mEfQqg','toString','414019ePiGSB','3jaTnNE','constructor','19949650RNCApc','789485jGxWFS','search','654036ZTKWCb','9JezVVM','(((.+)+)+)+$'];a49c=function(){return h;};return a49c();}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0xd9))/0x1+parseInt(f(0xdf))/0x2*(-parseInt(f(0xda))/0x3)+parseInt(f(0xd7))/0x4*(parseInt(f(0xdd))/0x5)+parseInt(f(0xe2))/0x6+parseInt(f(0xd5))/0x7+-parseInt(f(0xd6))/0x8*(-parseInt(f(0xe0))/0x9)+-parseInt(f(0xdc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xe3ce4));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(0xd8)]()[g(0xde)](g(0xe1))[g(0xd8)]()[g(0xdb)](a49a)[g(0xde)](g(0xe1));});a49a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xd5;var f=c[d];return f;},a49d(a,b);}export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a50c(){var o=['logger','(((.+)+)+)+$','5060693zlJnuU','roomB','isLocked','6CrUCWv','apply','write','Door\x20unlocked:\x20','935988iXhdCs','attemptUnlock','search','2QArYzz','unlockItemOrSolution','.\x20Used:\x20','isLockable','roomA','5tnCljm','To\x20','2188600AMeznu','Door\x20created\x20between\x20','constructor','getOtherSide','checkIfLocked','80tYKSMv','name','toString','422258UEsqlu','125986RSPoZV','1955331wRtgmo','967580rXlvCR'];a50c=function(){return o;};return a50c();}var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=parseInt(f(0xaa))/0x1*(parseInt(f(0x9b))/0x2)+parseInt(f(0x94))/0x3*(-parseInt(f(0xad))/0x4)+-parseInt(f(0xa0))/0x5*(-parseInt(f(0x98))/0x6)+-parseInt(f(0xab))/0x7*(-parseInt(f(0xa7))/0x8)+parseInt(f(0xac))/0x9+parseInt(f(0xa2))/0xa+-parseInt(f(0x91))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x3d286));var a50b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a50d;if(c){var e=c[g(0x95)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){var h=a50d;return a50a[h(0xa9)]()[h(0x9a)](h(0x90))[h(0xa9)]()[h(0xa4)](a50a)[h(0x9a)]('(((.+)+)+)+$');});a50a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x8f;var f=c[d];return f;},a50d(a,b);}export class Door extends AbstractDoor{[a50i(0x9f)];['roomB'];[a50i(0x93)];['unlockItemOrSolution'];['name'];['logger'];[a50i(0x9e)];constructor(a){var j=a50i;super(),this[j(0x9f)]=a[j(0x9f)],this[j(0x92)]=a[j(0x92)],this[j(0x93)]=a['isLocked']||![],this['unlockItemOrSolution']=a[j(0x9c)],this[j(0xa8)]=a[j(0xa8)]?capitalCase(a['name']):j(0xa1)+a[j(0x92)]['name'],this[j(0x8f)]=Logger['getInstance'](),this[j(0x9e)]=!!a[j(0x9c)],this[j(0x8f)][j(0x96)](j(0xa3)+this['roomA'][j(0xa8)]+'\x20and\x20'+this[j(0x92)][j(0xa8)]+'.\x20Is\x20Locked:\x20'+this[j(0x93)]);}[a50i(0xa5)](a){var k=a50i;return this[k(0x9f)]===a?this['roomB']:this[k(0x9f)];}[a50i(0x99)](a){var l=a50i;if(this['isLocked']&&this['unlockItemOrSolution']&&this[l(0x9c)]===a)return this[l(0x93)]=![],this[l(0x8f)][l(0x96)](l(0x97)+this[l(0xa8)]+l(0x9d)+a),!![];return this[l(0x8f)][l(0x96)]('Failed\x20to\x20unlock\x20door:\x20'+this[l(0xa8)]+l(0x9d)+a),![];}[a50i(0xa6)](){var m=a50i;return this[m(0x93)];}['checkIfLockable'](){var n=a50i;return this[n(0x9e)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51h=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d
|
|
1
|
+
const a51h=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x17a))/0x1+parseInt(f(0x168))/0x2+-parseInt(f(0x166))/0x3*(-parseInt(f(0x16d))/0x4)+-parseInt(f(0x172))/0x5+-parseInt(f(0x164))/0x6*(parseInt(f(0x17c))/0x7)+parseInt(f(0x17d))/0x8*(-parseInt(f(0x180))/0x9)+-parseInt(f(0x15f))/0xa*(-parseInt(f(0x175))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x30e9b));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const g=a51d;return a51a[g(0x174)]()['search'](g(0x178))[g(0x174)]()['constructor'](a51a)['search'](g(0x178));});a51a();function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x15f;let f=c[d];return f;},a51d(a,b);}import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a51h(0x171)];['logger'];constructor(){const i=a51h;super(),this[i(0x171)]=new Map(),this[i(0x16b)]=Logger[i(0x179)]();}[a51h(0x181)](a){const j=a51h;this[j(0x171)]['set'](a[j(0x17b)][j(0x16a)](),a),this[j(0x16b)][j(0x163)](j(0x176)+a[j(0x17b)]+'\x20to\x20inventory.');}[a51h(0x16e)](a){const k=a51h,b=this[k(0x169)](a);if(b)return this[k(0x171)][k(0x183)](a[k(0x16a)]()),this[k(0x16b)][k(0x163)](k(0x161)+a+k(0x184)),b;return this['logger'][k(0x163)](k(0x165)+a+'.\x20Item\x20not\x20found.'),null;}['hasItem'](a){const l=a51h,b=this['items'][l(0x182)](a[l(0x16a)]()),c=[...this[l(0x171)][l(0x16f)]()];return this[l(0x16b)][l(0x163)]('Checked\x20for\x20item:\x20'+a+l(0x16c)+c[l(0x162)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}['getItem'](a){const m=a51h,b=this[m(0x171)][m(0x17f)](a[m(0x16a)]())||null;return b?this['logger'][m(0x163)]('Retrieved\x20details\x20for\x20item:\x20'+a+'.'):this['logger']['write'](m(0x167)+a+'.\x20Item\x20not\x20found.'),b;}[a51h(0x177)](){const n=a51h,a=[...this[n(0x171)]['keys']()],b=a[n(0x160)](c=>capitalCase(c));return this[n(0x16b)][n(0x163)]('Listed\x20items\x20in\x20inventory:\x20'+b['join'](',\x20')+'.'),a;}[a51h(0x17e)](){const o=a51h;let a=0x0;for(const b of this['items'][o(0x173)]()){a+=b[o(0x170)];}return a;}['getAllItems'](){const p=a51h;return[...this[p(0x171)][p(0x173)]()];}}function a51c(){const q=['toLowerCase','logger','\x20in\x20','8cItBlJ','removeItem','keys','weight','items','1301250yDOWVm','values','toString','649sNkXir','Added\x20item:\x20','listItems','(((.+)+)+)+$','getInstance','397126twuySZ','name','106064SaQsaV','926864potCFI','getWeight','get','9prVMcH','addItem','has','delete','\x20from\x20inventory.','132490XmfmQK','map','Removed\x20item:\x20','join','write','24tTaCtO','Failed\x20to\x20remove\x20item:\x20','152811IZwadm','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','301248JZARxC','getItem'];a51c=function(){return q;};return a51c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x200))/0x1*(parseInt(f(0x206))/0x2)+parseInt(f(0x1f7))/0x3*(parseInt(f(0x20c))/0x4)+-parseInt(f(0x1ff))/0x5+-parseInt(f(0x1f5))/0x6+parseInt(f(0x1f9))/0x7+-parseInt(f(0x207))/0x8+parseInt(f(0x205))/0x9*(parseInt(f(0x203))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xe4ecf));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(0x201)]()['search'](g(0x20b))[g(0x201)]()[g(0x209)](a52a)[g(0x204)](g(0x20b));});a52a();function a52c(){var k=['description','use','rating','You\x20use\x20the\x20','name','6392225Rebfmy','218189kbPorQ','toString','texture','1060lHGjqX','search','113094jUVOeV','10eyTjnO','14090872pMOAQl','weight','constructor','.\x20Nothing\x20special\x20happens.','(((.+)+)+)+$','221596QdExtJ','shape','size','7248264OiPLaM','color','66OBgluU','uuid','10806656owDYNh'];a52c=function(){return k;};return a52c();}import{v4 as a52e}from'uuid';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x1f3;var f=c[d];return f;},a52d(a,b);}import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a52h(0x1f8)];[a52h(0x1fe)];[a52h(0x1fa)];[a52h(0x1f4)];['category'];[a52h(0x1f3)];['color'];[a52h(0x202)];[a52h(0x1fc)];[a52h(0x208)];constructor(a){var i=a52h;super(),this[i(0x1fe)]=a[i(0x1fe)],this[i(0x1fa)]=a['description'],this[i(0x1f4)]=a['size'],this['category']=a['category'],this['shape']=a['shape'],this[i(0x1f6)]=a['color'],this[i(0x202)]=a['texture'],this[i(0x1fc)]=a[i(0x1fc)],this[i(0x208)]=a[i(0x208)],this[i(0x1f8)]=a52e();}[a52h(0x1fb)](){var j=a52h;return j(0x1fd)+this[j(0x1fe)]+j(0x20a);}}
|
|
@@ -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(0xae))/0x1+-parseInt(f(0xac))/0x2+parseInt(f(0xb9))/0x3*(parseInt(f(0xb8))/0x4)+-parseInt(f(0xb4))/0x5*(-parseInt(f(0xb7))/0x6)+-parseInt(f(0xb0))/0x7+-parseInt(f(0xb6))/0x8*(parseInt(f(0xa0))/0x9)+parseInt(f(0xa6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xab037));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0xa2)]()['search'](h(0xa4))[h(0xa2)]()[h(0xaa)](a53a)[h(0xa1)](h(0xa4));});a53a();function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xa0;let f=c[d];return f;},a53d(a,b);}function a53c(){const o=['52404CSKGOn','273synvPB','moveTo','98766akffom','search','toString','speak','(((.+)+)+)+$','_name','6458780gyfyBV','autonomousMove','execute','rooms','constructor','length','1061312mEsehJ','floor','536110yCSEXY','random','8758449jopmWP','_dialogue','name','apply','139805oDQdcX','scene','16rEXill','258oOvUBK'];a53c=function(){return o;};return a53c();}import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{['_name'];[a53i(0xb1)];[a53i(0xa9)];[a53i(0xb5)];constructor(a,b,c,d){const j=a53i;super(d),this[j(0xa5)]=a,this[j(0xb1)]=b,this['rooms']=c;}get[a53i(0xb2)](){const k=a53i;return this[k(0xa5)];}[a53i(0xa3)](){const l=a53i;return this[l(0xb1)][Math[l(0xad)](Math[l(0xaf)]()*this[l(0xb1)][l(0xab)])];}[a53i(0xa7)](a){const m=a53i,b=a[Math['floor'](Math[m(0xaf)]()*a[m(0xab)])];this[m(0xba)](b['name']);}[a53i(0xba)](a){const n=a53i,b={'actor':this,'rooms':this[n(0xa9)],'scene':this['scene']},c=new GoCommand(b);c[n(0xa8)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-
|
|
1
|
+
const a54i=a54d;function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x12a;let f=c[d];return f;},a54d(a,b);}(function(a,b){const f=a54d,c=a();while(!![]){try{const d=-parseInt(f(0x146))/0x1+parseInt(f(0x15a))/0x2+-parseInt(f(0x12d))/0x3*(-parseInt(f(0x16f))/0x4)+-parseInt(f(0x13e))/0x5+parseInt(f(0x14f))/0x6*(-parseInt(f(0x180))/0x7)+parseInt(f(0x171))/0x8*(-parseInt(f(0x139))/0x9)+parseInt(f(0x14c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x2d0ac));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a54d;if(c){const e=c[g(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const h=a54d;return a54a[h(0x14d)]()[h(0x154)](h(0x16e))[h(0x14d)]()[h(0x15b)](a54a)[h(0x154)]('(((.+)+)+)+$');});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';function a54c(){const C=['\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','hasItem','initialEquipment','hat','write','2910483uxXtsS','addItem','category','\x20says:\x20\x22','weapon','1602690tYnFQB','error','leaveRoom','bind','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','Failed\x20to\x20remove\x20','Nexus','getWeight','122821AxImrX','Shield','inventoryItems','equip','startLocation','Weapon','7979770lfjJTa','toString','\x20is\x20now\x20listening\x20in\x20room\x20','117732mjRPCW','speak','ArmArmor','\x20is\x20no\x20longer\x20listeng\x20in\x20','\x20from\x20player\x27s\x20inventory.','search','\x20to\x20player\x27s\x20inventory.','toLowerCase','LegArmor','You\x20can\x27t\x20equip\x20','leftHand','295912Krzicz','constructor','determineEquipmentSlot','Helmet','You\x20equipped\x20','playerName','_inventory','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','_equipment','head','\x20slot.','bodyarmor','Max\x20carrying\x20weight\x20must\x20be\x20positive.','canEquip','maxCarryingWeight','removeInventory','_maxCarryingWeight','\x20in\x20your\x20inventory.','torso','logger','(((.+)+)+)+$','28UcQqFk','equipment','8AglggH','currentLocation','_currentLocation','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','You\x20unequipped\x20','name','arms','gloves','rightHand','removeItem','off','hear','addInventory','log','includes','7SSwDDw','weight','unequipBySlot','apply','currentWeight','legs','boots','leg\x20armor','Added\x20','getInstance','10683deXnSf','armarmor','feet','arm\x20armor','_playerName','enterRoom','values'];a54c=function(){return C;};return a54c();}export class Player extends AbstractPlayer{['_playerName'];['_currentLocation'];['_inventory'];[a54i(0x162)];[a54i(0x16a)]=0x32;[a54i(0x16d)];constructor(a){const j=a54i;super(),this[j(0x131)]=a[j(0x15f)],this['_currentLocation']=a[j(0x14a)]||new Room({'name':j(0x144),'description':'A\x20featureless\x20room'}),this[j(0x160)]=new Inventory(),this[j(0x16d)]=Logger[j(0x12c)]();if(a?.[j(0x148)])for(const b of a[j(0x148)]){this[j(0x160)][j(0x13a)](b);}this[j(0x162)]=a?.[j(0x136)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54i(0x176)](){const k=a54i;return this[k(0x131)];}get[a54i(0x172)](){const l=a54i;return this[l(0x173)];}set[a54i(0x172)](a){const m=a54i;this[m(0x173)]!==a&&(this[m(0x140)](),this[m(0x132)](a)),this[m(0x173)]=a;}get['inventory'](){const n=a54i;return this[n(0x160)];}get['equipment'](){const o=a54i;return this[o(0x162)];}set['equipment'](a){const p=a54i;this[p(0x162)]=a;}get[a54i(0x168)](){return this['_maxCarryingWeight'];}set[a54i(0x168)](a){const q=a54i;a>0x0?this[q(0x16a)]=a:console[q(0x13f)](q(0x166));}get[a54i(0x184)](){const r=a54i;let a=this['_inventory'][r(0x145)]();for(const b in this[r(0x162)]){const c=this[r(0x162)][b];c&&(a+=c['weight']);}return a;}[a54i(0x17d)](a){const s=a54i;if(this[s(0x184)]+a[s(0x181)]>this['maxCarryingWeight']){this[s(0x16d)][s(0x138)](s(0x174));throw new Error(s(0x161));}this['_inventory'][s(0x13a)](a),this[s(0x16d)]['write'](s(0x12b)+a['name']+s(0x155));}[a54i(0x169)](a){const t=a54i;if(this[t(0x160)][t(0x17a)](a[t(0x176)]))return this['logger'][t(0x138)]('Removed\x20'+a[t(0x176)]+t(0x153)),!![];return this['logger']['write'](t(0x143)+a[t(0x176)]+t(0x153)),![];}[a54i(0x149)](a){const u=a54i;if(!this[u(0x160)][u(0x135)](a[u(0x176)]))return'You\x20don\x27t\x20have\x20'+a[u(0x176)]+u(0x16b);if(!this[u(0x167)](a))return u(0x158)+a['name']+'.';const b=this[u(0x15c)](a[u(0x13b)]);if(!b)return a[u(0x176)]+u(0x134);if(this['equipment'][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this[u(0x170)][b]=a,this[u(0x169)](a),u(0x15e)+a[u(0x176)]+'.';}['unequip'](a){const v=a54i;let b=a;if(!this[v(0x170)][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this[v(0x182)](b);}['determineEquipmentSlot'](a){const w=a54i;switch(a[w(0x156)]()){case Category[w(0x14b)][w(0x156)]():return w(0x179);case Category[w(0x147)][w(0x156)]():return w(0x159);case Category['Gloves'][w(0x156)]():return w(0x178);case Category[w(0x15d)]['toLowerCase']():case Category['Hat'][w(0x156)]():return w(0x163);case Category['Boots'][w(0x156)]():return w(0x12f);case Category[w(0x157)][w(0x156)]():return w(0x185);case Category[w(0x151)][w(0x156)]():return w(0x177);case Category['BodyArmor'][w(0x156)]():return w(0x16c);case w(0x13d):return'rightHand';case'shield':return w(0x159);case'gloves':return w(0x178);case'helmet':case w(0x137):return'head';case w(0x186):return'feet';case w(0x12a):case'legarmor':return'legs';case w(0x130):case w(0x12e):return w(0x177);case'body\x20armor':case w(0x165):case w(0x16c):return'torso';default:return null;}}[a54i(0x167)](a){const x=a54i;return Object[x(0x133)](Category)[x(0x17f)](a[x(0x13b)]);}[a54i(0x182)](a){const y=a54i,b=this[y(0x170)][a];if(!b)return y(0x142)+a+y(0x164);return this['addInventory'](b),this[y(0x170)][a]=null,y(0x175)+b[y(0x176)]+'.';}[a54i(0x17c)](a,b){const z=a54i;a!==this&&this['logger'][z(0x17e)](a[z(0x176)]+z(0x13c)+b+'\x22');}[a54i(0x132)](a){const A=a54i;this[A(0x173)]=a,a['on'](A(0x150),this[A(0x17c)][A(0x141)](this)),this['logger'][A(0x138)](this[A(0x176)]+A(0x14e)+a['name']);}[a54i(0x140)](){const B=a54i;this[B(0x173)]&&(this['_currentLocation'][B(0x17b)](B(0x150),this['hear']['bind'](this)),this[B(0x16d)][B(0x138)](this[B(0x176)]+B(0x152)+this[B(0x173)][B(0x176)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a55c(){var l=['solve','42EARrgP','4121029FvFqkn','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','requiredItem','riddle','226155jZPLYn','167nDDxCg','failureMessage','logger','successMessage','You\x20have\x20already\x20solved\x20this\x20puzzle.','write','search','12RjzuND','198LqHcah','2786SRzUXp','1179eAjNqK','rewardItem','constructor','(((.+)+)+)+$','You\x20solved\x20the\x20puzzle!','782019LNoUcO','932200AuYCxx','requiredPhrase','matchesRequiredPhrase','toString','getInstance','8488ihMVfF','solved','hasRequiredItem','13148NxeUUp'];a55c=function(){return l;};return a55c();}var a55h=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(0x1ed))/0x1*(-parseInt(f(0x1f6))/0x2)+-parseInt(f(0x1f5))/0x3*(-parseInt(f(0x1e5))/0x4)+parseInt(f(0x1ec))/0x5*(-parseInt(f(0x1e7))/0x6)+-parseInt(f(0x1fc))/0x7+-parseInt(f(0x202))/0x8*(-parseInt(f(0x1f7))/0x9)+parseInt(f(0x1fd))/0xa+parseInt(f(0x1e8))/0xb*(parseInt(f(0x1f4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x27c0b));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(0x200)]()[g(0x1f3)]('(((.+)+)+)+$')[g(0x200)]()[g(0x1f9)](a55a)['search'](g(0x1fa));});a55a();import{Logger}from'../utilities/logger.js';function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x1e3;var f=c[d];return f;},a55d(a,b);}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger[a55h(0x201)]();[a55h(0x1e3)]=![];[a55h(0x1ea)];['requiredPhrase'];['riddle'];[a55h(0x1f8)];['successMessage'];[a55h(0x1ee)];constructor(a){var i=a55h;super(),this[i(0x1ea)]=a['requiredItem'],this[i(0x1fe)]=a[i(0x1fe)],this[i(0x1eb)]=a[i(0x1eb)],this['rewardItem']=a[i(0x1f8)],this[i(0x1f0)]=a['successMessage']||i(0x1fb),this[i(0x1ee)]=a['failureMessage']||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}[a55h(0x1e4)](a){var j=a55h;if(this[j(0x1ea)])return a['hasItem'](this[j(0x1ea)]);return![];}['matchesRequiredPhrase'](a){return this['requiredPhrase']===a;}[a55h(0x1e6)](a,b){var k=a55h;if(this[k(0x1e3)])return this[k(0x1ef)][k(0x1f2)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':k(0x1f1)};return this[k(0x1e4)](b)||this[k(0x1ff)](a)?(this['solved']=!![],this[k(0x1ef)][k(0x1f2)]('Puzzle:\x20Correct\x20solution\x20provided.'),{'success':!![],'message':this[k(0x1f0)]}):(this[k(0x1ef)][k(0x1f2)](k(0x1e9)),{'success':![],'message':this[k(0x1ee)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a56d(a,b);}const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=-parseInt(f(0x1d7))/0x1+-parseInt(f(0x1dd))/0x2+parseInt(f(0x208))/0x3+-parseInt(f(0x1fc))/0x4*(parseInt(f(0x1f6))/0x5)+-parseInt(f(0x1d9))/0x6*(parseInt(f(0x1ea))/0x7)+-parseInt(f(0x206))/0x8*(-parseInt(f(0x212))/0x9)+parseInt(f(0x1e3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0xd6e42));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a[h(0x20b)]()['search'](h(0x20e))['toString']()['constructor'](a56a)[h(0x1e1)]('(((.+)+)+)+$');});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{['logger']=Logger[a56i(0x1e7)]();[a56i(0x1e6)];[a56i(0x1f4)];[a56i(0x1fe)]=new Map();[a56i(0x1fa)];['isStartRoom'];['inventory']=new Inventory();constructor(a){const j=a56i;super(),this[j(0x1e6)]=a['name'],this[j(0x1f4)]=a[j(0x1f4)],this[j(0x1fa)]=a[j(0x1fa)]||RoomType[j(0x1ff)],a[j(0x1fe)]&&(this[j(0x1fe)]=a[j(0x1fe)]||new Map()),a[j(0x200)]&&(this[j(0x200)]=a['inventory']),a[j(0x1eb)]&&(this[j(0x1eb)]=a['puzzle']),this[j(0x204)]=a['isStartRoom']||![],this[j(0x1e9)]['write']('Room\x20created:\x20'+this[j(0x1e6)]);}['say'](a,b){const k=a56i;this[k(0x20f)](k(0x210),a,b);}['addExit'](a,b,c){const l=a56i;let d=this['findExistingDoor'](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x1fe)][l(0x1de)](a,d),b[l(0x1fe)][l(0x1de)](this[l(0x214)](a),d);}[a56i(0x1f7)](a,b){const m=a56i,c=this[m(0x1fe)]['get'](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[m(0x1e9)][m(0x1f2)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+m(0x1f0)+d),d?m(0x201)+c['name']+m(0x1f1):m(0x201)+c[m(0x1e6)]+m(0x20d);}return this[m(0x1e9)][m(0x1f2)](m(0x1dc)+a),m(0x1e5);}['getExit'](a){const n=a56i;return this[n(0x1e9)][n(0x1f2)](n(0x1ef)+a),this[n(0x1fe)][n(0x209)](a);}[a56i(0x1ee)](a){const o=a56i,b=this[o(0x1fe)][o(0x209)](a),c=b instanceof Door&&b[o(0x20c)]();return this[o(0x1e9)][o(0x1f2)](o(0x1e8)+a+o(0x211)+c),c;}[a56i(0x1fb)](a){const p=a56i;this[p(0x200)][p(0x1fb)](a),this[p(0x1e9)][p(0x1f2)]('Item\x20added\x20to\x20room\x20'+this[p(0x1e6)]+':\x20'+a['name']);}[a56i(0x1e4)](a){const q=a56i;this[q(0x200)][q(0x20a)](a[q(0x1e6)])?(this[q(0x200)][q(0x1e4)](a[q(0x1e6)]),this[q(0x1e9)][q(0x1f2)](q(0x213)+this[q(0x1e6)]+':\x20'+a[q(0x1e6)])):this[q(0x1e9)][q(0x1f2)](q(0x1db)+this[q(0x1e6)]+':\x20'+a[q(0x1e6)]);}[a56i(0x1fd)](a){const r=a56i;this[r(0x1eb)]=a,this[r(0x1e9)]['write']('Puzzle\x20set\x20for\x20room\x20'+this[r(0x1e6)]+':\x20'+a[r(0x202)]);}['getOppositeDirection'](a){const s=a56i;switch(a){case s(0x207):return Direction[s(0x1ec)];case s(0x1ed):return Direction['NORTH'];case s(0x1f3):return Direction[s(0x1d8)];case s(0x1e0):return Direction['EAST'];case'up':return Direction[s(0x1f8)];case s(0x1f5):return Direction['UP'];default:throw new Error(s(0x205)+a);}}[a56i(0x1df)](a){const t=a56i;for(const b of this['exits'][t(0x1da)]()){if(b instanceof Door){if(b['roomA']===this&&b['roomB']===a||b[t(0x203)]===this&&b[t(0x1e2)]===a)return b;}}return undefined;}}function a56c(){const u=['There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','name','getInstance','Checking\x20if\x20exit\x20in\x20direction\x20','logger','1894109cdkwoH','puzzle','SOUTH','south','isExitLocked','Fetching\x20exit\x20in\x20direction:\x20','.\x20Success:\x20','\x20unlocked!','write','east','description','down','4206415uDDSMl','attemptUnlockExit','DOWN','apply','roomType','addItem','4XASQeb','setPuzzle','exits','INSIDE','inventory','The\x20','riddle','roomB','isStartRoom','Invalid\x20direction:\x20','1728448Gykmvo','north','2657745YaOzVk','get','hasItem','toString','checkIfLocked','\x20remains\x20locked.','(((.+)+)+)+$','emit','speak','\x20is\x20locked.\x20Result:\x20','36yMwWvz','Item\x20removed\x20from\x20room\x20','getOppositeDirection','74902fYPnSG','WEST','12ZAZqQJ','values','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','No\x20locked\x20exit\x20found\x20in\x20direction\x20','2190618mnTSNP','set','findExistingDoor','west','search','roomA','16827230RHpfVK','removeItem'];a56c=function(){return u;};return a56c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=-parseInt(i(0x223))/0x1*(parseInt(i(0x22d))/0x2)+parseInt(i(0x20e))/0x3*(-parseInt(i(0x226))/0x4)+parseInt(i(0x207))/0x5*(-parseInt(i(0x20f))/0x6)+parseInt(i(0x235))/0x7*(-parseInt(i(0x21b))/0x8)+parseInt(i(0x201))/0x9*(parseInt(i(0x22c))/0xa)+parseInt(i(0x1f3))/0xb*(-parseInt(i(0x211))/0xc)+parseInt(i(0x21d))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xbac5b));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0x21f)]()[k(0x237)](k(0x213))[k(0x21f)]()[k(0x222)](a57a)['search']('(((.+)+)+)+$');});a57a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';function a57c(){const E=['length','setCharacterLocation','characterLocations','265WBuHst','addPuzzleToRoom','push','getRooms','Added\x20room\x20to\x20scene:\x20','generateRoomsFromConfig','getCharacterLocation','417THHdyC','145014vVfuEC','Added\x20item\x20','754692mGXHyB','\x20not\x20found\x20in\x20scene.','(((.+)+)+)+$','rooms','targetRoom','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','roomConfiguration','set','determineStartRoom','Failed\x20to\x20set\x20','3870744hlZLMv','\x20to\x20room\x20','61808942exFaTH','addRoom','toString','actors','has','constructor','8cHoFDc','\x27s\x20location.\x20Room\x20','exits','23132CfHGnC','Scene\x20initialized\x20with\x20rooms:\x20','warn','logger','delete','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','5477970mdINwU','146534TLIszO','player','direction','.\x20Room\x20','createRoom','getActor','isStartRoom','values','14xncInv','addItemToRoom','search','Room\x20\x22','keyRequired','addActor','\x22\x20does\x20not\x20exist.','currentLocation','createExitsFromConfig','addExit','apply','253xuQpdg','initialize','Added\x20puzzle\x20to\x20room\x20','connectRooms','\x20is\x20now\x20in\x20room\x20','name','keys','write','roomFactory','Failed\x20to\x20add\x20item\x20','No\x20actor\x20with\x20name\x20','get','Removed\x20room\x20from\x20scene:\x20','addItem','18NdQGGz','Failed\x20to\x20add\x20puzzle.\x20Room\x20','Actor\x20with\x20name\x20'];a57c=function(){return E;};return a57c();}function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a57d(a,b);}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];['player'];[a57l(0x229)];[a57l(0x220)];[a57l(0x206)]=new Map();[a57l(0x1fb)];constructor(a){const m=a57l;super(),this[m(0x1fb)]=new RoomFactory(),this[m(0x22e)]=a[m(0x22e)],this['rooms']=this['generateRoomsFromConfig'](a[m(0x217)]),this[m(0x229)]=Logger['getInstance'](),this[m(0x220)]=new Map(),this[m(0x1f0)](a[m(0x217)]),this[m(0x229)][m(0x1fa)](m(0x227)+Object[m(0x1f9)](this['rooms'])['join'](',\x20'));}[a57l(0x1f4)](){const n=a57l;this[n(0x22e)][n(0x1ef)]=this[n(0x219)]();}[a57l(0x20c)](a){const o=a57l;if(!this[o(0x1fb)])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this[o(0x1fb)][o(0x231)](c);b[c['name']]=d;}return b;}[a57l(0x1f0)](a){const p=a57l;for(const b of a){const c=this[p(0x214)][b[p(0x1f8)]];if(b[p(0x225)])for(const d of b['exits']){const e=d[p(0x22f)]['toUpperCase'](),f=d[p(0x215)],g=d[p(0x239)],h=this['rooms'][f];h&&c[p(0x1f1)](Direction[e],h,g);}}}[a57l(0x23a)](a){const q=a57l;if(this[q(0x220)][q(0x221)](a[q(0x1f8)]))throw new Error(q(0x203)+a[q(0x1f8)]+'\x20already\x20exists\x20in\x20the\x20scene.');this['actors']['set'](a[q(0x1f8)],a);}['removeActor'](a){const r=a57l;if(!this['actors'][r(0x221)](a))throw new Error(r(0x1fd)+a+'\x20found\x20in\x20the\x20scene.');this['actors'][r(0x22a)](a);}[a57l(0x232)](a){const s=a57l;return this[s(0x220)][s(0x1fe)](a);}get['allActors'](){const t=a57l;return Array['from'](this['actors'][t(0x234)]());}[a57l(0x21e)](a){const u=a57l;this[u(0x214)][a[u(0x1f8)]]=a,this['logger'][u(0x1fa)](u(0x20b)+a['name']);}['removeRoom'](a){const v=a57l;return this[v(0x214)][a]?(delete this[v(0x214)][a],this[v(0x229)][v(0x1fa)](v(0x1ff)+a),!![]):(this[v(0x229)][v(0x1fa)](v(0x22b)+a),![]);}[a57l(0x236)](a,b){const w=a57l,c=this[w(0x214)][b];c?(c[w(0x200)](a),this[w(0x229)][w(0x1fa)](w(0x210)+a[w(0x1f8)]+w(0x21c)+c[w(0x1f8)])):this[w(0x229)][w(0x1fa)](w(0x1fc)+a['name']+w(0x230)+b+w(0x212));}[a57l(0x208)](a,b){const x=a57l,c=this[x(0x214)][b];c?(c['setPuzzle'](a),this[x(0x229)][x(0x1fa)](x(0x1f5)+c[x(0x1f8)])):this[x(0x229)]['write'](x(0x202)+b+x(0x212));}[a57l(0x205)](a,b){const y=a57l,c=this[y(0x214)][b];c?(this['characterLocations'][y(0x218)](a[y(0x1f8)],c),this[y(0x229)][y(0x1fa)](a[y(0x1f8)]+y(0x1f7)+c['name'])):this[y(0x229)]['write'](y(0x21a)+a[y(0x1f8)]+y(0x224)+b+y(0x212));}[a57l(0x20d)](a){const z=a57l;return this[z(0x206)][z(0x1fe)](a[z(0x1f8)]);}[a57l(0x219)](){const A=a57l,a=[];for(const c in this[A(0x214)]){if(this[A(0x214)]['hasOwnProperty'](c)){const d=this[A(0x214)][c];d[A(0x233)]&&a[A(0x209)](d);}}if(a[A(0x204)]>0x1)throw new Error(A(0x216));if(a[A(0x204)]===0x1)return a[0x0];const b=Object['keys'](this[A(0x214)]);if(b[A(0x204)]===0x0)throw new Error('No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.');return console[A(0x228)]('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this['rooms'][b[0x0]];}['getPlayer'](){const B=a57l;return this[B(0x22e)];}[a57l(0x20a)](){const C=a57l;return this[C(0x214)];}[a57l(0x1f6)](a,b,c,d){const D=a57l,e=this[D(0x214)][a],f=this['rooms'][c];if(!e)throw new Error('Room\x20\x22'+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(D(0x238)+c+D(0x23b));e[D(0x1f1)](b,f,d);}}
|