@maka/maka-cli 4.9.5 → 4.9.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/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/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
|
-
const
|
|
1
|
+
const a36j=a36d;(function(a,b){const g=a36d,c=a();while(!![]){try{const d=-parseInt(g(0x10b))/0x1+parseInt(g(0x119))/0x2*(parseInt(g(0xfb))/0x3)+parseInt(g(0x116))/0x4*(parseInt(g(0x118))/0x5)+parseInt(g(0x100))/0x6*(-parseInt(g(0xf7))/0x7)+parseInt(g(0x115))/0x8*(-parseInt(g(0x111))/0x9)+parseInt(g(0xff))/0xa+parseInt(g(0x117))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x65cf2));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a36d;if(c){const e=c[h(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const i=a36d;return a36a[i(0xfe)]()[i(0xfa)](i(0x105))[i(0xfe)]()[i(0xfd)](a36a)[i(0xfa)](i(0x105));});a36a();import{Command}from'./command.js';function a36c(){const m=['2960251suEkUG','context','say','search','220485WyWrLh','name','constructor','toString','2170570ysqsPq','6NojtjQ','filter','execute',':\x20\x22','length','(((.+)+)+)+$','description','join','An\x20error\x20occurred.','currentLocation','logger','405459szWmuj','\x20says\x20to\x20','verb','allActors','log','apply','18EyqLFy','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','actor','You\x20say:\x20\x22','1099976ODjNjD','542540fFpayD','5259474EnLuvl','25BdAFkN','4nYGZeQ'];a36c=function(){return m;};return a36c();}function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0xf7;let f=c[d];return f;},a36d(a,b);}export class SayCommand extends Command{static [a36j(0x10d)]=a36j(0xf9);static [a36j(0x106)]=a36j(0x112);[a36j(0xf8)];constructor(a){const k=a36j;super(a),this[k(0xf8)]=a;}[a36j(0x102)](a){const l=a36j;if(a[l(0x104)]===0x0)return'What\x20do\x20you\x20want\x20to\x20say?';const b=a[l(0x107)]('\x20'),c=this['actor'],d=this[l(0xf8)]['scene'];if(!d)return this[l(0x10a)][l(0x10f)]('Scene\x20is\x20missing\x20from\x20context.'),l(0x108);const e=d[l(0x10e)][l(0x101)](f=>f[l(0x109)]===c[l(0x109)]);for(const f of e){this[l(0x10a)][l(0x10f)](c[l(0xfc)]+l(0x10c)+f['name']+l(0x103)+b+'\x22'),this[l(0x113)][l(0x109)]['say'](f,b);}return l(0x114)+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37i=a37d;function a37c(){const k=['apply','logger','inventory','2312300tvCGRT','join','toString','13697790onUmbu','listItems','891544EksOHk','length','24heacig','SearchCommand:\x20','91912sXbkoq','You\x20search\x20the\x20area\x20and\x20find:\x20','actor','search','9oPYWiC','818577zpVfPs','195899oStNvJ','325266whhKqy','(((.+)+)+)+$','\x20found\x20the\x20following\x20items:\x20','name','write','77fPcmpa'];a37c=function(){return k;};return a37c();}(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0x1d2))/0x1+-parseInt(f(0x1e1))/0x2+parseInt(f(0x1d0))/0x3*(parseInt(f(0x1cc))/0x4)+parseInt(f(0x1dc))/0x5+-parseInt(f(0x1d3))/0x6*(parseInt(f(0x1d8))/0x7)+parseInt(f(0x1e3))/0x8*(-parseInt(f(0x1d1))/0x9)+parseInt(f(0x1df))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x5f4b2));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x1d9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x1de)]()[h(0x1cf)]('(((.+)+)+)+$')[h(0x1de)]()['constructor'](a37a)[h(0x1cf)](h(0x1d4));});function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a37d(a,b);}a37a();import{Command}from'./command.js';export class SearchCommand extends Command{static ['verb']=a37i(0x1cf);static ['description']='Search\x20for\x20items\x20in\x20your\x20area';['execute'](){const j=a37i,a=this[j(0x1ce)]['currentLocation'][j(0x1db)][j(0x1e0)]();if(a[j(0x1e2)]===0x0)return this[j(0x1da)][j(0x1d7)](j(0x1cb)+this['actor']['name']+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),'You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.';const b=a[j(0x1dd)](',\x20');return this['logger']['write'](j(0x1cb)+this[j(0x1ce)][j(0x1d6)]+j(0x1d5)+b),j(0x1cd)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d
|
|
1
|
+
function a38c(){const k=['currentLocation','write','message','(((.+)+)+)+$','solve','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','join','SolveCommand:\x20','logger','5QNDFsR','apply','success','907458feOtsq','actor','rewardItem','1446750QQCtDq','puzzle','toString','245255KDzTwd','2306886zVNIaB','Attempt\x20to\x20solve\x20a\x20puzzle.','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','1886290GxPRYb','185848HkFJaE','search','constructor','4pdiFor','2637243NLTyCL','verb'];a38c=function(){return k;};return a38c();}const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x19f))/0x1+parseInt(f(0x1a3))/0x2+parseInt(f(0x1a0))/0x3*(-parseInt(f(0x1a7))/0x4)+parseInt(f(0x1b3))/0x5*(parseInt(f(0x1b6))/0x6)+parseInt(f(0x1a8))/0x7+-parseInt(f(0x1a4))/0x8+parseInt(f(0x19c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x91207));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x19e)]()[h(0x1a5)](h(0x1ad))[h(0x19e)]()[h(0x1a6)](a38a)[h(0x1a5)](h(0x1ad));});function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x19a;let f=c[d];return f;},a38d(a,b);}a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a38i(0x1a9)]=a38i(0x1ae);static ['description']=a38i(0x1a1);['execute'](a){const j=a38i,b=a[j(0x1b0)]('\x20')['toLowerCase'](),c=this[j(0x19a)][j(0x1aa)];if(!c||!c[j(0x19d)])return this[j(0x1b2)][j(0x1ab)](j(0x1a2)),j(0x1af);const d=c['puzzle'][j(0x1ae)](b,this[j(0x19a)]['inventory']);return d[j(0x1b5)]&&c[j(0x19d)][j(0x19b)]&&this[j(0x19a)]['inventory']['addItem'](c[j(0x19d)][j(0x19b)]),this[j(0x1b2)][j(0x1ab)](j(0x1b1)+d[j(0x1ac)]),d[j(0x1ac)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39i=a39d;
|
|
1
|
+
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x8f))/0x1+parseInt(f(0x8e))/0x2+parseInt(f(0xa5))/0x3*(-parseInt(f(0x96))/0x4)+parseInt(f(0x95))/0x5*(parseInt(f(0xb1))/0x6)+parseInt(f(0x8b))/0x7*(parseInt(f(0xa3))/0x8)+-parseInt(f(0x98))/0x9*(-parseInt(f(0xa7))/0xa)+-parseInt(f(0x9e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x1a2e5));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0xa4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x8a)]()['search'](h(0x99))[h(0x8a)]()[h(0xa1)](a39a)[h(0xaa)](h(0x99));});a39a();import{Command}from'./command.js';function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x88;let f=c[d];return f;},a39d(a,b);}function a39c(){const l=['10rkSSfF','actor','hasItem','search','Item\x20\x22','description','write','inventory','addInventory','\x22\x20is\x20too\x20heavy\x20to\x20carry.','362742CYtoab','Successfully\x20added\x20\x22','take','\x22\x20not\x20found\x20in\x20','name','join','toString','1300943bRuPmO','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','359182YaqATS','183656vBdToq','The\x20item\x20\x22','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','\x22\x20not\x20retrieved\x20from\x20','getItem','removeItem','10sXTPaf','476NZQjIS','Successfully\x20removed\x20\x22','1653237muxlnM','(((.+)+)+)+$','\x22\x20in\x20this\x20room.','There\x20is\x20no\x20item\x20\x22','execute','logger','6746355FXjICc','\x22\x20to\x20','Pick\x20up\x20an\x20item.','constructor','toLowerCase','8MGfJHm','apply','3357tNVvIH','\x22\x20from\x20'];a39c=function(){return l;};return a39c();}export class TakeCommand extends Command{static ['verb']='take';static [a39i(0xac)]=a39i(0xa0);[a39i(0x9c)](a){const j=a39i;return this[j(0x9d)][j(0xad)](j(0x8c)+a['join']('\x20')),this[j(0xb3)](a);}[a39i(0xb3)](a){const k=a39i,b=a[k(0x89)]('\x20')[k(0xa2)](),c=this[k(0xa8)]['currentLocation'];if(!c[k(0xae)][k(0xa9)](b))return this[k(0x9d)]['write'](k(0xab)+b+k(0xb4)+c[k(0x88)]+'\x20during\x20\x27Take\x27\x20command.'),'There\x20is\x20no\x20item\x20\x22'+b+k(0x9a);const d=c[k(0xae)][k(0x93)](b);if(!d)return this[k(0x9d)][k(0xad)](k(0xab)+b+k(0x92)+c[k(0x88)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x9b)+b+k(0x9a);try{return this[k(0xa8)][k(0xaf)](d),this[k(0x9d)]['write'](k(0xb2)+b+k(0x9f)+this[k(0xa8)][k(0x88)]+k(0x91)),c[k(0xae)][k(0x94)](b),this['logger'][k(0xad)](k(0x97)+b+k(0xa6)+c['name']+k(0x8d)),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this['logger'][k(0xad)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e['message']),k(0x90)+b+k(0xb0);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d
|
|
1
|
+
const a40i=a40d;function a40c(){const k=['3073494lapdnS','408haPzSf','logger','toString','7yxKTTU','UnequipCommand:\x20','218576cDznOr','join','38370VXPkNz','execute','1014417hpLSqK','401245ZFQxAN','apply','actor','name','30CBQwVM','constructor','\x20unqeuiped\x20','unqeuip','(((.+)+)+)+$','1645248trSPfd','search','write','description','1623423gsJWQp','toLowerCase'];a40c=function(){return k;};return a40c();}function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0xe4;let f=c[d];return f;},a40d(a,b);}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0xe6))/0x1+-parseInt(f(0xfb))/0x2+parseInt(f(0xf3))/0x3+parseInt(f(0xf6))/0x4*(-parseInt(f(0xfd))/0x5)+-parseInt(f(0xf5))/0x6*(-parseInt(f(0xf9))/0x7)+parseInt(f(0xef))/0x8+parseInt(f(0xe5))/0x9*(-parseInt(f(0xea))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x69024));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0xe7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a['toString']()['search'](h(0xee))[h(0xf8)]()[h(0xeb)](a40a)[h(0xf0)](h(0xee));});a40a();import{Command}from'./command.js';export class UnequipCommand extends Command{static ['verb']=a40i(0xed);static [a40i(0xf2)]='Unequip\x20an\x20item.';[a40i(0xe4)](a){const j=a40i,b=a[j(0xfc)]('\x20')[j(0xf4)](),c=this[j(0xe8)]['unequip'](b);return this[j(0xf7)][j(0xf1)](j(0xfa)+this[j(0xe8)][j(0xe9)]+j(0xec)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=parseInt(h(0xeb))/0x1+parseInt(h(0xe7))/0x2+parseInt(h(0xe0))/0x3*(-parseInt(h(0xf4))/0x4)+parseInt(h(0xf6))/0x5*(parseInt(h(0xe9))/0x6)+parseInt(h(0xfc))/0x7+parseInt(h(0xff))/0x8+-parseInt(h(0xe5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xa3656));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a41d;if(c){const e=c[i(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a[j(0xfd)]()[j(0xe1)](j(0xef))['toString']()[j(0xec)](a41a)[j(0xe1)](j(0xef));});a41a();function a41c(){const m=['write','.\x20Result:\x20','714504zryciB','toString','\x22\x20here.','3560344ezZffO','logger','unlockItemOrSolution','actor','exits','get','1368mEALHf','search','UnlockCommand:\x20','toLowerCase','UnlockCommand:\x20No\x20target\x20specified.','13586760MaCOos','inventory','2546346zzqBaZ','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','6fyfpSc','description','327037xzeeDu','constructor','There\x27s\x20no\x20door\x20named\x20\x22','apply','(((.+)+)+)+$','name','getItem','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','attemptUnlockExit','516ltQtLJ','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','452045ptqZlW','unlock','error','has'];a41c=function(){return m;};return a41c();}import{Door}from'../models/door.js';import{Command}from'./command.js';function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0xdb;let f=c[d];return f;},a41d(a,b);}export class UnlockCommand extends Command{static ['verb']=a41k(0xf7);static [a41k(0xea)]='Unlock\x20a\x20door.';['execute'](a){return this['unlock'](a);}['unlock'](a){const l=a41k;if(a['length']===0x0)return this[l(0xdb)][l(0xf8)](l(0xe4)),l(0xf5);const b=a[0x0][l(0xe3)](),c=this[l(0xdd)]['currentLocation'];if(this['isValidDirection'](b)&&c['exits'][l(0xf9)](b)){const d=c[l(0xde)][l(0xdf)](b);if(d instanceof Door){const e=d[l(0xdc)]?.[l(0xe3)]();if(e&&this[l(0xdd)][l(0xe6)]['hasItem'](e)){const f=this[l(0xdd)]['inventory'][l(0xf1)](e);if(f){const g=c[l(0xf3)](b,f[l(0xf0)]);return this['logger'][l(0xfa)](l(0xe2)+this[l(0xdd)][l(0xf0)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+l(0xfb)+g),g;}}return this[l(0xdb)][l(0xfa)](l(0xe2)+this[l(0xdd)][l(0xf0)]+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),l(0xf2);}else return this['logger'][l(0xfa)]('UnlockCommand:\x20'+b+l(0xe8)+c['name']+'.'),l(0xed)+b+l(0xfe);}else return this[l(0xdb)][l(0xfa)](l(0xe2)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[l(0xf0)]+'.'),l(0xed)+b+l(0xfe);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a42c(){const l=['\x27s\x20inventory.','toLowerCase','UseCommand:\x20','name','5uXFKpk','search','925792hYIDcc','Use\x20an\x20item.','\x20used\x20','\x20in\x20this\x20way.','244794eEVDTe','hasItem','\x20to\x20use.','actor','function','constructor','71864vSLIYr','11915477qEUPCP','80qKRmky','375357TJwyKQ','inventory','3619808dnfwUr','2LZcEbI','54gzUJBl','write','apply','use','You\x20can\x27t\x20use\x20the\x20','5104806SQoLjb','(((.+)+)+)+$',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','toString','logger'];a42c=function(){return l;};return a42c();}const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0xae))/0x1*(-parseInt(f(0x9e))/0x2)+parseInt(f(0xab))/0x3+parseInt(f(0xad))/0x4+parseInt(f(0x9c))/0x5*(parseInt(f(0xb4))/0x6)+-parseInt(f(0xa9))/0x7+parseInt(f(0xa8))/0x8*(-parseInt(f(0xaf))/0x9)+parseInt(f(0xaa))/0xa*(-parseInt(f(0xa2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xd504b));function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x9a;let f=c[d];return f;},a42d(a,b);}const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0xb7)]()[h(0x9d)]('(((.+)+)+)+$')['toString']()[h(0xa7)](a42a)[h(0x9d)](h(0xb5));});a42a();import{Command}from'./command.js';export class UseCommand extends Command{static ['verb']=a42i(0xb2);static ['description']=a42i(0x9f);['execute'](a){const j=a42i;return this[j(0xb2)](a);}[a42i(0xb2)](a){const k=a42i,b=a['join']('\x20')[k(0xba)]();if(!this['actor'][k(0xac)][k(0xa3)](b))return this['logger'][k(0xb0)]('UseCommand:\x20'+this[k(0xa5)][k(0x9b)]+'\x20attempted\x20to\x20use\x20'+b+k(0xb6)),'You\x20don\x27t\x20have\x20the\x20'+b+k(0xa4);const c=this[k(0xa5)]['inventory']['getItem'](b);if(!c)return this[k(0xb8)][k(0xb0)](k(0x9a)+b+'\x20not\x20retrieved\x20from\x20'+this[k(0xa5)][k(0x9b)]+k(0xb9)),'You\x20don\x27t\x20have\x20the\x20'+b+k(0xa4);if(typeof c[k(0xb2)]===k(0xa6)){const d=c[k(0xb2)]();return this[k(0xb8)][k(0xb0)](k(0x9a)+this[k(0xa5)][k(0x9b)]+k(0xa0)+b+'.'),d;}else return this['logger']['write'](k(0x9a)+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),k(0xb3)+b+k(0xa1);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a43i=a43d;function a43c(){const l=['registerCommand','1453884OMdpCN','apply','3hyzNzl','search','742764uxJLML','getAllRegisteredCommands','824mvQNmD','toString','(((.+)+)+)+$','5ckqHTi','1916820ucGEek','commandMap','createCommand','790236XitMWU','6369687hXsVEK','6793608jSHjVR','84623QrsvFQ'];a43c=function(){return l;};return a43c();}(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0xdc))/0x1+-parseInt(f(0xd3))/0x2*(parseInt(f(0xda))/0x3)+parseInt(f(0xd8))/0x4*(parseInt(f(0xe1))/0x5)+parseInt(f(0xd5))/0x6+-parseInt(f(0xd6))/0x7*(-parseInt(f(0xde))/0x8)+-parseInt(f(0xd4))/0x9+-parseInt(f(0xe2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xabc6f));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a['toString']()[h(0xdb)](h(0xe0))[h(0xdf)]()['constructor'](a43a)['search'](h(0xe0));});a43a();function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0xd1;let f=c[d];return f;},a43d(a,b);}export class CommandFactory{static [a43i(0xd1)]={};static[a43i(0xd7)](a,b){this['commandMap'][a]=b;}static[a43i(0xd2)](a,b){const j=a43i,c=this[j(0xd1)][a];if(c)return new c(b);return null;}static[a43i(0xdd)](){const k=a43i;return this[k(0xd1)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44i=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
function a44c(){const o=['roomType','convertToRoomConfig','rifle','isStartRoom','90328lbBmqU','566398jtaFOr','9JEdUDZ','sword','createPuzzle','description','helmet','constructor','16244830vrNQMg','2594200vhytwA','apply','addItem','search','3017488jAabUj','2FnGgbt','type','gauntlets','INSIDE','createRoom','name','forEach','934218XPzTXs','puzzle','toString','items','book','key','boots','(((.+)+)+)+$','inventory','432KfqezT','2124295mfGGCq','setPuzzle','bodyarmor','createItem','content','gloves'];a44c=function(){return o;};return a44c();}const a44i=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(0x189))/0x1*(parseInt(f(0x16d))/0x2)+-parseInt(f(0x174))/0x3+parseInt(f(0x16c))/0x4+-parseInt(f(0x17e))/0x5+-parseInt(f(0x17d))/0x6*(parseInt(f(0x188))/0x7)+parseInt(f(0x191))/0x8+parseInt(f(0x18a))/0x9*(parseInt(f(0x190))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x73153));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0x192)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0x176)]()[h(0x194)](h(0x17b))['toString']()[h(0x18f)](a44a)[h(0x194)](h(0x17b));});a44a();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 a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x16c;let f=c[d];return f;},a44d(a,b);}export class RoomFactory{[a44i(0x171)](a){const j=a44i,b=this['convertToRoomConfig'](a),c=new Room(b);if(a[j(0x177)]){const d=new Inventory();a['items'][j(0x173)](e=>{const k=j;d[k(0x193)](this[k(0x181)](e));}),c[j(0x17c)]=d;}return a[j(0x175)]&&c[j(0x17f)](this[j(0x18c)](a[j(0x175)])),c;}['createItem'](a){const l=a44i;switch(a[l(0x16e)]){case l(0x179):return new Key(a['name'],a[l(0x18d)]);case l(0x178):return new Book(a['name'],a['description'],a[l(0x182)]);case l(0x18b):return new Sword(a['name'],a[l(0x18d)]);case l(0x186):return new Rifle(a[l(0x172)],a[l(0x18d)]);case l(0x18e):return new Helmet(a[l(0x172)],a[l(0x18d)]);case l(0x180):return new BodyArmor(a[l(0x172)],a['description']);case'legarmor':return new LegArmor(a[l(0x172)],a['description']);case l(0x17a):return new Boots(a['name'],a['description']);case l(0x183):return new Gloves(a[l(0x172)],a['description']);case l(0x16f):return new Gauntlets(a[l(0x172)],a[l(0x18d)]);default:return new BasicItem(a[l(0x172)],a[l(0x18d)]);}}[a44i(0x18c)](a){const m=a44i,b=this[m(0x181)](a['rewardItem']);return new Puzzle({...a,'rewardItem':b});}[a44i(0x185)](a){const n=a44i,b=a['roomType']&&RoomType[a[n(0x184)]['toUpperCase']()]?RoomType[a[n(0x184)]['toUpperCase']()]:RoomType[n(0x170)];return{'name':a[n(0x172)],'description':a['description'],'isStartRoom':a[n(0x187)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d
|
|
1
|
+
const a45k=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=-parseInt(h(0x14a))/0x1+parseInt(h(0x146))/0x2*(parseInt(h(0x12f))/0x3)+parseInt(h(0x12d))/0x4*(-parseInt(h(0x13c))/0x5)+parseInt(h(0x13e))/0x6+parseInt(h(0x144))/0x7*(-parseInt(h(0x13d))/0x8)+parseInt(h(0x14f))/0x9*(parseInt(h(0x154))/0xa)+parseInt(h(0x158))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x19687));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a45d;if(c){const e=c[i(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const j=a45d;return a45a[j(0x130)]()[j(0x148)](j(0x12a))['toString']()['constructor'](a45a)['search'](j(0x12a));});a45a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x129;let f=c[d];return f;},a45d(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';function a45c(){const r=['-\x20quit:\x20Exit\x20the\x20game.\x0a','715401YQbHHo','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','use','registerCommands','execute','10JCUxec','createCommand','equip','getAllRegisteredCommands','1535006dDEMBs','lock','take','unlock','(((.+)+)+)+$','help','currentRoom','737332pieiBN','apply','426198uOWDsz','toString','instance','getHelpMessage','scene','getDescription','clear','split','say','determineStartRoom','getRooms','trim','currentLocation','5RnqKdx','16hyvKnZ','916266NuNGHL','drop','toLowerCase','getInstance','unequip','handleInput','653247jpBxhd','registerCommand','2HgBbqJ','maka','search','look','38766lZUSCM','solve','player','getWelcomeMessage'];a45c=function(){return r;};return a45c();}import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a45k(0x131)];[a45k(0x133)];[a45k(0x14c)];[a45k(0x12c)];['rooms'];constructor(a,b){const l=a45k;this['player']=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this[l(0x133)]['initialize'](),this[l(0x14c)][l(0x13b)]=this[l(0x138)](),this[l(0x152)]();}['registerCommands'](){const m=a45k;CommandFactory['registerCommand'](m(0x149),LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory[m(0x145)](m(0x15a),TakeCommand),CommandFactory[m(0x145)](m(0x151),UseCommand),CommandFactory[m(0x145)](m(0x156),EquipCommand),CommandFactory[m(0x145)](m(0x142),UnequipCommand),CommandFactory[m(0x145)](m(0x14b),SolveCommand),CommandFactory[m(0x145)](m(0x13f),DropCommand),CommandFactory[m(0x145)](m(0x129),UnlockCommand),CommandFactory['registerCommand'](m(0x159),LockCommand),CommandFactory[m(0x145)](m(0x148),SearchCommand),CommandFactory[m(0x145)](m(0x137),SayCommand);}[a45k(0x138)](){const n=a45k;return this[n(0x133)][n(0x138)]();}[a45k(0x14d)](){return'Welcome,\x20'+this['player']['name'];}static[a45k(0x141)](a,b){const o=a45k;return!Game[o(0x131)]&&(Game[o(0x131)]=new Game(a,b)),Game['instance'];}[a45k(0x143)](a){const p=a45k,b=a[p(0x13a)]()[p(0x136)]('\x20'),c=b[0x0][p(0x140)](),d=b['slice'](0x1);if(c==='quit')return null;if(c===p(0x147))return p(0x150);if(c===p(0x12b))return this[p(0x132)]();if(c===p(0x135))return'';const e={'actor':this[p(0x14c)],'rooms':this[p(0x133)][p(0x139)](),'scene':this[p(0x133)]},f=CommandFactory[p(0x155)](c,e);if(f){const g=f[p(0x153)](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}[a45k(0x132)](){const q=a45k,a=CommandFactory[q(0x157)]();let b='Available\x20Commands:\x0a';for(const c in a){if(a['hasOwnProperty'](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[q(0x134)]()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+=q(0x14e),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a46c(){var i=['156VzuKMY','27567sPXBMm','146440iVUfqp','constructor','3879135jIGCBz','120SwwVxM','1958270UukQlb','183140HeEMpc','(((.+)+)+)+$','apply','search','156944nXCwWz','1KAUUQn','346790DJdOGL'];a46c=function(){return i;};return a46c();}(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0x83))/0x1*(-parseInt(f(0x84))/0x2)+-parseInt(f(0x78))/0x3*(parseInt(f(0x85))/0x4)+parseInt(f(0x7d))/0x5+-parseInt(f(0x7c))/0x6*(-parseInt(f(0x79))/0x7)+parseInt(f(0x82))/0x8+-parseInt(f(0x7b))/0x9+parseInt(f(0x7e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x38a3b));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x80)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a['toString']()['search'](h(0x7f))['toString']()[h(0x7a)](a46a)[h(0x81)](h(0x7f));});a46a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x78;var f=c[d];return f;},a46d(a,b);}export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a47i=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=-parseInt(f(0x148))/0x1*(-parseInt(f(0x137))/0x2)+-parseInt(f(0x136))/0x3*(-parseInt(f(0x13a))/0x4)+parseInt(f(0x14a))/0x5+parseInt(f(0x151))/0x6+parseInt(f(0x143))/0x7*(-parseInt(f(0x142))/0x8)+-parseInt(f(0x134))/0x9+-parseInt(f(0x13f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x47887));function a47c(){var n=['.\x20Used:\x20','184MNWCtV','122563NDZJPM','apply','roomB','unlockItemOrSolution','checkIfLockable','315ktwBfx','logger','2651155zHUsZO','getInstance','.\x20Is\x20Locked:\x20','name','toString','write','To\x20','1784052hmZtCn','Door\x20created\x20between\x20','checkIfLocked','794196JDBjKc','roomA','1124367QWbQkz','2TJUtyb','constructor','\x20and\x20','4KMJTsV','isLockable','Failed\x20to\x20unlock\x20door:\x20','(((.+)+)+)+$','isLocked','4187270TVSkPy','getOtherSide'];a47c=function(){return n;};return a47c();}var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a47d;if(c){var e=c[g(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var h=a47d;return a47a[h(0x14e)]()['search'](h(0x13d))[h(0x14e)]()[h(0x138)](a47a)['search'](h(0x13d));});a47a();import{Logger}from'../utilities/logger.js';function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x133;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{['roomA'];[a47i(0x145)];['isLocked'];[a47i(0x146)];['name'];[a47i(0x149)];[a47i(0x13b)];constructor(a){var j=a47i;super(),this['roomA']=a[j(0x135)],this['roomB']=a[j(0x145)],this[j(0x13e)]=a[j(0x13e)]||![],this[j(0x146)]=a[j(0x146)],this['name']=a[j(0x14d)]?capitalCase(a[j(0x14d)]):j(0x150)+a[j(0x145)]['name'],this[j(0x149)]=Logger[j(0x14b)](),this[j(0x13b)]=!!a[j(0x146)],this['logger'][j(0x14f)](j(0x152)+this[j(0x135)]['name']+j(0x139)+this[j(0x145)]['name']+j(0x14c)+this[j(0x13e)]);}[a47i(0x140)](a){var k=a47i;return this[k(0x135)]===a?this['roomB']:this[k(0x135)];}['attemptUnlock'](a){var l=a47i;if(this[l(0x13e)]&&this[l(0x146)]&&this['unlockItemOrSolution']===a)return this[l(0x13e)]=![],this['logger']['write']('Door\x20unlocked:\x20'+this['name']+l(0x141)+a),!![];return this[l(0x149)][l(0x14f)](l(0x13c)+this[l(0x14d)]+l(0x141)+a),![];}[a47i(0x133)](){return this['isLocked'];}[a47i(0x147)](){var m=a47i;return this[m(0x13b)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a48k=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0x107))/0x1+-parseInt(f(0xfa))/0x2*(-parseInt(f(0x10b))/0x3)+-parseInt(f(0x122))/0x4*(-parseInt(f(0x111))/0x5)+parseInt(f(0x106))/0x6+parseInt(f(0x100))/0x7*(parseInt(f(0x108))/0x8)+parseInt(f(0x119))/0x9+-parseInt(f(0x11a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x9b310));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x10e)]()[h(0x11c)]('(((.+)+)+)+$')[h(0x10e)]()['constructor'](a48a)[h(0x11c)](h(0x113));});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0xf7;let f=c[d];return f;},a48d(a,b);}export class Inventory extends AbstractInventory{['items'];['logger'];constructor(){const i=a48d;super(),this[i(0xfd)]=new Map(),this[i(0x114)]=Logger[i(0x10d)]();}['addItem'](a){const j=a48d;this['items'][j(0x11b)](a['name']['toLowerCase'](),a),this['logger'][j(0xff)](j(0x103)+a[j(0x116)]+j(0x10f));}[a48k(0x109)](a){const l=a48k,b=this[l(0x117)](a);if(b)return this[l(0xfd)][l(0x121)](a[l(0x11e)]()),this[l(0x114)][l(0xff)](l(0xf7)+a+l(0xf8)),b;return this[l(0x114)][l(0xff)](l(0xfb)+a+l(0x120)),null;}[a48k(0x112)](a){const m=a48k,b=this[m(0xfd)][m(0x11d)](a[m(0x11e)]()),c=[...this[m(0xfd)][m(0xf9)]()];return this[m(0x114)][m(0xff)](m(0x10a)+a+m(0x102)+c[m(0x101)](',\x20')+m(0x124)+b+'.'),b;}[a48k(0x117)](a){const n=a48k,b=this[n(0xfd)][n(0x11f)](a[n(0x11e)]())||null;return b?this[n(0x114)]['write'](n(0xfc)+a+'.'):this[n(0x114)]['write'](n(0x105)+a+n(0x120)),b;}[a48k(0x110)](){const o=a48k,a=[...this[o(0xfd)][o(0xf9)]()],b=a[o(0xfe)](c=>capitalCase(c));return this[o(0x114)]['write'](o(0x115)+b['join'](',\x20')+'.'),a;}[a48k(0x104)](){const p=a48k;let a=0x0;for(const b of this['items'][p(0x118)]()){a+=b[p(0x123)];}return a;}['getAllItems'](){const q=a48k;return[...this['items'][q(0x118)]()];}}function a48c(){const r=['Retrieved\x20details\x20for\x20item:\x20','items','map','write','559370LlpVpU','join','\x20in\x20','Added\x20item:\x20','getWeight','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','892686NskISi','1265150cHlGaN','16olGOqe','removeItem','Checked\x20for\x20item:\x20','1689xfTUlm','apply','getInstance','toString','\x20to\x20inventory.','listItems','110dmMnTc','hasItem','(((.+)+)+)+$','logger','Listed\x20items\x20in\x20inventory:\x20','name','getItem','values','2053197qjNTFa','20880210aTblFd','set','search','has','toLowerCase','get','.\x20Item\x20not\x20found.','delete','37496pYUMCf','weight','.\x20Exists:\x20','Removed\x20item:\x20','\x20from\x20inventory.','keys','2542dwXCXr','Failed\x20to\x20remove\x20item:\x20'];a48c=function(){return r;};return a48c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;function
|
|
1
|
+
var a49i=a49d;function a49c(){var l=['573256wIsPfH','toString','size','search','category','354rrxfYN','color','texture','4830sNppdx','48596fgKkSh','description','use','You\x20use\x20the\x20','weight','425424ruqgIJ','name','apply','shape','19150310FmcHqV','22mZUeKZ','uuid','1902greiQs','rating','502956uiAyIm','665pZDpFS','63ysJJEN','.\x20Nothing\x20special\x20happens.','91280sppnZU'];a49c=function(){return l;};return a49c();}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x173))/0x1+parseInt(f(0x171))/0x2*(parseInt(f(0x164))/0x3)+-parseInt(f(0x165))/0x4*(parseInt(f(0x174))/0x5)+parseInt(f(0x161))/0x6*(-parseInt(f(0x15b))/0x7)+parseInt(f(0x15c))/0x8*(parseInt(f(0x175))/0x9)+parseInt(f(0x16e))/0xa+parseInt(f(0x16f))/0xb*(-parseInt(f(0x16a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xf161f));function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x15a;var f=c[d];return f;},a49d(a,b);}var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x15d)]()[h(0x15f)]('(((.+)+)+)+$')[h(0x15d)]()['constructor'](a49a)['search']('(((.+)+)+)+$');});a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a49i(0x170)];[a49i(0x16b)];[a49i(0x166)];[a49i(0x15e)];[a49i(0x160)];[a49i(0x16d)];[a49i(0x162)];[a49i(0x163)];[a49i(0x172)];['weight'];constructor(a){var j=a49i;super(),this['name']=a[j(0x16b)],this[j(0x166)]=a[j(0x166)],this[j(0x15e)]=a['size'],this[j(0x160)]=a[j(0x160)],this[j(0x16d)]=a[j(0x16d)],this[j(0x162)]=a[j(0x162)],this[j(0x163)]=a['texture'],this[j(0x172)]=a['rating'],this[j(0x169)]=a['weight'],this[j(0x170)]=a49e();}[a49i(0x167)](){var k=a49i;return k(0x168)+this['name']+k(0x15a);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x19c))/0x1*(-parseInt(f(0x19e))/0x2)+parseInt(f(0x1ab))/0x3+parseInt(f(0x1ac))/0x4+parseInt(f(0x1a6))/0x5*(-parseInt(f(0x1ad))/0x6)+-parseInt(f(0x19a))/0x7*(-parseInt(f(0x196))/0x8)+-parseInt(f(0x1ae))/0x9+-parseInt(f(0x199))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x39b4f));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x1a3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0x1a7)]()['search']('(((.+)+)+)+$')['toString']()[h(0x197)](a50a)[h(0x1a1)](h(0x19b));});a50a();function a50c(){const o=['floor','rooms','731472TAdbbn','1826352qjRNkp','6QazCVg','2474928gZKpED','_name','_dialogue','40EmukyJ','constructor','scene','2431050KGKzEV','350595MDDMDj','(((.+)+)+)+$','264sZyAwe','autonomousMove','22MFYTxd','random','name','search','speak','apply','execute','length','967345upFjvj','toString','moveTo'];a50c=function(){return o;};return a50c();}function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x195;let f=c[d];return f;},a50d(a,b);}import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{['_name'];[a50i(0x195)];[a50i(0x1aa)];[a50i(0x198)];constructor(a,b,c,d){const j=a50i;super(d),this[j(0x1af)]=a,this[j(0x195)]=b,this[j(0x1aa)]=c;}get[a50i(0x1a0)](){const k=a50i;return this[k(0x1af)];}[a50i(0x1a2)](){const l=a50i;return this['_dialogue'][Math[l(0x1a9)](Math[l(0x19f)]()*this[l(0x195)][l(0x1a5)])];}[a50i(0x19d)](a){const m=a50i,b=a[Math[m(0x1a9)](Math['random']()*a['length'])];this[m(0x1a8)](b[m(0x1a0)]);}[a50i(0x1a8)](a){const n=a50i,b={'actor':this,'rooms':this[n(0x1aa)],'scene':this[n(0x198)]},c=new GoCommand(b);c[n(0x1a4)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0x197))/0x1+-parseInt(f(0x1b6))/0x2+-parseInt(f(0x187))/0x3+parseInt(f(0x1c3))/0x4*(parseInt(f(0x1b5))/0x5)+parseInt(f(0x196))/0x6+-parseInt(f(0x1b2))/0x7*(parseInt(f(0x1bc))/0x8)+parseInt(f(0x1a2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x71777));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0x191)]()['search'](h(0x1d5))[h(0x191)]()[h(0x1ac)](a51a)['search']('(((.+)+)+)+$');});a51a();import{camelCase}from'change-case';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x17b;let f=c[d];return f;},a51d(a,b);}function a51c(){const C=['\x20to\x20player\x27s\x20inventory.','maxCarryingWeight','legarmor','rightHand','\x20from\x20player\x27s\x20inventory.','bodyarmor','gloves','speak','Failed\x20to\x20remove\x20','A\x20featureless\x20room','arms','Gloves','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','(((.+)+)+)+$','enterRoom','LegArmor','name','_inventory','getInstance','startLocation','body\x20armor','equip','leg\x20armor','equipment','currentLocation','Nexus','Invalid\x20category\x20or\x20slot:\x20','apply','\x20is\x20now\x20listening\x20in\x20room\x20','removeItem','1887912iOjSiF','You\x20unequipped\x20','includes','_playerName','torso','logger','write','unequipBySlot','log','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','toString','You\x20equipped\x20','weight','leaveRoom','\x20is\x20no\x20longer\x20listeng\x20in\x20','1249542hELUjS','309257ddfvxO','canEquip','inventoryItems','BodyArmor','shield','hear','\x20slot.','Boots','Helmet','Hat','Shield','8371584yUzfKV','initialEquipment','_equipment','armarmor','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','bind','addInventory','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','error','toLowerCase','constructor','_currentLocation','currentWeight','\x20in\x20your\x20inventory.','addItem','determineEquipmentSlot','293552pxdAuX','boots','feet','2542515DmkdBP','214564GfdsBD','Max\x20carrying\x20weight\x20must\x20be\x20positive.','off','values','head','weapon','144tgVBon','leftHand','category','playerName','_maxCarryingWeight','arm\x20armor','inventory','4sgkFdI','legs','hat','You\x20don\x27t\x20have\x20','\x20says:\x20\x22'];a51c=function(){return C;};return a51c();}import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{['_playerName'];[a51i(0x1ad)];['_inventory'];['_equipment'];[a51i(0x1c0)]=0x32;[a51i(0x18c)];constructor(a){const j=a51i;super(),this[j(0x18a)]=a[j(0x1bf)],this['_currentLocation']=a[j(0x17c)]||new Room({'name':j(0x182),'description':j(0x1d1)}),this[j(0x1d9)]=new Inventory(),this['logger']=Logger[j(0x17b)]();if(a?.[j(0x199)])for(const b of a[j(0x199)]){this[j(0x1d9)][j(0x1b0)](b);}this[j(0x1a4)]=a?.[j(0x1a3)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51i(0x1d8)](){return this['_playerName'];}get[a51i(0x181)](){const k=a51i;return this[k(0x1ad)];}set[a51i(0x181)](a){const l=a51i;this['_currentLocation']!==a&&(this[l(0x194)](),this[l(0x1d6)](a)),this[l(0x1ad)]=a;}get[a51i(0x1c2)](){const m=a51i;return this[m(0x1d9)];}get[a51i(0x180)](){const n=a51i;return this[n(0x1a4)];}set[a51i(0x180)](a){const o=a51i;this[o(0x1a4)]=a;}get[a51i(0x1c9)](){const p=a51i;return this[p(0x1c0)];}set[a51i(0x1c9)](a){const q=a51i;a>0x0?this[q(0x1c0)]=a:console[q(0x1aa)](q(0x1b7));}get[a51i(0x1ae)](){const r=a51i;let a=this['_inventory']['getWeight']();for(const b in this[r(0x1a4)]){const c=this[r(0x1a4)][b];c&&(a+=c[r(0x193)]);}return a;}[a51i(0x1a8)](a){const s=a51i;if(this[s(0x1ae)]+a[s(0x193)]>this['maxCarryingWeight']){this[s(0x18c)][s(0x18d)]('Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.');throw new Error(s(0x1a6));}this[s(0x1d9)]['addItem'](a),this[s(0x18c)][s(0x18d)]('Added\x20'+a['name']+s(0x1c8));}['removeInventory'](a){const t=a51i;if(this['_inventory'][t(0x186)](a['name']))return this['logger'][t(0x18d)]('Removed\x20'+a['name']+t(0x1cc)),!![];return this[t(0x18c)][t(0x18d)](t(0x1d0)+a[t(0x1d8)]+t(0x1cc)),![];}[a51i(0x17e)](a){const u=a51i;if(!this[u(0x1d9)]['hasItem'](a[u(0x1d8)]))return u(0x1c6)+a['name']+u(0x1af);if(!this[u(0x198)](a))return'You\x20can\x27t\x20equip\x20'+a['name']+'.';const b=this[u(0x1b1)](a[u(0x1be)]);if(!b)return a[u(0x1d8)]+u(0x1a9);if(this[u(0x180)][b])return u(0x1d4)+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this['equipment'][b]=a,this['removeInventory'](a),u(0x192)+a[u(0x1d8)]+'.';}['unequip'](a){const v=a51i;let b=a;if(!this[v(0x180)][camelCase(b)]){b=this[v(0x1b1)](a);if(!b)return v(0x183)+a+'.';}return this[v(0x18e)](b);}['determineEquipmentSlot'](a){const w=a51i;switch(a[w(0x1ab)]()){case Category['Weapon'][w(0x1ab)]():return w(0x1cb);case Category[w(0x1a1)][w(0x1ab)]():return w(0x1bd);case Category[w(0x1d3)][w(0x1ab)]():return w(0x1ce);case Category[w(0x19f)]['toLowerCase']():case Category[w(0x1a0)][w(0x1ab)]():return w(0x1ba);case Category[w(0x19e)][w(0x1ab)]():return w(0x1b4);case Category[w(0x1d7)][w(0x1ab)]():return'legs';case Category['ArmArmor'][w(0x1ab)]():return w(0x1d2);case Category[w(0x19a)][w(0x1ab)]():return w(0x18b);case w(0x1bb):return w(0x1cb);case w(0x19b):return w(0x1bd);case w(0x1ce):return'gloves';case'helmet':case w(0x1c5):return w(0x1ba);case w(0x1b3):return w(0x1b4);case w(0x17f):case w(0x1ca):return w(0x1c4);case w(0x1c1):case w(0x1a5):return w(0x1d2);case w(0x17d):case w(0x1cd):case w(0x18b):return w(0x18b);default:return null;}}[a51i(0x198)](a){const x=a51i;return Object[x(0x1b9)](Category)[x(0x189)](a[x(0x1be)]);}[a51i(0x18e)](a){const y=a51i,b=this[y(0x180)][a];if(!b)return y(0x190)+a+y(0x19d);return this[y(0x1a8)](b),this[y(0x180)][a]=null,y(0x188)+b['name']+'.';}[a51i(0x19c)](a,b){const z=a51i;a!==this&&this['logger'][z(0x18f)](a['name']+z(0x1c7)+b+'\x22');}[a51i(0x1d6)](a){const A=a51i;this[A(0x1ad)]=a,a['on'](A(0x1cf),this[A(0x19c)][A(0x1a7)](this)),this['logger'][A(0x18d)](this['name']+A(0x185)+a[A(0x1d8)]);}[a51i(0x194)](){const B=a51i;this[B(0x1ad)]&&(this[B(0x1ad)][B(0x1b8)](B(0x1cf),this[B(0x19c)]['bind'](this)),this['logger'][B(0x18d)](this[B(0x1d8)]+B(0x195)+this[B(0x1ad)]['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52i=a52d;
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x12b))/0x1*(-parseInt(f(0x121))/0x2)+-parseInt(f(0x11a))/0x3+-parseInt(f(0x118))/0x4+-parseInt(f(0x136))/0x5*(-parseInt(f(0x11d))/0x6)+-parseInt(f(0x124))/0x7*(parseInt(f(0x11b))/0x8)+-parseInt(f(0x132))/0x9*(-parseInt(f(0x139))/0xa)+-parseInt(f(0x11e))/0xb*(parseInt(f(0x126))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x764aa));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x127)]()['search'](h(0x119))['toString']()[h(0x12e)](a52a)[h(0x11f)](h(0x119));});function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x118;var f=c[d];return f;},a52d(a,b);}a52a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52i(0x128)]=Logger[a52i(0x12c)]();[a52i(0x135)]=![];['requiredItem'];[a52i(0x12a)];[a52i(0x131)];[a52i(0x134)];[a52i(0x138)];['failureMessage'];constructor(a){var j=a52i;super(),this[j(0x123)]=a[j(0x123)],this['requiredPhrase']=a[j(0x12a)],this[j(0x131)]=a[j(0x131)],this[j(0x134)]=a['rewardItem'],this[j(0x138)]=a[j(0x138)]||j(0x133),this[j(0x129)]=a[j(0x129)]||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}[a52i(0x125)](a){var k=a52i;if(this[k(0x123)])return a['hasItem'](this[k(0x123)]);return![];}[a52i(0x11c)](a){var l=a52i;return this[l(0x12a)]===a;}[a52i(0x137)](a,b){var m=a52i;if(this[m(0x135)])return this[m(0x128)][m(0x12d)](m(0x12f)),{'success':![],'message':m(0x122)};return this[m(0x125)](b)||this[m(0x11c)](a)?(this[m(0x135)]=!![],this[m(0x128)][m(0x12d)](m(0x130)),{'success':!![],'message':this[m(0x138)]}):(this[m(0x128)][m(0x12d)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[m(0x129)]});}}function a52c(){var n=['Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','Puzzle:\x20Correct\x20solution\x20provided.','riddle','61776PDOyht','You\x20solved\x20the\x20puzzle!','rewardItem','solved','33295zleMyd','solve','successMessage','900dXgXSs','609956vDEsCt','(((.+)+)+)+$','1295514JRsyZv','16yWvZxN','matchesRequiredPhrase','564yhYwYY','814JtcupD','search','apply','13286AifRXR','You\x20have\x20already\x20solved\x20this\x20puzzle.','requiredItem','1900724xxIeHP','hasRequiredItem','21084lyIqoq','toString','logger','failureMessage','requiredPhrase','75XcdZgC','getInstance','write','constructor'];a52c=function(){return n;};return a52c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x143;let f=c[d];return f;},a53d(a,b);}const a53h=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x14a))/0x1*(-parseInt(f(0x162))/0x2)+parseInt(f(0x174))/0x3*(parseInt(f(0x169))/0x4)+-parseInt(f(0x153))/0x5+-parseInt(f(0x148))/0x6+parseInt(f(0x164))/0x7*(-parseInt(f(0x171))/0x8)+parseInt(f(0x17a))/0x9*(parseInt(f(0x155))/0xa)+parseInt(f(0x16d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xddd30));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const g=a53d;return a53a[g(0x15f)]()[g(0x160)](g(0x151))[g(0x15f)]()[g(0x150)](a53a)[g(0x160)](g(0x151));});a53a();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{[a53h(0x163)]=Logger['getInstance']();[a53h(0x178)];[a53h(0x15b)];[a53h(0x152)]=new Map();[a53h(0x173)];[a53h(0x165)];[a53h(0x14c)]=new Inventory();constructor(a){const i=a53h;super(),this['name']=a[i(0x178)],this[i(0x15b)]=a['description'],this[i(0x173)]=a[i(0x173)]||RoomType[i(0x15d)],a[i(0x152)]&&(this[i(0x152)]=a[i(0x152)]||new Map()),a[i(0x14c)]&&(this[i(0x14c)]=a[i(0x14c)]),a[i(0x15e)]&&(this[i(0x15e)]=a['puzzle']),this[i(0x165)]=a[i(0x165)]||![],this[i(0x163)][i(0x157)]('Room\x20created:\x20'+this[i(0x178)]);}['say'](a,b){const j=a53h;this[j(0x14e)](j(0x161),a,b);}[a53h(0x15c)](a,b,c){const k=a53h;let d=this[k(0x16a)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[k(0x152)]['set'](a,d),b[k(0x152)][k(0x168)](this[k(0x145)](a),d);}[a53h(0x179)](a,b){const l=a53h,c=this['exits'][l(0x17c)](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[l(0x163)][l(0x157)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+'.\x20Success:\x20'+d),d?'The\x20'+c['name']+l(0x17b):'The\x20'+c[l(0x178)]+'\x20remains\x20locked.';}return this['logger'][l(0x157)]('No\x20locked\x20exit\x20found\x20in\x20direction\x20'+a),l(0x172);}[a53h(0x16e)](a){const m=a53h;return this[m(0x163)][m(0x157)](m(0x14d)+a),this[m(0x152)][m(0x17c)](a);}['isExitLocked'](a){const n=a53h,b=this['exits'][n(0x17c)](a),c=b instanceof Door&&b['checkIfLocked']();return this[n(0x163)][n(0x157)](n(0x16f)+a+'\x20is\x20locked.\x20Result:\x20'+c),c;}[a53h(0x16c)](a){const o=a53h;this[o(0x14c)]['addItem'](a),this[o(0x163)]['write'](o(0x175)+this['name']+':\x20'+a[o(0x178)]);}[a53h(0x156)](a){const p=a53h;this[p(0x14c)][p(0x15a)](a[p(0x178)])?(this['inventory'][p(0x156)](a[p(0x178)]),this[p(0x163)]['write'](p(0x167)+this[p(0x178)]+':\x20'+a['name'])):this[p(0x163)][p(0x157)](p(0x154)+this[p(0x178)]+':\x20'+a[p(0x178)]);}[a53h(0x159)](a){const q=a53h;this[q(0x15e)]=a,this['logger'][q(0x157)](q(0x14f)+this[q(0x178)]+':\x20'+a[q(0x149)]);}['getOppositeDirection'](a){const r=a53h;switch(a){case'north':return Direction[r(0x158)];case r(0x177):return Direction[r(0x176)];case r(0x166):return Direction[r(0x144)];case r(0x170):return Direction[r(0x146)];case'up':return Direction['DOWN'];case'down':return Direction['UP'];default:throw new Error(r(0x14b)+a);}}[a53h(0x16a)](a){const s=a53h;for(const b of this[s(0x152)][s(0x16b)]()){if(b instanceof Door){if(b[s(0x143)]===this&&b[s(0x147)]===a||b[s(0x147)]===this&&b[s(0x143)]===a)return b;}}return undefined;}}function a53c(){const t=['logger','10299191zMMpOm','isStartRoom','east','Item\x20removed\x20from\x20room\x20','set','9876WTFvBn','findExistingDoor','values','addItem','18627246BKDjjN','getExit','Checking\x20if\x20exit\x20in\x20direction\x20','west','8zYJiUR','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','roomType','1329KrcCLX','Item\x20added\x20to\x20room\x20','NORTH','south','name','attemptUnlockExit','2232VxyIVV','\x20unlocked!','get','roomA','WEST','getOppositeDirection','EAST','roomB','2773854HFCvYo','riddle','97BDZfRj','Invalid\x20direction:\x20','inventory','Fetching\x20exit\x20in\x20direction:\x20','emit','Puzzle\x20set\x20for\x20room\x20','constructor','(((.+)+)+)+$','exits','8464480CAoLvh','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','25780xexQLf','removeItem','write','SOUTH','setPuzzle','hasItem','description','addExit','INSIDE','puzzle','toString','search','speak','22858DxVhGE'];a53c=function(){return t;};return a53c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54l=a54d;
|
|
1
|
+
const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d=-parseInt(i(0x13b))/0x1+parseInt(i(0x122))/0x2+parseInt(i(0x11e))/0x3+parseInt(i(0x153))/0x4*(-parseInt(i(0x14b))/0x5)+parseInt(i(0x121))/0x6+parseInt(i(0x133))/0x7*(-parseInt(i(0x130))/0x8)+parseInt(i(0x129))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x5fc5a));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a[k(0x11d)]()['search'](k(0x123))['toString']()[k(0x15c)](a54a)[k(0x117)](k(0x123));});a54a();function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x114;let f=c[d];return f;},a54d(a,b);}import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';function a54c(){const D=['Failed\x20to\x20set\x20','toString','525216BavONM','addActor','roomConfiguration','2443716XiNEEw','162238mVoVwO','(((.+)+)+)+$','No\x20actor\x20with\x20name\x20','getInstance','keys','keyRequired','Added\x20puzzle\x20to\x20room\x20','8278479YwkYPg','warn','set','values','Room\x20\x22','addItem','determineStartRoom','193904gzCEPK','delete','roomFactory','175UOuNDT','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','Failed\x20to\x20add\x20item\x20','addExit','characterLocations','createExitsFromConfig','length','\x20already\x20exists\x20in\x20the\x20scene.','45903jMSwaQ','\x22\x20does\x20not\x20exist.','getCharacterLocation','\x20not\x20found\x20in\x20scene.','getActor','push','Removed\x20room\x20from\x20scene:\x20','.\x20Room\x20','apply','getPlayer','Scene\x20initialized\x20with\x20rooms:\x20','\x20to\x20room\x20','\x20found\x20in\x20the\x20scene.','addRoom','direction','setPuzzle','2695865MnxZSw','join','actors','addItemToRoom','getRooms','rooms','Failed\x20to\x20add\x20puzzle.\x20Room\x20','hasOwnProperty','4einCeU','has','createRoom','player','targetRoom','isStartRoom','Added\x20room\x20to\x20scene:\x20','Added\x20item\x20','write','constructor','logger','initialize','get','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','name','\x27s\x20location.\x20Room\x20','connectRooms','search','removeActor','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','currentLocation','generateRoomsFromConfig'];a54c=function(){return D;};return a54c();}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a54l(0x150)];[a54l(0x156)];['logger'];[a54l(0x14d)];[a54l(0x137)]=new Map();[a54l(0x132)];constructor(a){const m=a54l;super(),this[m(0x132)]=new RoomFactory(),this[m(0x156)]=a['player'],this[m(0x150)]=this[m(0x11b)](a['roomConfiguration']),this[m(0x15d)]=Logger[m(0x125)](),this[m(0x14d)]=new Map(),this[m(0x138)](a[m(0x120)]),this[m(0x15d)][m(0x15b)](m(0x145)+Object[m(0x126)](this[m(0x150)])[m(0x14c)](',\x20'));}[a54l(0x15e)](){const n=a54l;this[n(0x156)][n(0x11a)]=this[n(0x12f)]();}['generateRoomsFromConfig'](a){const o=a54l;if(!this[o(0x132)])throw new Error(o(0x160));const b={};for(const c of a){const d=this[o(0x132)][o(0x155)](c);b[c[o(0x114)]]=d;}return b;}[a54l(0x138)](a){const p=a54l;for(const b of a){const c=this['rooms'][b[p(0x114)]];if(b['exits'])for(const d of b['exits']){const e=d[p(0x149)]['toUpperCase'](),f=d[p(0x157)],g=d[p(0x127)],h=this[p(0x150)][f];h&&c['addExit'](Direction[e],h,g);}}}[a54l(0x11f)](a){const q=a54l;if(this[q(0x14d)][q(0x154)](a[q(0x114)]))throw new Error('Actor\x20with\x20name\x20'+a[q(0x114)]+q(0x13a));this[q(0x14d)][q(0x12b)](a[q(0x114)],a);}[a54l(0x118)](a){const r=a54l;if(!this[r(0x14d)][r(0x154)](a))throw new Error(r(0x124)+a+r(0x147));this[r(0x14d)][r(0x131)](a);}[a54l(0x13f)](a){const s=a54l;return this[s(0x14d)][s(0x15f)](a);}get['allActors'](){const t=a54l;return Array['from'](this[t(0x14d)][t(0x12c)]());}[a54l(0x148)](a){const u=a54l;this[u(0x150)][a['name']]=a,this[u(0x15d)][u(0x15b)](u(0x159)+a[u(0x114)]);}['removeRoom'](a){const v=a54l;return this[v(0x150)][a]?(delete this['rooms'][a],this[v(0x15d)][v(0x15b)](v(0x141)+a),!![]):(this[v(0x15d)][v(0x15b)](v(0x134)+a),![]);}[a54l(0x14e)](a,b){const w=a54l,c=this[w(0x150)][b];c?(c[w(0x12e)](a),this['logger'][w(0x15b)](w(0x15a)+a[w(0x114)]+w(0x146)+c['name'])):this[w(0x15d)][w(0x15b)](w(0x135)+a[w(0x114)]+w(0x142)+b+'\x20not\x20found\x20in\x20scene.');}['addPuzzleToRoom'](a,b){const x=a54l,c=this[x(0x150)][b];c?(c[x(0x14a)](a),this[x(0x15d)]['write'](x(0x128)+c['name'])):this['logger'][x(0x15b)](x(0x151)+b+x(0x13e));}['setCharacterLocation'](a,b){const y=a54l,c=this[y(0x150)][b];c?(this[y(0x137)][y(0x12b)](a['name'],c),this['logger'][y(0x15b)](a[y(0x114)]+'\x20is\x20now\x20in\x20room\x20'+c[y(0x114)])):this[y(0x15d)]['write'](y(0x11c)+a[y(0x114)]+y(0x115)+b+y(0x13e));}[a54l(0x13d)](a){const z=a54l;return this[z(0x137)][z(0x15f)](a['name']);}[a54l(0x12f)](){const A=a54l,a=[];for(const c in this['rooms']){if(this[A(0x150)][A(0x152)](c)){const d=this[A(0x150)][c];d[A(0x158)]&&a[A(0x140)](d);}}if(a[A(0x139)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a['length']===0x1)return a[0x0];const b=Object[A(0x126)](this[A(0x150)]);if(b[A(0x139)]===0x0)throw new Error(A(0x119));return console[A(0x12a)]('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this['rooms'][b[0x0]];}[a54l(0x144)](){const B=a54l;return this[B(0x156)];}[a54l(0x14f)](){return this['rooms'];}[a54l(0x116)](a,b,c,d){const C=a54l,e=this[C(0x150)][a],f=this[C(0x150)][c];if(!e)throw new Error(C(0x12d)+a+C(0x13c));if(!f)throw new Error('Room\x20\x22'+c+C(0x13c));e[C(0x136)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a55j=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(0x79))/0x1*(-parseInt(f(0xa2))/0x2)+-parseInt(f(0x99))/0x3*(parseInt(f(0x80))/0x4)+-parseInt(f(0x9a))/0x5*(-parseInt(f(0xa0))/0x6)+-parseInt(f(0x9d))/0x7*(parseInt(f(0x78))/0x8)+parseInt(f(0x97))/0x9+parseInt(f(0x8a))/0xa*(-parseInt(f(0x7b))/0xb)+parseInt(f(0x85))/0xc*(parseInt(f(0xac))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xc1318));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a['toString']()['search'](h(0xab))['toString']()[h(0x81)](a55a)['search'](h(0xab));});a55a();function a55c(){var C=['Common','Large','Legendary','6588PLqMGA','Grey','Metallic','Blade','name','3599280zfrfYN','Unknown\x20Author','Gloves','Medium','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Tiny','Circle','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Gold','Boots','Small','Short\x20Sword','10007568rqEghO','Brown','285NDIWBM','32605zTwEUS','apply','Yellow','42giRzpb','publishDate','pageCount','570MevWSL','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','30rKrBzo','LegArmor','Sniper\x20Rifle','author','Rectangle','Key','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','You\x20hold\x20the\x20','Smooth','(((.+)+)+)+$','80847txsowF','1883880rXSmaC','101035TWbRsN','ArmArmor','11dGwyEg','Weapon','use','Holy\x20Grail','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','44884ZGfhbV','constructor'];a55c=function(){return C;};return a55c();}import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x78;var f=c[d];return f;},a55d(a,b);}export class BasicItem extends Item{constructor(a,b){var i=a55d;super({'name':a,'description':b,'size':Size[i(0x8d)],'category':Category['Unknown'],'shape':Shape[i(0xa6)],'color':Color[i(0x9c)],'texture':Texture['Smooth'],'rating':Rating[i(0x82)],'weight':0x1});}[a55j(0x7d)](){return this['description'];}}export class Sword extends Item{constructor(a,b){var k=a55j;super({'name':a,'description':b,'size':Size[k(0x8d)],'category':Category[k(0x7c)],'shape':Shape['Blade'],'color':Color[k(0x86)],'texture':Texture[k(0x87)],'rating':Rating[k(0x82)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a55j;super({'name':a,'description':b,'size':Size['Large'],'category':Category[l(0x7c)],'shape':Shape['Rifle'],'color':Color[l(0x98)],'texture':Texture[l(0x87)],'rating':Rating['Rare'],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a55j;super({'name':a,'description':b,'size':Size[m(0x8d)],'category':Category['Helmet'],'shape':Shape[m(0x90)],'color':Color[m(0x86)],'texture':Texture[m(0x87)],'rating':Rating[m(0x82)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a55j;super({'name':a,'description':b,'size':Size[n(0x83)],'category':Category['BodyArmor'],'shape':Shape['Rectangle'],'color':Color[n(0x86)],'texture':Texture[n(0x87)],'rating':Rating['Common'],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a55j;super({'name':a,'description':b,'size':Size[o(0x8d)],'category':Category[o(0xa3)],'shape':Shape[o(0xa6)],'color':Color[o(0x86)],'texture':Texture[o(0x87)],'rating':Rating['Common'],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a55j;super({'name':a,'description':b,'size':Size[p(0x8d)],'category':Category[p(0x94)],'shape':Shape[p(0x90)],'color':Color[p(0x98)],'texture':Texture['Smooth'],'rating':Rating['Common'],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a55j;super({'name':a,'description':b,'size':Size[q(0x95)],'category':Category[q(0x8c)],'shape':Shape[q(0x90)],'color':Color[q(0x98)],'texture':Texture[q(0xaa)],'rating':Rating[q(0x82)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a55j;super({'name':a,'description':b,'size':Size[r(0x8d)],'category':Category[r(0x7a)],'shape':Shape[r(0xa6)],'color':Color[r(0x86)],'texture':Texture[r(0x87)],'rating':Rating[r(0x82)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a55j;super({'name':a,'description':b,'size':Size[s(0x8f)],'category':Category[s(0xa7)],'shape':Shape[s(0xa6)],'color':Color[s(0x9c)],'texture':Texture['Smooth'],'rating':Rating[s(0x82)],'weight':0x0});}['use'](){var t=a55j;return t(0x8e);}}export class Weapon extends Item{constructor(a,b){var u=a55j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[u(0x7c)],'shape':Shape['Blade'],'color':Color[u(0x86)],'texture':Texture[u(0x87)],'rating':Rating[u(0x82)],'weight':0x3});}[a55j(0x7d)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class Book extends Item{[a55j(0xa5)];[a55j(0x9e)];[a55j(0x9f)];constructor(a,b='A\x20mysterious\x20book.',c=a55j(0x8b)){var v=a55j;super({'name':a,'description':b,'size':Size[v(0x8d)],'category':Category['Book'],'shape':Shape[v(0xa6)],'color':Color[v(0x98)],'texture':Texture[v(0xaa)],'rating':Rating[v(0x82)],'weight':0x1}),this['author']=c,this[v(0x9e)]=new Date(),this[v(0x9f)]=0x64;}['use'](){var w=a55j;return w(0x91);}}export class ShortSword extends Item{constructor(){var x=a55j;super({'name':x(0x96),'description':x(0x7f),'size':Size['Medium'],'category':Category[x(0x7c)],'shape':Shape[x(0x88)],'color':Color[x(0x86)],'texture':Texture[x(0x87)],'rating':Rating[x(0x82)],'weight':0x3});}['use'](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class SniperRifle extends Item{constructor(){var y=a55j;super({'name':y(0xa4),'description':y(0xa1),'size':Size[y(0x83)],'category':Category[y(0x7c)],'shape':Shape['Rifle'],'color':Color['Brown'],'texture':Texture['Smooth'],'rating':Rating[y(0x82)],'weight':0x5});}[a55j(0x7d)](){var z=a55j;return z(0xa8);}}export class HolyGrail extends Item{constructor(){var A=a55j;super({'name':A(0x7e),'description':'A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','size':Size[A(0x95)],'category':Category['Cup'],'shape':Shape[A(0x90)],'color':Color[A(0x93)],'texture':Texture[A(0x87)],'rating':Rating[A(0x84)],'weight':0x1});}[a55j(0x7d)](){var B=a55j;return B(0xa9)+this[B(0x89)]+B(0x92);}}
|