@maka/maka-cli 4.9.2 → 4.9.4
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/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/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/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/api.js +2 -2
- package/bundle/obf/src/templates/meteor/api/api.js.ts +2 -2
- package/bundle/obf/src/templates/meteor/project/package.json +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
|
-
function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-
|
|
1
|
+
const a37h=a37d;function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a37d(a,b);}function a37c(){const j=['listItems','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','search','constructor','toString','write','SearchCommand:\x20','\x20found\x20the\x20following\x20items:\x20','1024796qqmGmg','join','logger','length','2119968OMZcQr','inventory','name','1885005FnWRgG','You\x20search\x20the\x20area\x20and\x20find:\x20','867864eRCIMg','272yywqfl','(((.+)+)+)+$','actor','41165WDPcex','4837JLBynq','743496qCuPXa','Search\x20for\x20items\x20in\x20your\x20area'];a37c=function(){return j;};return a37c();}(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0x203))/0x1+-parseInt(f(0x1ec))/0x2+-parseInt(f(0x1ff))/0x3+parseInt(f(0x1f6))/0x4+parseInt(f(0x1fd))/0x5+parseInt(f(0x1fa))/0x6+parseInt(f(0x1eb))/0x7*(-parseInt(f(0x200))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x3fae1));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const g=a37d;return a37a[g(0x1f2)]()[g(0x1f0)](g(0x201))[g(0x1f2)]()[g(0x1f1)](a37a)[g(0x1f0)]('(((.+)+)+)+$');});a37a();import{Command}from'./command.js';export class SearchCommand extends Command{static ['verb']=a37h(0x1f0);static ['description']=a37h(0x1ed);['execute'](){const i=a37h,a=this['actor']['currentLocation'][i(0x1fb)][i(0x1ee)]();if(a[i(0x1f9)]===0x0)return this[i(0x1f8)]['write'](i(0x1f4)+this[i(0x202)][i(0x1fc)]+i(0x1ef)),'You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.';const b=a[i(0x1f7)](',\x20');return this[i(0x1f8)][i(0x1f3)](i(0x1f4)+this[i(0x202)][i(0x1fc)]+i(0x1f5)+b),i(0x1fe)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x146;let f=c[d];return f;},a38d(a,b);}const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0x15d))/0x1*(-parseInt(f(0x152))/0x2)+-parseInt(f(0x15b))/0x3+-parseInt(f(0x156))/0x4*(-parseInt(f(0x14b))/0x5)+parseInt(f(0x155))/0x6*(-parseInt(f(0x164))/0x7)+parseInt(f(0x14f))/0x8+-parseInt(f(0x153))/0x9*(parseInt(f(0x15e))/0xa)+parseInt(f(0x150))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xf1441));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x162)]()['search']('(((.+)+)+)+$')['toString']()[h(0x160)](a38a)[h(0x14a)]('(((.+)+)+)+$');});function a38c(){const k=['1256424mRamHC','50840713zmHdhk','SolveCommand:\x20','95042vFEiFC','108Hpfobt','puzzle','6wLNOUe','1493376OakCpV','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','message','inventory','actor','5067453nvZiPb','success','5UhKDaA','1145240GGpQbj','solve','constructor','logger','toString','rewardItem','6041077wGdCFS','verb','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','join','Attempt\x20to\x20solve\x20a\x20puzzle.','search','5sNxlhQ','apply','description','toLowerCase'];a38c=function(){return k;};return a38c();}a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a38i(0x146)]=a38i(0x15f);static [a38i(0x14d)]=a38i(0x149);['execute'](a){const j=a38i,b=a[j(0x148)]('\x20')[j(0x14e)](),c=this[j(0x15a)]['currentLocation'];if(!c||!c[j(0x154)])return this[j(0x161)]['write'](j(0x157)),j(0x147);const d=c[j(0x154)][j(0x15f)](b,this[j(0x15a)][j(0x159)]);return d[j(0x15c)]&&c[j(0x154)][j(0x163)]&&this[j(0x15a)][j(0x159)]['addItem'](c[j(0x154)][j(0x163)]),this['logger']['write'](j(0x151)+d['message']),d[j(0x158)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xb8;let f=c[d];return f;},a39d(a,b);}const a39h=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0xd5))/0x1+parseInt(f(0xe0))/0x2*(-parseInt(f(0xc4))/0x3)+-parseInt(f(0xc1))/0x4*(-parseInt(f(0xb8))/0x5)+parseInt(f(0xc7))/0x6*(parseInt(f(0xcc))/0x7)+parseInt(f(0xbe))/0x8+parseInt(f(0xde))/0x9+-parseInt(f(0xbf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x492b6));function a39c(){const k=['actor','constructor','\x22\x20from\x20','\x22\x20is\x20too\x20heavy\x20to\x20carry.','\x20during\x20\x27Take\x27\x20command.','(((.+)+)+)+$','removeItem','description','1099665atMFDx','message','66MHtJam','10QMWvnG','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','verb','\x22\x20not\x20found\x20in\x20','\x22\x20in\x20this\x20room.','Item\x20\x22','3419736alDFRV','2234430iyIaEp','inventory','126568krNXZV','getItem','You\x20have\x20taken\x20the\x20','39309wZIkTR','\x22\x20to\x20','currentLocation','3492582mkZzWN','logger','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','toLowerCase','Successfully\x20added\x20\x22','7fEXIXj','join','hasItem','toString','write','take','name','There\x20is\x20no\x20item\x20\x22','search','239489IlHTXs'];a39c=function(){return k;};return a39c();}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 g=a39d;return a39a[g(0xcf)]()[g(0xd4)](g(0xdb))[g(0xcf)]()[g(0xd7)](a39a)[g(0xd4)](g(0xdb));});a39a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a39h(0xba)]='take';static [a39h(0xdd)]='Pick\x20up\x20an\x20item.';['execute'](a){const i=a39h;return this['logger'][i(0xd0)](i(0xc9)+a[i(0xcd)]('\x20')),this[i(0xd1)](a);}[a39h(0xd1)](a){const j=a39h,b=a[j(0xcd)]('\x20')[j(0xca)](),c=this[j(0xd6)][j(0xc6)];if(!c[j(0xc0)][j(0xce)](b))return this['logger'][j(0xd0)](j(0xbd)+b+j(0xbb)+c[j(0xd2)]+j(0xda)),j(0xd3)+b+j(0xbc);const d=c['inventory'][j(0xc2)](b);if(!d)return this[j(0xc8)][j(0xd0)](j(0xbd)+b+'\x22\x20not\x20retrieved\x20from\x20'+c['name']+j(0xb9)),j(0xd3)+b+j(0xbc);try{return this['actor']['addInventory'](d),this[j(0xc8)][j(0xd0)](j(0xcb)+b+j(0xc5)+this[j(0xd6)]['name']+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[j(0xc0)][j(0xdc)](b),this[j(0xc8)][j(0xd0)]('Successfully\x20removed\x20\x22'+b+j(0xd8)+c[j(0xd2)]+j(0xb9)),j(0xc3)+b+'.';}catch(e){return this['logger']['write']('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[j(0xdf)]),'The\x20item\x20\x22'+b+j(0xd9);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40h=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a40h=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x17b))/0x1*(parseInt(f(0x17d))/0x2)+parseInt(f(0x173))/0x3*(parseInt(f(0x177))/0x4)+parseInt(f(0x16e))/0x5+parseInt(f(0x17a))/0x6+parseInt(f(0x182))/0x7+parseInt(f(0x16f))/0x8+-parseInt(f(0x17f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xcad47));const a40b=(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;};}()),a40a=a40b(this,function(){const g=a40d;return a40a[g(0x176)]()[g(0x174)](g(0x181))[g(0x176)]()[g(0x180)](a40a)[g(0x174)](g(0x181));});a40a();function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x16d;let f=c[d];return f;},a40d(a,b);}function a40c(){const j=['5805666qalZix','1DNQkSa','write','340310dXIsDM','logger','45213363oOpAZD','constructor','(((.+)+)+)+$','9199400fybAxn','actor','unqeuip','Unequip\x20an\x20item.','4440285SXxtML','11435520sXINbp','toLowerCase','verb','\x20unqeuiped\x20','21gCBiah','search','name','toString','620020pZiJAd','join','execute'];a40c=function(){return j;};return a40c();}import{Command}from'./command.js';export class UnequipCommand extends Command{static [a40h(0x171)]=a40h(0x184);static ['description']=a40h(0x16d);[a40h(0x179)](a){const i=a40h,b=a[i(0x178)]('\x20')[i(0x170)](),c=this[i(0x183)]['unequip'](b);return this[i(0x17e)][i(0x17c)]('UnequipCommand:\x20'+this[i(0x183)][i(0x175)]+i(0x172)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41j=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x152;let f=c[d];return f;},a41d(a,b);}(function(a,b){const h=a41d,c=a();while(!![]){try{const d=-parseInt(h(0x167))/0x1+parseInt(h(0x163))/0x2*(-parseInt(h(0x176))/0x3)+-parseInt(h(0x153))/0x4+-parseInt(h(0x16d))/0x5*(parseInt(h(0x156))/0x6)+parseInt(h(0x16a))/0x7+parseInt(h(0x16c))/0x8+parseInt(h(0x166))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x1b14e));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const i=a41d;return a41a['toString']()['search'](i(0x170))[i(0x155)]()['constructor'](a41a)[i(0x160)](i(0x170));});a41a();import{Door}from'../models/door.js';function a41c(){const m=['get','actor','search','execute','UnlockCommand:\x20No\x20target\x20specified.','2MTTOaI','exits','toLowerCase','3106935ZZNWbG','157004nXrPaL','logger','name','842380eUjmsd','There\x27s\x20no\x20door\x20named\x20\x22','662536wIsVfB','11025iuyCIB','verb','inventory','(((.+)+)+)+$','\x20is\x20attempted\x20to\x20unlock\x20','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','UnlockCommand:\x20','length','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','109614giRCke','has','Unlock\x20a\x20door.','attemptUnlockExit','write','358216fNvlQx','isValidDirection','toString','420tcUyzk','\x22\x20here.','currentLocation','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','unlock','description','getItem','hasItem'];a41c=function(){return m;};return a41c();}import{Command}from'./command.js';export class UnlockCommand extends Command{static [a41j(0x16e)]=a41j(0x15a);static [a41j(0x15b)]=a41j(0x178);[a41j(0x161)](a){const k=a41j;return this[k(0x15a)](a);}[a41j(0x15a)](a){const l=a41j;if(a[l(0x174)]===0x0)return this['logger']['error'](l(0x162)),l(0x159);const b=a[0x0][l(0x165)](),c=this[l(0x15f)][l(0x158)];if(this[l(0x154)](b)&&c[l(0x164)][l(0x177)](b)){const d=c['exits'][l(0x15e)](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.[l(0x165)]();if(e&&this[l(0x15f)][l(0x16f)][l(0x15d)](e)){const f=this[l(0x15f)][l(0x16f)][l(0x15c)](e);if(f){const g=c[l(0x179)](b,f['name']);return this[l(0x168)][l(0x152)](l(0x173)+this['actor']['name']+l(0x171)+b+'.\x20Result:\x20'+g),g;}}return this[l(0x168)][l(0x152)]('UnlockCommand:\x20'+this[l(0x15f)]['name']+l(0x172)+b+'.'),'You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.';}else return this[l(0x168)][l(0x152)](l(0x173)+b+l(0x175)+c[l(0x169)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+l(0x157);}else return this[l(0x168)][l(0x152)](l(0x173)+b+l(0x175)+c['name']+'.'),l(0x16b)+b+l(0x157);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x15e;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(0x17c))/0x1+-parseInt(f(0x166))/0x2*(parseInt(f(0x179))/0x3)+parseInt(f(0x182))/0x4*(-parseInt(f(0x177))/0x5)+-parseInt(f(0x17b))/0x6*(-parseInt(f(0x170))/0x7)+parseInt(f(0x162))/0x8*(-parseInt(f(0x161))/0x9)+-parseInt(f(0x17e))/0xa+parseInt(f(0x168))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xbf01e));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a['toString']()[h(0x16e)](h(0x173))['toString']()[h(0x175)](a42a)['search'](h(0x173));});function a42c(){const k=['136MQhaLU','Use\x20an\x20item.','hasItem','\x27s\x20inventory.','12230766GEkSNL','8PKraLX','You\x20can\x27t\x20use\x20the\x20','actor','You\x20don\x27t\x20have\x20the\x20','14NrDeTf','\x20not\x20retrieved\x20from\x20','36045636VNOKTA','function','getItem','use','\x20doesn\x27t\x20have\x20a\x20use\x20method.','logger','search',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','63xeQkpO','\x20in\x20this\x20way.','\x20to\x20use.','(((.+)+)+)+$','inventory','constructor','UseCommand:\x20','86885xwVxQz','\x20used\x20','66897jnaDvM','description','739854SgaTKs','816261Agcxfl','apply','6821450DVbjiB','write','name','join'];a42c=function(){return k;};return a42c();}a42a();import{Command}from'./command.js';export class UseCommand extends Command{static ['verb']=a42i(0x16b);static [a42i(0x17a)]=a42i(0x15e);['execute'](a){return this['use'](a);}[a42i(0x16b)](a){const j=a42i,b=a[j(0x181)]('\x20')['toLowerCase']();if(!this[j(0x164)]['inventory'][j(0x15f)](b))return this[j(0x16d)][j(0x17f)](j(0x176)+this[j(0x164)][j(0x180)]+'\x20attempted\x20to\x20use\x20'+b+j(0x16f)),j(0x165)+b+j(0x172);const c=this[j(0x164)][j(0x174)][j(0x16a)](b);if(!c)return this['logger']['write']('UseCommand:\x20'+b+j(0x167)+this[j(0x164)]['name']+j(0x160)),j(0x165)+b+j(0x172);if(typeof c['use']===j(0x169)){const d=c[j(0x16b)]();return this['logger'][j(0x17f)](j(0x176)+this[j(0x164)][j(0x180)]+j(0x178)+b+'.'),d;}else return this[j(0x16d)]['write'](j(0x176)+b+j(0x16c)),j(0x163)+b+j(0x171);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x161;let f=c[d];return f;},a43d(a,b);}const a43h=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x16c))/0x1+parseInt(f(0x16d))/0x2+parseInt(f(0x16e))/0x3*(parseInt(f(0x161))/0x4)+parseInt(f(0x162))/0x5+-parseInt(f(0x16f))/0x6+-parseInt(f(0x164))/0x7*(parseInt(f(0x169))/0x8)+parseInt(f(0x16b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x8f45e));function a43c(){const l=['313216yAwmIy','1788904VYiXSK','12eQPmzh','2902578IEcTUG','search','154936VHwEDs','251885zWWrHC','constructor','7HcZcDU','(((.+)+)+)+$','getAllRegisteredCommands','toString','registerCommand','3249352lNKCoW','commandMap','574173hmTdKH'];a43c=function(){return l;};return a43c();}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(0x167)]()[g(0x170)]('(((.+)+)+)+$')[g(0x167)]()[g(0x163)](a43a)[g(0x170)](g(0x165));});a43a();export class CommandFactory{static [a43h(0x16a)]={};static[a43h(0x168)](a,b){const i=a43h;this[i(0x16a)][a]=b;}static['createCommand'](a,b){const j=a43h,c=this[j(0x16a)][a];if(c)return new c(b);return null;}static[a43h(0x166)](){const k=a43h;return this[k(0x16a)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44i=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d
|
|
1
|
+
const a44i=a44d;function a44c(){const o=['inventory','64caGZxG','143ClgwMz','legarmor','search','items','rewardItem','INSIDE','395144ejrsCB','1290280CUqYuv','description','boots','gauntlets','roomType','puzzle','(((.+)+)+)+$','12342861jTmacv','setPuzzle','1666156cZeaNE','5TQVTcd','sword','createPuzzle','toUpperCase','content','convertToRoomConfig','rifle','createItem','gloves','157390vcprNN','name','createRoom','42PulhBE','isStartRoom','type','4305078rxHlKt','addItem','toString','key','forEach','bodyarmor','constructor','148431UrbzjR','apply'];a44c=function(){return o;};return a44c();}(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(0xfa))/0x1+parseInt(f(0x104))/0x2+parseInt(f(0xf0))/0x3*(parseInt(f(0xf3))/0x4)+-parseInt(f(0x105))/0x5*(parseInt(f(0xe9))/0x6)+-parseInt(f(0xe6))/0x7*(parseInt(f(0xfb))/0x8)+parseInt(f(0x102))/0x9+parseInt(f(0xe3))/0xa*(-parseInt(f(0xf4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xad9fd));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0xf1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0xeb)]()[h(0xf6)](h(0x101))[h(0xeb)]()[h(0xef)](a44a)['search'](h(0x101));});a44a();import{Room,Puzzle,Inventory}from'../models/_index.js';function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xdd;let f=c[d];return f;},a44d(a,b);}import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{[a44i(0xe5)](a){const j=a44i,b=this['convertToRoomConfig'](a),c=new Room(b);if(a[j(0xf7)]){const d=new Inventory();a[j(0xf7)][j(0xed)](e=>{const k=j;d[k(0xea)](this[k(0xe1)](e));}),c[j(0xf2)]=d;}return a[j(0x100)]&&c[j(0x103)](this[j(0x107)](a['puzzle'])),c;}[a44i(0xe1)](a){const l=a44i;switch(a[l(0xe8)]){case l(0xec):return new Key(a[l(0xe4)],a[l(0xfc)]);case'book':return new Book(a['name'],a['description'],a[l(0xde)]);case l(0x106):return new Sword(a[l(0xe4)],a['description']);case l(0xe0):return new Rifle(a[l(0xe4)],a[l(0xfc)]);case'helmet':return new Helmet(a['name'],a[l(0xfc)]);case l(0xee):return new BodyArmor(a[l(0xe4)],a[l(0xfc)]);case l(0xf5):return new LegArmor(a['name'],a[l(0xfc)]);case l(0xfd):return new Boots(a[l(0xe4)],a['description']);case l(0xe2):return new Gloves(a[l(0xe4)],a[l(0xfc)]);case l(0xfe):return new Gauntlets(a[l(0xe4)],a['description']);default:return new BasicItem(a[l(0xe4)],a[l(0xfc)]);}}[a44i(0x107)](a){const m=a44i,b=this[m(0xe1)](a[m(0xf8)]);return new Puzzle({...a,'rewardItem':b});}[a44i(0xdf)](a){const n=a44i,b=a['roomType']&&RoomType[a['roomType'][n(0xdd)]()]?RoomType[a[n(0xff)][n(0xdd)]()]:RoomType[n(0xf9)];return{'name':a[n(0xe4)],'description':a['description'],'isStartRoom':a[n(0xe7)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d
|
|
1
|
+
function a45c(){const s=['help','trim','3298869DBxidw','getAllRegisteredCommands','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','take','getWelcomeMessage','Available\x20Commands:\x0a','look','84686jxTJpL','clear','currentRoom','initialize','(((.+)+)+)+$','hasOwnProperty','10737iLVQbx','say','name','search','1871535gENDZI','player','instance','registerCommands','determineStartRoom','maka','currentLocation','toString','execute','Welcome,\x20','apply','split','getRooms','slice','createCommand','getInstance','solve','14772ciulUE','unequip','496fToqhT','scene','-\x20clear:\x20Clear\x20the\x20screen.\x0a','2443740NFdsDA','unlock','quit','rooms','21gXOkHL','getDescription','getHelpMessage','8515940nIEMrt','equip','registerCommand','3qJmFCp'];a45c=function(){return s;};return a45c();}const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=-parseInt(h(0x163))/0x1*(parseInt(h(0x16d))/0x2)+-parseInt(h(0x15d))/0x3*(parseInt(h(0x154))/0x4)+parseInt(h(0x143))/0x5+-parseInt(h(0x159))/0x6+-parseInt(h(0x166))/0x7+parseInt(h(0x156))/0x8*(parseInt(h(0x13f))/0x9)+parseInt(h(0x160))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x4188e));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a45d;if(c){const e=c[i(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const j=a45d;return a45a[j(0x14a)]()[j(0x142)](j(0x13d))['toString']()['constructor'](a45a)[j(0x142)](j(0x13d));});a45a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x13b;let f=c[d];return f;},a45d(a,b);}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 [a45k(0x145)];[a45k(0x157)];[a45k(0x144)];[a45k(0x13b)];[a45k(0x15c)];constructor(a,b){const l=a45k;this[l(0x144)]=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this[l(0x157)][l(0x13c)](),this['player'][l(0x149)]=this['determineStartRoom'](),this[l(0x146)]();}['registerCommands'](){const m=a45k;CommandFactory[m(0x162)](m(0x16c),LookCommand),CommandFactory[m(0x162)]('go',GoCommand),CommandFactory[m(0x162)](m(0x169),TakeCommand),CommandFactory['registerCommand']('use',UseCommand),CommandFactory[m(0x162)](m(0x161),EquipCommand),CommandFactory[m(0x162)](m(0x155),UnequipCommand),CommandFactory['registerCommand'](m(0x153),SolveCommand),CommandFactory['registerCommand']('drop',DropCommand),CommandFactory[m(0x162)](m(0x15a),UnlockCommand),CommandFactory[m(0x162)]('lock',LockCommand),CommandFactory[m(0x162)](m(0x142),SearchCommand),CommandFactory[m(0x162)](m(0x140),SayCommand);}[a45k(0x147)](){const n=a45k;return this[n(0x157)][n(0x147)]();}[a45k(0x16a)](){const o=a45k;return o(0x14c)+this[o(0x144)][o(0x141)];}static[a45k(0x152)](a,b){const p=a45k;return!Game[p(0x145)]&&(Game[p(0x145)]=new Game(a,b)),Game[p(0x145)];}['handleInput'](a){const q=a45k,b=a[q(0x165)]()[q(0x14e)]('\x20'),c=b[0x0]['toLowerCase'](),d=b[q(0x150)](0x1);if(c===q(0x15b))return null;if(c===q(0x148))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c===q(0x164))return this[q(0x15f)]();if(c===q(0x16e))return'';const e={'actor':this[q(0x144)],'rooms':this['scene'][q(0x14f)](),'scene':this[q(0x157)]},f=CommandFactory[q(0x151)](c,e);if(f){const g=f[q(0x14b)](d);return g;}return q(0x168)+c+'\x22.';}['getHelpMessage'](){const r=a45k,a=CommandFactory[r(0x167)]();let b=r(0x16b);for(const c in a){if(a[r(0x13e)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x15e)]()+'\x0a';}}return b+=r(0x158),b+='-\x20quit:\x20Exit\x20the\x20game.\x0a',b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a46d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0xc6))/0x1*(parseInt(f(0xc2))/0x2)+-parseInt(f(0xc0))/0x3+parseInt(f(0xc5))/0x4*(parseInt(f(0xbf))/0x5)+parseInt(f(0xca))/0x6*(parseInt(f(0xbd))/0x7)+-parseInt(f(0xc9))/0x8*(parseInt(f(0xbc))/0x9)+parseInt(f(0xc1))/0xa+parseInt(f(0xc7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x9d78c));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var g=a46d;return a46a[g(0xc8)]()['search'](g(0xbe))[g(0xc8)]()[g(0xc4)](a46a)[g(0xc3)](g(0xbe));});a46a();export*from'./door.js';export*from'./inventory.js';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xbc;var f=c[d];return f;},a46d(a,b);}export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';function a46c(){var h=['1779120kEyGmk','216796bjfhLP','search','constructor','76qmUzql','3SUDrVf','3925064HHJKkZ','toString','13352mtHSIv','6FdcKnR','5679NcHqDx','7889602MIwGCJ','(((.+)+)+)+$','122935GQDbWq','316914zkkVlU'];a46c=function(){return h;};return a46c();}export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a47h=a47d;function a47c(){var n=['isLocked','\x20and\x20','roomA','13872jSjlOk','2967418pKTynW','4903011LeYgwy','4123QmIrZv','write','getInstance','To\x20','Door\x20unlocked:\x20','2311235dVLYYD','search','16PuyeGV','checkIfLockable','(((.+)+)+)+$','toString','logger','isLockable','name','872631FGEAqw','3366540psSUMq','roomB','.\x20Is\x20Locked:\x20','Door\x20created\x20between\x20','checkIfLocked','.\x20Used:\x20','unlockItemOrSolution','5736636JsKUtJ','getOtherSide'];a47c=function(){return n;};return a47c();}(function(a,b){var f=a47d,c=a();while(!![]){try{var d=-parseInt(f(0x1eb))/0x1+parseInt(f(0x1db))/0x2+parseInt(f(0x1dc))/0x3+-parseInt(f(0x1d5))/0x4+-parseInt(f(0x1e2))/0x5+parseInt(f(0x1da))/0x6*(parseInt(f(0x1dd))/0x7)+parseInt(f(0x1e4))/0x8*(-parseInt(f(0x1ec))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xeb061));var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var g=a47d;return a47a[g(0x1e7)]()[g(0x1e3)](g(0x1e6))[g(0x1e7)]()['constructor'](a47a)[g(0x1e3)](g(0x1e6));});a47a();import{Logger}from'../utilities/logger.js';function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x1cf;var f=c[d];return f;},a47d(a,b);}import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a47h(0x1d9)];[a47h(0x1cf)];[a47h(0x1d7)];['unlockItemOrSolution'];['name'];['logger'];[a47h(0x1e9)];constructor(a){var i=a47h;super(),this[i(0x1d9)]=a[i(0x1d9)],this['roomB']=a['roomB'],this[i(0x1d7)]=a[i(0x1d7)]||![],this[i(0x1d4)]=a[i(0x1d4)],this['name']=a[i(0x1ea)]?capitalCase(a[i(0x1ea)]):i(0x1e0)+a['roomB'][i(0x1ea)],this[i(0x1e8)]=Logger[i(0x1df)](),this[i(0x1e9)]=!!a[i(0x1d4)],this['logger'][i(0x1de)](i(0x1d1)+this[i(0x1d9)][i(0x1ea)]+i(0x1d8)+this[i(0x1cf)][i(0x1ea)]+i(0x1d0)+this[i(0x1d7)]);}[a47h(0x1d6)](a){var j=a47h;return this['roomA']===a?this['roomB']:this[j(0x1d9)];}['attemptUnlock'](a){var k=a47h;if(this[k(0x1d7)]&&this[k(0x1d4)]&&this['unlockItemOrSolution']===a)return this['isLocked']=![],this[k(0x1e8)][k(0x1de)](k(0x1e1)+this[k(0x1ea)]+'.\x20Used:\x20'+a),!![];return this['logger'][k(0x1de)]('Failed\x20to\x20unlock\x20door:\x20'+this['name']+k(0x1d3)+a),![];}[a47h(0x1d2)](){var l=a47h;return this[l(0x1d7)];}[a47h(0x1e5)](){var m=a47h;return this[m(0x1e9)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x13e;let f=c[d];return f;},a48d(a,b);}function a48c(){const r=['45SvkOEP','getInstance','delete','items','1038050xhILJR','.\x20Item\x20not\x20found.','Retrieved\x20details\x20for\x20item:\x20','Added\x20item:\x20','values','addItem','removeItem','613163oumlVo','690160qOOzwy','(((.+)+)+)+$','toString','Failed\x20to\x20remove\x20item:\x20','.\x20Exists:\x20','get','Listed\x20items\x20in\x20inventory:\x20','152528flnbMl','42xfsMht','4cksJyb','getWeight','apply','7521458HfipQQ','hasItem','constructor','logger','name','getItem','write','keys','29929980plrpAQ','join','map','484875uikbMy','getAllItems','search'];a48c=function(){return r;};return a48c();}const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x15a))/0x1*(-parseInt(f(0x13e))/0x2)+-parseInt(f(0x14c))/0x3+parseInt(f(0x15b))/0x4+-parseInt(f(0x153))/0x5*(-parseInt(f(0x163))/0x6)+parseInt(f(0x141))/0x7+parseInt(f(0x162))/0x8*(parseInt(f(0x14f))/0x9)+-parseInt(f(0x149))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xd3c09));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x140)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x15d)]()[h(0x14e)](h(0x15c))[h(0x15d)]()[h(0x143)](a48a)[h(0x14e)](h(0x15c));});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48i(0x152)];['logger'];constructor(){const j=a48i;super(),this[j(0x152)]=new Map(),this[j(0x144)]=Logger[j(0x150)]();}[a48i(0x158)](a){const k=a48i;this[k(0x152)]['set'](a[k(0x145)]['toLowerCase'](),a),this['logger'][k(0x147)](k(0x156)+a['name']+'\x20to\x20inventory.');}[a48i(0x159)](a){const l=a48i,b=this[l(0x146)](a);if(b)return this[l(0x152)][l(0x151)](a['toLowerCase']()),this[l(0x144)][l(0x147)]('Removed\x20item:\x20'+a+'\x20from\x20inventory.'),b;return this[l(0x144)]['write'](l(0x15e)+a+l(0x154)),null;}[a48i(0x142)](a){const m=a48i,b=this['items']['has'](a['toLowerCase']()),c=[...this['items'][m(0x148)]()];return this['logger'][m(0x147)]('Checked\x20for\x20item:\x20'+a+'\x20in\x20'+c['join'](',\x20')+m(0x15f)+b+'.'),b;}['getItem'](a){const n=a48i,b=this['items'][n(0x160)](a['toLowerCase']())||null;return b?this[n(0x144)][n(0x147)](n(0x155)+a+'.'):this[n(0x144)]['write']('Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'+a+n(0x154)),b;}['listItems'](){const o=a48i,a=[...this[o(0x152)][o(0x148)]()],b=a[o(0x14b)](c=>capitalCase(c));return this[o(0x144)][o(0x147)](o(0x161)+b[o(0x14a)](',\x20')+'.'),a;}[a48i(0x13f)](){const p=a48i;let a=0x0;for(const b of this[p(0x152)][p(0x157)]()){a+=b['weight'];}return a;}[a48i(0x14d)](){const q=a48i;return[...this[q(0x152)][q(0x157)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a49c(){var l=['You\x20use\x20the\x20','39hqWCNF','4423095QsAwgz','name','constructor','(((.+)+)+)+$','317945NbYWFf','shape','uuid','apply','category','weight','rating','24cAQttX','texture','156rIUzlr','search','2876JWVUZH','697886ydDKoz','12YqfpEG','14FtxcRm','7583940yXuLTO','color','use','410LSoSqD','232507XCQqZY','4332882PlrMyl','description','size'];a49c=function(){return l;};return a49c();}var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0xde))/0x1+-parseInt(f(0xdd))/0x2*(-parseInt(f(0xdb))/0x3)+parseInt(f(0xdf))/0x4*(-parseInt(f(0xef))/0x5)+-parseInt(f(0xe6))/0x6*(-parseInt(f(0xe0))/0x7)+parseInt(f(0xd9))/0x8*(parseInt(f(0xeb))/0x9)+-parseInt(f(0xe4))/0xa*(parseInt(f(0xe5))/0xb)+parseInt(f(0xe1))/0xc*(-parseInt(f(0xea))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xb42a0));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a['toString']()[h(0xdc)](h(0xee))['toString']()[h(0xed)](a49a)[h(0xdc)](h(0xee));});a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.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 class Item extends AbstractItem{['uuid'];[a49i(0xec)];['description'];[a49i(0xe8)];[a49i(0xd6)];['shape'];[a49i(0xe2)];['texture'];['rating'];[a49i(0xd7)];constructor(a){var j=a49i;super(),this['name']=a[j(0xec)],this[j(0xe7)]=a[j(0xe7)],this['size']=a[j(0xe8)],this['category']=a[j(0xd6)],this[j(0xf0)]=a[j(0xf0)],this['color']=a[j(0xe2)],this[j(0xda)]=a[j(0xda)],this[j(0xd8)]=a[j(0xd8)],this[j(0xd7)]=a['weight'],this[j(0xf1)]=a49e();}[a49i(0xe3)](){var k=a49i;return k(0xe9)+this[k(0xec)]+'.\x20Nothing\x20special\x20happens.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50h=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x148))/0x1+-parseInt(f(0x156))/0x2+parseInt(f(0x152))/0x3+parseInt(f(0x14d))/0x4*(parseInt(f(0x151))/0x5)+parseInt(f(0x15e))/0x6+parseInt(f(0x159))/0x7+-parseInt(f(0x14f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x27851));const a50b=(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;};}()),a50a=a50b(this,function(){const g=a50d;return a50a[g(0x15b)]()[g(0x158)](g(0x15c))['toString']()[g(0x155)](a50a)[g(0x158)](g(0x15c));});function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x148;let f=c[d];return f;},a50d(a,b);}function a50c(){const m=['name','4005824ZGhRZG','scene','715930kCOuod','818283Tjxmfw','autonomousMove','moveTo','constructor','161810IdbXlO','floor','search','208250uOwGvr','_dialogue','toString','(((.+)+)+)+$','execute','1691436vTjUzI','_name','15903lqnslK','rooms','random','length','speak','4VvFsIp'];a50c=function(){return m;};return a50c();}a50a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a50h(0x15f)];[a50h(0x15a)];[a50h(0x149)];[a50h(0x150)];constructor(a,b,c,d){const i=a50h;super(d),this[i(0x15f)]=a,this['_dialogue']=b,this[i(0x149)]=c;}get[a50h(0x14e)](){return this['_name'];}[a50h(0x14c)](){const j=a50h;return this[j(0x15a)][Math['floor'](Math[j(0x14a)]()*this[j(0x15a)][j(0x14b)])];}[a50h(0x153)](a){const k=a50h,b=a[Math[k(0x157)](Math[k(0x14a)]()*a[k(0x14b)])];this['moveTo'](b[k(0x14e)]);}[a50h(0x154)](a){const l=a50h,b={'actor':this,'rooms':this[l(0x149)],'scene':this[l(0x150)]},c=new GoCommand(b);c[l(0x15d)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51h=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0x13e))/0x1*(parseInt(f(0x140))/0x2)+-parseInt(f(0x14f))/0x3+parseInt(f(0x11c))/0x4+parseInt(f(0x10a))/0x5*(parseInt(f(0x110))/0x6)+parseInt(f(0x121))/0x7+parseInt(f(0x105))/0x8*(parseInt(f(0x10c))/0x9)+-parseInt(f(0x108))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x337a4));function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0xfe;let f=c[d];return f;},a51d(a,b);}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(0x132)]()['search']('(((.+)+)+)+$')[g(0x132)]()[g(0x149)](a51a)[g(0x139)]('(((.+)+)+)+$');});a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';function a51c(){const A=['hasItem','enterRoom','startLocation','164268GClIRA','bodyarmor','ArmArmor','off','name','arms','armarmor','unequip','logger','torso','weight','removeItem','24eQgVFj','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','currentLocation','4949630DYWcUy','shield','34955GeNtJe','boots','159705oxVyXW','unequipBySlot','Helmet','\x20says:\x20\x22','42flArtE','arm\x20armor','\x20to\x20player\x27s\x20inventory.','maxCarryingWeight','Hat','category','speak','_inventory','values','Gloves','addInventory','Added\x20','652464hiCAWM','gloves','\x20from\x20player\x27s\x20inventory.','helmet','_equipment','1077160XXANfl','You\x20equipped\x20','rightHand','removeInventory','inventory','_playerName','leftHand','Invalid\x20category\x20or\x20slot:\x20','head','weapon','hear','equip','toLowerCase','currentWeight','leg\x20armor','legarmor','bind','toString','_currentLocation','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','feet','initialEquipment','equipment','legs','search','Weapon','\x20in\x20your\x20inventory.','log','determineEquipmentSlot','3jtYPoB','leaveRoom','227602qzcwRi','canEquip','body\x20armor','inventoryItems','You\x20unequipped\x20','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','playerName','write','addItem','constructor','Nexus','_maxCarryingWeight'];a51c=function(){return A;};return a51c();}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{[a51h(0x126)];['_currentLocation'];[a51h(0x117)];[a51h(0x120)];[a51h(0x14b)]=0x32;[a51h(0x101)];constructor(a){const i=a51h;super(),this[i(0x126)]=a[i(0x146)],this['_currentLocation']=a[i(0x14e)]||new Room({'name':i(0x14a),'description':'A\x20featureless\x20room'}),this[i(0x117)]=new Inventory(),this[i(0x101)]=Logger['getInstance']();if(a?.['inventoryItems'])for(const b of a[i(0x143)]){this[i(0x117)][i(0x148)](b);}this[i(0x120)]=a?.[i(0x136)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51h(0x153)](){return this['_playerName'];}get[a51h(0x107)](){const j=a51h;return this[j(0x133)];}set['currentLocation'](a){const k=a51h;this[k(0x133)]!==a&&(this[k(0x13f)](),this[k(0x14d)](a)),this[k(0x133)]=a;}get[a51h(0x125)](){return this['_inventory'];}get[a51h(0x137)](){const l=a51h;return this[l(0x120)];}set[a51h(0x137)](a){const m=a51h;this[m(0x120)]=a;}get[a51h(0x113)](){const n=a51h;return this[n(0x14b)];}set['maxCarryingWeight'](a){const o=a51h;a>0x0?this[o(0x14b)]=a:console['error']('Max\x20carrying\x20weight\x20must\x20be\x20positive.');}get['currentWeight'](){const p=a51h;let a=this[p(0x117)]['getWeight']();for(const b in this[p(0x120)]){const c=this[p(0x120)][b];c&&(a+=c['weight']);}return a;}['addInventory'](a){const q=a51h;if(this[q(0x12e)]+a[q(0x103)]>this[q(0x113)]){this['logger'][q(0x147)](q(0x145));throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this[q(0x117)][q(0x148)](a),this[q(0x101)][q(0x147)](q(0x11b)+a[q(0x153)]+q(0x112));}[a51h(0x124)](a){const r=a51h;if(this['_inventory'][r(0x104)](a[r(0x153)]))return this[r(0x101)]['write']('Removed\x20'+a[r(0x153)]+'\x20from\x20player\x27s\x20inventory.'),!![];return this[r(0x101)]['write']('Failed\x20to\x20remove\x20'+a['name']+r(0x11e)),![];}[a51h(0x12c)](a){const s=a51h;if(!this[s(0x117)][s(0x14c)](a[s(0x153)]))return'You\x20don\x27t\x20have\x20'+a[s(0x153)]+s(0x13b);if(!this[s(0x141)](a))return'You\x20can\x27t\x20equip\x20'+a['name']+'.';const b=this[s(0x13d)](a[s(0x115)]);if(!b)return a[s(0x153)]+'\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.';if(this[s(0x137)][b])return s(0x134)+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this['equipment'][b]=a,this[s(0x124)](a),s(0x122)+a['name']+'.';}[a51h(0x100)](a){const t=a51h;let b=a;if(!this[t(0x137)][camelCase(b)]){b=this[t(0x13d)](a);if(!b)return t(0x128)+a+'.';}return this[t(0x10d)](b);}['determineEquipmentSlot'](a){const u=a51h;switch(a[u(0x12d)]()){case Category[u(0x13a)][u(0x12d)]():return u(0x123);case Category['Shield'][u(0x12d)]():return'leftHand';case Category[u(0x119)][u(0x12d)]():return u(0x11d);case Category[u(0x10e)][u(0x12d)]():case Category[u(0x114)][u(0x12d)]():return u(0x129);case Category['Boots'][u(0x12d)]():return u(0x135);case Category['LegArmor'][u(0x12d)]():return u(0x138);case Category[u(0x151)]['toLowerCase']():return u(0xfe);case Category['BodyArmor'][u(0x12d)]():return u(0x102);case u(0x12a):return u(0x123);case u(0x109):return u(0x127);case u(0x11d):return'gloves';case u(0x11f):case'hat':return'head';case u(0x10b):return u(0x135);case u(0x12f):case u(0x130):return'legs';case u(0x111):case u(0xff):return u(0xfe);case u(0x142):case u(0x150):case u(0x102):return u(0x102);default:return null;}}[a51h(0x141)](a){const v=a51h;return Object[v(0x118)](Category)['includes'](a[v(0x115)]);}[a51h(0x10d)](a){const w=a51h,b=this['equipment'][a];if(!b)return w(0x106)+a+'\x20slot.';return this[w(0x11a)](b),this[w(0x137)][a]=null,w(0x144)+b[w(0x153)]+'.';}['hear'](a,b){const x=a51h;a!==this&&this[x(0x101)][x(0x13c)](a[x(0x153)]+x(0x10f)+b+'\x22');}[a51h(0x14d)](a){const y=a51h;this[y(0x133)]=a,a['on']('speak',this[y(0x12b)][y(0x131)](this)),this['logger']['write'](this['name']+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[y(0x153)]);}[a51h(0x13f)](){const z=a51h;this[z(0x133)]&&(this['_currentLocation'][z(0x152)](z(0x116),this['hear'][z(0x131)](this)),this[z(0x101)][z(0x147)](this['name']+'\x20is\x20no\x20longer\x20listeng\x20in\x20'+this[z(0x133)]['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x10a))/0x1+parseInt(f(0xfc))/0x2+parseInt(f(0x108))/0x3+parseInt(f(0x10e))/0x4*(parseInt(f(0x103))/0x5)+-parseInt(f(0x105))/0x6+parseInt(f(0x10d))/0x7*(-parseInt(f(0xf9))/0x8)+parseInt(f(0x111))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x43a28));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(0x10b)]()[g(0xff)]('(((.+)+)+)+$')[g(0x10b)]()['constructor'](a52a)[g(0xff)]('(((.+)+)+)+$');});a52a();function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xf5;var f=c[d];return f;},a52d(a,b);}function a52c(){var l=['toString','riddle','1489285CbGRbm','43076XTXqby','You\x20solved\x20the\x20puzzle!','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','432531WGXXAb','matchesRequiredPhrase','solve','logger','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','8HiklSe','write','requiredItem','262012WDfleW','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','solved','search','hasRequiredItem','successMessage','Puzzle:\x20Correct\x20solution\x20provided.','50CHVyZa','hasItem','1442868XFxycg','You\x20have\x20already\x20solved\x20this\x20puzzle.','failureMessage','1203897UbqJGX','requiredPhrase','42211SaFZTU'];a52c=function(){return l;};return a52c();}import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52h(0xf7)]=Logger['getInstance']();[a52h(0xfe)]=![];['requiredItem'];['requiredPhrase'];[a52h(0x10c)];['rewardItem'];[a52h(0x101)];[a52h(0x107)];constructor(a){var i=a52h;super(),this[i(0xfb)]=a[i(0xfb)],this[i(0x109)]=a['requiredPhrase'],this[i(0x10c)]=a['riddle'],this['rewardItem']=a['rewardItem'],this[i(0x101)]=a[i(0x101)]||i(0x10f),this[i(0x107)]=a['failureMessage']||i(0x110);}[a52h(0x100)](a){var j=a52h;if(this['requiredItem'])return a[j(0x104)](this[j(0xfb)]);return![];}[a52h(0xf5)](a){return this['requiredPhrase']===a;}[a52h(0xf6)](a,b){var k=a52h;if(this[k(0xfe)])return this[k(0xf7)][k(0xfa)](k(0xf8)),{'success':![],'message':k(0x106)};return this[k(0x100)](b)||this[k(0xf5)](a)?(this[k(0xfe)]=!![],this['logger'][k(0xfa)](k(0x102)),{'success':!![],'message':this['successMessage']}):(this['logger'][k(0xfa)](k(0xfd)),{'success':![],'message':this['failureMessage']});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0xed))/0x1*(parseInt(f(0xc7))/0x2)+-parseInt(f(0xf0))/0x3*(-parseInt(f(0xce))/0x4)+-parseInt(f(0xd2))/0x5+-parseInt(f(0xb7))/0x6+parseInt(f(0xb5))/0x7+parseInt(f(0xcc))/0x8*(parseInt(f(0xd0))/0x9)+parseInt(f(0xba))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x90838));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0xf1)]()[h(0xe6)]('(((.+)+)+)+$')[h(0xf1)]()[h(0xf2)](a53a)[h(0xe6)](h(0xc5));});a53a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';function a53c(){const u=['description','Puzzle\x20set\x20for\x20room\x20','INSIDE','get','checkIfLocked','roomType','removeItem','search','isExitLocked','Invalid\x20direction:\x20','puzzle','hasItem','Fetching\x20exit\x20in\x20direction:\x20','attemptUnlock','19kbZoUv','findExistingDoor','SOUTH','615UskOJn','toString','constructor','addExit','\x20remains\x20locked.','isStartRoom','1817914OKHaRI','exits','2173650GtNLEh','getOppositeDirection','NORTH','4015260XxTlut','Checking\x20if\x20exit\x20in\x20direction\x20','\x20is\x20locked.\x20Result:\x20','riddle','values','emit','apply','roomB','write','addItem','north','(((.+)+)+)+$','DOWN','582yaByVP','Item\x20removed\x20from\x20room\x20','roomA','south','Room\x20created:\x20','424yEzoJx','\x20unlocked!','16788rgVlaH','set','102069NuWnVl','setPuzzle','5870060waUZYG','.\x20Success:\x20','logger','getInstance','The\x20','Item\x20added\x20to\x20room\x20','getExit','name','east','EAST','down','inventory','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'];a53c=function(){return u;};return a53c();}import{Door}from'./door.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xb5;let f=c[d];return f;},a53d(a,b);}import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a53i(0xd4)]=Logger[a53i(0xd5)]();[a53i(0xd9)];[a53i(0xdf)];[a53i(0xb6)]=new Map();[a53i(0xe4)];[a53i(0xf5)];[a53i(0xdd)]=new Inventory();constructor(a){const j=a53i;super(),this[j(0xd9)]=a['name'],this[j(0xdf)]=a[j(0xdf)],this[j(0xe4)]=a['roomType']||RoomType[j(0xe1)],a[j(0xb6)]&&(this[j(0xb6)]=a[j(0xb6)]||new Map()),a[j(0xdd)]&&(this[j(0xdd)]=a[j(0xdd)]),a[j(0xe9)]&&(this[j(0xe9)]=a[j(0xe9)]),this[j(0xf5)]=a[j(0xf5)]||![],this[j(0xd4)][j(0xc2)](j(0xcb)+this[j(0xd9)]);}['say'](a,b){const k=a53i;this[k(0xbf)]('speak',a,b);}[a53i(0xf3)](a,b,c){const l=a53i;let d=this[l(0xee)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0xb6)][l(0xcf)](a,d),b['exits'][l(0xcf)](this[l(0xb8)](a),d);}['attemptUnlockExit'](a,b){const m=a53i,c=this[m(0xb6)][m(0xe2)](a);if(c instanceof Door){const d=c[m(0xec)](b);return this[m(0xd4)]['write'](m(0xde)+a+m(0xd3)+d),d?m(0xd6)+c[m(0xd9)]+m(0xcd):'The\x20'+c['name']+m(0xf4);}return this[m(0xd4)][m(0xc2)]('No\x20locked\x20exit\x20found\x20in\x20direction\x20'+a),'There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.';}[a53i(0xd8)](a){const n=a53i;return this[n(0xd4)][n(0xc2)](n(0xeb)+a),this[n(0xb6)][n(0xe2)](a);}[a53i(0xe7)](a){const o=a53i,b=this[o(0xb6)]['get'](a),c=b instanceof Door&&b[o(0xe3)]();return this['logger'][o(0xc2)](o(0xbb)+a+o(0xbc)+c),c;}[a53i(0xc3)](a){const p=a53i;this[p(0xdd)]['addItem'](a),this[p(0xd4)][p(0xc2)](p(0xd7)+this[p(0xd9)]+':\x20'+a[p(0xd9)]);}[a53i(0xe5)](a){const q=a53i;this[q(0xdd)][q(0xea)](a[q(0xd9)])?(this['inventory'][q(0xe5)](a[q(0xd9)]),this[q(0xd4)][q(0xc2)](q(0xc8)+this[q(0xd9)]+':\x20'+a[q(0xd9)])):this[q(0xd4)][q(0xc2)]('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this[q(0xd9)]+':\x20'+a[q(0xd9)]);}[a53i(0xd1)](a){const r=a53i;this[r(0xe9)]=a,this['logger'][r(0xc2)](r(0xe0)+this[r(0xd9)]+':\x20'+a[r(0xbd)]);}['getOppositeDirection'](a){const s=a53i;switch(a){case s(0xc4):return Direction[s(0xef)];case s(0xca):return Direction[s(0xb9)];case s(0xda):return Direction['WEST'];case'west':return Direction[s(0xdb)];case'up':return Direction[s(0xc6)];case s(0xdc):return Direction['UP'];default:throw new Error(s(0xe8)+a);}}[a53i(0xee)](a){const t=a53i;for(const b of this[t(0xb6)][t(0xbe)]()){if(b instanceof Door){if(b[t(0xc9)]===this&&b[t(0xc1)]===a||b[t(0xc1)]===this&&b[t(0xc9)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d
|
|
1
|
+
function a54c(){const D=['\x20is\x20now\x20in\x20room\x20','215382vrEypC','get','player','from','search','logger','getActor','Added\x20item\x20','removeRoom','Actor\x20with\x20name\x20','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','Room\x20\x22','1703076Dcziap','toUpperCase','values','addItemToRoom','roomFactory','setPuzzle','set','warn','currentLocation','name','2968688KzWsZG','getInstance','\x20already\x20exists\x20in\x20the\x20scene.','setCharacterLocation','length','direction','write','getRooms','determineStartRoom','\x20not\x20found\x20in\x20scene.','generateRoomsFromConfig','removeActor','Scene\x20initialized\x20with\x20rooms:\x20','\x22\x20does\x20not\x20exist.','isStartRoom','constructor','actors','toString','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','(((.+)+)+)+$','2632044ILqVDo','roomConfiguration','createRoom','connectRooms','targetRoom','rooms','262008syrYLj','exits','\x27s\x20location.\x20Room\x20','611926lcRmLu','Added\x20puzzle\x20to\x20room\x20','1850724ajuQdX','Added\x20room\x20to\x20scene:\x20','keys','apply','hasOwnProperty','join','characterLocations','createExitsFromConfig','Failed\x20to\x20add\x20item\x20','initialize','30BglEhj','push','addExit','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','\x20to\x20room\x20','has','delete'];a54c=function(){return D;};return a54c();}const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d=parseInt(i(0xdb))/0x1+parseInt(i(0xff))/0x2+-parseInt(i(0xd5))/0x3+-parseInt(i(0xe0))/0x4+parseInt(i(0xea))/0x5*(parseInt(i(0xf2))/0x6)+parseInt(i(0xde))/0x7+parseInt(i(0xc1))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x6d3ab));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a[k(0xd2)]()[k(0xf6)](k(0xd4))[k(0xd2)]()[k(0xd0)](a54a)['search'](k(0xd4));});a54a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0xbb;let f=c[d];return f;},a54d(a,b);}export class Scene extends AbstractScene{['rooms'];[a54l(0xf4)];[a54l(0xf7)];[a54l(0xd1)];[a54l(0xe6)]=new Map();[a54l(0xbb)];constructor(a){const m=a54l;super(),this[m(0xbb)]=new RoomFactory(),this['player']=a[m(0xf4)],this[m(0xda)]=this[m(0xcb)](a[m(0xd6)]),this[m(0xf7)]=Logger[m(0xc2)](),this[m(0xd1)]=new Map(),this['createExitsFromConfig'](a[m(0xd6)]),this[m(0xf7)][m(0xc7)](m(0xcd)+Object[m(0xe2)](this[m(0xda)])[m(0xe5)](',\x20'));}[a54l(0xe9)](){const n=a54l;this[n(0xf4)][n(0xbf)]=this['determineStartRoom']();}[a54l(0xcb)](a){const o=a54l;if(!this[o(0xbb)])throw new Error(o(0xd3));const b={};for(const c of a){const d=this[o(0xbb)][o(0xd7)](c);b[c[o(0xc0)]]=d;}return b;}[a54l(0xe7)](a){const p=a54l;for(const b of a){const c=this[p(0xda)][b[p(0xc0)]];if(b['exits'])for(const d of b[p(0xdc)]){const e=d[p(0xc6)][p(0x100)](),f=d[p(0xd9)],g=d['keyRequired'],h=this[p(0xda)][f];h&&c[p(0xec)](Direction[e],h,g);}}}['addActor'](a){const q=a54l;if(this[q(0xd1)]['has'](a['name']))throw new Error(q(0xfb)+a['name']+q(0xc3));this['actors'][q(0xbd)](a[q(0xc0)],a);}[a54l(0xcc)](a){const r=a54l;if(!this[r(0xd1)][r(0xef)](a))throw new Error('No\x20actor\x20with\x20name\x20'+a+'\x20found\x20in\x20the\x20scene.');this[r(0xd1)][r(0xf0)](a);}[a54l(0xf8)](a){return this['actors']['get'](a);}get['allActors'](){const s=a54l;return Array[s(0xf5)](this[s(0xd1)][s(0x101)]());}['addRoom'](a){const t=a54l;this['rooms'][a[t(0xc0)]]=a,this[t(0xf7)][t(0xc7)](t(0xe1)+a[t(0xc0)]);}[a54l(0xfa)](a){const u=a54l;return this[u(0xda)][a]?(delete this['rooms'][a],this[u(0xf7)]['write']('Removed\x20room\x20from\x20scene:\x20'+a),!![]):(this[u(0xf7)]['write'](u(0xfc)+a),![]);}[a54l(0x102)](a,b){const v=a54l,c=this[v(0xda)][b];c?(c['addItem'](a),this[v(0xf7)][v(0xc7)](v(0xf9)+a[v(0xc0)]+v(0xee)+c[v(0xc0)])):this[v(0xf7)][v(0xc7)](v(0xe8)+a[v(0xc0)]+'.\x20Room\x20'+b+v(0xca));}['addPuzzleToRoom'](a,b){const w=a54l,c=this[w(0xda)][b];c?(c[w(0xbc)](a),this[w(0xf7)][w(0xc7)](w(0xdf)+c['name'])):this[w(0xf7)]['write']('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+w(0xca));}[a54l(0xc4)](a,b){const x=a54l,c=this[x(0xda)][b];c?(this[x(0xe6)]['set'](a['name'],c),this['logger']['write'](a['name']+x(0xf1)+c[x(0xc0)])):this[x(0xf7)]['write']('Failed\x20to\x20set\x20'+a[x(0xc0)]+x(0xdd)+b+x(0xca));}['getCharacterLocation'](a){const y=a54l;return this[y(0xe6)][y(0xf3)](a[y(0xc0)]);}[a54l(0xc9)](){const z=a54l,a=[];for(const c in this[z(0xda)]){if(this['rooms'][z(0xe4)](c)){const d=this[z(0xda)][c];d[z(0xcf)]&&a[z(0xeb)](d);}}if(a[z(0xc5)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a[z(0xc5)]===0x1)return a[0x0];const b=Object[z(0xe2)](this[z(0xda)]);if(b[z(0xc5)]===0x0)throw new Error(z(0xed));return console[z(0xbe)](z(0xfd)),this[z(0xda)][b[0x0]];}['getPlayer'](){const A=a54l;return this[A(0xf4)];}[a54l(0xc8)](){const B=a54l;return this[B(0xda)];}[a54l(0xd8)](a,b,c,d){const C=a54l,e=this[C(0xda)][a],f=this[C(0xda)][c];if(!e)throw new Error(C(0xfe)+a+C(0xce));if(!f)throw new Error(C(0xfe)+c+C(0xce));e[C(0xec)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(0x1e1))/0x1*(-parseInt(f(0x1e6))/0x2)+-parseInt(f(0x1d5))/0x3*(-parseInt(f(0x1d4))/0x4)+parseInt(f(0x1d0))/0x5*(-parseInt(f(0x1d3))/0x6)+parseInt(f(0x1d1))/0x7*(-parseInt(f(0x1d2))/0x8)+-parseInt(f(0x1cd))/0x9+-parseInt(f(0x1ed))/0xa*(parseInt(f(0x1e7))/0xb)+parseInt(f(0x1cf))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x2247b));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(0x1f3)]()[g(0x1f6)]('(((.+)+)+)+$')[g(0x1f3)]()['constructor'](a55a)[g(0x1f6)](g(0x1f5));});a55a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var h=a55d;super({'name':a,'description':b,'size':Size[h(0x1de)],'category':Category['Unknown'],'shape':Shape[h(0x1e0)],'color':Color[h(0x1f9)],'texture':Texture['Smooth'],'rating':Rating[h(0x1d9)],'weight':0x1});}[a55i(0x1ea)](){var j=a55i;return this[j(0x1d8)];}}export class Sword extends Item{constructor(a,b){var k=a55i;super({'name':a,'description':b,'size':Size[k(0x1de)],'category':Category[k(0x1cb)],'shape':Shape['Blade'],'color':Color[k(0x1e4)],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a55i;super({'name':a,'description':b,'size':Size[l(0x1dd)],'category':Category['Weapon'],'shape':Shape['Rifle'],'color':Color['Brown'],'texture':Texture['Metallic'],'rating':Rating[l(0x1f0)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Helmet'],'shape':Shape[m(0x1dc)],'color':Color[m(0x1e4)],'texture':Texture[m(0x1e3)],'rating':Rating[m(0x1d9)],'weight':0x2});}}function a55c(){var D=['(((.+)+)+)+$','search','Book','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Yellow','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Boots','ArmArmor','BodyArmor','LegArmor','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Weapon','publishDate','1098063KZMNNR','Small','10168668MRNpQw','25575TiYMSV','1152123fPvcjX','8gmYpdc','234cfBrfh','68uNaeBY','48603zwQziG','pageCount','Unknown\x20Author','description','Common','A\x20mysterious\x20book.','Sniper\x20Rifle','Circle','Large','Medium','Legendary','Rectangle','25451uhdkqv','Tiny','Metallic','Grey','Smooth','22EZSdxx','2123RuWPfY','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Gloves','use','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Holy\x20Grail','11210HsJKOF','Gold','name','Rare','Brown','author','toString','Short\x20Sword'];a55c=function(){return D;};return a55c();}export class BodyArmor extends Item{constructor(a,b){var n=a55i;super({'name':a,'description':b,'size':Size[n(0x1dd)],'category':Category[n(0x1c8)],'shape':Shape[n(0x1e0)],'color':Color[n(0x1e4)],'texture':Texture[n(0x1e3)],'rating':Rating[n(0x1d9)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[o(0x1c9)],'shape':Shape[o(0x1e0)],'color':Color[o(0x1e4)],'texture':Texture[o(0x1e3)],'rating':Rating[o(0x1d9)],'weight':0x6});}}function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x1c7;var f=c[d];return f;},a55d(a,b);}export class Boots extends Item{constructor(a,b){var p=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[p(0x1fb)],'shape':Shape[p(0x1dc)],'color':Color[p(0x1f1)],'texture':Texture[p(0x1e5)],'rating':Rating['Common'],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a55i;super({'name':a,'description':b,'size':Size[q(0x1ce)],'category':Category[q(0x1e9)],'shape':Shape['Circle'],'color':Color[q(0x1f1)],'texture':Texture[q(0x1e5)],'rating':Rating['Common'],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[r(0x1c7)],'shape':Shape[r(0x1e0)],'color':Color['Grey'],'texture':Texture[r(0x1e3)],'rating':Rating[r(0x1d9)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a55i;super({'name':a,'description':b,'size':Size[s(0x1e2)],'category':Category['Key'],'shape':Shape[s(0x1e0)],'color':Color[s(0x1f9)],'texture':Texture[s(0x1e5)],'rating':Rating[s(0x1d9)],'weight':0x0});}[a55i(0x1ea)](){var t=a55i;return t(0x1ca);}}export class Weapon extends Item{constructor(a,b){var u=a55i;super({'name':a,'description':b,'size':Size[u(0x1de)],'category':Category[u(0x1cb)],'shape':Shape['Blade'],'color':Color['Grey'],'texture':Texture[u(0x1e3)],'rating':Rating['Common'],'weight':0x3});}[a55i(0x1ea)](){var v=a55i;return v(0x1f8);}}export class Book extends Item{[a55i(0x1f2)];[a55i(0x1cc)];[a55i(0x1d6)];constructor(a,b=a55i(0x1da),c=a55i(0x1d7)){var w=a55i;super({'name':a,'description':b,'size':Size[w(0x1de)],'category':Category[w(0x1f7)],'shape':Shape[w(0x1e0)],'color':Color[w(0x1f1)],'texture':Texture['Smooth'],'rating':Rating['Common'],'weight':0x1}),this['author']=c,this[w(0x1cc)]=new Date(),this['pageCount']=0x64;}[a55i(0x1ea)](){return'There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22';}}export class ShortSword extends Item{constructor(){var x=a55i;super({'name':x(0x1f4),'description':x(0x1eb),'size':Size[x(0x1de)],'category':Category[x(0x1cb)],'shape':Shape['Blade'],'color':Color[x(0x1e4)],'texture':Texture[x(0x1e3)],'rating':Rating[x(0x1d9)],'weight':0x3});}['use'](){var y=a55i;return y(0x1f8);}}export class SniperRifle extends Item{constructor(){var z=a55i;super({'name':z(0x1db),'description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size[z(0x1dd)],'category':Category[z(0x1cb)],'shape':Shape['Rifle'],'color':Color[z(0x1f1)],'texture':Texture[z(0x1e5)],'rating':Rating[z(0x1d9)],'weight':0x5});}['use'](){var A=a55i;return A(0x1e8);}}export class HolyGrail extends Item{constructor(){var B=a55i;super({'name':B(0x1ec),'description':'A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','size':Size[B(0x1ce)],'category':Category['Cup'],'shape':Shape[B(0x1dc)],'color':Color[B(0x1ee)],'texture':Texture[B(0x1e3)],'rating':Rating[B(0x1df)],'weight':0x1});}[a55i(0x1ea)](){var C=a55i;return'You\x20hold\x20the\x20'+this[C(0x1ef)]+C(0x1fa);}}
|