@maka/maka-cli 4.5.52 → 4.6.1
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.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 -0
- 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/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.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/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/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/https/progress.class.js +1 -0
- 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/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
|
-
|
|
1
|
+
const a34i=a34d;(function(a,b){const f=a34d,c=a();while(!![]){try{const d=parseInt(f(0x133))/0x1*(parseInt(f(0x12c))/0x2)+-parseInt(f(0x11f))/0x3+parseInt(f(0x126))/0x4*(-parseInt(f(0x129))/0x5)+-parseInt(f(0x120))/0x6+parseInt(f(0x128))/0x7+-parseInt(f(0x127))/0x8+-parseInt(f(0x130))/0x9*(-parseInt(f(0x12e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a34c,0x2ff7c));const a34b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a34d;if(c){const e=c[g(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a34a=a34b(this,function(){const h=a34d;return a34a[h(0x123)]()['search'](h(0x136))['toString']()[h(0x121)](a34a)[h(0x137)]('(((.+)+)+)+$');});function a34c(){const k=['6509142Yhwdnb','SearchCommand:\x20','\x20found\x20the\x20following\x20items:\x20','10667FdFeGi','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','execute','(((.+)+)+)+$','search','name','logger','write','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','478281aTannT','1376346SEDpeq','constructor','verb','toString','currentLocation','listItems','1952RvRffU','1018864PkBbUz','614929VAIwaq','1555MOWhGS','actor','You\x20search\x20the\x20area\x20and\x20find:\x20','10FWVKHR','apply','10zscqOp','length'];a34c=function(){return k;};return a34c();}a34a();import{Command}from'./command.js';function a34d(a,b){const c=a34c();return a34d=function(d,e){d=d-0x11b;let f=c[d];return f;},a34d(a,b);}export class SearchCommand extends Command{static [a34i(0x122)]=a34i(0x137);static ['description']='Search\x20for\x20items\x20in\x20your\x20area';[a34i(0x135)](){const j=a34i,a=this[j(0x12a)][j(0x124)]['inventory'][j(0x125)]();if(a[j(0x12f)]===0x0)return this['logger'][j(0x11d)]('SearchCommand:\x20'+this[j(0x12a)][j(0x11b)]+j(0x11e)),j(0x134);const b=a['join'](',\x20');return this[j(0x11c)]['write'](j(0x131)+this[j(0x12a)][j(0x11b)]+j(0x132)+b),j(0x12b)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d
|
|
1
|
+
const a35i=a35d;(function(a,b){const f=a35d,c=a();while(!![]){try{const d=-parseInt(f(0x111))/0x1*(parseInt(f(0x10c))/0x2)+-parseInt(f(0x106))/0x3+parseInt(f(0x10d))/0x4*(-parseInt(f(0x107))/0x5)+-parseInt(f(0x124))/0x6+parseInt(f(0x10b))/0x7+parseInt(f(0x115))/0x8+-parseInt(f(0x11c))/0x9*(-parseInt(f(0x121))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a35c,0xe1705));const a35b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a35d;if(c){const e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a35a=a35b(this,function(){const h=a35d;return a35a[h(0x109)]()[h(0x11e)](h(0x119))[h(0x109)]()['constructor'](a35a)[h(0x11e)](h(0x119));});a35a();function a35d(a,b){const c=a35c();return a35d=function(d,e){d=d-0x105;let f=c[d];return f;},a35d(a,b);}import{Command}from'./command.js';function a35c(){const k=['message','apply','11960608UcgTUB','puzzle','Attempt\x20to\x20solve\x20a\x20puzzle.','addItem','(((.+)+)+)+$','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','inventory','909GyGJZR','toLowerCase','search','execute','write','133670hjrruR','SolveCommand:\x20','description','8144124ZFplJW','verb','2905221tjXKEO','10oEjumC','success','toString','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','7378217sKhtmO','143556Umbhqv','582252kumntu','actor','join','rewardItem','5octmnT','logger'];a35c=function(){return k;};return a35c();}export class SolveCommand extends Command{static [a35i(0x105)]='solve';static [a35i(0x123)]=a35i(0x117);[a35i(0x11f)](a){const j=a35i,b=a[j(0x10f)]('\x20')[j(0x11d)](),c=this[j(0x10e)]['currentLocation'];if(!c||!c[j(0x116)])return this[j(0x112)][j(0x120)](j(0x11a)),j(0x10a);const d=c[j(0x116)]['solve'](b,this[j(0x10e)][j(0x11b)]);return d[j(0x108)]&&c[j(0x116)][j(0x110)]&&this[j(0x10e)][j(0x11b)][j(0x118)](c[j(0x116)][j(0x110)]),this['logger'][j(0x120)](j(0x122)+d[j(0x113)]),d['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36i=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d=-parseInt(f(0x1ff))/0x1*(parseInt(f(0x1d7))/0x2)+-parseInt(f(0x1ec))/0x3*(parseInt(f(0x1df))/0x4)+-parseInt(f(0x1f0))/0x5+-parseInt(f(0x1d9))/0x6*(-parseInt(f(0x202))/0x7)+parseInt(f(0x203))/0x8*(parseInt(f(0x1f6))/0x9)+parseInt(f(0x1e7))/0xa+-parseInt(f(0x1ee))/0xb*(-parseInt(f(0x1f4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x8b96d));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a['toString']()[h(0x1f1)]('(((.+)+)+)+$')[h(0x1e9)]()[h(0x1eb)](a36a)[h(0x1f1)](h(0x1f3));});a36a();function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a36d(a,b);}import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']=a36i(0x1f9);static [a36i(0x1fa)]=a36i(0x204);['execute'](a){const j=a36i;return this[j(0x1de)][j(0x1db)]('Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20'+a[j(0x1e2)]('\x20')),this[j(0x1f9)](a);}[a36i(0x1f9)](a){const k=a36i,b=a[k(0x1e2)]('\x20')[k(0x1da)](),c=this[k(0x200)][k(0x1e0)];if(!c['inventory'][k(0x1e8)](b))return this[k(0x1de)][k(0x1db)]('Item\x20\x22'+b+k(0x1f7)+c[k(0x1ef)]+k(0x1f5)),k(0x1d8)+b+k(0x1e5);const d=c[k(0x1dd)][k(0x1f8)](b);if(!d)return this[k(0x1de)][k(0x1db)](k(0x1ea)+b+k(0x1fb)+c[k(0x1ef)]+k(0x1ed)),k(0x1d8)+b+'\x22\x20in\x20this\x20room.';try{return this[k(0x200)]['addInventory'](d),this[k(0x1de)]['write'](k(0x1f2)+b+'\x22\x20to\x20'+this[k(0x200)][k(0x1ef)]+k(0x1e3)),c[k(0x1dd)][k(0x1fc)](b),this[k(0x1de)][k(0x1db)](k(0x201)+b+k(0x1e6)+c[k(0x1ef)]+k(0x1ed)),k(0x1fd)+b+'.';}catch(e){return this[k(0x1de)][k(0x1db)](k(0x1dc)+e[k(0x1fe)]),k(0x1e4)+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}function a36c(){const l=['toString','Item\x20\x22','constructor','22473URalMs','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','1001NjyIng','name','1784045vtFLBh','search','Successfully\x20added\x20\x22','(((.+)+)+)+$','135120rWOvDG','\x20during\x20\x27Take\x27\x20command.','153KrEufh','\x22\x20not\x20found\x20in\x20','getItem','take','description','\x22\x20not\x20retrieved\x20from\x20','removeItem','You\x20have\x20taken\x20the\x20','message','24hSAWVD','actor','Successfully\x20removed\x20\x22','1278837VOAjVF','96296LfYBZu','Pick\x20up\x20an\x20item.','65356zhLoTp','There\x20is\x20no\x20item\x20\x22','18nMMmMl','toLowerCase','write','Error\x20during\x20\x27Take\x27\x20command:\x20','inventory','logger','472gIYIpL','currentLocation','apply','join','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','The\x20item\x20\x22','\x22\x20in\x20this\x20room.','\x22\x20from\x20','8194140lwjbWQ','hasItem'];a36c=function(){return l;};return a36c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a37i=a37d;function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0xdc;let f=c[d];return f;},a37d(a,b);}(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0xf1))/0x1+parseInt(f(0xdd))/0x2+-parseInt(f(0xe5))/0x3*(parseInt(f(0xf3))/0x4)+-parseInt(f(0xe4))/0x5+-parseInt(f(0xdf))/0x6*(-parseInt(f(0xe1))/0x7)+-parseInt(f(0xf2))/0x8*(-parseInt(f(0xe0))/0x9)+-parseInt(f(0xf5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x3b4a4));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0xe2)]()['search']('(((.+)+)+)+$')[h(0xe2)]()[h(0xec)](a37a)[h(0xeb)](h(0xe3));});a37a();import{Command}from'./command.js';function a37c(){const k=['toString','(((.+)+)+)+$','420245vruCEp','93FJzngr','apply','actor','Unequip\x20an\x20item.','unqeuip','execute','search','constructor','name','write','unequip','UnequipCommand:\x20','248696iCACVl','2721920RYSDwF','19500JxVziN','logger','2994770ClNbKb','verb','description','564442pdGmcY','\x20unqeuiped\x20','41766pvHiaM','9SEduAX','406MRNpsm'];a37c=function(){return k;};return a37c();}export class UnequipCommand extends Command{static [a37i(0xf6)]=a37i(0xe9);static [a37i(0xdc)]=a37i(0xe8);[a37i(0xea)](a){const j=a37i,b=a['join']('\x20')['toLowerCase'](),c=this[j(0xe7)][j(0xef)](b);return this[j(0xf4)][j(0xee)](j(0xf0)+this[j(0xe7)][j(0xed)]+j(0xde)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d
|
|
1
|
+
function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x182;let f=c[d];return f;},a38d(a,b);}const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=parseInt(h(0x18d))/0x1+parseInt(h(0x189))/0x2*(-parseInt(h(0x194))/0x3)+parseInt(h(0x18a))/0x4+parseInt(h(0x183))/0x5+parseInt(h(0x19d))/0x6*(parseInt(h(0x1a8))/0x7)+parseInt(h(0x198))/0x8*(parseInt(h(0x18c))/0x9)+-parseInt(h(0x1a0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x1f742));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a38d;if(c){const e=c[i(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a[j(0x187)]()['search'](j(0x192))['toString']()[j(0x195)](a38a)[j(0x1a4)](j(0x192));});a38a();import{Door}from'../models/door.js';function a38c(){const m=['attemptUnlockExit','unlock','1436576pcjoYB','apply','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','unlockItemOrSolution','934914bxGGME','name','get','3536150ikQdKb','description','length','hasItem','search','toLowerCase','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','logger','7LdhIPc','actor','currentLocation','error','946220siEQCQ','verb','inventory','UnlockCommand:\x20','toString','isValidDirection','219196pIwkCo','174084bzubfN','getItem','9fmFvZl','23891JPEhbW','write','Unlock\x20a\x20door.','There\x27s\x20no\x20door\x20named\x20\x22','exits','(((.+)+)+)+$','UnlockCommand:\x20No\x20target\x20specified.','3qtRELk','constructor'];a38c=function(){return m;};return a38c();}import{Command}from'./command.js';export class UnlockCommand extends Command{static [a38k(0x184)]=a38k(0x197);static [a38k(0x1a1)]=a38k(0x18f);['execute'](a){return this['unlock'](a);}[a38k(0x197)](a){const l=a38k;if(a[l(0x1a2)]===0x0)return this[l(0x1a7)][l(0x182)](l(0x193)),l(0x1a6);const b=a[0x0][l(0x1a5)](),c=this['actor'][l(0x1aa)];if(this[l(0x188)](b)&&c[l(0x191)]['has'](b)){const d=c[l(0x191)][l(0x19f)](b);if(d instanceof Door){const e=d[l(0x19c)]?.[l(0x1a5)]();if(e&&this[l(0x1a9)][l(0x185)][l(0x1a3)](e)){const f=this[l(0x1a9)][l(0x185)][l(0x18b)](e);if(f){const g=c[l(0x196)](b,f[l(0x19e)]);return this[l(0x1a7)]['write'](l(0x186)+this[l(0x1a9)]['name']+'\x20is\x20attempted\x20to\x20unlock\x20'+b+'.\x20Result:\x20'+g),g;}}return this[l(0x1a7)][l(0x18e)](l(0x186)+this[l(0x1a9)][l(0x19e)]+l(0x19b)+b+'.'),l(0x19a);}else return this[l(0x1a7)][l(0x18e)]('UnlockCommand:\x20'+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[l(0x19e)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+'\x22\x20here.';}else return this[l(0x1a7)]['write'](l(0x186)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[l(0x19e)]+'.'),l(0x190)+b+'\x22\x20here.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39h=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x9a))/0x1+parseInt(f(0x99))/0x2+parseInt(f(0x88))/0x3*(parseInt(f(0x90))/0x4)+-parseInt(f(0x80))/0x5+parseInt(f(0x83))/0x6*(parseInt(f(0x8a))/0x7)+-parseInt(f(0x92))/0x8+parseInt(f(0x8c))/0x9*(-parseInt(f(0x9e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x5ff16));function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x7e;let f=c[d];return f;},a39d(a,b);}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(0x81)]()[g(0x9d)](g(0x84))[g(0x81)]()[g(0xa0)](a39a)['search'](g(0x84));});a39a();import{Command}from'./command.js';function a39c(){const k=['\x27s\x20inventory.','\x20to\x20use.','UseCommand:\x20',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','625110OdbyZE','toString','actor','318sfMGsd','(((.+)+)+)+$','use','toLowerCase','\x20used\x20','104172FLGFZZ','join','80423BQVyux','\x20not\x20retrieved\x20from\x20','29655ofaAMw','write','logger','function','80pYYvWC','name','2366136QkMLzN','description','You\x20don\x27t\x20have\x20the\x20','execute','inventory','getItem','hasItem','626828PMtzEc','149215DbSwTh','\x20in\x20this\x20way.','\x20doesn\x27t\x20have\x20a\x20use\x20method.','search','2890sImvBJ','Use\x20an\x20item.','constructor'];a39c=function(){return k;};return a39c();}export class UseCommand extends Command{static ['verb']=a39h(0x85);static [a39h(0x93)]=a39h(0x9f);[a39h(0x95)](a){const i=a39h;return this[i(0x85)](a);}[a39h(0x85)](a){const j=a39h,b=a[j(0x89)]('\x20')[j(0x86)]();if(!this['actor'][j(0x96)][j(0x98)](b))return this[j(0x8e)][j(0x8d)]('UseCommand:\x20'+this[j(0x82)]['name']+'\x20attempted\x20to\x20use\x20'+b+j(0x7f)),j(0x94)+b+'\x20to\x20use.';const c=this['actor']['inventory'][j(0x97)](b);if(!c)return this[j(0x8e)][j(0x8d)]('UseCommand:\x20'+b+j(0x8b)+this[j(0x82)]['name']+j(0xa1)),j(0x94)+b+j(0xa2);if(typeof c[j(0x85)]===j(0x8f)){const d=c['use']();return this[j(0x8e)][j(0x8d)](j(0x7e)+this[j(0x82)][j(0x91)]+j(0x87)+b+'.'),d;}else return this[j(0x8e)][j(0x8d)](j(0x7e)+b+j(0x9c)),'You\x20can\x27t\x20use\x20the\x20'+b+j(0x9b);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a40c(){const
|
|
1
|
+
const a40i=a40d;function a40c(){const k=['2578465JTXExa','commandMap','apply','getAllRegisteredCommands','(((.+)+)+)+$','1099960fPQhOM','220IbJSSZ','69povigS','151868OXPCZs','registerCommand','4442IcAeYj','415ErHJCz','12UQEbaS','6128vnAwDW','constructor','7101qSXQEz','8851409JHFxaN','search','toString','171444ZTbnTz'];a40c=function(){return k;};return a40c();}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x12c))/0x1*(parseInt(f(0x12b))/0x2)+parseInt(f(0x13c))/0x3*(-parseInt(f(0x13d))/0x4)+parseInt(f(0x135))/0x5*(-parseInt(f(0x12d))/0x6)+parseInt(f(0x131))/0x7+parseInt(f(0x12e))/0x8*(parseInt(f(0x130))/0x9)+parseInt(f(0x13a))/0xa+-parseInt(f(0x13b))/0xb*(parseInt(f(0x134))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xad63d));function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x12a;let f=c[d];return f;},a40d(a,b);}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x133)]()[h(0x132)](h(0x139))[h(0x133)]()[h(0x12f)](a40a)[h(0x132)]('(((.+)+)+)+$');});a40a();export class CommandFactory{static [a40i(0x136)]={};static[a40i(0x12a)](a,b){const j=a40i;this[j(0x136)][a]=b;}static['createCommand'](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static[a40i(0x138)](){return this['commandMap'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41h=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=parseInt(f(0xfa))/0x1*(-parseInt(f(0x106))/0x2)+parseInt(f(0xeb))/0x3*(parseInt(f(0x100))/0x4)+parseInt(f(0x105))/0x5+parseInt(f(0x104))/0x6+parseInt(f(0xee))/0x7+-parseInt(f(0x107))/0x8*(parseInt(f(0xf4))/0x9)+-parseInt(f(0xfd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xcb118));function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0xe5;let f=c[d];return f;},a41d(a,b);}const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const g=a41d;return a41a[g(0xfe)]()['search'](g(0xff))[g(0xfe)]()[g(0xe5)](a41a)['search'](g(0xff));});a41a();import{Room,Puzzle,Inventory}from'../models/_index.js';function a41c(){const n=['addItem','521113VtfmuI','type','inventory','24462270WnwbGW','toString','(((.+)+)+)+$','459564aOgZaC','rifle','book','toUpperCase','5971098hSEKRZ','4501435vvNuJA','2KJiUZS','961512TVimHR','description','constructor','isStartRoom','sword','gauntlets','gloves','convertToRoomConfig','21sLKNqS','bodyarmor','createItem','11061099tsTsyi','roomType','name','boots','content','createRoom','36XkTxDI','legarmor','forEach','setPuzzle','puzzle'];a41c=function(){return n;};return a41c();}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{[a41h(0xf3)](a){const i=a41h,b=this[i(0xea)](a),c=new Room(b);if(a['items']){const d=new Inventory();a['items'][i(0xf6)](e=>{const j=i;d[j(0xf9)](this[j(0xed)](e));}),c[i(0xfc)]=d;}return a[i(0xf8)]&&c[i(0xf7)](this['createPuzzle'](a[i(0xf8)])),c;}[a41h(0xed)](a){const k=a41h;switch(a[k(0xfb)]){case'key':return new Key(a['name'],a[k(0x108)]);case k(0x102):return new Book(a['name'],a[k(0x108)],a[k(0xf2)]);case k(0xe7):return new Sword(a[k(0xf0)],a['description']);case k(0x101):return new Rifle(a[k(0xf0)],a[k(0x108)]);case'helmet':return new Helmet(a[k(0xf0)],a[k(0x108)]);case k(0xec):return new BodyArmor(a[k(0xf0)],a[k(0x108)]);case k(0xf5):return new LegArmor(a['name'],a[k(0x108)]);case k(0xf1):return new Boots(a[k(0xf0)],a[k(0x108)]);case k(0xe9):return new Gloves(a[k(0xf0)],a[k(0x108)]);case k(0xe8):return new Gauntlets(a['name'],a[k(0x108)]);default:return new BasicItem(a[k(0xf0)],a['description']);}}['createPuzzle'](a){const l=a41h,b=this[l(0xed)](a['rewardItem']);return new Puzzle({...a,'rewardItem':b});}[a41h(0xea)](a){const m=a41h,b=a[m(0xef)]&&RoomType[a[m(0xef)][m(0x103)]()]?RoomType[a[m(0xef)][m(0x103)]()]:RoomType['INSIDE'];return{'name':a['name'],'description':a[m(0x108)],'isStartRoom':a[m(0xe6)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=parseInt(h(0xe7))/0x1*(parseInt(h(0xfb))/0x2)+-parseInt(h(0xe4))/0x3*(parseInt(h(0x101))/0x4)+parseInt(h(0xee))/0x5+-parseInt(h(0x107))/0x6+-parseInt(h(0xed))/0x7*(parseInt(h(0xf3))/0x8)+parseInt(h(0xf9))/0x9+-parseInt(h(0xe9))/0xa*(-parseInt(h(0xe2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xaa509));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0x104)]()[j(0xdf)]('(((.+)+)+)+$')['toString']()[j(0xdc)](a42a)[j(0xdf)](j(0xef));});a42a();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';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 a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xd9;let f=c[d];return f;},a42d(a,b);}function a42c(){const s=['use','determineStartRoom','player','constructor','createCommand','apply','search','lock','hasOwnProperty','583ZkCXGy','equip','852177JAWqCq','trim','name','32531auCltq','drop','187930xBMOYF','registerCommands','solve','getInstance','147rroFcL','5617265wHUFVc','(((.+)+)+)+$','unlock','getWelcomeMessage','clear','224304QZRZhu','quit','unequip','getDescription','help','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','9350523HjBEqb','slice','16PToIUw','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','getHelpMessage','Welcome,\x20','getRooms','rooms','12RPWYbz','registerCommand','instance','toString','take','scene','7680558qzybUT','handleInput','getAllRegisteredCommands','say','execute'];a42c=function(){return s;};return a42c();}import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a42k(0x103)];['scene'];['player'];['currentRoom'];[a42k(0x100)];constructor(a,b){const l=a42k;this[l(0xdb)]=a,this[l(0x106)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x106)]['initialize'](),this[l(0xdb)]['currentLocation']=this[l(0xda)](),this[l(0xea)]();}[a42k(0xea)](){const m=a42k;CommandFactory[m(0x102)]('look',LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory['registerCommand'](m(0x105),TakeCommand),CommandFactory[m(0x102)](m(0xd9),UseCommand),CommandFactory[m(0x102)](m(0xe3),EquipCommand),CommandFactory[m(0x102)](m(0xf5),UnequipCommand),CommandFactory[m(0x102)](m(0xeb),SolveCommand),CommandFactory[m(0x102)](m(0xe8),DropCommand),CommandFactory[m(0x102)](m(0xf0),UnlockCommand),CommandFactory[m(0x102)](m(0xe0),LockCommand),CommandFactory[m(0x102)]('search',SearchCommand),CommandFactory['registerCommand'](m(0x10a),SayCommand);}[a42k(0xda)](){const n=a42k;return this[n(0x106)][n(0xda)]();}[a42k(0xf1)](){const o=a42k;return o(0xfe)+this[o(0xdb)][o(0xe6)];}static[a42k(0xec)](a,b){const p=a42k;return!Game[p(0x103)]&&(Game['instance']=new Game(a,b)),Game[p(0x103)];}[a42k(0x108)](a){const q=a42k,b=a[q(0xe5)]()['split']('\x20'),c=b[0x0]['toLowerCase'](),d=b[q(0xfa)](0x1);if(c===q(0xf4))return null;if(c==='maka')return q(0xfc);if(c===q(0xf7))return this['getHelpMessage']();if(c===q(0xf2))return'';const e={'actor':this[q(0xdb)],'rooms':this[q(0x106)][q(0xff)](),'scene':this[q(0x106)]},f=CommandFactory[q(0xdd)](c,e);if(f){const g=f[q(0x10b)](d);return g;}return q(0xf8)+c+'\x22.';}[a42k(0xfd)](){const r=a42k,a=CommandFactory[r(0x109)]();let b='Available\x20Commands:\x0a';for(const c in a){if(a[r(0xe1)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0xf6)]()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+='-\x20quit:\x20Exit\x20the\x20game.\x0a',b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a43d,c=a();while(!![]){try{var d=-parseInt(f(0xa4))/0x1
|
|
1
|
+
(function(a,b){var f=a43d,c=a();while(!![]){try{var d=-parseInt(f(0xa4))/0x1*(parseInt(f(0xa0))/0x2)+-parseInt(f(0xa1))/0x3*(parseInt(f(0xa6))/0x4)+-parseInt(f(0xa7))/0x5*(-parseInt(f(0x9a))/0x6)+parseInt(f(0xa5))/0x7*(parseInt(f(0x9c))/0x8)+parseInt(f(0x99))/0x9*(-parseInt(f(0x9e))/0xa)+-parseInt(f(0x9d))/0xb+parseInt(f(0xa8))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x46c09));var a43b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a43d;if(c){var e=c[g(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){var h=a43d;return a43a['toString']()[h(0x98)](h(0x9f))[h(0x9b)]()[h(0xa2)](a43a)[h(0x98)]('(((.+)+)+)+$');});a43a();export*from'./door.js';export*from'./inventory.js';function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x98;var f=c[d];return f;},a43d(a,b);}export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';function a43c(){var i=['toString','3920232otGzqr','6057634bHpLbf','80CuUTMH','(((.+)+)+)+$','847578PwGhVV','156102fVRJtB','constructor','apply','1izhAec','7ihbLIN','16cIKZqd','20990hfzSKL','11367972SqiMww','search','423387nkssfX','588GaQRtu'];a43c=function(){return i;};return a43c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=parseInt(f(0xf2))/0x1+parseInt(f(0xe1))/0x2+parseInt(f(0xdc))/0x3+-parseInt(f(0xdf))/0x4+parseInt(f(0xdd))/0x5*(-parseInt(f(0xe8))/0x6)+parseInt(f(0xed))/0x7+-parseInt(f(0xe0))/0x8*(parseInt(f(0xec))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x6006a));var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a[h(0xe6)]()[h(0xfb)](h(0xee))[h(0xe6)]()[h(0xea)](a44a)['search'](h(0xee));});a44a();import{Logger}from'../utilities/logger.js';function a44c(){var n=['369448xhVhtd','1044214dcnZrg','To\x20','.\x20Used:\x20','isLockable','roomA','toString','roomB','432jCawxE','isLocked','constructor','logger','81fkIHin','2606282rOtFjx','(((.+)+)+)+$','checkIfLocked','checkIfLockable','Failed\x20to\x20unlock\x20door:\x20','721028NIPYRo','\x20and\x20','Door\x20created\x20between\x20','getOtherSide','Door\x20unlocked:\x20','name','unlockItemOrSolution','write','attemptUnlock','search','453543PiuMMK','21185udHNXz','apply','2610508ghjBMq'];a44c=function(){return n;};return a44c();}function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0xdc;var f=c[d];return f;},a44d(a,b);}import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];[a44i(0xe7)];['isLocked'];[a44i(0xf8)];[a44i(0xf7)];['logger'];[a44i(0xe4)];constructor(a){var j=a44i;super(),this[j(0xe5)]=a['roomA'],this[j(0xe7)]=a[j(0xe7)],this['isLocked']=a[j(0xe9)]||![],this[j(0xf8)]=a[j(0xf8)],this[j(0xf7)]=a[j(0xf7)]?capitalCase(a[j(0xf7)]):j(0xe2)+a[j(0xe7)][j(0xf7)],this[j(0xeb)]=Logger['getInstance'](),this[j(0xe4)]=!!a[j(0xf8)],this['logger'][j(0xf9)](j(0xf4)+this[j(0xe5)][j(0xf7)]+j(0xf3)+this[j(0xe7)]['name']+'.\x20Is\x20Locked:\x20'+this[j(0xe9)]);}[a44i(0xf5)](a){var k=a44i;return this[k(0xe5)]===a?this['roomB']:this['roomA'];}[a44i(0xfa)](a){var l=a44i;if(this[l(0xe9)]&&this[l(0xf8)]&&this[l(0xf8)]===a)return this[l(0xe9)]=![],this[l(0xeb)][l(0xf9)](l(0xf6)+this[l(0xf7)]+l(0xe3)+a),!![];return this[l(0xeb)][l(0xf9)](l(0xf1)+this[l(0xf7)]+l(0xe3)+a),![];}[a44i(0xef)](){return this['isLocked'];}[a44i(0xf0)](){var m=a44i;return this[m(0xe4)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45i=a45d;
|
|
1
|
+
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0x184))/0x1*(-parseInt(f(0x17f))/0x2)+-parseInt(f(0x17a))/0x3*(parseInt(f(0x179))/0x4)+-parseInt(f(0x163))/0x5+-parseInt(f(0x186))/0x6+parseInt(f(0x16d))/0x7*(-parseInt(f(0x17c))/0x8)+parseInt(f(0x160))/0x9*(parseInt(f(0x180))/0xa)+-parseInt(f(0x17d))/0xb*(-parseInt(f(0x177))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x1a768));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a['toString']()[h(0x162)]('(((.+)+)+)+$')[h(0x16f)]()[h(0x176)](a45a)['search'](h(0x161));});a45a();import{capitalCase}from'change-case';function a45c(){const r=['Failed\x20to\x20remove\x20item:\x20','keys','1IlJwYY','getAllItems','841776QrTWYu','.\x20Item\x20not\x20found.','delete','apply','logger','getWeight','1015047SYhfNy','(((.+)+)+)+$','search','226645ROLIKT','\x20to\x20inventory.','get','write','has','Listed\x20items\x20in\x20inventory:\x20','Retrieved\x20details\x20for\x20item:\x20','getItem','values','listItems','7vSStEE','name','toString','.\x20Exists:\x20','\x20in\x20','toLowerCase','items','map','join','constructor','111876efDRBX','\x20from\x20inventory.','205148jLYLML','6ceAkMS','Checked\x20for\x20item:\x20','908744otullU','484dIcwXh','Added\x20item:\x20','25622XvvZlf','10qeSjJT','set'];a45c=function(){return r;};return a45c();}import{Logger}from'../utilities/logger.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x15b;let f=c[d];return f;},a45d(a,b);}import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{['items'];[a45i(0x15e)];constructor(){const j=a45i;super(),this['items']=new Map(),this[j(0x15e)]=Logger['getInstance']();}['addItem'](a){const k=a45i;this['items'][k(0x181)](a[k(0x16e)][k(0x172)](),a),this['logger']['write'](k(0x17e)+a['name']+k(0x164));}['removeItem'](a){const l=a45i,b=this[l(0x16a)](a);if(b)return this[l(0x173)][l(0x15c)](a[l(0x172)]()),this['logger'][l(0x166)]('Removed\x20item:\x20'+a+l(0x178)),b;return this[l(0x15e)][l(0x166)](l(0x182)+a+'.\x20Item\x20not\x20found.'),null;}['hasItem'](a){const m=a45i,b=this[m(0x173)][m(0x167)](a[m(0x172)]()),c=[...this[m(0x173)]['keys']()];return this['logger']['write'](m(0x17b)+a+m(0x171)+c['join'](',\x20')+m(0x170)+b+'.'),b;}[a45i(0x16a)](a){const n=a45i,b=this[n(0x173)][n(0x165)](a[n(0x172)]())||null;return b?this['logger']['write'](n(0x169)+a+'.'):this[n(0x15e)][n(0x166)]('Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'+a+n(0x15b)),b;}[a45i(0x16c)](){const o=a45i,a=[...this[o(0x173)][o(0x183)]()],b=a[o(0x174)](c=>capitalCase(c));return this[o(0x15e)][o(0x166)](o(0x168)+b[o(0x175)](',\x20')+'.'),a;}[a45i(0x15f)](){const p=a45i;let a=0x0;for(const b of this[p(0x173)][p(0x16b)]()){a+=b['weight'];}return a;}[a45i(0x185)](){const q=a45i;return[...this['items'][q(0x16b)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0x116))/0x1*(-parseInt(f(0x11b))/0x2)+-parseInt(f(0x119))/0x3+-parseInt(f(0x106))/0x4*(parseInt(f(0x114))/0x5)+parseInt(f(0x10c))/0x6*(-parseInt(f(0x121))/0x7)+-parseInt(f(0x118))/0x8*(parseInt(f(0x111))/0x9)+-parseInt(f(0x115))/0xa+parseInt(f(0x120))/0xb*(parseInt(f(0x10b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x1e22d));function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x106;var f=c[d];return f;},a46d(a,b);}var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0x11c)]()['search'](h(0x107))[h(0x11c)]()[h(0x108)](a46a)[h(0x10e)](h(0x107));});a46a();import{v4 as a46e}from'uuid';function a46c(){var l=['texture','11SoDLMF','13349lYwuDi','628268nINvea','(((.+)+)+)+$','constructor','name','apply','6859884QWkMSB','282knmlAV','uuid','search','weight','category','222759TeaJbP','color','You\x20use\x20the\x20','5QDsHAh','169480cIjnCt','12657KmUiJC','rating','40LlAfZk','68550zSAaaR','description','6GPXtGD','toString','size','shape'];a46c=function(){return l;};return a46c();}import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a46i(0x10d)];[a46i(0x109)];['description'];[a46i(0x11d)];['category'];[a46i(0x11e)];[a46i(0x112)];['texture'];[a46i(0x117)];[a46i(0x10f)];constructor(a){var j=a46i;super(),this['name']=a['name'],this[j(0x11a)]=a['description'],this['size']=a[j(0x11d)],this[j(0x110)]=a[j(0x110)],this[j(0x11e)]=a['shape'],this['color']=a['color'],this[j(0x11f)]=a[j(0x11f)],this[j(0x117)]=a[j(0x117)],this['weight']=a[j(0x10f)],this[j(0x10d)]=a46e();}['use'](){var k=a46i;return k(0x113)+this[k(0x109)]+'.\x20Nothing\x20special\x20happens.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a47c(){const o=['_name','toString','10zPcSAn','name','constructor','length','apply','27bubaCk','2720560SiAZNn','scene','2641828ECKJnf','search','6bBwhSl','_dialogue','416179meSJgk','3246905QEHFsX','(((.+)+)+)+$','442641YRNRDc','floor','16615710dKYRyX','rooms','autonomousMove','1423528XKlGKl'];a47c=function(){return o;};return a47c();}const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x1f1))/0x1+parseInt(f(0x1fc))/0x2*(-parseInt(f(0x1f4))/0x3)+-parseInt(f(0x1eb))/0x4+-parseInt(f(0x1f2))/0x5*(-parseInt(f(0x1ef))/0x6)+-parseInt(f(0x1ed))/0x7+-parseInt(f(0x1f9))/0x8*(parseInt(f(0x1ea))/0x9)+parseInt(f(0x1f6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x612cd));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x1fb)]()[h(0x1ee)](h(0x1f3))[h(0x1fb)]()[h(0x1fe)](a47a)[h(0x1ee)](h(0x1f3));});a47a();import{Player}from'./player.js';function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a47d(a,b);}import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a47i(0x1fa)];[a47i(0x1f0)];[a47i(0x1f7)];[a47i(0x1ec)];constructor(a,b,c,d){const j=a47i;super(d),this['_name']=a,this['_dialogue']=b,this[j(0x1f7)]=c;}get[a47i(0x1fd)](){const k=a47i;return this[k(0x1fa)];}['speak'](){const l=a47i;return this[l(0x1f0)][Math[l(0x1f5)](Math['random']()*this['_dialogue'][l(0x1e8)])];}[a47i(0x1f8)](a){const m=a47i,b=a[Math[m(0x1f5)](Math['random']()*a[m(0x1e8)])];this['moveTo'](b[m(0x1fd)]);}['moveTo'](a){const n=a47i,b={'actor':this,'rooms':this[n(0x1f7)],'scene':this[n(0x1ec)]},c=new GoCommand(b);c['execute']([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a48c(){const
|
|
1
|
+
const a48i=a48d;function a48c(){const C=['You\x20can\x27t\x20equip\x20','playerName','body\x20armor','387QiXcmF','getWeight','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','getInstance','equipment','Hat','ArmArmor','8vPeXJM','logger','weight','_maxCarryingWeight','feet','head','(((.+)+)+)+$','2lEhdzj','category','Added\x20','search','bind','addItem','initialEquipment','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','legarmor','addInventory','hat','removeInventory','Max\x20carrying\x20weight\x20must\x20be\x20positive.','hasItem','\x20says:\x20\x22','_playerName','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','currentLocation','Weapon','hear','6176933bkYChK','\x20from\x20player\x27s\x20inventory.','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','values','Shield','canEquip','1173099FxdsoQ','gloves','Helmet','startLocation','leftHand','1453705RIVbOF','463624RFwHlo','\x20is\x20now\x20listening\x20in\x20room\x20','determineEquipmentSlot','Gloves','You\x20equipped\x20','_inventory','removeItem','name','toString','382810rapgBo','.\x20You\x20must\x20unequip\x20it\x20first.','off','\x20in\x20your\x20inventory.','\x20to\x20player\x27s\x20inventory.','rightHand','_currentLocation','A\x20featureless\x20room','5515037zVjuzq','Boots','leaveRoom','constructor','toLowerCase','currentWeight','maxCarryingWeight','legs','Failed\x20to\x20remove\x20','\x20is\x20no\x20longer\x20listeng\x20in\x20','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','arms','speak','inventory','error','_equipment','96jrMKBG','torso','armarmor','7750224jbRWTU','apply','8nNAGIf','leg\x20armor','inventoryItems','You\x20don\x27t\x20have\x20','write','equip','BodyArmor','enterRoom','Nexus','weapon','helmet','Removed\x20'];a48c=function(){return C;};return a48c();}(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0x112))/0x1*(parseInt(f(0xf2))/0x2)+-parseInt(f(0x10c))/0x3+-parseInt(f(0x138))/0x4*(-parseInt(f(0x111))/0x5)+-parseInt(f(0x136))/0x6+-parseInt(f(0x106))/0x7*(parseInt(f(0x14e))/0x8)+-parseInt(f(0x147))/0x9*(parseInt(f(0x11b))/0xa)+parseInt(f(0x123))/0xb*(parseInt(f(0x133))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xce403));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x11a)]()['search']('(((.+)+)+)+$')['toString']()[h(0x126)](a48a)[h(0xf5)](h(0xf1));});function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0xed;let f=c[d];return f;},a48d(a,b);}a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a48i(0x101)];[a48i(0x121)];['_inventory'];[a48i(0x132)];[a48i(0xee)]=0x32;[a48i(0x14f)];constructor(a){const j=a48i;super(),this[j(0x101)]=a[j(0x145)],this[j(0x121)]=a[j(0x10f)]||new Room({'name':j(0x140),'description':j(0x122)}),this['_inventory']=new Inventory(),this[j(0x14f)]=Logger[j(0x14a)]();if(a?.['inventoryItems'])for(const b of a[j(0x13a)]){this[j(0x117)]['addItem'](b);}this['_equipment']=a?.[j(0xf8)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get['name'](){const k=a48i;return this[k(0x101)];}get[a48i(0x103)](){const l=a48i;return this[l(0x121)];}set[a48i(0x103)](a){const m=a48i;this[m(0x121)]!==a&&(this[m(0x125)](),this[m(0x13f)](a)),this['_currentLocation']=a;}get[a48i(0x130)](){const n=a48i;return this[n(0x117)];}get['equipment'](){const o=a48i;return this[o(0x132)];}set['equipment'](a){this['_equipment']=a;}get[a48i(0x129)](){const p=a48i;return this[p(0xee)];}set[a48i(0x129)](a){const q=a48i;a>0x0?this[q(0xee)]=a:console[q(0x131)](q(0xfe));}get[a48i(0x128)](){const r=a48i;let a=this[r(0x117)][r(0x148)]();for(const b in this[r(0x132)]){const c=this[r(0x132)][b];c&&(a+=c[r(0xed)]);}return a;}[a48i(0xfb)](a){const s=a48i;if(this[s(0x128)]+a[s(0xed)]>this['maxCarryingWeight']){this[s(0x14f)][s(0x13c)](s(0x102));throw new Error(s(0xf9));}this[s(0x117)][s(0xf7)](a),this['logger']['write'](s(0xf4)+a['name']+s(0x11f));}[a48i(0xfd)](a){const t=a48i;if(this[t(0x117)][t(0x118)](a[t(0x119)]))return this[t(0x14f)][t(0x13c)](t(0x143)+a[t(0x119)]+t(0x107)),!![];return this[t(0x14f)][t(0x13c)](t(0x12b)+a[t(0x119)]+t(0x107)),![];}[a48i(0x13d)](a){const u=a48i;if(!this['_inventory'][u(0xff)](a[u(0x119)]))return u(0x13b)+a[u(0x119)]+u(0x11e);if(!this['canEquip'](a))return u(0x144)+a[u(0x119)]+'.';const b=this['determineEquipmentSlot'](a[u(0xf3)]);if(!b)return a['name']+u(0x108);if(this[u(0x14b)][b])return u(0x149)+b+u(0x11c);return this[u(0x14b)][b]=a,this[u(0xfd)](a),u(0x116)+a[u(0x119)]+'.';}['unequip'](a){const v=a48i;let b=a;if(!this['equipment'][camelCase(b)]){b=this[v(0x114)](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this['unequipBySlot'](b);}['determineEquipmentSlot'](a){const w=a48i;switch(a[w(0x127)]()){case Category[w(0x104)][w(0x127)]():return w(0x120);case Category[w(0x10a)][w(0x127)]():return w(0x110);case Category[w(0x115)][w(0x127)]():return'gloves';case Category[w(0x10e)]['toLowerCase']():case Category[w(0x14c)][w(0x127)]():return w(0xf0);case Category[w(0x124)][w(0x127)]():return'feet';case Category['LegArmor']['toLowerCase']():return w(0x12a);case Category[w(0x14d)][w(0x127)]():return'arms';case Category[w(0x13e)][w(0x127)]():return w(0x134);case w(0x141):return w(0x120);case'shield':return'leftHand';case w(0x10d):return w(0x10d);case w(0x142):case w(0xfc):return w(0xf0);case'boots':return w(0xef);case w(0x139):case w(0xfa):return'legs';case'arm\x20armor':case w(0x135):return w(0x12e);case w(0x146):case'bodyarmor':case w(0x134):return w(0x134);default:return null;}}[a48i(0x10b)](a){const x=a48i;return Object[x(0x109)](Category)['includes'](a['category']);}['unequipBySlot'](a){const y=a48i,b=this[y(0x14b)][a];if(!b)return y(0x12d)+a+'\x20slot.';return this['addInventory'](b),this[y(0x14b)][a]=null,'You\x20unequipped\x20'+b[y(0x119)]+'.';}[a48i(0x105)](a,b){const z=a48i;a!==this&&this[z(0x14f)]['log'](a[z(0x119)]+z(0x100)+b+'\x22');}[a48i(0x13f)](a){const A=a48i;this[A(0x121)]=a,a['on'](A(0x12f),this[A(0x105)]['bind'](this)),this[A(0x14f)][A(0x13c)](this[A(0x119)]+A(0x113)+a[A(0x119)]);}['leaveRoom'](){const B=a48i;this[B(0x121)]&&(this[B(0x121)][B(0x11d)](B(0x12f),this[B(0x105)][B(0xf6)](this)),this['logger']['write'](this[B(0x119)]+B(0x12c)+this[B(0x121)]['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d
|
|
1
|
+
function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1a4;var f=c[d];return f;},a49d(a,b);}var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x1a7))/0x1+-parseInt(f(0x1bc))/0x2+parseInt(f(0x1b3))/0x3+parseInt(f(0x1c2))/0x4*(-parseInt(f(0x1b4))/0x5)+-parseInt(f(0x1bd))/0x6+-parseInt(f(0x1a6))/0x7+parseInt(f(0x1b2))/0x8*(parseInt(f(0x1b8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x7b885));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a['toString']()[h(0x1b7)](h(0x1ba))[h(0x1a4)]()['constructor'](a49a)['search'](h(0x1ba));});a49a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a49i(0x1ab)]=Logger[a49i(0x1b9)]();[a49i(0x1b1)]=![];['requiredItem'];[a49i(0x1ad)];[a49i(0x1b0)];[a49i(0x1b6)];[a49i(0x1b5)];[a49i(0x1bf)];constructor(a){var j=a49i;super(),this[j(0x1c0)]=a[j(0x1c0)],this[j(0x1ad)]=a['requiredPhrase'],this[j(0x1b0)]=a[j(0x1b0)],this[j(0x1b6)]=a[j(0x1b6)],this['successMessage']=a[j(0x1b5)]||j(0x1a9),this[j(0x1bf)]=a['failureMessage']||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}[a49i(0x1ac)](a){var k=a49i;if(this[k(0x1c0)])return a[k(0x1a5)](this[k(0x1c0)]);return![];}[a49i(0x1a8)](a){var l=a49i;return this[l(0x1ad)]===a;}[a49i(0x1ae)](a,b){var m=a49i;if(this[m(0x1b1)])return this[m(0x1ab)]['write'](m(0x1af)),{'success':![],'message':m(0x1aa)};return this[m(0x1ac)](b)||this[m(0x1a8)](a)?(this[m(0x1b1)]=!![],this[m(0x1ab)][m(0x1bb)]('Puzzle:\x20Correct\x20solution\x20provided.'),{'success':!![],'message':this[m(0x1b5)]}):(this[m(0x1ab)][m(0x1bb)](m(0x1c1)),{'success':![],'message':this[m(0x1bf)]});}}function a49c(){var n=['solved','3291592dBbltP','2706144JVMrzD','10dhEKOU','successMessage','rewardItem','search','27FEMMHN','getInstance','(((.+)+)+)+$','write','95522FFQdDM','1608054HlVgpD','apply','failureMessage','requiredItem','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','1717756Lobtiq','toString','hasItem','682668oXVBfO','358234npppzf','matchesRequiredPhrase','You\x20solved\x20the\x20puzzle!','You\x20have\x20already\x20solved\x20this\x20puzzle.','logger','hasRequiredItem','requiredPhrase','solve','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','riddle'];a49c=function(){return n;};return a49c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=-parseInt(f(0x10a))/0x1*(parseInt(f(0xf9))/0x2)+parseInt(f(0x122))/0x3+parseInt(f(0xec))/0x4*(-parseInt(f(0x11b))/0x5)+parseInt(f(0xef))/0x6*(parseInt(f(0xed))/0x7)+-parseInt(f(0x103))/0x8+parseInt(f(0x105))/0x9*(-parseInt(f(0xf8))/0xa)+parseInt(f(0x10b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xee2ec));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0xf6)]()[h(0xeb)](h(0x106))['toString']()[h(0x125)](a50a)[h(0xeb)]('(((.+)+)+)+$');});a50a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xea;let f=c[d];return f;},a50d(a,b);}function a50c(){const u=['Item\x20added\x20to\x20room\x20','hasItem','8747896yxliBH','say','32823DETHPx','(((.+)+)+)+$','attemptUnlock','Puzzle\x20set\x20for\x20room\x20','checkIfLocked','5686SRgzOY','21869254uoSfUN','speak','findExistingDoor','east','exits','inventory','down','get','isStartRoom','Checking\x20if\x20exit\x20in\x20direction\x20','set','\x20remains\x20locked.','\x20unlocked!','puzzle','logger','attemptUnlockExit','526075OxjGVA','roomType','name','addItem','apply','The\x20','west','5612403VPRoBU','Room\x20created:\x20','No\x20locked\x20exit\x20found\x20in\x20direction\x20','constructor','north','emit','Invalid\x20direction:\x20','search','60tvyMil','13300tYbTfh','write','5154knFzLR','removeItem','riddle','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','WEST','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','.\x20Success:\x20','toString','description','2670RwPhwd','306eblyzI','roomB','NORTH','Item\x20removed\x20from\x20room\x20','values','getInstance','getOppositeDirection','south'];a50c=function(){return u;};return a50c();}import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{['logger']=Logger[a50i(0xfe)]();[a50i(0x11d)];[a50i(0xf7)];[a50i(0x10f)]=new Map();['roomType'];[a50i(0x113)];[a50i(0x110)]=new Inventory();constructor(a){const j=a50i;super(),this['name']=a[j(0x11d)],this['description']=a[j(0xf7)],this[j(0x11c)]=a[j(0x11c)]||RoomType['INSIDE'],a[j(0x10f)]&&(this[j(0x10f)]=a['exits']||new Map()),a[j(0x110)]&&(this[j(0x110)]=a[j(0x110)]),a['puzzle']&&(this['puzzle']=a[j(0x118)]),this['isStartRoom']=a[j(0x113)]||![],this[j(0x119)][j(0xee)](j(0x123)+this[j(0x11d)]);}[a50i(0x104)](a,b){const k=a50i;this[k(0x127)](k(0x10c),a,b);}['addExit'](a,b,c){const l=a50i;let d=this[l(0x10d)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x10f)][l(0x115)](a,d),b[l(0x10f)]['set'](this[l(0xff)](a),d);}[a50i(0x11a)](a,b){const m=a50i,c=this[m(0x10f)][m(0x112)](a);if(c instanceof Door){const d=c[m(0x107)](b);return this[m(0x119)][m(0xee)](m(0xf2)+a+m(0xf5)+d),d?m(0x120)+c['name']+m(0x117):m(0x120)+c[m(0x11d)]+m(0x116);}return this['logger'][m(0xee)](m(0x124)+a),'There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.';}['getExit'](a){const n=a50i;return this['logger']['write']('Fetching\x20exit\x20in\x20direction:\x20'+a),this[n(0x10f)][n(0x112)](a);}['isExitLocked'](a){const o=a50i,b=this[o(0x10f)][o(0x112)](a),c=b instanceof Door&&b[o(0x109)]();return this[o(0x119)]['write'](o(0x114)+a+'\x20is\x20locked.\x20Result:\x20'+c),c;}['addItem'](a){const p=a50i;this[p(0x110)][p(0x11e)](a),this['logger'][p(0xee)](p(0x101)+this[p(0x11d)]+':\x20'+a[p(0x11d)]);}[a50i(0xf0)](a){const q=a50i;this[q(0x110)][q(0x102)](a[q(0x11d)])?(this['inventory']['removeItem'](a['name']),this[q(0x119)][q(0xee)](q(0xfc)+this[q(0x11d)]+':\x20'+a[q(0x11d)])):this['logger'][q(0xee)](q(0xf4)+this[q(0x11d)]+':\x20'+a[q(0x11d)]);}['setPuzzle'](a){const r=a50i;this[r(0x118)]=a,this[r(0x119)][r(0xee)](r(0x108)+this[r(0x11d)]+':\x20'+a[r(0xf1)]);}[a50i(0xff)](a){const s=a50i;switch(a){case s(0x126):return Direction['SOUTH'];case s(0x100):return Direction[s(0xfb)];case s(0x10e):return Direction[s(0xf3)];case s(0x121):return Direction['EAST'];case'up':return Direction['DOWN'];case s(0x111):return Direction['UP'];default:throw new Error(s(0xea)+a);}}['findExistingDoor'](a){const t=a50i;for(const b of this['exits'][t(0xfd)]()){if(b instanceof Door){if(b['roomA']===this&&b[t(0xfa)]===a||b[t(0xfa)]===this&&b['roomA']===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51k=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d
|
|
1
|
+
const a51k=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=parseInt(i(0xc2))/0x1*(-parseInt(i(0x92))/0x2)+-parseInt(i(0xc0))/0x3*(-parseInt(i(0x9a))/0x4)+parseInt(i(0xa3))/0x5*(parseInt(i(0xb1))/0x6)+-parseInt(i(0x9d))/0x7+-parseInt(i(0x8c))/0x8+-parseInt(i(0x89))/0x9+parseInt(i(0xaa))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x4daa1));function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x83;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 j=a51d;return a51a['toString']()['search'](j(0xa9))[j(0xcc)]()[j(0xa4)](a51a)[j(0xb9)](j(0xa9));});a51a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';function a51c(){const C=['push','getPlayer','name','direction','isStartRoom','determineStartRoom','warn','search','getCharacterLocation','write','Failed\x20to\x20add\x20item\x20','join','getActor','exits','6mwbVko','addRoom','1rhXydy','\x27s\x20location.\x20Room\x20','.\x20Room\x20','characterLocations','createExitsFromConfig','\x20not\x20found\x20in\x20scene.','actors','logger','Added\x20item\x20','initialize','toString','generateRoomsFromConfig','Room\x20\x22','Actor\x20with\x20name\x20','connectRooms','roomFactory','\x20to\x20room\x20','roomConfiguration','setPuzzle','addItem','690849ISJiVh','\x20already\x20exists\x20in\x20the\x20scene.','Scene\x20initialized\x20with\x20rooms:\x20','2456bQDiQG','addPuzzleToRoom','setCharacterLocation','addExit','length','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','1190906HWUtis','Added\x20room\x20to\x20scene:\x20','set','Added\x20puzzle\x20to\x20room\x20','getInstance','delete','createRoom','addActor','499036IEjVGN','Failed\x20to\x20set\x20','getRooms','1256234dGomLG','has','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','Failed\x20to\x20add\x20puzzle.\x20Room\x20','targetRoom','Removed\x20room\x20from\x20scene:\x20','5EOWMuJ','constructor','allActors','\x22\x20does\x20not\x20exist.','rooms','get','(((.+)+)+)+$','6591160BLdbDm','No\x20actor\x20with\x20name\x20','currentLocation','\x20is\x20now\x20in\x20room\x20','keys','removeActor','player','1568772EAwetb'];a51c=function(){return C;};return a51c();}import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a51k(0xa7)];[a51k(0xb0)];[a51k(0xc9)];[a51k(0xc8)];[a51k(0xc5)]=new Map();[a51k(0x84)];constructor(a){const l=a51k;super(),this[l(0x84)]=new RoomFactory(),this['player']=a['player'],this[l(0xa7)]=this[l(0xcd)](a[l(0x86)]),this[l(0xc9)]=Logger[l(0x96)](),this[l(0xc8)]=new Map(),this[l(0xc6)](a[l(0x86)]),this[l(0xc9)][l(0xbb)](l(0x8b)+Object[l(0xae)](this[l(0xa7)])[l(0xbd)](',\x20'));}[a51k(0xcb)](){const m=a51k;this[m(0xb0)][m(0xac)]=this[m(0xb7)]();}['generateRoomsFromConfig'](a){const n=a51k;if(!this[n(0x84)])throw new Error(n(0x9f));const b={};for(const c of a){const d=this['roomFactory'][n(0x98)](c);b[c[n(0xb4)]]=d;}return b;}[a51k(0xc6)](a){const o=a51k;for(const b of a){const c=this['rooms'][b[o(0xb4)]];if(b[o(0xbf)])for(const d of b['exits']){const e=d[o(0xb5)]['toUpperCase'](),f=d[o(0xa1)],g=d['keyRequired'],h=this[o(0xa7)][f];h&&c[o(0x8f)](Direction[e],h,g);}}}[a51k(0x99)](a){const p=a51k;if(this[p(0xc8)][p(0x9e)](a[p(0xb4)]))throw new Error(p(0xcf)+a[p(0xb4)]+p(0x8a));this[p(0xc8)]['set'](a[p(0xb4)],a);}[a51k(0xaf)](a){const q=a51k;if(!this[q(0xc8)][q(0x9e)](a))throw new Error(q(0xab)+a+'\x20found\x20in\x20the\x20scene.');this[q(0xc8)][q(0x97)](a);}[a51k(0xbe)](a){const r=a51k;return this[r(0xc8)][r(0xa8)](a);}get[a51k(0xa5)](){return Array['from'](this['actors']['values']());}[a51k(0xc1)](a){const s=a51k;this[s(0xa7)][a[s(0xb4)]]=a,this[s(0xc9)][s(0xbb)](s(0x93)+a[s(0xb4)]);}['removeRoom'](a){const t=a51k;return this[t(0xa7)][a]?(delete this[t(0xa7)][a],this['logger'][t(0xbb)](t(0xa2)+a),!![]):(this[t(0xc9)][t(0xbb)](t(0x91)+a),![]);}['addItemToRoom'](a,b){const u=a51k,c=this['rooms'][b];c?(c[u(0x88)](a),this[u(0xc9)][u(0xbb)](u(0xca)+a[u(0xb4)]+u(0x85)+c[u(0xb4)])):this[u(0xc9)]['write'](u(0xbc)+a[u(0xb4)]+u(0xc4)+b+u(0xc7));}[a51k(0x8d)](a,b){const v=a51k,c=this[v(0xa7)][b];c?(c[v(0x87)](a),this[v(0xc9)][v(0xbb)](v(0x95)+c[v(0xb4)])):this[v(0xc9)]['write'](v(0xa0)+b+'\x20not\x20found\x20in\x20scene.');}[a51k(0x8e)](a,b){const w=a51k,c=this['rooms'][b];c?(this['characterLocations'][w(0x94)](a['name'],c),this[w(0xc9)]['write'](a[w(0xb4)]+w(0xad)+c[w(0xb4)])):this[w(0xc9)][w(0xbb)](w(0x9b)+a[w(0xb4)]+w(0xc3)+b+w(0xc7));}[a51k(0xba)](a){const x=a51k;return this[x(0xc5)][x(0xa8)](a[x(0xb4)]);}[a51k(0xb7)](){const y=a51k,a=[];for(const c in this[y(0xa7)]){if(this[y(0xa7)]['hasOwnProperty'](c)){const d=this['rooms'][c];d[y(0xb6)]&&a[y(0xb2)](d);}}if(a[y(0x90)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a[y(0x90)]===0x1)return a[0x0];const b=Object['keys'](this[y(0xa7)]);if(b[y(0x90)]===0x0)throw new Error('No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.');return console[y(0xb8)]('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this[y(0xa7)][b[0x0]];}[a51k(0xb3)](){const z=a51k;return this[z(0xb0)];}[a51k(0x9c)](){const A=a51k;return this[A(0xa7)];}[a51k(0x83)](a,b,c,d){const B=a51k,e=this[B(0xa7)][a],f=this[B(0xa7)][c];if(!e)throw new Error(B(0xce)+a+B(0xa6));if(!f)throw new Error(B(0xce)+c+B(0xa6));e[B(0x8f)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52j=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
var a52j=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x1a7))/0x1*(-parseInt(f(0x1bd))/0x2)+parseInt(f(0x1b6))/0x3+-parseInt(f(0x1a6))/0x4+-parseInt(f(0x1bf))/0x5*(-parseInt(f(0x1ad))/0x6)+-parseInt(f(0x19f))/0x7+-parseInt(f(0x1b1))/0x8*(parseInt(f(0x1b2))/0x9)+parseInt(f(0x198))/0xa*(parseInt(f(0x1a4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xf1f52));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x190)]()[h(0x195)](h(0x1b7))['toString']()[h(0x193)](a52a)['search'](h(0x1b7));});a52a();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 i=a52d;super({'name':a,'description':b,'size':Size[i(0x19a)],'category':Category[i(0x1b8)],'shape':Shape[i(0x1be)],'color':Color['Yellow'],'texture':Texture['Smooth'],'rating':Rating[i(0x1aa)],'weight':0x1});}[a52j(0x18f)](){return this['description'];}}export class Sword extends Item{constructor(a,b){var k=a52j;super({'name':a,'description':b,'size':Size[k(0x19a)],'category':Category[k(0x196)],'shape':Shape['Blade'],'color':Color['Grey'],'texture':Texture[k(0x194)],'rating':Rating[k(0x1aa)],'weight':0x3});}}function a52c(){var C=['A\x20mysterious\x20book.','12oreYSh','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Circle','author','16wEVErV','6748380hgqfsn','Book','Helmet','You\x20hold\x20the\x20','3378627RZCbgX','(((.+)+)+)+$','Unknown','Short\x20Sword','Rare','Gold','Rifle','8XKUAFq','Rectangle','3723545fyLaWD','Holy\x20Grail','Sniper\x20Rifle','use','toString','Small','Blade','constructor','Metallic','search','Weapon','\x20aloft,\x20feeling\x20its\x20immense\x20power.','20pLxoXU','Large','Medium','publishDate','pageCount','Smooth','apply','6997354mkdtKo','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Grey','Cup','13770141xAMrzX','Legendary','7052804SwIIDQ','33558XbeNHl','name','Key','Common','Brown'];a52c=function(){return C;};return a52c();}export class Rifle extends Item{constructor(a,b){var l=a52j;super({'name':a,'description':b,'size':Size[l(0x199)],'category':Category['Weapon'],'shape':Shape[l(0x1bc)],'color':Color[l(0x1ab)],'texture':Texture['Metallic'],'rating':Rating[l(0x1ba)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a52j;super({'name':a,'description':b,'size':Size[m(0x19a)],'category':Category[m(0x1b4)],'shape':Shape['Circle'],'color':Color['Grey'],'texture':Texture[m(0x194)],'rating':Rating['Common'],'weight':0x2});}}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x18e;var f=c[d];return f;},a52d(a,b);}export class BodyArmor extends Item{constructor(a,b){var n=a52j;super({'name':a,'description':b,'size':Size['Large'],'category':Category['BodyArmor'],'shape':Shape[n(0x1be)],'color':Color[n(0x1a2)],'texture':Texture[n(0x194)],'rating':Rating[n(0x1aa)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a52j;super({'name':a,'description':b,'size':Size[o(0x19a)],'category':Category['LegArmor'],'shape':Shape['Rectangle'],'color':Color[o(0x1a2)],'texture':Texture['Metallic'],'rating':Rating[o(0x1aa)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a52j;super({'name':a,'description':b,'size':Size[p(0x19a)],'category':Category['Boots'],'shape':Shape['Circle'],'color':Color[p(0x1ab)],'texture':Texture[p(0x19d)],'rating':Rating[p(0x1aa)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a52j;super({'name':a,'description':b,'size':Size[q(0x191)],'category':Category['Gloves'],'shape':Shape[q(0x1af)],'color':Color[q(0x1ab)],'texture':Texture[q(0x19d)],'rating':Rating[q(0x1aa)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a52j;super({'name':a,'description':b,'size':Size[r(0x19a)],'category':Category['ArmArmor'],'shape':Shape[r(0x1be)],'color':Color[r(0x1a2)],'texture':Texture[r(0x194)],'rating':Rating[r(0x1aa)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a52j;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category[s(0x1a9)],'shape':Shape[s(0x1be)],'color':Color['Yellow'],'texture':Texture['Smooth'],'rating':Rating[s(0x1aa)],'weight':0x0});}[a52j(0x18f)](){return'This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22';}}export class Weapon extends Item{constructor(a,b){var t=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[t(0x196)],'shape':Shape['Blade'],'color':Color[t(0x1a2)],'texture':Texture[t(0x194)],'rating':Rating[t(0x1aa)],'weight':0x3});}[a52j(0x18f)](){var u=a52j;return u(0x1a1);}}export class Book extends Item{[a52j(0x1b0)];['publishDate'];[a52j(0x19c)];constructor(a,b=a52j(0x1ac),c='Unknown\x20Author'){var v=a52j;super({'name':a,'description':b,'size':Size[v(0x19a)],'category':Category[v(0x1b3)],'shape':Shape['Rectangle'],'color':Color[v(0x1ab)],'texture':Texture[v(0x19d)],'rating':Rating[v(0x1aa)],'weight':0x1}),this[v(0x1b0)]=c,this[v(0x19b)]=new Date(),this[v(0x19c)]=0x64;}[a52j(0x18f)](){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 w=a52j;super({'name':w(0x1b9),'description':'A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','size':Size[w(0x19a)],'category':Category[w(0x196)],'shape':Shape[w(0x192)],'color':Color[w(0x1a2)],'texture':Texture['Metallic'],'rating':Rating[w(0x1aa)],'weight':0x3});}[a52j(0x18f)](){var x=a52j;return x(0x1a1);}}export class SniperRifle extends Item{constructor(){var y=a52j;super({'name':y(0x18e),'description':y(0x1a0),'size':Size[y(0x199)],'category':Category[y(0x196)],'shape':Shape[y(0x1bc)],'color':Color[y(0x1ab)],'texture':Texture[y(0x19d)],'rating':Rating[y(0x1aa)],'weight':0x5});}[a52j(0x18f)](){var z=a52j;return z(0x1ae);}}export class HolyGrail extends Item{constructor(){var A=a52j;super({'name':A(0x1c0),'description':'A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','size':Size[A(0x191)],'category':Category[A(0x1a3)],'shape':Shape['Circle'],'color':Color[A(0x1bb)],'texture':Texture[A(0x194)],'rating':Rating[A(0x1a5)],'weight':0x1});}[a52j(0x18f)](){var B=a52j;return B(0x1b5)+this[B(0x1a8)]+B(0x197);}}
|