@maka/maka-cli 4.7.21 → 4.7.22
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/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/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 +3 -2
- 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
|
-
|
|
1
|
+
const a36j=a36d;(function(a,b){const g=a36d,c=a();while(!![]){try{const d=-parseInt(g(0x99))/0x1+parseInt(g(0xad))/0x2*(parseInt(g(0xa9))/0x3)+parseInt(g(0x94))/0x4+parseInt(g(0xac))/0x5*(parseInt(g(0xa5))/0x6)+parseInt(g(0xae))/0x7*(-parseInt(g(0xb4))/0x8)+parseInt(g(0x97))/0x9*(parseInt(g(0xb7))/0xa)+-parseInt(g(0xb0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x8187e));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a36d;if(c){const e=c[h(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const i=a36d;return a36a[i(0x9a)]()['search'](i(0x9f))[i(0x9a)]()[i(0xa0)](a36a)[i(0xaf)](i(0x9f));});a36a();function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x93;let f=c[d];return f;},a36d(a,b);}function a36c(){const m=['actor','\x20says\x20to\x20','6OjCEvd','apply','execute','1085bQIuAQ','299990fCGjjI','12082MKoCXE','search','11047597dnBVcL','currentLocation','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','name','472pPaXZR','join','verb','8822270ZMVYYM','An\x20error\x20occurred.','context','1309324MXAmRu','logger','scene','9POBpdM',':\x20\x22','278836fHoCkB','toString','allActors','You\x20say:\x20\x22','length','description','(((.+)+)+)+$','constructor','say','What\x20do\x20you\x20want\x20to\x20say?','Scene\x20is\x20missing\x20from\x20context.','log','11226jWnlXR','filter'];a36c=function(){return m;};return a36c();}import{Command}from'./command.js';export class SayCommand extends Command{static [a36j(0xb6)]=a36j(0xa1);static [a36j(0x9e)]=a36j(0xb2);[a36j(0x93)];constructor(a){const k=a36j;super(a),this[k(0x93)]=a;}[a36j(0xab)](a){const l=a36j;if(a[l(0x9d)]===0x0)return l(0xa2);const b=a[l(0xb5)]('\x20'),c=this[l(0xa7)],d=this[l(0x93)][l(0x96)];if(!d)return this[l(0x95)][l(0xa4)](l(0xa3)),l(0xb8);const e=d[l(0x9b)][l(0xa6)](f=>f[l(0xb1)]===c[l(0xb1)]);for(const f of e){this[l(0x95)][l(0xa4)](c[l(0xb3)]+l(0xa8)+f['name']+l(0x98)+b+'\x22'),this['actor'][l(0xb1)][l(0xa1)](f,b);}return l(0x9c)+b+'\x22';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d
|
|
1
|
+
function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x13e;let f=c[d];return f;},a37d(a,b);}const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x156))/0x1*(parseInt(f(0x152))/0x2)+parseInt(f(0x155))/0x3*(parseInt(f(0x148))/0x4)+parseInt(f(0x14c))/0x5+-parseInt(f(0x145))/0x6+parseInt(f(0x13e))/0x7*(parseInt(f(0x143))/0x8)+-parseInt(f(0x14b))/0x9*(parseInt(f(0x14f))/0xa)+parseInt(f(0x141))/0xb*(parseInt(f(0x150))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xdb7bc));function a37c(){const k=['77tjsmgf','currentLocation','1953512SOpcgD','verb','6520896UnMews','actor','(((.+)+)+)+$','31412mPsuQL','description','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','1368rTIXzm','1496285JwCCLg','You\x20search\x20the\x20area\x20and\x20find:\x20','\x20found\x20the\x20following\x20items:\x20','94810IYzjNw','1822488SAbJxb','search','6mUCKcv','write','toString','411kgxpfh','248169lNxwKl','SearchCommand:\x20','apply','listItems','Search\x20for\x20items\x20in\x20your\x20area','7aidEfi','name','logger'];a37c=function(){return k;};return a37c();}const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x158)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x154)]()['search'](h(0x147))[h(0x154)]()['constructor'](a37a)[h(0x151)](h(0x147));});a37a();import{Command}from'./command.js';export class SearchCommand extends Command{static [a37i(0x144)]=a37i(0x151);static [a37i(0x149)]=a37i(0x15a);['execute'](){const j=a37i,a=this[j(0x146)][j(0x142)]['inventory'][j(0x159)]();if(a['length']===0x0)return this['logger'][j(0x153)](j(0x157)+this[j(0x146)][j(0x13f)]+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),j(0x14a);const b=a['join'](',\x20');return this[j(0x140)][j(0x153)](j(0x157)+this[j(0x146)][j(0x13f)]+j(0x14e)+b),j(0x14d)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d
|
|
1
|
+
const a38i=a38d;function a38c(){const k=['22586364VLOkjV','actor','56490HKUBmf','currentLocation','verb','SolveCommand:\x20','puzzle','695154gdoCCf','3618918xQFzdW','join','inventory','1059505DBpnkD','toString','Attempt\x20to\x20solve\x20a\x20puzzle.','apply','message','(((.+)+)+)+$','logger','solve','88XwEPhh','760821ZrzvqS','search','success','execute','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','toLowerCase','12JXTXjA','3525OrIPUO','rewardItem','write'];a38c=function(){return k;};return a38c();}(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x117))/0x1+-parseInt(f(0x10a))/0x2+parseInt(f(0x11e))/0x3*(-parseInt(f(0x11d))/0x4)+-parseInt(f(0x10e))/0x5+-parseInt(f(0x10b))/0x6+parseInt(f(0x105))/0x7*(-parseInt(f(0x116))/0x8)+parseInt(f(0x121))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x78919));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x10f)]()[h(0x118)](h(0x113))[h(0x10f)]()['constructor'](a38a)[h(0x118)](h(0x113));});function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x104;let f=c[d];return f;},a38d(a,b);}a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a38i(0x107)]=a38i(0x115);static ['description']=a38i(0x110);[a38i(0x11a)](a){const j=a38i,b=a[j(0x10c)]('\x20')[j(0x11c)](),c=this[j(0x104)][j(0x106)];if(!c||!c[j(0x109)])return this[j(0x114)]['write']('SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.'),j(0x11b);const d=c[j(0x109)]['solve'](b,this[j(0x104)][j(0x10d)]);return d[j(0x119)]&&c[j(0x109)][j(0x11f)]&&this[j(0x104)]['inventory']['addItem'](c[j(0x109)]['rewardItem']),this[j(0x114)][j(0x120)](j(0x108)+d[j(0x112)]),d[j(0x112)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x1bd;let f=c[d];return f;},a39d(a,b);}function a39c(){const k=['inventory','Item\x20\x22','addInventory','\x22\x20is\x20too\x20heavy\x20to\x20carry.','130920oqqjZj','202974tQtVPX','You\x20have\x20taken\x20the\x20','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','toLowerCase','toString','Successfully\x20removed\x20\x22','currentLocation','\x22\x20to\x20','\x22\x20not\x20found\x20in\x20','description','\x22\x20not\x20retrieved\x20from\x20','actor','\x20during\x20\x27Take\x27\x20command.','take','The\x20item\x20\x22','8456PwvvSZ','search','2326540mekMXA','constructor','(((.+)+)+)+$','hasItem','\x22\x20in\x20this\x20room.','190539thktIL','300WyTBdi','join','15111288pJMygc','getItem','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','write','Pick\x20up\x20an\x20item.','logger','execute','Successfully\x20added\x20\x22','There\x20is\x20no\x20item\x20\x22','2216tpODwK','name','1174964SUbDPK','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'];a39c=function(){return k;};return a39c();}const a39h=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0x1d4))/0x1+parseInt(f(0x1cf))/0x2+parseInt(f(0x1be))/0x3+-parseInt(f(0x1e2))/0x4+-parseInt(f(0x1d5))/0x5*(-parseInt(f(0x1bd))/0x6)+-parseInt(f(0x1cd))/0x7*(-parseInt(f(0x1e0))/0x8)+-parseInt(f(0x1d7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xadb08));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(0x1c2)]()[g(0x1ce)](g(0x1d1))[g(0x1c2)]()[g(0x1d0)](a39a)[g(0x1ce)](g(0x1d1));});a39a();import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']=a39h(0x1cb);static [a39h(0x1c7)]=a39h(0x1db);[a39h(0x1dd)](a){const i=a39h;return this[i(0x1dc)][i(0x1da)](i(0x1c0)+a[i(0x1d6)]('\x20')),this[i(0x1cb)](a);}[a39h(0x1cb)](a){const j=a39h,b=a[j(0x1d6)]('\x20')[j(0x1c1)](),c=this[j(0x1c9)][j(0x1c4)];if(!c[j(0x1e4)][j(0x1d2)](b))return this['logger']['write'](j(0x1e5)+b+j(0x1c6)+c['name']+j(0x1ca)),j(0x1df)+b+'\x22\x20in\x20this\x20room.';const d=c['inventory'][j(0x1d8)](b);if(!d)return this['logger']['write'](j(0x1e5)+b+j(0x1c8)+c[j(0x1e1)]+j(0x1e3)),'There\x20is\x20no\x20item\x20\x22'+b+j(0x1d3);try{return this[j(0x1c9)][j(0x1e6)](d),this[j(0x1dc)][j(0x1da)](j(0x1de)+b+j(0x1c5)+this[j(0x1c9)]['name']+j(0x1d9)),c[j(0x1e4)]['removeItem'](b),this[j(0x1dc)][j(0x1da)](j(0x1c3)+b+'\x22\x20from\x20'+c[j(0x1e1)]+j(0x1e3)),j(0x1bf)+b+'.';}catch(e){return this['logger'][j(0x1da)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e['message']),j(0x1cc)+b+j(0x1e7);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x123))/0x1+-parseInt(f(0x12a))/0x2*(parseInt(f(0x130))/0x3)+-parseInt(f(0x12e))/0x4*(-parseInt(f(0x132))/0x5)+-parseInt(f(0x131))/0x6*(parseInt(f(0x124))/0x7)+parseInt(f(0x127))/0x8+parseInt(f(0x126))/0x9*(-parseInt(f(0x134))/0xa)+parseInt(f(0x12f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x95e0c));function a40c(){const k=['18JMXlgn','2431944uzqbCb','unequip','unqeuip','49666WlsEgA','description','UnequipCommand:\x20','(((.+)+)+)+$','217292EbMvUn','24779128LDKtVp','33AQQSCy','12rUeNht','5mhgoBq','apply','3327940LpKUnK','toString','actor','search','toLowerCase','logger','name','join','\x20unqeuiped\x20','4283RQXlcj','3689105CtyaZA','write'];a40c=function(){return k;};return a40c();}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x135)]()['search']('(((.+)+)+)+$')[h(0x135)]()['constructor'](a40a)[h(0x137)](h(0x12d));});function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x11e;let f=c[d];return f;},a40d(a,b);}a40a();import{Command}from'./command.js';export class UnequipCommand extends Command{static ['verb']=a40i(0x129);static [a40i(0x12b)]='Unequip\x20an\x20item.';['execute'](a){const j=a40i,b=a[j(0x121)]('\x20')[j(0x11e)](),c=this[j(0x136)][j(0x128)](b);return this[j(0x11f)][j(0x125)](j(0x12c)+this['actor'][j(0x120)]+j(0x122)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41k=a41d;
|
|
1
|
+
const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=parseInt(h(0x7f))/0x1+parseInt(h(0x84))/0x2+parseInt(h(0x7a))/0x3*(parseInt(h(0x6b))/0x4)+-parseInt(h(0x91))/0x5+parseInt(h(0x79))/0x6+-parseInt(h(0x8d))/0x7*(parseInt(h(0x81))/0x8)+parseInt(h(0x74))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x6b988));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a41d;if(c){const e=c[i(0x93)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a['toString']()[j(0x8a)](j(0x7d))[j(0x76)]()[j(0x85)](a41a)[j(0x8a)]('(((.+)+)+)+$');});a41a();function a41c(){const n=['Unlock\x20a\x20door.','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','\x22\x20here.','inventory','search','UnlockCommand:\x20','name','808465pkbkQM','unlock','toLowerCase','.\x20Result:\x20','3140200bXvlcD','exits','apply','11168JLePOr','write','has','unlockItemOrSolution','execute','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','get','actor','currentLocation','1328967cRZhXk','verb','toString','hasItem','logger','4290162ivShWu','48rOMLyG','length','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','(((.+)+)+)+$','There\x27s\x20no\x20door\x20named\x20\x22','672788CTnCZY','error','40KBIzcu','UnlockCommand:\x20No\x20target\x20specified.','getItem','132154UagSjH','constructor'];a41c=function(){return n;};return a41c();}function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x6b;let f=c[d];return f;},a41d(a,b);}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a41k(0x75)]=a41k(0x8e);static ['description']=a41k(0x86);[a41k(0x6f)](a){const l=a41k;return this[l(0x8e)](a);}['unlock'](a){const m=a41k;if(a[m(0x7b)]===0x0)return this[m(0x78)][m(0x80)](m(0x82)),m(0x70);const b=a[0x0][m(0x8f)](),c=this[m(0x72)][m(0x73)];if(this['isValidDirection'](b)&&c[m(0x92)][m(0x6d)](b)){const d=c[m(0x92)][m(0x71)](b);if(d instanceof Door){const e=d[m(0x6e)]?.['toLowerCase']();if(e&&this['actor'][m(0x89)][m(0x77)](e)){const f=this[m(0x72)][m(0x89)][m(0x83)](e);if(f){const g=c['attemptUnlockExit'](b,f[m(0x8c)]);return this[m(0x78)][m(0x6c)](m(0x8b)+this[m(0x72)][m(0x8c)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+m(0x90)+g),g;}}return this['logger'][m(0x6c)](m(0x8b)+this[m(0x72)]['name']+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),m(0x7c);}else return this[m(0x78)]['write'](m(0x8b)+b+m(0x87)+c[m(0x8c)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+m(0x88);}else return this['logger'][m(0x6c)](m(0x8b)+b+m(0x87)+c[m(0x8c)]+'.'),m(0x7e)+b+m(0x88);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42i=a42d;function
|
|
1
|
+
const a42i=a42d;function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xdb;let f=c[d];return f;},a42d(a,b);}(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0xed))/0x1*(parseInt(f(0xe6))/0x2)+-parseInt(f(0xde))/0x3+parseInt(f(0xdc))/0x4*(parseInt(f(0xe0))/0x5)+parseInt(f(0xf4))/0x6*(parseInt(f(0xe2))/0x7)+parseInt(f(0xf1))/0x8+parseInt(f(0xe1))/0x9+-parseInt(f(0xe4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xf13e7));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0xea)]()['search'](h(0xf7))[h(0xea)]()['constructor'](a42a)[h(0xdf)](h(0xf7));});a42a();function a42c(){const l=['\x20doesn\x27t\x20have\x20a\x20use\x20method.','apply','46612VLRMiz','UseCommand:\x20','323943vefrTy','search','435IOOcOs','9410931OCSTMA','553AkazQz','use','5974020UbjuIF','\x20to\x20use.','1244qdBvfG',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','write','function','toString','name','\x27s\x20inventory.','1222PVcSOB','Use\x20an\x20item.','inventory','getItem','2421832KmIHae','You\x20don\x27t\x20have\x20the\x20','verb','6942qwPEaI','actor','toLowerCase','(((.+)+)+)+$','logger','\x20used\x20'];a42c=function(){return l;};return a42c();}import{Command}from'./command.js';export class UseCommand extends Command{static [a42i(0xf3)]=a42i(0xe3);static ['description']=a42i(0xee);['execute'](a){const j=a42i;return this[j(0xe3)](a);}[a42i(0xe3)](a){const k=a42i,b=a['join']('\x20')[k(0xf6)]();if(!this[k(0xf5)]['inventory']['hasItem'](b))return this[k(0xf8)]['write'](k(0xdd)+this[k(0xf5)][k(0xeb)]+'\x20attempted\x20to\x20use\x20'+b+k(0xe7)),k(0xf2)+b+k(0xe5);const c=this[k(0xf5)][k(0xef)][k(0xf0)](b);if(!c)return this[k(0xf8)][k(0xe8)](k(0xdd)+b+'\x20not\x20retrieved\x20from\x20'+this[k(0xf5)][k(0xeb)]+k(0xec)),k(0xf2)+b+'\x20to\x20use.';if(typeof c['use']===k(0xe9)){const d=c[k(0xe3)]();return this[k(0xf8)][k(0xe8)](k(0xdd)+this[k(0xf5)][k(0xeb)]+k(0xf9)+b+'.'),d;}else return this[k(0xf8)]['write'](k(0xdd)+b+k(0xfa)),'You\x20can\x27t\x20use\x20the\x20'+b+'\x20in\x20this\x20way.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d
|
|
1
|
+
function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x17c;let f=c[d];return f;},a43d(a,b);}const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x185))/0x1+-parseInt(f(0x18c))/0x2+parseInt(f(0x184))/0x3+parseInt(f(0x17e))/0x4*(-parseInt(f(0x17c))/0x5)+-parseInt(f(0x180))/0x6+-parseInt(f(0x182))/0x7*(parseInt(f(0x188))/0x8)+parseInt(f(0x18d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xde0a0));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x18b)]()['search'](h(0x186))['toString']()[h(0x17f)](a43a)[h(0x187)](h(0x186));});a43a();function a43c(){const m=['1388112MKBTua','(((.+)+)+)+$','search','8cZaRQO','getAllRegisteredCommands','commandMap','toString','3612752LXiqme','28294371KYEMNF','5aBppxI','apply','1253068nTWboB','constructor','6426072bYewxp','registerCommand','6210659duQdXf','createCommand','1366299OfdNPj'];a43c=function(){return m;};return a43c();}export class CommandFactory{static [a43i(0x18a)]={};static[a43i(0x181)](a,b){const j=a43i;this[j(0x18a)][a]=b;}static[a43i(0x183)](a,b){const k=a43i,c=this[k(0x18a)][a];if(c)return new c(b);return null;}static[a43i(0x189)](){const l=a43i;return this[l(0x18a)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44i=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(0x9f))/0x1*(-parseInt(f(0xaa))/0x2)+parseInt(f(0x8a))/0x3+parseInt(f(0x9e))/0x4+-parseInt(f(0x95))/0x5*(-parseInt(f(0xab))/0x6)+-parseInt(f(0x9b))/0x7*(parseInt(f(0x88))/0x8)+parseInt(f(0x97))/0x9+-parseInt(f(0xac))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x53fb3));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0x8f)]()[h(0x9d)]('(((.+)+)+)+$')[h(0x8f)]()[h(0x89)](a44a)[h(0x9d)](h(0x96));});a44a();function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x86;let f=c[d];return f;},a44d(a,b);}import{Room,Puzzle,Inventory}from'../models/_index.js';function a44c(){const o=['130465mIdQUf','(((.+)+)+)+$','5798853wybCtg','INSIDE','name','sword','10633VYJUIX','createItem','search','1156508QPxyPO','5BNsMLv','items','gauntlets','apply','setPuzzle','bodyarmor','key','boots','rewardItem','createRoom','puzzle','236766MCfbQc','138tQGpwK','19985590sEOiqn','toUpperCase','content','1160CGECUP','constructor','1311909ghauke','createPuzzle','inventory','roomType','description','toString','type','rifle','forEach','gloves','book'];a44c=function(){return o;};return a44c();}import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{[a44i(0xa8)](a){const j=a44i,b=this['convertToRoomConfig'](a),c=new Room(b);if(a[j(0xa0)]){const d=new Inventory();a[j(0xa0)][j(0x92)](e=>{const k=j;d['addItem'](this[k(0x9c)](e));}),c[j(0x8c)]=d;}return a[j(0xa9)]&&c[j(0xa3)](this[j(0x8b)](a[j(0xa9)])),c;}[a44i(0x9c)](a){const l=a44i;switch(a[l(0x90)]){case l(0xa5):return new Key(a[l(0x99)],a[l(0x8e)]);case l(0x94):return new Book(a[l(0x99)],a['description'],a[l(0x87)]);case l(0x9a):return new Sword(a[l(0x99)],a[l(0x8e)]);case l(0x91):return new Rifle(a[l(0x99)],a[l(0x8e)]);case'helmet':return new Helmet(a[l(0x99)],a[l(0x8e)]);case l(0xa4):return new BodyArmor(a[l(0x99)],a[l(0x8e)]);case'legarmor':return new LegArmor(a[l(0x99)],a[l(0x8e)]);case l(0xa6):return new Boots(a[l(0x99)],a[l(0x8e)]);case l(0x93):return new Gloves(a[l(0x99)],a['description']);case l(0xa1):return new Gauntlets(a[l(0x99)],a[l(0x8e)]);default:return new BasicItem(a[l(0x99)],a['description']);}}[a44i(0x8b)](a){const m=a44i,b=this['createItem'](a[m(0xa7)]);return new Puzzle({...a,'rewardItem':b});}['convertToRoomConfig'](a){const n=a44i,b=a[n(0x8d)]&&RoomType[a[n(0x8d)]['toUpperCase']()]?RoomType[a[n(0x8d)][n(0x86)]()]:RoomType[n(0x98)];return{'name':a[n(0x99)],'description':a[n(0x8e)],'isStartRoom':a['isStartRoom'],'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(0x7e))/0x1*(-parseInt(h(0x7f))/0x2)+parseInt(h(0xa2))/0x3*(parseInt(h(0x8b))/0x4)+-parseInt(h(0x80))/0x5+parseInt(h(0xa7))/0x6*(-parseInt(h(0x99))/0x7)+-parseInt(h(0xab))/0x8+-parseInt(h(0x8f))/0x9+parseInt(h(0x81))/0xa*(parseInt(h(0xa8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xb1003));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a45d;if(c){const e=c[i(0x86)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const j=a45d;return a45a['toString']()[j(0x89)](j(0xaa))['toString']()[j(0x85)](a45a)['search']('(((.+)+)+)+$');});a45a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';function a45c(){const s=['initialize','take','6eHjtTk','89221dohkkO','unlock','(((.+)+)+)+$','25952EZUaWc','determineStartRoom','getRooms','lock','1ZBgmEl','526406KpMZVX','818895cFKpiE','1490eGuLNv','-\x20clear:\x20Clear\x20the\x20screen.\x0a','currentRoom','registerCommand','constructor','apply','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','maka','search','equip','241924JiewLQ','look','Welcome,\x20','scene','6429942JmakCd','drop','hasOwnProperty','registerCommands','execute','clear','-\x20quit:\x20Exit\x20the\x20game.\x0a','help','say','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','2020571tqaVyZ','solve','getDescription','name','quit','handleInput','player','instance','slice','21gdGDTc','getWelcomeMessage','use'];a45c=function(){return s;};return a45c();}import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x7e;let f=c[d];return f;},a45d(a,b);}export default class Game{static [a45k(0xa0)];[a45k(0x8e)];[a45k(0x9f)];[a45k(0x83)];['rooms'];constructor(a,b){const l=a45k;this[l(0x9f)]=a,this[l(0x8e)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x8e)][l(0xa5)](),this[l(0x9f)]['currentLocation']=this[l(0xac)](),this[l(0x92)]();}[a45k(0x92)](){const m=a45k;CommandFactory[m(0x84)](m(0x8c),LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory[m(0x84)](m(0xa6),TakeCommand),CommandFactory['registerCommand'](m(0xa4),UseCommand),CommandFactory[m(0x84)](m(0x8a),EquipCommand),CommandFactory[m(0x84)]('unequip',UnequipCommand),CommandFactory[m(0x84)](m(0x9a),SolveCommand),CommandFactory[m(0x84)](m(0x90),DropCommand),CommandFactory[m(0x84)](m(0xa9),UnlockCommand),CommandFactory[m(0x84)](m(0xae),LockCommand),CommandFactory[m(0x84)](m(0x89),SearchCommand),CommandFactory['registerCommand'](m(0x97),SayCommand);}[a45k(0xac)](){const n=a45k;return this[n(0x8e)][n(0xac)]();}[a45k(0xa3)](){const o=a45k;return o(0x8d)+this['player'][o(0x9c)];}static['getInstance'](a,b){const p=a45k;return!Game[p(0xa0)]&&(Game['instance']=new Game(a,b)),Game[p(0xa0)];}[a45k(0x9e)](a){const q=a45k,b=a['trim']()['split']('\x20'),c=b[0x0]['toLowerCase'](),d=b[q(0xa1)](0x1);if(c===q(0x9d))return null;if(c===q(0x88))return q(0x98);if(c===q(0x96))return this['getHelpMessage']();if(c===q(0x94))return'';const e={'actor':this[q(0x9f)],'rooms':this[q(0x8e)][q(0xad)](),'scene':this[q(0x8e)]},f=CommandFactory['createCommand'](c,e);if(f){const g=f[q(0x93)](d);return g;}return q(0x87)+c+'\x22.';}['getHelpMessage'](){const r=a45k,a=CommandFactory['getAllRegisteredCommands']();let b='Available\x20Commands:\x0a';for(const c in a){if(a[r(0x91)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x9b)]()+'\x0a';}}return b+=r(0x82),b+=r(0x95),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a46d,c=a();while(!![]){try{var d
|
|
1
|
+
function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x115;var f=c[d];return f;},a46d(a,b);}(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0x122))/0x1*(parseInt(f(0x120))/0x2)+-parseInt(f(0x117))/0x3*(parseInt(f(0x123))/0x4)+parseInt(f(0x11e))/0x5*(-parseInt(f(0x11d))/0x6)+-parseInt(f(0x124))/0x7+parseInt(f(0x118))/0x8*(-parseInt(f(0x11a))/0x9)+-parseInt(f(0x115))/0xa+parseInt(f(0x11f))/0xb*(parseInt(f(0x119))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x42e3a));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a['toString']()[h(0x116)](h(0x11b))[h(0x125)]()[h(0x121)](a46a)['search'](h(0x11b));});a46a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';function a46c(){var i=['toString','1396910QUlRiP','search','3VKRqGH','184tingiH','84HTYMIk','40842xEfDpR','(((.+)+)+)+$','apply','13674DppWEI','115zjUrpI','1589291ODYYjV','5252IkFEQs','constructor','22JabRip','785008MoaqwI','1308181AHyzAy'];a46c=function(){return i;};return a46c();}export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a47h=a47d;
|
|
1
|
+
var a47h=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=parseInt(f(0x16e))/0x1+-parseInt(f(0x169))/0x2*(-parseInt(f(0x173))/0x3)+-parseInt(f(0x16a))/0x4+parseInt(f(0x178))/0x5*(parseInt(f(0x172))/0x6)+parseInt(f(0x174))/0x7*(-parseInt(f(0x166))/0x8)+parseInt(f(0x15d))/0x9*(parseInt(f(0x16c))/0xa)+parseInt(f(0x15e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xc4bd5));var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var g=a47d;return a47a[g(0x162)]()[g(0x176)](g(0x160))['toString']()[g(0x161)](a47a)[g(0x176)]('(((.+)+)+)+$');});a47a();function a47c(){var n=['96298FDInOd','4671564IrJejz','write','40rDYbkG','logger','98404pHuuht','checkIfLocked','\x20and\x20','roomA','49314QjjrRC','54xxBrJr','28xxtQsH','isLockable','search','Failed\x20to\x20unlock\x20door:\x20','195VbZzGc','Door\x20created\x20between\x20','unlockItemOrSolution','roomB','name','1514610RbFuYg','4055227owPKgW','.\x20Used:\x20','(((.+)+)+)+$','constructor','toString','checkIfLockable','isLocked','attemptUnlock','707416GkMzkV','Door\x20unlocked:\x20','.\x20Is\x20Locked:\x20'];a47c=function(){return n;};return a47c();}function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x159;var f=c[d];return f;},a47d(a,b);}import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];[a47h(0x15b)];[a47h(0x164)];[a47h(0x15a)];['name'];[a47h(0x16d)];[a47h(0x175)];constructor(a){var i=a47h;super(),this[i(0x171)]=a[i(0x171)],this[i(0x15b)]=a['roomB'],this[i(0x164)]=a[i(0x164)]||![],this['unlockItemOrSolution']=a['unlockItemOrSolution'],this[i(0x15c)]=a['name']?capitalCase(a[i(0x15c)]):'To\x20'+a['roomB'][i(0x15c)],this[i(0x16d)]=Logger['getInstance'](),this[i(0x175)]=!!a[i(0x15a)],this[i(0x16d)]['write'](i(0x159)+this['roomA'][i(0x15c)]+i(0x170)+this[i(0x15b)][i(0x15c)]+i(0x168)+this[i(0x164)]);}['getOtherSide'](a){var j=a47h;return this[j(0x171)]===a?this[j(0x15b)]:this[j(0x171)];}[a47h(0x165)](a){var k=a47h;if(this[k(0x164)]&&this['unlockItemOrSolution']&&this[k(0x15a)]===a)return this[k(0x164)]=![],this[k(0x16d)][k(0x16b)](k(0x167)+this[k(0x15c)]+k(0x15f)+a),!![];return this[k(0x16d)][k(0x16b)](k(0x177)+this['name']+k(0x15f)+a),![];}[a47h(0x16f)](){var l=a47h;return this[l(0x164)];}[a47h(0x163)](){var m=a47h;return this[m(0x175)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x17e))/0x1*(parseInt(f(0x1a0))/0x2)+parseInt(f(0x181))/0x3+parseInt(f(0x19e))/0x4*(parseInt(f(0x189))/0x5)+parseInt(f(0x18b))/0x6*(-parseInt(f(0x1a3))/0x7)+parseInt(f(0x1a7))/0x8+-parseInt(f(0x197))/0x9*(-parseInt(f(0x17f))/0xa)+parseInt(f(0x192))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x43da2));function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x17b;let f=c[d];return f;},a48d(a,b);}const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x193)]()['search']('(((.+)+)+)+$')[h(0x193)]()[h(0x183)](a48a)[h(0x1a5)]('(((.+)+)+)+$');});function a48c(){const r=['keys','values','1049532BtTOjk','toString','Checked\x20for\x20item:\x20','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','Listed\x20items\x20in\x20inventory:\x20','2236617rstEov','map','name','addItem','set','toLowerCase','getItem','36172DpLyjV','removeItem','8158AHKKxV','\x20in\x20','getAllItems','40481DGsBKY','has','search','apply','1354352MwpALD','logger','Removed\x20item:\x20','delete','83MuUvzF','20KTVHPb','listItems','349965GxAVwV','Added\x20item:\x20','constructor','write','items','Retrieved\x20details\x20for\x20item:\x20','.\x20Item\x20not\x20found.','.\x20Exists:\x20','95qfJVgS','getWeight','450oQhgFV','\x20to\x20inventory.','join','hasItem','Failed\x20to\x20remove\x20item:\x20'];a48c=function(){return r;};return a48c();}a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48i(0x185)];[a48i(0x17b)];constructor(){const j=a48i;super(),this[j(0x185)]=new Map(),this[j(0x17b)]=Logger['getInstance']();}[a48i(0x19a)](a){const k=a48i;this[k(0x185)][k(0x19b)](a[k(0x199)][k(0x19c)](),a),this['logger'][k(0x184)](k(0x182)+a[k(0x199)]+k(0x18c));}[a48i(0x19f)](a){const l=a48i,b=this[l(0x19d)](a);if(b)return this[l(0x185)][l(0x17d)](a['toLowerCase']()),this[l(0x17b)][l(0x184)](l(0x17c)+a+'\x20from\x20inventory.'),b;return this['logger'][l(0x184)](l(0x18f)+a+l(0x187)),null;}[a48i(0x18e)](a){const m=a48i,b=this[m(0x185)][m(0x1a4)](a[m(0x19c)]()),c=[...this[m(0x185)][m(0x190)]()];return this[m(0x17b)]['write'](m(0x194)+a+m(0x1a1)+c[m(0x18d)](',\x20')+m(0x188)+b+'.'),b;}['getItem'](a){const n=a48i,b=this['items']['get'](a['toLowerCase']())||null;return b?this[n(0x17b)]['write'](n(0x186)+a+'.'):this[n(0x17b)]['write'](n(0x195)+a+'.\x20Item\x20not\x20found.'),b;}[a48i(0x180)](){const o=a48i,a=[...this['items'][o(0x190)]()],b=a[o(0x198)](c=>capitalCase(c));return this[o(0x17b)][o(0x184)](o(0x196)+b[o(0x18d)](',\x20')+'.'),a;}[a48i(0x18a)](){const p=a48i;let a=0x0;for(const b of this[p(0x185)][p(0x191)]()){a+=b['weight'];}return a;}[a48i(0x1a2)](){const q=a48i;return[...this[q(0x185)]['values']()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a49i=a49d;function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xbc;var f=c[d];return f;},a49d(a,b);}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0xbe))/0x1+parseInt(f(0xca))/0x2*(-parseInt(f(0xbc))/0x3)+parseInt(f(0xd2))/0x4*(parseInt(f(0xc9))/0x5)+-parseInt(f(0xc1))/0x6+parseInt(f(0xcf))/0x7+parseInt(f(0xcb))/0x8*(-parseInt(f(0xbf))/0x9)+parseInt(f(0xc0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xd42ca));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0xcc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0xbd)]()[h(0xc3)](h(0xc4))[h(0xbd)]()[h(0xcd)](a49a)[h(0xc3)](h(0xc4));});a49a();import{v4 as a49e}from'uuid';function a49c(){var l=['8091744tHVgsQ','shape','search','(((.+)+)+)+$','texture','category','uuid','description','5049635NBBYbV','2071126PgsBRq','5004568pZmTRg','apply','constructor','You\x20use\x20the\x20','3935729raqeWS','name','use','4rQpBTs','rating','color','size','.\x20Nothing\x20special\x20happens.','3NxhTGr','toString','970768fLAwps','9OnajAX','13358820UPIinf'];a49c=function(){return l;};return a49c();}import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a49i(0xc7)];['name'];[a49i(0xc8)];[a49i(0xd5)];[a49i(0xc6)];['shape'];[a49i(0xd4)];['texture'];[a49i(0xd3)];['weight'];constructor(a){var j=a49i;super(),this[j(0xd0)]=a['name'],this[j(0xc8)]=a[j(0xc8)],this[j(0xd5)]=a['size'],this['category']=a[j(0xc6)],this[j(0xc2)]=a[j(0xc2)],this[j(0xd4)]=a[j(0xd4)],this[j(0xc5)]=a[j(0xc5)],this['rating']=a[j(0xd3)],this['weight']=a['weight'],this[j(0xc7)]=a49e();}[a49i(0xd1)](){var k=a49i;return k(0xce)+this[k(0xd0)]+k(0xd6);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d
|
|
1
|
+
function a50c(){const o=['search','(((.+)+)+)+$','2040988leiKyz','_dialogue','5231160JAlgfn','464625cEfmMh','constructor','speak','938110AnfJDD','_name','60uBunXe','248322xGimZE','8257005fgVMvA','175KpMAaD','toString','1ysPfap','scene','autonomousMove','rooms','random','floor','execute','8730120ggYcxr','name','length','apply'];a50c=function(){return o;};return a50c();}const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=-parseInt(f(0x153))/0x1*(parseInt(f(0x14c))/0x2)+-parseInt(f(0x149))/0x3+-parseInt(f(0x146))/0x4+-parseInt(f(0x15a))/0x5+parseInt(f(0x14f))/0x6*(-parseInt(f(0x151))/0x7)+-parseInt(f(0x148))/0x8+-parseInt(f(0x150))/0x9*(-parseInt(f(0x14e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xe47db));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0x152)]()['search']('(((.+)+)+)+$')['toString']()[h(0x14a)](a50a)[h(0x144)](h(0x145));});a50a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x143;let f=c[d];return f;},a50d(a,b);}export class NPC extends Player{[a50i(0x14d)];[a50i(0x147)];[a50i(0x156)];[a50i(0x154)];constructor(a,b,c,d){const j=a50i;super(d),this[j(0x14d)]=a,this[j(0x147)]=b,this[j(0x156)]=c;}get[a50i(0x15b)](){const k=a50i;return this[k(0x14d)];}[a50i(0x14b)](){const l=a50i;return this[l(0x147)][Math[l(0x158)](Math[l(0x157)]()*this[l(0x147)][l(0x15c)])];}[a50i(0x155)](a){const m=a50i,b=a[Math['floor'](Math['random']()*a[m(0x15c)])];this['moveTo'](b[m(0x15b)]);}['moveTo'](a){const n=a50i,b={'actor':this,'rooms':this[n(0x156)],'scene':this[n(0x154)]},c=new GoCommand(b);c[n(0x159)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d
|
|
1
|
+
const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x1e3))/0x1+parseInt(f(0x1f1))/0x2+-parseInt(f(0x1d4))/0x3*(-parseInt(f(0x222))/0x4)+-parseInt(f(0x1f8))/0x5*(parseInt(f(0x223))/0x6)+-parseInt(f(0x216))/0x7+-parseInt(f(0x1d9))/0x8*(parseInt(f(0x1eb))/0x9)+-parseInt(f(0x1de))/0xa*(-parseInt(f(0x215))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x3f70e));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x1dc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0x204)]()[h(0x229)](h(0x22d))['toString']()[h(0x21b)](a51a)[h(0x229)](h(0x22d));});a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1d3;let f=c[d];return f;},a51d(a,b);}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{[a51i(0x220)];[a51i(0x228)];['_inventory'];[a51i(0x20c)];[a51i(0x1e9)]=0x32;['logger'];constructor(a){const j=a51i;super(),this['_playerName']=a[j(0x1f0)],this[j(0x228)]=a[j(0x224)]||new Room({'name':'Nexus','description':'A\x20featureless\x20room'}),this[j(0x225)]=new Inventory(),this[j(0x1db)]=Logger[j(0x1ee)]();if(a?.[j(0x208)])for(const b of a[j(0x208)]){this[j(0x225)][j(0x211)](b);}this[j(0x20c)]=a?.[j(0x218)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51i(0x1f5)](){return this['_playerName'];}get[a51i(0x219)](){const k=a51i;return this[k(0x228)];}set[a51i(0x219)](a){const l=a51i;this[l(0x228)]!==a&&(this[l(0x1e5)](),this[l(0x207)](a)),this[l(0x228)]=a;}get['inventory'](){const m=a51i;return this[m(0x225)];}get[a51i(0x1e8)](){const n=a51i;return this[n(0x20c)];}set['equipment'](a){this['_equipment']=a;}get[a51i(0x1fa)](){const o=a51i;return this[o(0x1e9)];}set[a51i(0x1fa)](a){const p=a51i;a>0x0?this[p(0x1e9)]=a:console[p(0x1ed)](p(0x1f3));}get[a51i(0x1e1)](){const q=a51i;let a=this['_inventory'][q(0x209)]();for(const b in this[q(0x20c)]){const c=this[q(0x20c)][b];c&&(a+=c[q(0x1d6)]);}return a;}[a51i(0x22e)](a){const r=a51i;if(this[r(0x1e1)]+a[r(0x1d6)]>this[r(0x1fa)]){this[r(0x1db)][r(0x1e0)](r(0x21e));throw new Error(r(0x1fb));}this[r(0x225)][r(0x211)](a),this[r(0x1db)][r(0x1e0)](r(0x1ef)+a[r(0x1f5)]+r(0x21a));}['removeInventory'](a){const s=a51i;if(this[s(0x225)][s(0x1da)](a[s(0x1f5)]))return this[s(0x1db)][s(0x1e0)]('Removed\x20'+a['name']+'\x20from\x20player\x27s\x20inventory.'),!![];return this['logger'][s(0x1e0)](s(0x1ff)+a['name']+'\x20from\x20player\x27s\x20inventory.'),![];}[a51i(0x200)](a){const t=a51i;if(!this[t(0x225)]['hasItem'](a[t(0x1f5)]))return t(0x22c)+a['name']+t(0x1ea);if(!this[t(0x1d8)](a))return t(0x1fd)+a[t(0x1f5)]+'.';const b=this[t(0x212)](a[t(0x227)]);if(!b)return a[t(0x1f5)]+'\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.';if(this[t(0x1e8)][b])return t(0x1f2)+b+t(0x1d3);return this[t(0x1e8)][b]=a,this['removeInventory'](a),t(0x206)+a[t(0x1f5)]+'.';}[a51i(0x22b)](a){const u=a51i;let b=a;if(!this['equipment'][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return u(0x221)+a+'.';}return this[u(0x214)](b);}[a51i(0x212)](a){const v=a51i;switch(a[v(0x20f)]()){case Category['Weapon']['toLowerCase']():return v(0x210);case Category[v(0x20d)][v(0x20f)]():return v(0x20a);case Category[v(0x1df)]['toLowerCase']():return v(0x1e6);case Category[v(0x20e)]['toLowerCase']():case Category[v(0x1f9)][v(0x20f)]():return v(0x205);case Category[v(0x1f6)][v(0x20f)]():return v(0x1d7);case Category['LegArmor'][v(0x20f)]():return v(0x213);case Category['ArmArmor'][v(0x20f)]():return v(0x201);case Category[v(0x1e7)]['toLowerCase']():return'torso';case v(0x21f):return'rightHand';case'shield':return v(0x20a);case v(0x1e6):return v(0x1e6);case'helmet':case v(0x202):return v(0x205);case v(0x22a):return v(0x1d7);case v(0x20b):case v(0x21c):return v(0x213);case v(0x1fe):case v(0x1e2):return v(0x201);case v(0x1f7):case v(0x226):case v(0x217):return v(0x217);default:return null;}}[a51i(0x1d8)](a){const w=a51i;return Object[w(0x1fc)](Category)[w(0x1ec)](a[w(0x227)]);}[a51i(0x214)](a){const x=a51i,b=this['equipment'][a];if(!b)return x(0x1e4)+a+'\x20slot.';return this[x(0x22e)](b),this[x(0x1e8)][a]=null,x(0x21d)+b['name']+'.';}['hear'](a,b){const y=a51i;a!==this&&this[y(0x1db)][y(0x1dd)](a[y(0x1f5)]+'\x20says:\x20\x22'+b+'\x22');}[a51i(0x207)](a){const z=a51i;this[z(0x228)]=a,a['on']('speak',this[z(0x1d5)][z(0x203)](this)),this[z(0x1db)][z(0x1e0)](this[z(0x1f5)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[z(0x1f5)]);}[a51i(0x1e5)](){const A=a51i;this[A(0x228)]&&(this[A(0x228)]['off']('speak',this[A(0x1d5)][A(0x203)](this)),this['logger'][A(0x1e0)](this['name']+A(0x1f4)+this[A(0x228)]['name']));}}function a51c(){const B=['.\x20You\x20must\x20unequip\x20it\x20first.','37629wNsAje','hear','weight','feet','canEquip','210104SjMEKh','removeItem','logger','apply','log','2614510ChxoOt','Gloves','write','currentWeight','armarmor','17305BCTXLe','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','leaveRoom','gloves','BodyArmor','equipment','_maxCarryingWeight','\x20in\x20your\x20inventory.','9BxBele','includes','error','getInstance','Added\x20','playerName','936438HDoJug','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','Max\x20carrying\x20weight\x20must\x20be\x20positive.','\x20is\x20no\x20longer\x20listeng\x20in\x20','name','Boots','body\x20armor','3260YbCtDu','Hat','maxCarryingWeight','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','values','You\x20can\x27t\x20equip\x20','arm\x20armor','Failed\x20to\x20remove\x20','equip','arms','hat','bind','toString','head','You\x20equipped\x20','enterRoom','inventoryItems','getWeight','leftHand','leg\x20armor','_equipment','Shield','Helmet','toLowerCase','rightHand','addItem','determineEquipmentSlot','legs','unequipBySlot','11GIiRDZ','1445857grDxZS','torso','initialEquipment','currentLocation','\x20to\x20player\x27s\x20inventory.','constructor','legarmor','You\x20unequipped\x20','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','weapon','_playerName','Invalid\x20category\x20or\x20slot:\x20','68dxPafT','3984sWFDKe','startLocation','_inventory','bodyarmor','category','_currentLocation','search','boots','unequip','You\x20don\x27t\x20have\x20','(((.+)+)+)+$','addInventory'];a51c=function(){return B;};return a51c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d
|
|
1
|
+
function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x15f;var f=c[d];return f;},a52d(a,b);}var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x176))/0x1*(-parseInt(f(0x162))/0x2)+-parseInt(f(0x170))/0x3+-parseInt(f(0x166))/0x4+parseInt(f(0x175))/0x5+-parseInt(f(0x169))/0x6+-parseInt(f(0x16f))/0x7+-parseInt(f(0x172))/0x8*(-parseInt(f(0x16e))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xa876a));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x179)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x16a)]()[h(0x165)](h(0x177))['toString']()['constructor'](a52a)[h(0x165)](h(0x177));});function a52c(){var n=['52628qOwREh','(((.+)+)+)+$','You\x20have\x20already\x20solved\x20this\x20puzzle.','apply','requiredItem','You\x20solved\x20the\x20puzzle!','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','write','hasRequiredItem','solve','solved','requiredPhrase','riddle','10hcvyGK','successMessage','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','search','3978156stjyPg','hasItem','logger','3174858FGZvyb','toString','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','matchesRequiredPhrase','getInstance','3338109qTTLHR','9367449Aavdac','557799Dmpblk','rewardItem','56qbayOX','failureMessage','Puzzle:\x20Correct\x20solution\x20provided.','4392005aMRsPY'];a52c=function(){return n;};return a52c();}a52a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52i(0x168)]=Logger[a52i(0x16d)]();[a52i(0x15f)]=![];[a52i(0x17a)];[a52i(0x160)];[a52i(0x161)];[a52i(0x171)];[a52i(0x163)];[a52i(0x173)];constructor(a){var j=a52i;super(),this[j(0x17a)]=a[j(0x17a)],this['requiredPhrase']=a[j(0x160)],this[j(0x161)]=a[j(0x161)],this[j(0x171)]=a[j(0x171)],this[j(0x163)]=a[j(0x163)]||j(0x17b),this[j(0x173)]=a[j(0x173)]||j(0x164);}[a52i(0x17e)](a){var k=a52i;if(this['requiredItem'])return a[k(0x167)](this['requiredItem']);return![];}[a52i(0x16c)](a){var l=a52i;return this[l(0x160)]===a;}[a52i(0x17f)](a,b){var m=a52i;if(this[m(0x15f)])return this[m(0x168)][m(0x17d)](m(0x17c)),{'success':![],'message':m(0x178)};return this[m(0x17e)](b)||this[m(0x16c)](a)?(this['solved']=!![],this[m(0x168)][m(0x17d)](m(0x174)),{'success':!![],'message':this[m(0x163)]}):(this[m(0x168)][m(0x17d)](m(0x16b)),{'success':![],'message':this['failureMessage']});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d
|
|
1
|
+
const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x1e3))/0x1*(-parseInt(f(0x1fe))/0x2)+-parseInt(f(0x1da))/0x3*(parseInt(f(0x1e4))/0x4)+parseInt(f(0x201))/0x5*(parseInt(f(0x1fc))/0x6)+-parseInt(f(0x207))/0x7+-parseInt(f(0x210))/0x8*(parseInt(f(0x215))/0x9)+-parseInt(f(0x1ff))/0xa+parseInt(f(0x1e2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x54710));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x20b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0x1db)]()[h(0x214)](h(0x211))['toString']()['constructor'](a53a)[h(0x214)]('(((.+)+)+)+$');});a53a();import{Logger}from'../utilities/logger.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a53d(a,b);}function a53c(){const u=['west','inventory','search','1206189wfPstk','isExitLocked','.\x20Success:\x20','checkIfLocked','emit','Checking\x20if\x20exit\x20in\x20direction\x20','name','WEST','3ufvWfa','toString','\x20is\x20locked.\x20Result:\x20','SOUTH','getOppositeDirection','say','EAST','NORTH','14872902iHrQbG','13wWKRYj','1394868miXxvf','roomType','description','exits','Item\x20added\x20to\x20room\x20','\x20unlocked!','Fetching\x20exit\x20in\x20direction:\x20','riddle','roomB','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','logger','Room\x20created:\x20','roomA','hasItem','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','speak','addExit','get','removeItem','down','getInstance','puzzle','north','217014JONTCQ','Invalid\x20direction:\x20','10828dVbhvz','3853260pmwcvM','write','80RLBPBH','Puzzle\x20set\x20for\x20room\x20','INSIDE','set','getExit','isStartRoom','1758036PAHXJp','east','attemptUnlock','The\x20','apply','findExistingDoor','setPuzzle','No\x20locked\x20exit\x20found\x20in\x20direction\x20','values','40nymukX','(((.+)+)+)+$'];a53c=function(){return u;};return a53c();}import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{['logger']=Logger[a53i(0x1f9)]();['name'];[a53i(0x1e6)];['exits']=new Map();[a53i(0x1e5)];[a53i(0x206)];[a53i(0x213)]=new Inventory();constructor(a){const j=a53i;super(),this['name']=a['name'],this[j(0x1e6)]=a[j(0x1e6)],this[j(0x1e5)]=a[j(0x1e5)]||RoomType[j(0x203)],a[j(0x1e7)]&&(this[j(0x1e7)]=a[j(0x1e7)]||new Map()),a['inventory']&&(this[j(0x213)]=a['inventory']),a['puzzle']&&(this['puzzle']=a['puzzle']),this[j(0x206)]=a['isStartRoom']||![],this['logger']['write'](j(0x1ef)+this['name']);}[a53i(0x1df)](a,b){const k=a53i;this[k(0x1d6)](k(0x1f4),a,b);}[a53i(0x1f5)](a,b,c){const l=a53i;let d=this[l(0x20c)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x1e7)][l(0x204)](a,d),b[l(0x1e7)]['set'](this[l(0x1de)](a),d);}['attemptUnlockExit'](a,b){const m=a53i,c=this[m(0x1e7)][m(0x1f6)](a);if(c instanceof Door){const d=c[m(0x209)](b);return this[m(0x1ee)][m(0x200)](m(0x1ed)+a+m(0x217)+d),d?'The\x20'+c[m(0x1d8)]+m(0x1e9):m(0x20a)+c['name']+'\x20remains\x20locked.';}return this[m(0x1ee)][m(0x200)](m(0x20e)+a),m(0x1f3);}[a53i(0x205)](a){const n=a53i;return this['logger'][n(0x200)](n(0x1ea)+a),this['exits'][n(0x1f6)](a);}[a53i(0x216)](a){const o=a53i,b=this[o(0x1e7)][o(0x1f6)](a),c=b instanceof Door&&b[o(0x1d5)]();return this[o(0x1ee)][o(0x200)](o(0x1d7)+a+o(0x1dc)+c),c;}['addItem'](a){const p=a53i;this[p(0x213)]['addItem'](a),this['logger']['write'](p(0x1e8)+this[p(0x1d8)]+':\x20'+a['name']);}['removeItem'](a){const q=a53i;this[q(0x213)][q(0x1f1)](a[q(0x1d8)])?(this[q(0x213)][q(0x1f7)](a[q(0x1d8)]),this[q(0x1ee)][q(0x200)]('Item\x20removed\x20from\x20room\x20'+this[q(0x1d8)]+':\x20'+a[q(0x1d8)])):this[q(0x1ee)][q(0x200)](q(0x1f2)+this[q(0x1d8)]+':\x20'+a[q(0x1d8)]);}[a53i(0x20d)](a){const r=a53i;this[r(0x1fa)]=a,this[r(0x1ee)][r(0x200)](r(0x202)+this['name']+':\x20'+a[r(0x1eb)]);}[a53i(0x1de)](a){const s=a53i;switch(a){case s(0x1fb):return Direction[s(0x1dd)];case'south':return Direction[s(0x1e1)];case s(0x208):return Direction[s(0x1d9)];case s(0x212):return Direction[s(0x1e0)];case'up':return Direction['DOWN'];case s(0x1f8):return Direction['UP'];default:throw new Error(s(0x1fd)+a);}}[a53i(0x20c)](a){const t=a53i;for(const b of this[t(0x1e7)][t(0x20f)]()){if(b instanceof Door){if(b['roomA']===this&&b[t(0x1ec)]===a||b[t(0x1ec)]===this&&b[t(0x1f0)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54l=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d=-parseInt(i(0x1e3))/0x1+-parseInt(i(0x1d6))/0x2+parseInt(i(0x1dc))/0x3+-parseInt(i(0x1a9))/0x4+-parseInt(i(0x1b2))/0x5*(-parseInt(i(0x1c1))/0x6)+parseInt(i(0x1c7))/0x7+-parseInt(i(0x1d9))/0x8*(-parseInt(i(0x1d1))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x6cca1));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a[k(0x1c3)]()[k(0x1d5)]('(((.+)+)+)+$')[k(0x1c3)]()[k(0x1eb)](a54a)['search'](k(0x1e4));});a54a();function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x1a5;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 E=['Scene\x20initialized\x20with\x20rooms:\x20','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','addActor','logger','Removed\x20room\x20from\x20scene:\x20','26099xStSSo','(((.+)+)+)+$','Added\x20room\x20to\x20scene:\x20','isStartRoom','has','roomConfiguration','allActors','\x20not\x20found\x20in\x20scene.','constructor','rooms','keys','setCharacterLocation','Added\x20puzzle\x20to\x20room\x20','.\x20Room\x20','2631488ybSoXe','player','getInstance','setPuzzle','warn','currentLocation','characterLocations','apply','\x20found\x20in\x20the\x20scene.','10TlIWlR','getRooms','keyRequired','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','Failed\x20to\x20add\x20puzzle.\x20Room\x20','Added\x20item\x20','join','\x20already\x20exists\x20in\x20the\x20scene.','exits','write','\x27s\x20location.\x20Room\x20','direction','generateRoomsFromConfig','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','values','1468158HCKUmr','addItem','toString','\x20to\x20room\x20','\x22\x20does\x20not\x20exist.','roomFactory','1870848juIjbQ','from','initialize','targetRoom','name','actors','addPuzzleToRoom','determineStartRoom','addRoom','addExit','35298SgZRSX','getCharacterLocation','get','getActor','search','628532gfJpJl','length','createRoom','664vWjZHH','toUpperCase','createExitsFromConfig','1084986SJlRUB','set'];a54c=function(){return E;};return a54c();}import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];['player'];[a54l(0x1e1)];[a54l(0x1cc)];[a54l(0x1af)]=new Map();[a54l(0x1c6)];constructor(a){const m=a54l;super(),this[m(0x1c6)]=new RoomFactory(),this[m(0x1aa)]=a[m(0x1aa)],this[m(0x1ec)]=this[m(0x1be)](a[m(0x1e8)]),this[m(0x1e1)]=Logger[m(0x1ab)](),this[m(0x1cc)]=new Map(),this[m(0x1db)](a['roomConfiguration']),this[m(0x1e1)][m(0x1bb)](m(0x1de)+Object[m(0x1a5)](this[m(0x1ec)])[m(0x1b8)](',\x20'));}[a54l(0x1c9)](){const n=a54l;this['player'][n(0x1ae)]=this[n(0x1ce)]();}[a54l(0x1be)](a){const o=a54l;if(!this['roomFactory'])throw new Error(o(0x1bf));const b={};for(const c of a){const d=this[o(0x1c6)][o(0x1d8)](c);b[c[o(0x1cb)]]=d;}return b;}[a54l(0x1db)](a){const p=a54l;for(const b of a){const c=this[p(0x1ec)][b[p(0x1cb)]];if(b[p(0x1ba)])for(const d of b[p(0x1ba)]){const e=d[p(0x1bd)][p(0x1da)](),f=d[p(0x1ca)],g=d[p(0x1b4)],h=this[p(0x1ec)][f];h&&c[p(0x1d0)](Direction[e],h,g);}}}[a54l(0x1e0)](a){const q=a54l;if(this[q(0x1cc)][q(0x1e7)](a[q(0x1cb)]))throw new Error('Actor\x20with\x20name\x20'+a['name']+q(0x1b9));this[q(0x1cc)]['set'](a['name'],a);}['removeActor'](a){const r=a54l;if(!this[r(0x1cc)][r(0x1e7)](a))throw new Error('No\x20actor\x20with\x20name\x20'+a+r(0x1b1));this[r(0x1cc)]['delete'](a);}[a54l(0x1d4)](a){const s=a54l;return this[s(0x1cc)][s(0x1d3)](a);}get[a54l(0x1e9)](){const t=a54l;return Array[t(0x1c8)](this[t(0x1cc)][t(0x1c0)]());}[a54l(0x1cf)](a){const u=a54l;this[u(0x1ec)][a[u(0x1cb)]]=a,this[u(0x1e1)][u(0x1bb)](u(0x1e5)+a[u(0x1cb)]);}['removeRoom'](a){const v=a54l;return this['rooms'][a]?(delete this[v(0x1ec)][a],this['logger'][v(0x1bb)](v(0x1e2)+a),!![]):(this['logger'][v(0x1bb)](v(0x1b5)+a),![]);}['addItemToRoom'](a,b){const w=a54l,c=this[w(0x1ec)][b];c?(c[w(0x1c2)](a),this[w(0x1e1)][w(0x1bb)](w(0x1b7)+a[w(0x1cb)]+w(0x1c4)+c[w(0x1cb)])):this[w(0x1e1)][w(0x1bb)]('Failed\x20to\x20add\x20item\x20'+a[w(0x1cb)]+w(0x1a8)+b+w(0x1ea));}[a54l(0x1cd)](a,b){const x=a54l,c=this['rooms'][b];c?(c[x(0x1ac)](a),this[x(0x1e1)][x(0x1bb)](x(0x1a7)+c['name'])):this[x(0x1e1)][x(0x1bb)](x(0x1b6)+b+x(0x1ea));}[a54l(0x1a6)](a,b){const y=a54l,c=this[y(0x1ec)][b];c?(this[y(0x1af)][y(0x1dd)](a[y(0x1cb)],c),this['logger'][y(0x1bb)](a[y(0x1cb)]+'\x20is\x20now\x20in\x20room\x20'+c[y(0x1cb)])):this['logger'][y(0x1bb)]('Failed\x20to\x20set\x20'+a['name']+y(0x1bc)+b+y(0x1ea));}[a54l(0x1d2)](a){const z=a54l;return this[z(0x1af)]['get'](a[z(0x1cb)]);}[a54l(0x1ce)](){const A=a54l,a=[];for(const c in this[A(0x1ec)]){if(this[A(0x1ec)]['hasOwnProperty'](c)){const d=this[A(0x1ec)][c];d[A(0x1e6)]&&a['push'](d);}}if(a[A(0x1d7)]>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(0x1a5)](this[A(0x1ec)]);if(b[A(0x1d7)]===0x0)throw new Error('No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.');return console[A(0x1ad)](A(0x1df)),this[A(0x1ec)][b[0x0]];}['getPlayer'](){const B=a54l;return this[B(0x1aa)];}[a54l(0x1b3)](){const C=a54l;return this[C(0x1ec)];}['connectRooms'](a,b,c,d){const D=a54l,e=this['rooms'][a],f=this[D(0x1ec)][c];if(!e)throw new Error('Room\x20\x22'+a+D(0x1c5));if(!f)throw new Error('Room\x20\x22'+c+D(0x1c5));e[D(0x1d0)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x11f))/0x1+-parseInt(f(0x10d))/0x2+-parseInt(f(0x104))/0x3*(parseInt(f(0xfe))/0x4)+-parseInt(f(0xf8))/0x5+parseInt(f(0xee))/0x6*(-parseInt(f(0x106))/0x7)+-parseInt(f(0xec))/0x8+parseInt(f(0x119))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x4b847));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var g=a55d;return a55a[g(0xf4)]()[g(0x11c)](g(0x10c))[g(0xf4)]()[g(0xea)](a55a)[g(0x11c)](g(0x10c));});a55a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var h=a55d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Unknown'],'shape':Shape[h(0xfd)],'color':Color['Yellow'],'texture':Texture[h(0x112)],'rating':Rating[h(0x101)],'weight':0x1});}[a55i(0xed)](){var j=a55i;return this[j(0x114)];}}export class Sword extends Item{constructor(a,b){var k=a55i;super({'name':a,'description':b,'size':Size[k(0x117)],'category':Category[k(0x102)],'shape':Shape[k(0x10b)],'color':Color['Grey'],'texture':Texture[k(0x11b)],'rating':Rating['Common'],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a55i;super({'name':a,'description':b,'size':Size[l(0x11d)],'category':Category[l(0x102)],'shape':Shape[l(0xef)],'color':Color['Brown'],'texture':Texture[l(0x11b)],'rating':Rating[l(0x109)],'weight':0x7});}}function a55c(){var C=['Book','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','Rectangle','1236584uRUpzZ','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','A\x20mysterious\x20book.','Common','Weapon','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','3EYuKTt','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','534849opgOxR','Short\x20Sword','Circle','Rare','name','Blade','(((.+)+)+)+$','275766llAAyH','Key','BodyArmor','LegArmor','Gloves','Smooth','Unknown\x20Author','description','pageCount','Small','Medium','Holy\x20Grail','26714421LixhPs','author','Metallic','search','Large','Cup','569774DpBgBM','\x20aloft,\x20feeling\x20its\x20immense\x20power.','constructor','ArmArmor','4272800GKhUei','use','48aOnVXj','Rifle','Helmet','Grey','Yellow','You\x20hold\x20the\x20','toString','Legendary','publishDate','Boots','2483955okrupm','Brown','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.'];a55c=function(){return C;};return a55c();}export class Helmet extends Item{constructor(a,b){var m=a55i;super({'name':a,'description':b,'size':Size[m(0x117)],'category':Category[m(0xf0)],'shape':Shape[m(0x108)],'color':Color[m(0xf1)],'texture':Texture[m(0x11b)],'rating':Rating[m(0x101)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a55i;super({'name':a,'description':b,'size':Size['Large'],'category':Category[n(0x10f)],'shape':Shape[n(0xfd)],'color':Color[n(0xf1)],'texture':Texture[n(0x11b)],'rating':Rating[n(0x101)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a55i;super({'name':a,'description':b,'size':Size[o(0x117)],'category':Category[o(0x110)],'shape':Shape[o(0xfd)],'color':Color[o(0xf1)],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a55i;super({'name':a,'description':b,'size':Size[p(0x117)],'category':Category[p(0xf7)],'shape':Shape['Circle'],'color':Color[p(0xf9)],'texture':Texture[p(0x112)],'rating':Rating[p(0x101)],'weight':0x2});}}function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0xe9;var f=c[d];return f;},a55d(a,b);}export class Gloves extends Item{constructor(a,b){var q=a55i;super({'name':a,'description':b,'size':Size[q(0x116)],'category':Category[q(0x111)],'shape':Shape[q(0x108)],'color':Color['Brown'],'texture':Texture[q(0x112)],'rating':Rating[q(0x101)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a55i;super({'name':a,'description':b,'size':Size[r(0x117)],'category':Category[r(0xeb)],'shape':Shape[r(0xfd)],'color':Color[r(0xf1)],'texture':Texture[r(0x11b)],'rating':Rating['Common'],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a55i;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category[s(0x10e)],'shape':Shape[s(0xfd)],'color':Color[s(0xf2)],'texture':Texture['Smooth'],'rating':Rating[s(0x101)],'weight':0x0});}[a55i(0xed)](){var t=a55i;return t(0xff);}}export class Weapon extends Item{constructor(a,b){var u=a55i;super({'name':a,'description':b,'size':Size[u(0x117)],'category':Category[u(0x102)],'shape':Shape[u(0x10b)],'color':Color['Grey'],'texture':Texture[u(0x11b)],'rating':Rating[u(0x101)],'weight':0x3});}[a55i(0xed)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class Book extends Item{[a55i(0x11a)];[a55i(0xf6)];['pageCount'];constructor(a,b=a55i(0x100),c=a55i(0x113)){var v=a55i;super({'name':a,'description':b,'size':Size[v(0x117)],'category':Category[v(0xfb)],'shape':Shape[v(0xfd)],'color':Color[v(0xf9)],'texture':Texture[v(0x112)],'rating':Rating[v(0x101)],'weight':0x1}),this[v(0x11a)]=c,this[v(0xf6)]=new Date(),this[v(0x115)]=0x64;}[a55i(0xed)](){var w=a55i;return w(0xfc);}}export class ShortSword extends Item{constructor(){var x=a55i;super({'name':x(0x107),'description':x(0x105),'size':Size[x(0x117)],'category':Category[x(0x102)],'shape':Shape['Blade'],'color':Color[x(0xf1)],'texture':Texture[x(0x11b)],'rating':Rating[x(0x101)],'weight':0x3});}['use'](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class SniperRifle extends Item{constructor(){var y=a55i;super({'name':'Sniper\x20Rifle','description':y(0xfa),'size':Size[y(0x11d)],'category':Category[y(0x102)],'shape':Shape[y(0xef)],'color':Color[y(0xf9)],'texture':Texture[y(0x112)],'rating':Rating[y(0x101)],'weight':0x5});}[a55i(0xed)](){var z=a55i;return z(0x103);}}export class HolyGrail extends Item{constructor(){var A=a55i;super({'name':A(0x118),'description':'A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','size':Size['Small'],'category':Category[A(0x11e)],'shape':Shape['Circle'],'color':Color['Gold'],'texture':Texture[A(0x11b)],'rating':Rating[A(0xf5)],'weight':0x1});}[a55i(0xed)](){var B=a55i;return B(0xf3)+this[B(0x10a)]+B(0xe9);}}
|