@maka/maka-cli 4.8.2 → 4.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/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 +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-
|
|
1
|
+
const a37i=a37d;function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x16b;let f=c[d];return f;},a37d(a,b);}function a37c(){const k=['You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','\x20found\x20the\x20following\x20items:\x20','currentLocation','(((.+)+)+)+$','36HMeJFn','constructor','inventory','Search\x20for\x20items\x20in\x20your\x20area','write','1150008NDbawJ','466850KHEjwO','5675614gmTLzp','name','6scStul','join','toString','search','220293CrFHoP','verb','You\x20search\x20the\x20area\x20and\x20find:\x20','logger','1244015cASFAO','SearchCommand:\x20','actor','1292912YYSPvD','apply','description','3264048BzwCUV'];a37c=function(){return k;};return a37c();}(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x16b))/0x1+-parseInt(f(0x180))/0x2*(-parseInt(f(0x183))/0x3)+-parseInt(f(0x175))/0x4+parseInt(f(0x16f))/0x5+parseInt(f(0x17f))/0x6+parseInt(f(0x181))/0x7+parseInt(f(0x172))/0x8*(-parseInt(f(0x17a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x7432c));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x185)]()[h(0x186)](h(0x179))[h(0x185)]()[h(0x17b)](a37a)[h(0x186)]('(((.+)+)+)+$');});a37a();import{Command}from'./command.js';export class SearchCommand extends Command{static [a37i(0x16c)]=a37i(0x186);static [a37i(0x174)]=a37i(0x17d);['execute'](){const j=a37i,a=this['actor'][j(0x178)][j(0x17c)]['listItems']();if(a['length']===0x0)return this[j(0x16e)]['write'](j(0x170)+this['actor'][j(0x182)]+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),j(0x176);const b=a[j(0x184)](',\x20');return this[j(0x16e)][j(0x17e)]('SearchCommand:\x20'+this[j(0x171)][j(0x182)]+j(0x177)+b),j(0x16d)+b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38i=a38d;
|
|
1
|
+
const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0xa8))/0x1*(parseInt(f(0x9e))/0x2)+parseInt(f(0xae))/0x3+parseInt(f(0x93))/0x4+parseInt(f(0xa5))/0x5+parseInt(f(0xa6))/0x6+-parseInt(f(0x94))/0x7+-parseInt(f(0xaa))/0x8*(parseInt(f(0xac))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x8a98f));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x9f)]()[h(0x9b)]('(((.+)+)+)+$')['toString']()[h(0x9c)](a38a)[h(0x9b)]('(((.+)+)+)+$');});function a38c(){const k=['1132060PZcivb','7738290kuBzGe','toLowerCase','SolveCommand:\x20','logger','description','actor','verb','search','constructor','write','87220aCZJCO','toString','addItem','solve','message','inventory','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','1622225VQDNpQ','6710508PHIBfZ','puzzle','17TTXENU','execute','672424thhBHk','rewardItem','45MsvQLp','apply','3326766NOJeBc','success'];a38c=function(){return k;};return a38c();}a38a();import{Command}from'./command.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x93;let f=c[d];return f;},a38d(a,b);}export class SolveCommand extends Command{static [a38i(0x9a)]=a38i(0xa1);static [a38i(0x98)]='Attempt\x20to\x20solve\x20a\x20puzzle.';[a38i(0xa9)](a){const j=a38i,b=a['join']('\x20')[j(0x95)](),c=this['actor']['currentLocation'];if(!c||!c[j(0xa7)])return this[j(0x97)][j(0x9d)]('SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.'),j(0xa4);const d=c[j(0xa7)][j(0xa1)](b,this['actor'][j(0xa3)]);return d[j(0xaf)]&&c[j(0xa7)][j(0xab)]&&this[j(0x99)]['inventory'][j(0xa0)](c[j(0xa7)]['rewardItem']),this[j(0x97)][j(0x9d)](j(0x96)+d[j(0xa2)]),d[j(0xa2)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0x109))/0x1*(-parseInt(f(0x105))/0x2)+-parseInt(f(0x11c))/0x3+parseInt(f(0x103))/0x4*(parseInt(f(0x100))/0x5)+parseInt(f(0x102))/0x6*(-parseInt(f(0x111))/0x7)+-parseInt(f(0x10e))/0x8+parseInt(f(0x113))/0x9*(-parseInt(f(0xfc))/0xa)+parseInt(f(0x11b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xdb08f));function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xf8;let f=c[d];return f;},a39d(a,b);}const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a['toString']()[h(0x10b)](h(0x122))[h(0x120)]()['constructor'](a39a)[h(0x10b)](h(0x122));});a39a();function a39c(){const l=['actor','verb','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','toString','name','(((.+)+)+)+$','Pick\x20up\x20an\x20item.','Error\x20during\x20\x27Take\x27\x20command:\x20','toLowerCase','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','\x22\x20not\x20retrieved\x20from\x20','Item\x20\x22','5225020kPLTjK','write','Successfully\x20added\x20\x22','removeItem','46070QFGskH','\x22\x20is\x20too\x20heavy\x20to\x20carry.','18CjnsBC','412AeBefW','\x22\x20not\x20found\x20in\x20','2KNhYAW','message','getItem','description','115415EohUVJ','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','search','apply','logger','6172136MOJaVD','inventory','addInventory','2102737VnsSly','\x22\x20in\x20this\x20room.','27amLwXw','Successfully\x20removed\x20\x22','\x20during\x20\x27Take\x27\x20command.','You\x20have\x20taken\x20the\x20','take','hasItem','execute','There\x20is\x20no\x20item\x20\x22','49056117IxXANQ','4160223aQPbof'];a39c=function(){return l;};return a39c();}import{Command}from'./command.js';export class TakeCommand extends Command{static [a39i(0x11e)]=a39i(0x117);static [a39i(0x108)]=a39i(0x123);[a39i(0x119)](a){const j=a39i;return this['logger'][j(0xfd)](j(0xf9)+a['join']('\x20')),this[j(0x117)](a);}['take'](a){const k=a39i,b=a['join']('\x20')[k(0xf8)](),c=this[k(0x11d)]['currentLocation'];if(!c[k(0x10f)][k(0x118)](b))return this[k(0x10d)][k(0xfd)](k(0xfb)+b+k(0x104)+c[k(0x121)]+k(0x115)),'There\x20is\x20no\x20item\x20\x22'+b+k(0x112);const d=c[k(0x10f)][k(0x107)](b);if(!d)return this[k(0x10d)][k(0xfd)](k(0xfb)+b+k(0xfa)+c['name']+k(0x10a)),k(0x11a)+b+'\x22\x20in\x20this\x20room.';try{return this[k(0x11d)][k(0x110)](d),this['logger'][k(0xfd)](k(0xfe)+b+'\x22\x20to\x20'+this[k(0x11d)][k(0x121)]+k(0x11f)),c[k(0x10f)][k(0xff)](b),this[k(0x10d)][k(0xfd)](k(0x114)+b+'\x22\x20from\x20'+c['name']+k(0x10a)),k(0x116)+b+'.';}catch(e){return this['logger'][k(0xfd)](k(0x124)+e[k(0x106)]),'The\x20item\x20\x22'+b+k(0x101);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40h=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d
|
|
1
|
+
const a40h=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x96))/0x1*(parseInt(f(0xa4))/0x2)+-parseInt(f(0x93))/0x3+parseInt(f(0x91))/0x4*(parseInt(f(0xa2))/0x5)+-parseInt(f(0x90))/0x6*(-parseInt(f(0x9e))/0x7)+-parseInt(f(0xa3))/0x8*(-parseInt(f(0xab))/0x9)+parseInt(f(0x9b))/0xa*(parseInt(f(0xa6))/0xb)+-parseInt(f(0x9a))/0xc*(parseInt(f(0xa0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x5ab16));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const g=a40d;return a40a[g(0xa9)]()[g(0xa5)](g(0x9c))['toString']()[g(0xa7)](a40a)[g(0xa5)](g(0x9c));});a40a();import{Command}from'./command.js';function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x8e;let f=c[d];return f;},a40d(a,b);}function a40c(){const j=['123383nPkCGU','UnequipCommand:\x20','13405fsMPeV','8536SQvmQE','214HmixcH','search','11ewCFAV','constructor','unqeuip','toString','write','9PeMLSx','name','toLowerCase','logger','6MSdtRS','328htgMcd','\x20unqeuiped\x20','2215032yliNqO','description','join','1797vklEbI','Unequip\x20an\x20item.','actor','verb','300XQhtAl','7233880ezyZWc','(((.+)+)+)+$','execute','4165553ZoTZTB','unequip'];a40c=function(){return j;};return a40c();}export class UnequipCommand extends Command{static [a40h(0x99)]=a40h(0xa8);static [a40h(0x94)]=a40h(0x97);[a40h(0x9d)](a){const i=a40h,b=a[i(0x95)]('\x20')[i(0x8e)](),c=this['actor'][i(0x9f)](b);return this[i(0x8f)][i(0xaa)](i(0xa1)+this[i(0x98)][i(0xac)]+i(0x92)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d
|
|
1
|
+
function a41c(){const n=['Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','write','UnlockCommand:\x20No\x20target\x20specified.','toLowerCase','actor','1680cdXBKc','search','has','10FJyaNW','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','UnlockCommand:\x20','attemptUnlockExit','2459176zgYrqm','4375100rHdJyF','hasItem','Unlock\x20a\x20door.','\x20is\x20attempted\x20to\x20unlock\x20','error','15180650ptSwib','inventory','currentLocation','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','129652BVxPzf','apply','11BvSbAP','There\x27s\x20no\x20door\x20named\x20\x22','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','2878659pJBUxI','constructor','11244ESptyN','isValidDirection','logger','27rcYpMB','toString','unlock','6750245skdCQR','unlockItemOrSolution','(((.+)+)+)+$','name','\x22\x20here.','execute','exits','getItem'];a41c=function(){return n;};return a41c();}const a41k=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=-parseInt(h(0x125))/0x1*(parseInt(h(0x108))/0x2)+-parseInt(h(0x10d))/0x3+parseInt(h(0x12a))/0x4+parseInt(h(0x115))/0x5+-parseInt(h(0x10f))/0x6*(-parseInt(h(0x122))/0x7)+-parseInt(h(0x129))/0x8*(-parseInt(h(0x112))/0x9)+parseInt(h(0x104))/0xa*(-parseInt(h(0x10a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xa86e9));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a41d;if(c){const e=c[i(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a['toString']()[j(0x123)](j(0x117))[j(0x113)]()[j(0x10e)](a41a)[j(0x123)](j(0x117));});function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x103;let f=c[d];return f;},a41d(a,b);}a41a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static ['verb']=a41k(0x114);static ['description']=a41k(0x12c);[a41k(0x11a)](a){const l=a41k;return this[l(0x114)](a);}[a41k(0x114)](a){const m=a41k;if(a['length']===0x0)return this['logger'][m(0x103)](m(0x11f)),m(0x11d);const b=a[0x0][m(0x120)](),c=this[m(0x121)][m(0x106)];if(this[m(0x110)](b)&&c[m(0x11b)][m(0x124)](b)){const d=c[m(0x11b)]['get'](b);if(d instanceof Door){const e=d[m(0x116)]?.[m(0x120)]();if(e&&this[m(0x121)]['inventory'][m(0x12b)](e)){const f=this['actor'][m(0x105)][m(0x11c)](e);if(f){const g=c[m(0x128)](b,f['name']);return this['logger'][m(0x11e)](m(0x127)+this[m(0x121)][m(0x118)]+m(0x12d)+b+'.\x20Result:\x20'+g),g;}}return this[m(0x111)]['write'](m(0x127)+this[m(0x121)][m(0x118)]+m(0x107)+b+'.'),m(0x10c);}else return this['logger'][m(0x11e)](m(0x127)+b+m(0x126)+c[m(0x118)]+'.'),m(0x10b)+b+m(0x119);}else return this[m(0x111)][m(0x11e)]('UnlockCommand:\x20'+b+m(0x126)+c['name']+'.'),m(0x10b)+b+'\x22\x20here.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a42h=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0xc8))/0x1+-parseInt(f(0xb6))/0x2*(parseInt(f(0xc1))/0x3)+parseInt(f(0xd3))/0x4*(parseInt(f(0xcb))/0x5)+-parseInt(f(0xc0))/0x6+-parseInt(f(0xc9))/0x7*(parseInt(f(0xba))/0x8)+-parseInt(f(0xbe))/0x9+parseInt(f(0xd0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x29217));const a42b=(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;};}()),a42a=a42b(this,function(){const g=a42d;return a42a[g(0xd7)]()[g(0xd1)]('(((.+)+)+)+$')[g(0xd7)]()['constructor'](a42a)[g(0xd1)](g(0xcc));});function a42c(){const j=['25221UIOYkR','use','toLowerCase','inventory','actor','You\x20don\x27t\x20have\x20the\x20','\x20doesn\x27t\x20have\x20a\x20use\x20method.','93018zyvGEZ','200522GzLwBh',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','1460645JACBhU','(((.+)+)+)+$','write','hasItem','Use\x20an\x20item.','7773500PAiIqG','search','join','4iYhfno','verb','UseCommand:\x20','description','toString','You\x20can\x27t\x20use\x20the\x20','68vvDaey','logger','\x20in\x20this\x20way.','\x20to\x20use.','48ErBHfT','execute','\x20used\x20','name','2871027MLqTol','\x27s\x20inventory.','1303854gAdICQ'];a42c=function(){return j;};return a42c();}a42a();import{Command}from'./command.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xb5;let f=c[d];return f;},a42d(a,b);}export class UseCommand extends Command{static [a42h(0xd4)]=a42h(0xc2);static [a42h(0xd6)]=a42h(0xcf);[a42h(0xbb)](a){return this['use'](a);}[a42h(0xc2)](a){const i=a42h,b=a[i(0xd2)]('\x20')[i(0xc3)]();if(!this[i(0xc5)][i(0xc4)][i(0xce)](b))return this[i(0xb7)][i(0xcd)]('UseCommand:\x20'+this[i(0xc5)]['name']+'\x20attempted\x20to\x20use\x20'+b+i(0xca)),i(0xc6)+b+i(0xb9);const c=this[i(0xc5)]['inventory']['getItem'](b);if(!c)return this[i(0xb7)]['write'](i(0xd5)+b+'\x20not\x20retrieved\x20from\x20'+this['actor'][i(0xbd)]+i(0xbf)),i(0xc6)+b+'\x20to\x20use.';if(typeof c[i(0xc2)]==='function'){const d=c[i(0xc2)]();return this[i(0xb7)]['write'](i(0xd5)+this[i(0xc5)][i(0xbd)]+i(0xbc)+b+'.'),d;}else return this[i(0xb7)][i(0xcd)](i(0xd5)+b+i(0xc7)),i(0xb5)+b+i(0xb8);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d
|
|
1
|
+
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x90))/0x1+-parseInt(f(0x9b))/0x2+parseInt(f(0xa0))/0x3+parseInt(f(0x91))/0x4+parseInt(f(0xa1))/0x5*(-parseInt(f(0x96))/0x6)+-parseInt(f(0x98))/0x7*(-parseInt(f(0x9d))/0x8)+-parseInt(f(0x97))/0x9*(-parseInt(f(0x9a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xb58fa));function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x90;let f=c[d];return f;},a43d(a,b);}const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x92)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x93)]()[h(0x9f)](h(0x99))['toString']()[h(0x95)](a43a)[h(0x9f)](h(0x99));});a43a();export class CommandFactory{static [a43i(0x9c)]={};static['registerCommand'](a,b){const j=a43i;this[j(0x9c)][a]=b;}static[a43i(0x9e)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static[a43i(0x94)](){return this['commandMap'];}}function a43c(){const k=['278552AiDsGy','createCommand','search','1718766XUkpoh','5tgOPWx','602728bXmmSX','2983868MahxjG','apply','toString','getAllRegisteredCommands','constructor','8219766bOTYny','108QEpnkb','231ZWVuzR','(((.+)+)+)+$','1041820AjxOKZ','2003474PnlPvP','commandMap'];a43c=function(){return k;};return a43c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44i=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a44i=a44d;function a44c(){const o=['helmet','1748yiBduw','roomType','toString','isStartRoom','apply','9ElKadz','4439106wTfHAG','addItem','rifle','425ZKqCFt','type','items','(((.+)+)+)+$','1384485SADqAA','INSIDE','search','book','createRoom','boots','bodyarmor','3399dKXBIh','28182980COqsNL','createItem','setPuzzle','gauntlets','convertToRoomConfig','legarmor','4215225EwifFo','createPuzzle','inventory','forEach','content','name','2431160SwTCjC','52sXqKFo','gloves','toUpperCase','rewardItem','puzzle','description'];a44c=function(){return o;};return a44c();}(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(0xe5))/0x1*(parseInt(f(0xd5))/0x2)+parseInt(f(0xf0))/0x3*(-parseInt(f(0xdc))/0x4)+-parseInt(f(0xe9))/0x5+-parseInt(f(0xe2))/0x6+-parseInt(f(0xce))/0x7+parseInt(f(0xd4))/0x8*(-parseInt(f(0xe1))/0x9)+parseInt(f(0xf1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x5f0bd));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0xde)]()[h(0xeb)](h(0xe8))[h(0xde)]()['constructor'](a44a)[h(0xeb)](h(0xe8));});function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xca;let f=c[d];return f;},a44d(a,b);}a44a();import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{[a44i(0xed)](a){const j=a44i,b=this[j(0xcc)](a),c=new Room(b);if(a['items']){const d=new Inventory();a[j(0xe7)][j(0xd1)](e=>{const k=j;d[k(0xe3)](this[k(0xf2)](e));}),c[j(0xd0)]=d;}return a[j(0xd9)]&&c[j(0xca)](this[j(0xcf)](a['puzzle'])),c;}[a44i(0xf2)](a){const l=a44i;switch(a[l(0xe6)]){case'key':return new Key(a[l(0xd3)],a[l(0xda)]);case l(0xec):return new Book(a[l(0xd3)],a['description'],a[l(0xd2)]);case'sword':return new Sword(a[l(0xd3)],a[l(0xda)]);case l(0xe4):return new Rifle(a[l(0xd3)],a[l(0xda)]);case l(0xdb):return new Helmet(a[l(0xd3)],a[l(0xda)]);case l(0xef):return new BodyArmor(a['name'],a['description']);case l(0xcd):return new LegArmor(a['name'],a[l(0xda)]);case l(0xee):return new Boots(a[l(0xd3)],a[l(0xda)]);case l(0xd6):return new Gloves(a['name'],a[l(0xda)]);case l(0xcb):return new Gauntlets(a[l(0xd3)],a[l(0xda)]);default:return new BasicItem(a[l(0xd3)],a[l(0xda)]);}}[a44i(0xcf)](a){const m=a44i,b=this[m(0xf2)](a[m(0xd8)]);return new Puzzle({...a,'rewardItem':b});}[a44i(0xcc)](a){const n=a44i,b=a[n(0xdd)]&&RoomType[a[n(0xdd)]['toUpperCase']()]?RoomType[a[n(0xdd)][n(0xd7)]()]:RoomType[n(0xea)];return{'name':a[n(0xd3)],'description':a[n(0xda)],'isStartRoom':a[n(0xdf)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45j=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=-parseInt(h(0x145))/0x1*(parseInt(h(0x13c))/0x2)+parseInt(h(0x131))/0x3*(-parseInt(h(0x128))/0x4)+-parseInt(h(0x123))/0x5+-parseInt(h(0x14b))/0x6*(-parseInt(h(0x134))/0x7)+-parseInt(h(0x125))/0x8+parseInt(h(0x14f))/0x9*(-parseInt(h(0x13f))/0xa)+parseInt(h(0x140))/0xb*(parseInt(h(0x12c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xa2c48));const a45b=(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;};}()),a45a=a45b(this,function(){const i=a45d;return a45a['toString']()[i(0x14d)](i(0x147))[i(0x132)]()[i(0x130)](a45a)[i(0x14d)]('(((.+)+)+)+$');});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';import{SolveCommand}from'./commands/solve.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x122;let f=c[d];return f;},a45d(a,b);}import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';function a45c(){const r=['currentRoom','take','name','drop','player','split','equip','1152328XilURC','toLowerCase','initialize','92810sQegaJ','16813709WFjsqB','getAllRegisteredCommands','getHelpMessage','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','clear','1GyyMpG','lock','(((.+)+)+)+$','help','-\x20quit:\x20Exit\x20the\x20game.\x0a','createCommand','30gOFDqD','determineStartRoom','search','currentLocation','423mKLMzZ','registerCommand','solve','getRooms','unequip','registerCommands','6235920ieBxWI','quit','5414872symieD','look','scene','4LfmZeD','trim','-\x20clear:\x20Clear\x20the\x20screen.\x0a','instance','24LotAgS','getDescription','Welcome,\x20','say','constructor','1487859sgYvrT','toString','unlock','1458835BmuXMt'];a45c=function(){return r;};return a45c();}import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a45j(0x12b)];['scene'];[a45j(0x139)];[a45j(0x135)];['rooms'];constructor(a,b){const k=a45j;this['player']=a,this[k(0x127)]=new Scene({'player':a,'roomConfiguration':b}),this['scene'][k(0x13e)](),this[k(0x139)][k(0x14e)]=this[k(0x14c)](),this[k(0x122)]();}[a45j(0x122)](){const l=a45j;CommandFactory[l(0x150)](l(0x126),LookCommand),CommandFactory[l(0x150)]('go',GoCommand),CommandFactory[l(0x150)](l(0x136),TakeCommand),CommandFactory[l(0x150)]('use',UseCommand),CommandFactory['registerCommand'](l(0x13b),EquipCommand),CommandFactory['registerCommand'](l(0x153),UnequipCommand),CommandFactory[l(0x150)](l(0x151),SolveCommand),CommandFactory[l(0x150)](l(0x138),DropCommand),CommandFactory['registerCommand'](l(0x133),UnlockCommand),CommandFactory[l(0x150)](l(0x146),LockCommand),CommandFactory[l(0x150)](l(0x14d),SearchCommand),CommandFactory[l(0x150)](l(0x12f),SayCommand);}[a45j(0x14c)](){const m=a45j;return this[m(0x127)]['determineStartRoom']();}['getWelcomeMessage'](){const n=a45j;return n(0x12e)+this[n(0x139)][n(0x137)];}static['getInstance'](a,b){const o=a45j;return!Game[o(0x12b)]&&(Game[o(0x12b)]=new Game(a,b)),Game[o(0x12b)];}['handleInput'](a){const p=a45j,b=a[p(0x129)]()[p(0x13a)]('\x20'),c=b[0x0][p(0x13d)](),d=b['slice'](0x1);if(c===p(0x124))return null;if(c==='maka')return p(0x143);if(c===p(0x148))return this['getHelpMessage']();if(c===p(0x144))return'';const e={'actor':this[p(0x139)],'rooms':this[p(0x127)][p(0x152)](),'scene':this[p(0x127)]},f=CommandFactory[p(0x14a)](c,e);if(f){const g=f['execute'](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}[a45j(0x142)](){const q=a45j,a=CommandFactory[q(0x141)]();let b='Available\x20Commands:\x0a';for(const c in a){if(a['hasOwnProperty'](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[q(0x12d)]()+'\x0a';}}return b+=q(0x12a),b+=q(0x149),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0xc0))/0x1+-parseInt(f(0xc4))/0x2*(parseInt(f(0xbd))/0x3)+parseInt(f(0xc9))/0x4+-parseInt(f(0xc1))/0x5+-parseInt(f(0xbf))/0x6*(-parseInt(f(0xc7))/0x7)+parseInt(f(0xc2))/0x8*(-parseInt(f(0xcb))/0x9)+parseInt(f(0xc5))/0xa*(parseInt(f(0xbe))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x1a098));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var g=a46d;return a46a[g(0xc6)]()[g(0xc3)](g(0xca))[g(0xc6)]()[g(0xc8)](a46a)[g(0xc3)](g(0xca));});a46a();export*from'./door.js';export*from'./inventory.js';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xbd;var f=c[d];return f;},a46d(a,b);}export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';function a46c(){var h=['constructor','237064lYQYER','(((.+)+)+)+$','422271QYRDLl','15pbIgJW','26213pUYRcR','162QSbRAr','201300DCnClC','599265LMyPOJ','8hNqSJQ','search','42086ACxHON','460mlsAlh','toString','2191nnTTeA'];a46c=function(){return h;};return a46c();}export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a47h=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=parseInt(f(0xfe))/0x1*(parseInt(f(0xfa))/0x2)+parseInt(f(0x10e))/0x3+parseInt(f(0xf6))/0x4+-parseInt(f(0xfc))/0x5*(-parseInt(f(0xfd))/0x6)+parseInt(f(0xf1))/0x7*(parseInt(f(0x101))/0x8)+parseInt(f(0xf2))/0x9*(parseInt(f(0x109))/0xa)+parseInt(f(0x106))/0xb*(-parseInt(f(0x102))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x2f0ce));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(0xff)]()[g(0xf7)](g(0x10d))[g(0xff)]()[g(0xf5)](a47a)[g(0xf7)](g(0x10d));});a47a();function a47c(){var m=['580872ylVVBs','552708kulegA','Door\x20created\x20between\x20','isLockable','name','176gabPqr','\x20and\x20','getInstance','214670XtSboh','getOtherSide','roomA','logger','(((.+)+)+)+$','487740imLVfs','write','7MFZnft','72PbPOMw','.\x20Used:\x20','unlockItemOrSolution','constructor','180752uaylCC','search','To\x20','Door\x20unlocked:\x20','5968agffui','roomB','627185rzuPVJ','6aeLDPQ','118yZkneQ','toString','isLocked'];a47c=function(){return m;};return a47c();}import{Logger}from'../utilities/logger.js';function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0xf1;var f=c[d];return f;},a47d(a,b);}import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a47h(0x10b)];['roomB'];[a47h(0x100)];['unlockItemOrSolution'];[a47h(0x105)];[a47h(0x10c)];[a47h(0x104)];constructor(a){var i=a47h;super(),this[i(0x10b)]=a[i(0x10b)],this[i(0xfb)]=a[i(0xfb)],this[i(0x100)]=a[i(0x100)]||![],this['unlockItemOrSolution']=a[i(0xf4)],this['name']=a[i(0x105)]?capitalCase(a[i(0x105)]):i(0xf8)+a[i(0xfb)][i(0x105)],this[i(0x10c)]=Logger[i(0x108)](),this['isLockable']=!!a[i(0xf4)],this[i(0x10c)][i(0x10f)](i(0x103)+this[i(0x10b)]['name']+i(0x107)+this['roomB'][i(0x105)]+'.\x20Is\x20Locked:\x20'+this[i(0x100)]);}[a47h(0x10a)](a){var j=a47h;return this[j(0x10b)]===a?this['roomB']:this[j(0x10b)];}['attemptUnlock'](a){var k=a47h;if(this[k(0x100)]&&this['unlockItemOrSolution']&&this[k(0xf4)]===a)return this['isLocked']=![],this[k(0x10c)]['write'](k(0xf9)+this['name']+k(0xf3)+a),!![];return this[k(0x10c)][k(0x10f)]('Failed\x20to\x20unlock\x20door:\x20'+this[k(0x105)]+k(0xf3)+a),![];}['checkIfLocked'](){var l=a47h;return this[l(0x100)];}['checkIfLockable'](){return this['isLockable'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0xb1;let f=c[d];return f;},a48d(a,b);}const a48n=a48d;function a48c(){const r=['.\x20Item\x20not\x20found.','items','write','values','12PGHkIK','\x20from\x20inventory.','18059580zupddo','415ZaQjCo','Checked\x20for\x20item:\x20','14420uTAKiq','423HJToJD','toLowerCase','1496560QgelVm','toString','search','(((.+)+)+)+$','logger','126550KegCfK','.\x20Exists:\x20','292552dIUnMm','820883xyZvgW','constructor','apply','get','Added\x20item:\x20','getItem','set','getAllItems','has','\x20to\x20inventory.','keys','join','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','delete','\x20in\x20','561794kHukza','6tyMDNO','Failed\x20to\x20remove\x20item:\x20','name','Retrieved\x20details\x20for\x20item:\x20','listItems'];a48c=function(){return r;};return a48c();}(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0xca))/0x1+parseInt(f(0xb1))/0x2*(-parseInt(f(0xb2))/0x3)+parseInt(f(0xc0))/0x4*(-parseInt(f(0xbe))/0x5)+parseInt(f(0xbb))/0x6*(parseInt(f(0xcb))/0x7)+parseInt(f(0xc3))/0x8+parseInt(f(0xc1))/0x9*(-parseInt(f(0xc8))/0xa)+parseInt(f(0xbd))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x4cea2));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0xc4)]()[h(0xc5)](h(0xc6))[h(0xc4)]()[h(0xcc)](a48a)['search']('(((.+)+)+)+$');});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{['items'];['logger'];constructor(){const i=a48d;super(),this['items']=new Map(),this[i(0xc7)]=Logger['getInstance']();}['addItem'](a){const j=a48d;this[j(0xb8)][j(0xd1)](a[j(0xb4)][j(0xc2)](),a),this[j(0xc7)][j(0xb9)](j(0xcf)+a[j(0xb4)]+j(0xd4));}['removeItem'](a){const k=a48d,b=this[k(0xd0)](a);if(b)return this['items'][k(0xd8)](a[k(0xc2)]()),this[k(0xc7)]['write']('Removed\x20item:\x20'+a+k(0xbc)),b;return this['logger']['write'](k(0xb3)+a+k(0xb7)),null;}['hasItem'](a){const l=a48d,b=this[l(0xb8)][l(0xd3)](a[l(0xc2)]()),c=[...this[l(0xb8)][l(0xd5)]()];return this['logger'][l(0xb9)](l(0xbf)+a+l(0xd9)+c[l(0xd6)](',\x20')+l(0xc9)+b+'.'),b;}['getItem'](a){const m=a48d,b=this['items'][m(0xce)](a['toLowerCase']())||null;return b?this[m(0xc7)][m(0xb9)](m(0xb5)+a+'.'):this[m(0xc7)][m(0xb9)](m(0xd7)+a+'.\x20Item\x20not\x20found.'),b;}[a48n(0xb6)](){const o=a48n,a=[...this['items']['keys']()],b=a['map'](c=>capitalCase(c));return this['logger'][o(0xb9)]('Listed\x20items\x20in\x20inventory:\x20'+b['join'](',\x20')+'.'),a;}['getWeight'](){const p=a48n;let a=0x0;for(const b of this[p(0xb8)][p(0xba)]()){a+=b['weight'];}return a;}[a48n(0xd2)](){const q=a48n;return[...this[q(0xb8)][q(0xba)]()];}}
|
|
@@ -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(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x1e5))/0x1*(-parseInt(f(0x1dd))/0x2)+parseInt(f(0x1da))/0x3+parseInt(f(0x1d5))/0x4*(parseInt(f(0x1d7))/0x5)+parseInt(f(0x1de))/0x6*(-parseInt(f(0x1d3))/0x7)+parseInt(f(0x1d4))/0x8*(-parseInt(f(0x1d6))/0x9)+-parseInt(f(0x1d2))/0xa+parseInt(f(0x1d8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x7cf65));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x1e4)]()[h(0x1e3)]('(((.+)+)+)+$')[h(0x1e4)]()[h(0x1cb)](a49a)[h(0x1e3)]('(((.+)+)+)+$');});a49a();function a49c(){var l=['apply','rating','search','toString','200557uhZqnT','constructor','texture','name','use','color','size','You\x20use\x20the\x20','1689170HJuHPf','45997AYXbQl','12824bEYGYf','6132KvfFIO','5067rbHwYg','2085gcPAYc','3634719Oupwwx','category','626211bqFrkr','uuid','description','10AlAsGY','546FYIJuP','shape','weight'];a49c=function(){return l;};return a49c();}function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1cb;var f=c[d];return f;},a49d(a,b);}import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a49i(0x1db)];['name'];[a49i(0x1dc)];[a49i(0x1d0)];['category'];[a49i(0x1df)];[a49i(0x1cf)];[a49i(0x1cc)];[a49i(0x1e2)];['weight'];constructor(a){var j=a49i;super(),this[j(0x1cd)]=a['name'],this['description']=a[j(0x1dc)],this[j(0x1d0)]=a[j(0x1d0)],this[j(0x1d9)]=a[j(0x1d9)],this[j(0x1df)]=a[j(0x1df)],this[j(0x1cf)]=a[j(0x1cf)],this[j(0x1cc)]=a['texture'],this[j(0x1e2)]=a[j(0x1e2)],this[j(0x1e0)]=a[j(0x1e0)],this['uuid']=a49e();}[a49i(0x1ce)](){var k=a49i;return k(0x1d1)+this[k(0x1cd)]+'.\x20Nothing\x20special\x20happens.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d
|
|
1
|
+
const a50i=a50d;function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x139;let f=c[d];return f;},a50d(a,b);}(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x14f))/0x1*(-parseInt(f(0x139))/0x2)+parseInt(f(0x13d))/0x3+parseInt(f(0x150))/0x4*(parseInt(f(0x152))/0x5)+-parseInt(f(0x147))/0x6+parseInt(f(0x14b))/0x7+parseInt(f(0x144))/0x8+parseInt(f(0x140))/0x9*(-parseInt(f(0x145))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x4988b));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x151)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0x14c)]()[h(0x14d)](h(0x149))[h(0x14c)]()[h(0x143)](a50a)[h(0x14d)](h(0x149));});a50a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';function a50c(){const o=['apply','2367215gLVQnt','4626vpcMqo','_dialogue','floor','length','320928dWCbDF','moveTo','rooms','1611lSIppq','speak','autonomousMove','constructor','4666456ZujqdH','23570wHdgSD','scene','854262jVEuiV','random','(((.+)+)+)+$','name','1911420zgMsrG','toString','search','_name','247Snovhn','4yGNvan'];a50c=function(){return o;};return a50c();}export class NPC extends Player{[a50i(0x14e)];['_dialogue'];[a50i(0x13f)];[a50i(0x146)];constructor(a,b,c,d){const j=a50i;super(d),this['_name']=a,this[j(0x13a)]=b,this[j(0x13f)]=c;}get['name'](){const k=a50i;return this[k(0x14e)];}[a50i(0x141)](){const l=a50i;return this['_dialogue'][Math[l(0x13b)](Math[l(0x148)]()*this[l(0x13a)]['length'])];}[a50i(0x142)](a){const m=a50i,b=a[Math[m(0x13b)](Math[m(0x148)]()*a[m(0x13c)])];this[m(0x13e)](b[m(0x14a)]);}[a50i(0x13e)](a){const n=a50i,b={'actor':this,'rooms':this[n(0x13f)],'scene':this[n(0x146)]},c=new GoCommand(b);c['execute']([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x67;let f=c[d];return f;},a51d(a,b);}const a51h=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0xa3))/0x1+parseInt(f(0xb3))/0x2+-parseInt(f(0x6c))/0x3+parseInt(f(0x95))/0x4*(-parseInt(f(0x92))/0x5)+-parseInt(f(0x78))/0x6+parseInt(f(0x6f))/0x7+parseInt(f(0xb4))/0x8*(parseInt(f(0xad))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xcbaae));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const g=a51d;return a51a[g(0x69)]()[g(0x84)](g(0x8e))[g(0x69)]()[g(0xac)](a51a)[g(0x84)](g(0x8e));});a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';function a51c(){const B=['9DpbPEF','legs','Helmet','bodyarmor','playerName','inventoryItems','215956IlzsAC','17474840kdYPHo','removeItem','leg\x20armor','enterRoom','weapon','Failed\x20to\x20remove\x20','equipment','helmet','write','_inventory','Invalid\x20category\x20or\x20slot:\x20','_playerName','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','_equipment','leaveRoom','toString','logger','\x20to\x20player\x27s\x20inventory.','3533886cFHbml','arms','You\x20don\x27t\x20have\x20','11650394lnkczS','You\x20equipped\x20','gloves','currentLocation','Nexus','Shield','log','\x20is\x20no\x20longer\x20listeng\x20in\x20','feet','7151652sRQqEY','hat','currentWeight','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','arm\x20armor','addItem','initialEquipment','addInventory','Boots','includes','name','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','search','inventory','_currentLocation','maxCarryingWeight','torso','startLocation','category','ArmArmor','removeInventory','unequip','(((.+)+)+)+$','values','bind','\x20from\x20player\x27s\x20inventory.','6710035AzOQZG','BodyArmor','Hat','4geEZJN','A\x20featureless\x20room','Added\x20','Max\x20carrying\x20weight\x20must\x20be\x20positive.','rightHand','\x20says:\x20\x22','Weapon','head','_maxCarryingWeight','hear','legarmor','unequipBySlot','weight','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','589458QFQlxf','determineEquipmentSlot','canEquip','toLowerCase','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','LegArmor','body\x20armor','getWeight','shield','constructor'];a51c=function(){return B;};return a51c();}export class Player extends AbstractPlayer{['_playerName'];[a51h(0x86)];[a51h(0xbd)];['_equipment'];[a51h(0x9d)]=0x32;[a51h(0x6a)];constructor(a){const i=a51h;super(),this[i(0xbf)]=a[i(0xb1)],this[i(0x86)]=a[i(0x89)]||new Room({'name':i(0x73),'description':i(0x96)}),this[i(0xbd)]=new Inventory(),this[i(0x6a)]=Logger['getInstance']();if(a?.[i(0xb2)])for(const b of a[i(0xb2)]){this[i(0xbd)][i(0x7d)](b);}this[i(0x67)]=a?.[i(0x7e)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get['name'](){return this['_playerName'];}get[a51h(0x72)](){const j=a51h;return this[j(0x86)];}set[a51h(0x72)](a){const k=a51h;this[k(0x86)]!==a&&(this['leaveRoom'](),this[k(0xb7)](a)),this[k(0x86)]=a;}get[a51h(0x85)](){const l=a51h;return this[l(0xbd)];}get[a51h(0xba)](){const m=a51h;return this[m(0x67)];}set[a51h(0xba)](a){const n=a51h;this[n(0x67)]=a;}get[a51h(0x87)](){const o=a51h;return this[o(0x9d)];}set['maxCarryingWeight'](a){const p=a51h;a>0x0?this['_maxCarryingWeight']=a:console['error'](p(0x98));}get[a51h(0x7a)](){const q=a51h;let a=this[q(0xbd)][q(0xaa)]();for(const b in this[q(0x67)]){const c=this[q(0x67)][b];c&&(a+=c[q(0xa1)]);}return a;}[a51h(0x7f)](a){const r=a51h;if(this[r(0x7a)]+a['weight']>this['maxCarryingWeight']){this['logger'][r(0xbc)](r(0xa7));throw new Error(r(0xc0));}this[r(0xbd)][r(0x7d)](a),this['logger'][r(0xbc)](r(0x97)+a[r(0x82)]+r(0x6b));}[a51h(0x8c)](a){const s=a51h;if(this['_inventory'][s(0xb5)](a['name']))return this[s(0x6a)][s(0xbc)]('Removed\x20'+a[s(0x82)]+s(0x91)),!![];return this[s(0x6a)][s(0xbc)](s(0xb9)+a['name']+s(0x91)),![];}['equip'](a){const t=a51h;if(!this['_inventory']['hasItem'](a['name']))return t(0x6e)+a[t(0x82)]+'\x20in\x20your\x20inventory.';if(!this[t(0xa5)](a))return'You\x20can\x27t\x20equip\x20'+a['name']+'.';const b=this[t(0xa4)](a['category']);if(!b)return a['name']+t(0x7b);if(this[t(0xba)][b])return t(0xa2)+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this[t(0xba)][b]=a,this[t(0x8c)](a),t(0x70)+a[t(0x82)]+'.';}[a51h(0x8d)](a){const u=a51h;let b=a;if(!this[u(0xba)][camelCase(b)]){b=this[u(0xa4)](a);if(!b)return u(0xbe)+a+'.';}return this[u(0xa0)](b);}['determineEquipmentSlot'](a){const v=a51h;switch(a[v(0xa6)]()){case Category[v(0x9b)]['toLowerCase']():return v(0x99);case Category[v(0x74)][v(0xa6)]():return'leftHand';case Category['Gloves']['toLowerCase']():return v(0x71);case Category[v(0xaf)][v(0xa6)]():case Category[v(0x94)][v(0xa6)]():return v(0x9c);case Category[v(0x80)]['toLowerCase']():return v(0x77);case Category[v(0xa8)][v(0xa6)]():return'legs';case Category[v(0x8b)][v(0xa6)]():return v(0x6d);case Category[v(0x93)][v(0xa6)]():return v(0x88);case v(0xb8):return v(0x99);case v(0xab):return'leftHand';case v(0x71):return v(0x71);case v(0xbb):case v(0x79):return v(0x9c);case'boots':return v(0x77);case v(0xb6):case v(0x9f):return v(0xae);case v(0x7c):case'armarmor':return'arms';case v(0xa9):case v(0xb0):case'torso':return v(0x88);default:return null;}}[a51h(0xa5)](a){const w=a51h;return Object[w(0x8f)](Category)[w(0x81)](a[w(0x8a)]);}[a51h(0xa0)](a){const x=a51h,b=this[x(0xba)][a];if(!b)return x(0x83)+a+'\x20slot.';return this['addInventory'](b),this[x(0xba)][a]=null,'You\x20unequipped\x20'+b[x(0x82)]+'.';}['hear'](a,b){const y=a51h;a!==this&&this[y(0x6a)][y(0x75)](a['name']+y(0x9a)+b+'\x22');}['enterRoom'](a){const z=a51h;this[z(0x86)]=a,a['on']('speak',this[z(0x9e)][z(0x90)](this)),this[z(0x6a)][z(0xbc)](this['name']+'\x20is\x20now\x20listening\x20in\x20room\x20'+a['name']);}[a51h(0x68)](){const A=a51h;this[A(0x86)]&&(this[A(0x86)]['off']('speak',this[A(0x9e)][A(0x90)](this)),this[A(0x6a)][A(0xbc)](this['name']+A(0x76)+this[A(0x86)][A(0x82)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x157))/0x1+parseInt(f(0x154))/0x2*(parseInt(f(0x14d))/0x3)+parseInt(f(0x14e))/0x4*(-parseInt(f(0x15d))/0x5)+parseInt(f(0x150))/0x6*(parseInt(f(0x161))/0x7)+parseInt(f(0x168))/0x8*(-parseInt(f(0x165))/0x9)+-parseInt(f(0x159))/0xa+-parseInt(f(0x164))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x920a6));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x152)]()[h(0x153)](h(0x15f))[h(0x152)]()[h(0x14c)](a52a)['search']('(((.+)+)+)+$');});a52a();import{Logger}from'../utilities/logger.js';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x14b;var f=c[d];return f;},a52d(a,b);}function a52c(){var m=['requiredItem','toString','search','232726xjDpRU','apply','rewardItem','449667yyTVOx','solved','9403860peTaqs','solve','failureMessage','matchesRequiredPhrase','61045eQhlQY','getInstance','(((.+)+)+)+$','write','8596sDnYQl','logger','You\x20have\x20already\x20solved\x20this\x20puzzle.','569250bwTryo','18ZceGoP','You\x20solved\x20the\x20puzzle!','successMessage','222664dXFoGH','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','requiredPhrase','hasRequiredItem','constructor','9dwVwht','64yvNoic','riddle','5094eECdyW'];a52c=function(){return m;};return a52c();}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52i(0x162)]=Logger[a52i(0x15e)]();['solved']=![];[a52i(0x151)];[a52i(0x16a)];[a52i(0x14f)];[a52i(0x156)];['successMessage'];[a52i(0x15b)];constructor(a){var j=a52i;super(),this[j(0x151)]=a['requiredItem'],this[j(0x16a)]=a['requiredPhrase'],this[j(0x14f)]=a[j(0x14f)],this[j(0x156)]=a[j(0x156)],this[j(0x167)]=a[j(0x167)]||j(0x166),this[j(0x15b)]=a[j(0x15b)]||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}[a52i(0x14b)](a){var k=a52i;if(this[k(0x151)])return a['hasItem'](this[k(0x151)]);return![];}[a52i(0x15c)](a){return this['requiredPhrase']===a;}[a52i(0x15a)](a,b){var l=a52i;if(this[l(0x158)])return this[l(0x162)]['write'](l(0x169)),{'success':![],'message':l(0x163)};return this[l(0x14b)](b)||this[l(0x15c)](a)?(this[l(0x158)]=!![],this[l(0x162)][l(0x160)]('Puzzle:\x20Correct\x20solution\x20provided.'),{'success':!![],'message':this[l(0x167)]}):(this[l(0x162)][l(0x160)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[l(0x15b)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53h=a53d;
|
|
1
|
+
const a53h=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0xc0))/0x1+-parseInt(f(0xb9))/0x2+-parseInt(f(0xb8))/0x3+-parseInt(f(0xc8))/0x4+-parseInt(f(0xc3))/0x5+-parseInt(f(0xca))/0x6+-parseInt(f(0xc6))/0x7*(-parseInt(f(0xb0))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x58cc7));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const g=a53d;return a53a['toString']()[g(0xcb)](g(0xc7))[g(0xbc)]()['constructor'](a53a)['search'](g(0xc7));});a53a();import{Logger}from'../utilities/logger.js';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x9f;let f=c[d];return f;},a53d(a,b);}import{RoomType,Direction}from'../types/enums.js';function a53c(){const t=['write','\x20is\x20locked.\x20Result:\x20','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','Checking\x20if\x20exit\x20in\x20direction\x20','\x20unlocked!','getInstance','roomB','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','west','\x20remains\x20locked.','setPuzzle','Room\x20created:\x20','Item\x20removed\x20from\x20room\x20','.\x20Success:\x20','attemptUnlock','DOWN','Puzzle\x20set\x20for\x20room\x20','name','say','set','getOppositeDirection','east','The\x20','Invalid\x20direction:\x20','isExitLocked','exits','down','get','logger','Fetching\x20exit\x20in\x20direction:\x20','riddle','findExistingDoor','4798328OGMooZ','inventory','WEST','roomType','description','addExit','roomA','INSIDE','1146261mMtixv','990560hxZdpF','No\x20locked\x20exit\x20found\x20in\x20direction\x20','Item\x20added\x20to\x20room\x20','toString','getExit','values','isStartRoom','399470rBYYsh','puzzle','EAST','1705570JvdVKo','removeItem','NORTH','28OTIcvJ','(((.+)+)+)+$','1179516zTsmqu','attemptUnlockExit','735690rBNxWK','search','SOUTH','emit'];a53c=function(){return t;};return a53c();}import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a53h(0xac)]=Logger[a53h(0xd3)]();[a53h(0xa1)];['description'];[a53h(0xa9)]=new Map();[a53h(0xb3)];[a53h(0xbf)];[a53h(0xb1)]=new Inventory();constructor(a){const i=a53h;super(),this['name']=a['name'],this['description']=a[i(0xb4)],this[i(0xb3)]=a['roomType']||RoomType[i(0xb7)],a[i(0xa9)]&&(this['exits']=a[i(0xa9)]||new Map()),a['inventory']&&(this[i(0xb1)]=a[i(0xb1)]),a[i(0xc1)]&&(this[i(0xc1)]=a[i(0xc1)]),this[i(0xbf)]=a[i(0xbf)]||![],this['logger'][i(0xce)](i(0xd9)+this[i(0xa1)]);}[a53h(0xa2)](a,b){const j=a53h;this[j(0xcd)]('speak',a,b);}[a53h(0xb5)](a,b,c){const k=a53h;let d=this[k(0xaf)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[k(0xa9)][k(0xa3)](a,d),b['exits']['set'](this[k(0xa4)](a),d);}[a53h(0xc9)](a,b){const l=a53h,c=this['exits'][l(0xab)](a);if(c instanceof Door){const d=c[l(0xdc)](b);return this[l(0xac)][l(0xce)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+l(0xdb)+d),d?l(0xa6)+c[l(0xa1)]+l(0xd2):l(0xa6)+c[l(0xa1)]+l(0xd7);}return this[l(0xac)][l(0xce)](l(0xba)+a),l(0xd5);}[a53h(0xbd)](a){const m=a53h;return this[m(0xac)]['write'](m(0xad)+a),this['exits'][m(0xab)](a);}[a53h(0xa8)](a){const n=a53h,b=this[n(0xa9)][n(0xab)](a),c=b instanceof Door&&b['checkIfLocked']();return this[n(0xac)][n(0xce)](n(0xd1)+a+n(0xcf)+c),c;}['addItem'](a){const o=a53h;this[o(0xb1)]['addItem'](a),this[o(0xac)][o(0xce)](o(0xbb)+this[o(0xa1)]+':\x20'+a[o(0xa1)]);}[a53h(0xc4)](a){const p=a53h;this[p(0xb1)]['hasItem'](a[p(0xa1)])?(this[p(0xb1)][p(0xc4)](a[p(0xa1)]),this['logger'][p(0xce)](p(0xda)+this[p(0xa1)]+':\x20'+a['name'])):this[p(0xac)]['write'](p(0xd0)+this[p(0xa1)]+':\x20'+a[p(0xa1)]);}[a53h(0xd8)](a){const q=a53h;this[q(0xc1)]=a,this[q(0xac)][q(0xce)](q(0xa0)+this[q(0xa1)]+':\x20'+a[q(0xae)]);}[a53h(0xa4)](a){const r=a53h;switch(a){case'north':return Direction[r(0xcc)];case'south':return Direction[r(0xc5)];case r(0xa5):return Direction[r(0xb2)];case r(0xd6):return Direction[r(0xc2)];case'up':return Direction[r(0x9f)];case r(0xaa):return Direction['UP'];default:throw new Error(r(0xa7)+a);}}[a53h(0xaf)](a){const s=a53h;for(const b of this['exits'][s(0xbe)]()){if(b instanceof Door){if(b[s(0xb6)]===this&&b['roomB']===a||b[s(0xd4)]===this&&b[s(0xb6)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a54l=a54d;function
|
|
1
|
+
const a54l=a54d;function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a54d(a,b);}(function(a,b){const i=a54d,c=a();while(!![]){try{const d=-parseInt(i(0x1b6))/0x1+parseInt(i(0x1b1))/0x2*(parseInt(i(0x1e5))/0x3)+parseInt(i(0x1e3))/0x4*(-parseInt(i(0x1c7))/0x5)+parseInt(i(0x1cb))/0x6*(-parseInt(i(0x1f3))/0x7)+-parseInt(i(0x1ba))/0x8+parseInt(i(0x1ab))/0x9+parseInt(i(0x1b7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x5e981));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a54d;if(c){const e=c[j(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const k=a54d;return a54a['toString']()[k(0x1f0)]('(((.+)+)+)+$')[k(0x1dc)]()[k(0x1f1)](a54a)['search'](k(0x1f4));});function a54c(){const D=['targetRoom','determineStartRoom','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','Removed\x20room\x20from\x20scene:\x20','player','Room\x20\x22','273124MvuEAC','join','3MztVKj','\x22\x20does\x20not\x20exist.','generateRoomsFromConfig','delete','getCharacterLocation','set','direction','has','currentLocation','rooms','\x20found\x20in\x20the\x20scene.','search','constructor','get','1211378vKUqdH','(((.+)+)+)+$','roomFactory','Failed\x20to\x20set\x20','setCharacterLocation','3184092euSQUY','write','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','\x20to\x20room\x20','characterLocations','addRoom','663130ChmWqj','Failed\x20to\x20add\x20puzzle.\x20Room\x20','logger','push','createExitsFromConfig','100879cUsFPC','2576070adqOOG','Actor\x20with\x20name\x20','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','1160064zGEeCC','roomConfiguration','addPuzzleToRoom','initialize','addItem','Scene\x20initialized\x20with\x20rooms:\x20','hasOwnProperty','length','keys','addActor','\x27s\x20location.\x20Room\x20','exits','connectRooms','10aWhivW','Added\x20room\x20to\x20scene:\x20','getInstance','actors','6dVWSha','createRoom','Added\x20puzzle\x20to\x20room\x20','isStartRoom','getRooms','keyRequired','apply','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','\x20is\x20now\x20in\x20room\x20','addItemToRoom','name','warn','getPlayer','.\x20Room\x20','setPuzzle','No\x20actor\x20with\x20name\x20','\x20not\x20found\x20in\x20scene.','toString'];a54c=function(){return D;};return a54c();}a54a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];[a54l(0x1e1)];[a54l(0x1b3)];[a54l(0x1ca)];[a54l(0x1af)]=new Map();[a54l(0x1f5)];constructor(a){const m=a54l;super(),this[m(0x1f5)]=new RoomFactory(),this[m(0x1e1)]=a[m(0x1e1)],this[m(0x1ee)]=this[m(0x1e7)](a[m(0x1bb)]),this['logger']=Logger[m(0x1c9)](),this[m(0x1ca)]=new Map(),this[m(0x1b5)](a[m(0x1bb)]),this[m(0x1b3)][m(0x1ac)](m(0x1bf)+Object[m(0x1c2)](this[m(0x1ee)])[m(0x1e4)](',\x20'));}[a54l(0x1bd)](){const n=a54l;this['player'][n(0x1ed)]=this[n(0x1de)]();}['generateRoomsFromConfig'](a){const o=a54l;if(!this[o(0x1f5)])throw new Error(o(0x1ad));const b={};for(const c of a){const d=this[o(0x1f5)][o(0x1cc)](c);b[c[o(0x1d5)]]=d;}return b;}[a54l(0x1b5)](a){const p=a54l;for(const b of a){const c=this['rooms'][b[p(0x1d5)]];if(b[p(0x1c5)])for(const d of b[p(0x1c5)]){const e=d[p(0x1eb)]['toUpperCase'](),f=d[p(0x1dd)],g=d[p(0x1d0)],h=this[p(0x1ee)][f];h&&c['addExit'](Direction[e],h,g);}}}[a54l(0x1c3)](a){const q=a54l;if(this[q(0x1ca)][q(0x1ec)](a['name']))throw new Error(q(0x1b8)+a['name']+'\x20already\x20exists\x20in\x20the\x20scene.');this[q(0x1ca)][q(0x1ea)](a[q(0x1d5)],a);}['removeActor'](a){const r=a54l;if(!this[r(0x1ca)]['has'](a))throw new Error(r(0x1da)+a+r(0x1ef));this['actors'][r(0x1e8)](a);}['getActor'](a){const s=a54l;return this[s(0x1ca)][s(0x1f2)](a);}get['allActors'](){const t=a54l;return Array['from'](this[t(0x1ca)]['values']());}[a54l(0x1b0)](a){const u=a54l;this[u(0x1ee)][a[u(0x1d5)]]=a,this[u(0x1b3)][u(0x1ac)](u(0x1c8)+a[u(0x1d5)]);}['removeRoom'](a){const v=a54l;return this[v(0x1ee)][a]?(delete this[v(0x1ee)][a],this[v(0x1b3)][v(0x1ac)](v(0x1e0)+a),!![]):(this[v(0x1b3)][v(0x1ac)](v(0x1b9)+a),![]);}[a54l(0x1d4)](a,b){const w=a54l,c=this[w(0x1ee)][b];c?(c[w(0x1be)](a),this[w(0x1b3)][w(0x1ac)]('Added\x20item\x20'+a[w(0x1d5)]+w(0x1ae)+c[w(0x1d5)])):this[w(0x1b3)][w(0x1ac)]('Failed\x20to\x20add\x20item\x20'+a[w(0x1d5)]+w(0x1d8)+b+w(0x1db));}[a54l(0x1bc)](a,b){const x=a54l,c=this[x(0x1ee)][b];c?(c[x(0x1d9)](a),this[x(0x1b3)][x(0x1ac)](x(0x1cd)+c[x(0x1d5)])):this['logger'][x(0x1ac)](x(0x1b2)+b+x(0x1db));}[a54l(0x1aa)](a,b){const y=a54l,c=this[y(0x1ee)][b];c?(this[y(0x1af)][y(0x1ea)](a[y(0x1d5)],c),this[y(0x1b3)][y(0x1ac)](a[y(0x1d5)]+y(0x1d3)+c[y(0x1d5)])):this[y(0x1b3)][y(0x1ac)](y(0x1a9)+a[y(0x1d5)]+y(0x1c4)+b+y(0x1db));}[a54l(0x1e9)](a){const z=a54l;return this[z(0x1af)][z(0x1f2)](a['name']);}[a54l(0x1de)](){const A=a54l,a=[];for(const c in this[A(0x1ee)]){if(this[A(0x1ee)][A(0x1c0)](c)){const d=this[A(0x1ee)][c];d[A(0x1ce)]&&a[A(0x1b4)](d);}}if(a['length']>0x1)throw new Error(A(0x1df));if(a[A(0x1c1)]===0x1)return a[0x0];const b=Object['keys'](this[A(0x1ee)]);if(b[A(0x1c1)]===0x0)throw new Error('No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.');return console[A(0x1d6)](A(0x1d2)),this[A(0x1ee)][b[0x0]];}[a54l(0x1d7)](){return this['player'];}[a54l(0x1cf)](){const B=a54l;return this[B(0x1ee)];}[a54l(0x1c6)](a,b,c,d){const C=a54l,e=this[C(0x1ee)][a],f=this[C(0x1ee)][c];if(!e)throw new Error(C(0x1e2)+a+C(0x1e6));if(!f)throw new Error(C(0x1e2)+c+'\x22\x20does\x20not\x20exist.');e['addExit'](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a55j=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d
|
|
1
|
+
var a55j=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(0x19a))/0x1+-parseInt(f(0x1ae))/0x2+parseInt(f(0x195))/0x3+-parseInt(f(0x19c))/0x4*(-parseInt(f(0x1a0))/0x5)+-parseInt(f(0x1c1))/0x6+parseInt(f(0x1a4))/0x7*(parseInt(f(0x190))/0x8)+parseInt(f(0x1a7))/0x9*(-parseInt(f(0x198))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xba0e7));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x1bf)]()[h(0x1a2)](h(0x1ac))[h(0x1bf)]()[h(0x1a5)](a55a)[h(0x1a2)](h(0x1ac));});a55a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x18f;var f=c[d];return f;},a55d(a,b);}export class BasicItem extends Item{constructor(a,b){var i=a55d;super({'name':a,'description':b,'size':Size[i(0x19d)],'category':Category[i(0x197)],'shape':Shape[i(0x1b5)],'color':Color[i(0x1ab)],'texture':Texture['Smooth'],'rating':Rating['Common'],'weight':0x1});}[a55j(0x1be)](){var k=a55j;return this[k(0x1c2)];}}export class Sword extends Item{constructor(a,b){var l=a55j;super({'name':a,'description':b,'size':Size[l(0x19d)],'category':Category[l(0x1b8)],'shape':Shape[l(0x1c5)],'color':Color[l(0x1b9)],'texture':Texture[l(0x1a3)],'rating':Rating[l(0x191)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var m=a55j;super({'name':a,'description':b,'size':Size[m(0x1c3)],'category':Category[m(0x1b8)],'shape':Shape['Rifle'],'color':Color[m(0x1b4)],'texture':Texture[m(0x1a3)],'rating':Rating['Rare'],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var n=a55j;super({'name':a,'description':b,'size':Size[n(0x19d)],'category':Category[n(0x1c4)],'shape':Shape[n(0x199)],'color':Color[n(0x1b9)],'texture':Texture[n(0x1a3)],'rating':Rating[n(0x191)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var o=a55j;super({'name':a,'description':b,'size':Size[o(0x1c3)],'category':Category['BodyArmor'],'shape':Shape[o(0x1b5)],'color':Color[o(0x1b9)],'texture':Texture[o(0x1a3)],'rating':Rating[o(0x191)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var p=a55j;super({'name':a,'description':b,'size':Size[p(0x19d)],'category':Category['LegArmor'],'shape':Shape['Rectangle'],'color':Color['Grey'],'texture':Texture[p(0x1a3)],'rating':Rating[p(0x191)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var q=a55j;super({'name':a,'description':b,'size':Size[q(0x19d)],'category':Category[q(0x1ba)],'shape':Shape[q(0x199)],'color':Color[q(0x1b4)],'texture':Texture['Smooth'],'rating':Rating['Common'],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var r=a55j;super({'name':a,'description':b,'size':Size[r(0x1b3)],'category':Category['Gloves'],'shape':Shape[r(0x199)],'color':Color[r(0x1b4)],'texture':Texture['Smooth'],'rating':Rating[r(0x191)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a55j;super({'name':a,'description':b,'size':Size[s(0x19d)],'category':Category[s(0x1aa)],'shape':Shape[s(0x1b5)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating[s(0x191)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var t=a55j;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category[t(0x1b2)],'shape':Shape[t(0x1b5)],'color':Color[t(0x1ab)],'texture':Texture[t(0x1c0)],'rating':Rating['Common'],'weight':0x0});}[a55j(0x1be)](){var u=a55j;return u(0x192);}}export class Weapon extends Item{constructor(a,b){var v=a55j;super({'name':a,'description':b,'size':Size[v(0x19d)],'category':Category[v(0x1b8)],'shape':Shape[v(0x1c5)],'color':Color[v(0x1b9)],'texture':Texture[v(0x1a3)],'rating':Rating[v(0x191)],'weight':0x3});}[a55j(0x1be)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}function a55c(){var E=['20iXdEdm','Circle','128182ZDaJzj','\x20aloft,\x20feeling\x20its\x20immense\x20power.','2028NWUsln','Medium','apply','Sniper\x20Rifle','15000jKkDBA','pageCount','search','Metallic','147BdaVbW','constructor','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','7060968bmZRHa','Legendary','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','ArmArmor','Yellow','(((.+)+)+)+$','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','1189548AvcKuM','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','Short\x20Sword','Cup','Key','Small','Brown','Rectangle','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Unknown\x20Author','Weapon','Grey','Boots','You\x20hold\x20the\x20','publishDate','author','use','toString','Smooth','605958xKkvHX','description','Large','Helmet','Blade','A\x20mysterious\x20book.','129384Bcbkpt','Common','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','Book','3114429fQJaeL','Holy\x20Grail','Unknown'];a55c=function(){return E;};return a55c();}export class Book extends Item{[a55j(0x1bd)];['publishDate'];[a55j(0x1a1)];constructor(a,b=a55j(0x18f),c=a55j(0x1b7)){var w=a55j;super({'name':a,'description':b,'size':Size[w(0x19d)],'category':Category[w(0x194)],'shape':Shape[w(0x1b5)],'color':Color['Brown'],'texture':Texture['Smooth'],'rating':Rating[w(0x191)],'weight':0x1}),this[w(0x1bd)]=c,this[w(0x1bc)]=new Date(),this[w(0x1a1)]=0x64;}[a55j(0x1be)](){var x=a55j;return x(0x193);}}export class ShortSword extends Item{constructor(){var y=a55j;super({'name':y(0x1b0),'description':y(0x1a9),'size':Size[y(0x19d)],'category':Category[y(0x1b8)],'shape':Shape[y(0x1c5)],'color':Color[y(0x1b9)],'texture':Texture[y(0x1a3)],'rating':Rating[y(0x191)],'weight':0x3});}[a55j(0x1be)](){var z=a55j;return z(0x1b6);}}export class SniperRifle extends Item{constructor(){var A=a55j;super({'name':A(0x19f),'description':A(0x1af),'size':Size[A(0x1c3)],'category':Category[A(0x1b8)],'shape':Shape['Rifle'],'color':Color['Brown'],'texture':Texture[A(0x1c0)],'rating':Rating[A(0x191)],'weight':0x5});}['use'](){var B=a55j;return B(0x1a6);}}export class HolyGrail extends Item{constructor(){var C=a55j;super({'name':C(0x196),'description':C(0x1ad),'size':Size['Small'],'category':Category[C(0x1b1)],'shape':Shape[C(0x199)],'color':Color['Gold'],'texture':Texture[C(0x1a3)],'rating':Rating[C(0x1a8)],'weight':0x1});}[a55j(0x1be)](){var D=a55j;return D(0x1bb)+this['name']+D(0x19b);}}
|