@maka/maka-cli 4.5.30 → 4.5.32
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 -0
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36i=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d=parseInt(f(0x19f))/0x1+parseInt(f(0x18e))/0x2+-parseInt(f(0x1b7))/0x3*(-parseInt(f(0x19d))/0x4)+parseInt(f(0x1b5))/0x5*(-parseInt(f(0x1b4))/0x6)+-parseInt(f(0x18f))/0x7*(parseInt(f(0x1b9))/0x8)+parseInt(f(0x193))/0x9*(-parseInt(f(0x1bc))/0xa)+-parseInt(f(0x1a5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x45d82));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a[h(0x1a9)]()[h(0x196)](h(0x1ab))[h(0x1a9)]()[h(0x19b)](a36a)['search']('(((.+)+)+)+$');});function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x18d;let f=c[d];return f;},a36d(a,b);}a36a();import{Command}from'./command.js';function a36c(){const l=['message','toString','apply','(((.+)+)+)+$','\x22\x20to\x20','inventory','getItem','\x20during\x20\x27Take\x27\x20command.','addInventory','You\x20have\x20taken\x20the\x20','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','removeItem','714zYNjbG','3535ykgDXE','\x22\x20in\x20this\x20room.','71220IQNTlG','hasItem','80IkMahw','\x22\x20from\x20','Successfully\x20added\x20\x22','20hrgLVm','\x22\x20not\x20found\x20in\x20','1140032zHOKab','215432RSIoQE','toLowerCase','name','actor','559863ShAOVh','Successfully\x20removed\x20\x22','There\x20is\x20no\x20item\x20\x22','search','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','The\x20item\x20\x22','currentLocation','logger','constructor','join','68IYsKcM','Pick\x20up\x20an\x20item.','412710Tzbdtj','execute','verb','Item\x20\x22','write','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','6423087INNPCs','take','description'];a36c=function(){return l;};return a36c();}export class TakeCommand extends Command{static [a36i(0x1a1)]=a36i(0x1a6);static [a36i(0x1a7)]=a36i(0x19e);[a36i(0x1a0)](a){const j=a36i;return this[j(0x19a)][j(0x1a3)](j(0x197)+a[j(0x19c)]('\x20')),this['take'](a);}[a36i(0x1a6)](a){const k=a36i,b=a['join']('\x20')[k(0x190)](),c=this[k(0x192)][k(0x199)];if(!c[k(0x1ad)][k(0x1b8)](b))return this[k(0x19a)][k(0x1a3)](k(0x1a2)+b+k(0x18d)+c[k(0x191)]+k(0x1af)),'There\x20is\x20no\x20item\x20\x22'+b+k(0x1b6);const d=c[k(0x1ad)][k(0x1ae)](b);if(!d)return this[k(0x19a)][k(0x1a3)](k(0x1a2)+b+'\x22\x20not\x20retrieved\x20from\x20'+c[k(0x191)]+k(0x1a4)),k(0x195)+b+'\x22\x20in\x20this\x20room.';try{return this[k(0x192)][k(0x1b0)](d),this[k(0x19a)][k(0x1a3)](k(0x1bb)+b+k(0x1ac)+this[k(0x192)][k(0x191)]+k(0x1b2)),c['inventory'][k(0x1b3)](b),this[k(0x19a)][k(0x1a3)](k(0x194)+b+k(0x1ba)+c[k(0x191)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x1b1)+b+'.';}catch(e){return this[k(0x19a)][k(0x1a3)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[k(0x1a8)]),k(0x198)+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a37c(){const k=['1815732qBxXfb','\x20unqeuiped\x20','execute','verb','14258LNPVCt','2802663SNNEIZ','31600FnopAC','description','7fxoRVM','constructor','223048EbUQyP','UnequipCommand:\x20','write','156CMWnHe','9nkZDRO','name','(((.+)+)+)+$','4526480YdpWEf','join','toString','apply','1268465ZpbErw'];a37c=function(){return k;};return a37c();}const a37i=a37d;function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a37d(a,b);}(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x1d7))/0x1*(-parseInt(f(0x1e4))/0x2)+parseInt(f(0x1e5))/0x3+parseInt(f(0x1ea))/0x4+parseInt(f(0x1df))/0x5+parseInt(f(0x1e0))/0x6+-parseInt(f(0x1e8))/0x7*(-parseInt(f(0x1db))/0x8)+-parseInt(f(0x1d8))/0x9*(parseInt(f(0x1e6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xf35d8));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a['toString']()['search'](h(0x1da))[h(0x1dd)]()[h(0x1e9)](a37a)['search']('(((.+)+)+)+$');});a37a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a37i(0x1e3)]='unqeuip';static [a37i(0x1e7)]='Unequip\x20an\x20item.';[a37i(0x1e2)](a){const j=a37i,b=a[j(0x1dc)]('\x20')['toLowerCase'](),c=this['actor']['unequip'](b);return this['logger'][j(0x1ec)](j(0x1eb)+this['actor'][j(0x1d9)]+j(0x1e1)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=parseInt(h(0x197))/0x1+parseInt(h(0x1a9))/0x2*(-parseInt(h(0x1b5))/0x3)+-parseInt(h(0x19d))/0x4*(parseInt(h(0x1a1))/0x5)+parseInt(h(0x1b2))/0x6*(parseInt(h(0x1a5))/0x7)+-parseInt(h(0x19b))/0x8*(-parseInt(h(0x1a7))/0x9)+-parseInt(h(0x1b9))/0xa*(-parseInt(h(0x19c))/0xb)+-parseInt(h(0x1aa))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x44ca4));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a38d;if(c){const e=c[i(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a[j(0x1b1)]()['search'](j(0x1ad))[j(0x1b1)]()[j(0x1ba)](a38a)[j(0x1bc)](j(0x1ad));});function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x196;let f=c[d];return f;},a38d(a,b);}a38a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static ['verb']=a38k(0x1a0);static ['description']=a38k(0x1ac);[a38k(0x196)](a){const l=a38k;return this[l(0x1a0)](a);}[a38k(0x1a0)](a){const m=a38k;if(a[m(0x19f)]===0x0)return this[m(0x1a2)][m(0x1bf)](m(0x1ae)),m(0x1b3);const b=a[0x0][m(0x1bd)](),c=this[m(0x199)][m(0x198)];if(this[m(0x1c0)](b)&&c[m(0x1b6)][m(0x19e)](b)){const d=c[m(0x1b6)]['get'](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.[m(0x1bd)]();if(e&&this['actor'][m(0x1b4)][m(0x1a8)](e)){const f=this['actor'][m(0x1b4)]['getItem'](e);if(f){const g=c[m(0x1be)](b,f[m(0x1bb)]);return this['logger'][m(0x1a4)]('UnlockCommand:\x20'+this[m(0x199)][m(0x1bb)]+m(0x1a6)+b+'.\x20Result:\x20'+g),g;}}return this[m(0x1a2)][m(0x1a4)](m(0x1b8)+this[m(0x199)][m(0x1bb)]+m(0x19a)+b+'.'),m(0x1a3);}else return this[m(0x1a2)]['write'](m(0x1b8)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[m(0x1bb)]+'.'),m(0x1b7)+b+m(0x1ab);}else return this[m(0x1a2)]['write'](m(0x1b8)+b+m(0x1b0)+c['name']+'.'),m(0x1b7)+b+m(0x1ab);}}function a38c(){const n=['execute','206881gnzJUH','currentLocation','actor','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','1744qbEmWv','2487683ClJmld','2428VRIUPo','has','length','unlock','2300xZAPHO','logger','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','write','1024163SwOSjO','\x20is\x20attempted\x20to\x20unlock\x20','19143GJVfRW','hasItem','10ziHAPR','8215296wvFgSc','\x22\x20here.','Unlock\x20a\x20door.','(((.+)+)+)+$','UnlockCommand:\x20No\x20target\x20specified.','apply','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','toString','6NygroI','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','inventory','14154QNUfAa','exits','There\x27s\x20no\x20door\x20named\x20\x22','UnlockCommand:\x20','20FzJOoL','constructor','name','search','toLowerCase','attemptUnlockExit','error','isValidDirection'];a38c=function(){return n;};return a38c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a39c(){const k=['actor','56dQgloP','description','write','(((.+)+)+)+$','173142iMWCJv','\x27s\x20inventory.','execute','583059BlAqEw','toString','\x20in\x20this\x20way.','1828496PukbTj',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','2MWIzuy','\x20to\x20use.','function','11052738mczthM','UseCommand:\x20','search','3338871frgsGB','You\x20don\x27t\x20have\x20the\x20','constructor','2480664taTEEs','inventory','Use\x20an\x20item.','\x20not\x20retrieved\x20from\x20','20hiUmUs','\x20doesn\x27t\x20have\x20a\x20use\x20method.','You\x20can\x27t\x20use\x20the\x20','hasItem','name','getItem','use','5154845ZaMxmQ','verb','logger','\x20attempted\x20to\x20use\x20'];a39c=function(){return k;};return a39c();}const a39h=a39d;function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x17b;let f=c[d];return f;},a39d(a,b);}(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x183))/0x1+parseInt(f(0x188))/0x2*(-parseInt(f(0x18e))/0x3)+-parseInt(f(0x191))/0x4+-parseInt(f(0x19c))/0x5+-parseInt(f(0x180))/0x6*(-parseInt(f(0x17c))/0x7)+parseInt(f(0x186))/0x8+parseInt(f(0x18b))/0x9*(parseInt(f(0x195))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xb3555));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(0x184)]()['search']('(((.+)+)+)+$')['toString']()[g(0x190)](a39a)[g(0x18d)](g(0x17f));});a39a();import{Command}from'./command.js';export class UseCommand extends Command{static [a39h(0x19d)]=a39h(0x19b);static [a39h(0x17d)]=a39h(0x193);[a39h(0x182)](a){const i=a39h;return this[i(0x19b)](a);}['use'](a){const j=a39h,b=a['join']('\x20')['toLowerCase']();if(!this[j(0x17b)]['inventory'][j(0x198)](b))return this[j(0x19e)][j(0x17e)]('UseCommand:\x20'+this[j(0x17b)][j(0x199)]+j(0x19f)+b+j(0x187)),j(0x18f)+b+j(0x189);const c=this[j(0x17b)][j(0x192)][j(0x19a)](b);if(!c)return this[j(0x19e)][j(0x17e)](j(0x18c)+b+j(0x194)+this[j(0x17b)][j(0x199)]+j(0x181)),'You\x20don\x27t\x20have\x20the\x20'+b+j(0x189);if(typeof c[j(0x19b)]===j(0x18a)){const d=c[j(0x19b)]();return this[j(0x19e)][j(0x17e)](j(0x18c)+this[j(0x17b)][j(0x199)]+'\x20used\x20'+b+'.'),d;}else return this[j(0x19e)]['write'](j(0x18c)+b+j(0x196)),j(0x197)+b+j(0x185);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0xee;let f=c[d];return f;},a40d(a,b);}const a40h=a40d;function a40c(){const l=['11105288TANIVy','357474NtnbVX','toString','4223856hevsUV','commandMap','4KbuXWZ','getAllRegisteredCommands','constructor','8550059CuJvIz','registerCommand','search','1266304ZWdLFm','6IZxzay','(((.+)+)+)+$','393325mDuPfM','2364498OwASHb','createCommand'];a40c=function(){return l;};return a40c();}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0xfe))/0x1*(-parseInt(f(0xf1))/0x2)+parseInt(f(0xef))/0x3+parseInt(f(0xf7))/0x4+parseInt(f(0xfa))/0x5*(-parseInt(f(0xf8))/0x6)+-parseInt(f(0xf4))/0x7+parseInt(f(0xfd))/0x8+-parseInt(f(0xfb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xcbd65));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(0xee)]()[g(0xf6)](g(0xf9))[g(0xee)]()[g(0xf3)](a40a)[g(0xf6)](g(0xf9));});a40a();export class CommandFactory{static [a40h(0xf0)]={};static[a40h(0xf5)](a,b){const i=a40h;this[i(0xf0)][a]=b;}static[a40h(0xfc)](a,b){const j=a40h,c=this[j(0xf0)][a];if(c)return new c(b);return null;}static[a40h(0xf2)](){const k=a40h;return this[k(0xf0)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41i=a41d;function a41c(){const o=['boots','rifle','items','content','rewardItem','createRoom','helmet','908380rSiome','key','1233027BuJcBP','book','description','createItem','inventory','toUpperCase','gloves','puzzle','isStartRoom','223751uLTQKP','legarmor','toString','1957362rSywSQ','1293BGJyPS','name','constructor','search','bodyarmor','(((.+)+)+)+$','createPuzzle','forEach','754764pmzCTn','1816vzVtsj','apply','INSIDE','convertToRoomConfig','5672nBbHNv','setPuzzle','10fNCzPx','roomType','1141WrCktE','addItem','2KXWHwq'];a41c=function(){return o;};return a41c();}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0xa1))/0x1*(-parseInt(f(0xb8))/0x2)+-parseInt(f(0xa5))/0x3*(-parseInt(f(0xae))/0x4)+-parseInt(f(0x96))/0x5+parseInt(f(0xad))/0x6+-parseInt(f(0xb6))/0x7*(-parseInt(f(0xb2))/0x8)+-parseInt(f(0x98))/0x9*(parseInt(f(0xb4))/0xa)+-parseInt(f(0xa4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x28145));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0xa3)]()['search'](h(0xaa))[h(0xa3)]()[h(0xa7)](a41a)[h(0xa8)](h(0xaa));});function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x94;let f=c[d];return f;},a41d(a,b);}a41a();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{[a41i(0x94)](a){const j=a41i,b=this[j(0xb1)](a),c=new Room(b);if(a[j(0xbb)]){const d=new Inventory();a[j(0xbb)][j(0xac)](e=>{const k=j;d[k(0xb7)](this['createItem'](e));}),c[j(0x9c)]=d;}return a['puzzle']&&c[j(0xb3)](this[j(0xab)](a[j(0x9f)])),c;}['createItem'](a){const l=a41i;switch(a['type']){case l(0x97):return new Key(a[l(0xa6)],a[l(0x9a)]);case l(0x99):return new Book(a[l(0xa6)],a[l(0x9a)],a[l(0xbc)]);case'sword':return new Sword(a[l(0xa6)],a[l(0x9a)]);case l(0xba):return new Rifle(a[l(0xa6)],a[l(0x9a)]);case l(0x95):return new Helmet(a[l(0xa6)],a[l(0x9a)]);case l(0xa9):return new BodyArmor(a['name'],a[l(0x9a)]);case l(0xa2):return new LegArmor(a[l(0xa6)],a[l(0x9a)]);case l(0xb9):return new Boots(a['name'],a[l(0x9a)]);case l(0x9e):return new Gloves(a[l(0xa6)],a[l(0x9a)]);case'gauntlets':return new Gauntlets(a[l(0xa6)],a['description']);default:return new BasicItem(a[l(0xa6)],a[l(0x9a)]);}}[a41i(0xab)](a){const m=a41i,b=this[m(0x9b)](a[m(0xbd)]);return new Puzzle({...a,'rewardItem':b});}[a41i(0xb1)](a){const n=a41i,b=a[n(0xb5)]&&RoomType[a[n(0xb5)]['toUpperCase']()]?RoomType[a['roomType'][n(0x9d)]()]:RoomType[n(0xb0)];return{'name':a[n(0xa6)],'description':a[n(0x9a)],'isStartRoom':a[n(0xa0)],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=-parseInt(h(0xd1))/0x1+parseInt(h(0xe2))/0x2+-parseInt(h(0xe8))/0x3*(parseInt(h(0xd0))/0x4)+-parseInt(h(0xe3))/0x5*(-parseInt(h(0xca))/0x6)+parseInt(h(0xda))/0x7*(parseInt(h(0xe1))/0x8)+-parseInt(h(0xc8))/0x9+parseInt(h(0xc4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x4f1bd));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0xc2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0xde)]()[j(0xd4)]('(((.+)+)+)+$')['toString']()[j(0xcd)](a42a)['search'](j(0xc7));});a42a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';function a42c(){const s=['apply','help','5283840HvyNON','rooms','getWelcomeMessage','(((.+)+)+)+$','4616910BQKHex','slice','1675734DJKMdg','clear','-\x20quit:\x20Exit\x20the\x20game.\x0a','constructor','equip','handleInput','73076AHyAcg','473043bZIxMG','initialize','createCommand','search','-\x20clear:\x20Clear\x20the\x20screen.\x0a','hasOwnProperty','getDescription','scene','registerCommand','486031cPRlcW','execute','say','determineStartRoom','toString','getRooms','trim','8ZruMFN','938988gbQEam','5bZqaiY','player','currentLocation','getHelpMessage','getAllRegisteredCommands','6ucozaZ','lock','unequip','Available\x20Commands:\x0a','split','quit','currentRoom','instance','use','registerCommands','maka','solve','getInstance','name','drop','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit'];a42c=function(){return s;};return a42c();}import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xb6;let f=c[d];return f;},a42d(a,b);}import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a42k(0xb9)];[a42k(0xd8)];[a42k(0xe4)];[a42k(0xb8)];[a42k(0xc5)];constructor(a,b){const l=a42k;this[l(0xe4)]=a,this[l(0xd8)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0xd8)][l(0xd2)](),this[l(0xe4)][l(0xe5)]=this[l(0xdd)](),this[l(0xbb)]();}['registerCommands'](){const m=a42k;CommandFactory['registerCommand']('look',LookCommand),CommandFactory[m(0xd9)]('go',GoCommand),CommandFactory['registerCommand']('take',TakeCommand),CommandFactory[m(0xd9)](m(0xba),UseCommand),CommandFactory[m(0xd9)](m(0xce),EquipCommand),CommandFactory[m(0xd9)](m(0xea),UnequipCommand),CommandFactory[m(0xd9)](m(0xbd),SolveCommand),CommandFactory[m(0xd9)](m(0xc0),DropCommand),CommandFactory[m(0xd9)]('unlock',UnlockCommand),CommandFactory[m(0xd9)](m(0xe9),LockCommand),CommandFactory['registerCommand']('search',SearchCommand),CommandFactory[m(0xd9)](m(0xdc),SayCommand);}[a42k(0xdd)](){const n=a42k;return this[n(0xd8)][n(0xdd)]();}[a42k(0xc6)](){const o=a42k;return'Welcome,\x20'+this['player'][o(0xbf)];}static[a42k(0xbe)](a,b){const p=a42k;return!Game[p(0xb9)]&&(Game[p(0xb9)]=new Game(a,b)),Game['instance'];}[a42k(0xcf)](a){const q=a42k,b=a[q(0xe0)]()[q(0xb6)]('\x20'),c=b[0x0]['toLowerCase'](),d=b[q(0xc9)](0x1);if(c===q(0xb7))return null;if(c===q(0xbc))return q(0xc1);if(c===q(0xc3))return this['getHelpMessage']();if(c===q(0xcb))return'';const e={'actor':this['player'],'rooms':this['scene'][q(0xdf)](),'scene':this[q(0xd8)]},f=CommandFactory[q(0xd3)](c,e);if(f){const g=f[q(0xdb)](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}[a42k(0xe6)](){const r=a42k,a=CommandFactory[r(0xe7)]();let b=r(0xeb);for(const c in a){if(a[r(0xd6)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0xd7)]()+'\x0a';}}return b+=r(0xd5),b+=r(0xcc),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a43d,c=a();while(!![]){try{var d=-parseInt(f(0x168))/0x1+parseInt(f(0x169))/0x2+-parseInt(f(0x16b))/0x3*(-parseInt(f(0x16a))/0x4)+parseInt(f(0x171))/0x5+parseInt(f(0x170))/0x6+-parseInt(f(0x16c))/0x7+-parseInt(f(0x174))/0x8*(-parseInt(f(0x173))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x54d51));var a43b=(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;};}()),a43a=a43b(this,function(){var g=a43d;return a43a[g(0x16f)]()[g(0x16d)](g(0x172))[g(0x16f)]()[g(0x16e)](a43a)['search'](g(0x172));});a43a();function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x168;var f=c[d];return f;},a43d(a,b);}export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';function a43c(){var h=['592700LNFMfo','1388416hkxrUE','4pRIvbu','582171TLfkkG','3718001nBEOgr','search','constructor','toString','189576LPYkig','2732865GkEpuS','(((.+)+)+)+$','21969WDGnKi','16xEmjOK'];a43c=function(){return h;};return a43c();}export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=-parseInt(f(0x133))/0x1*(parseInt(f(0x129))/0x2)+parseInt(f(0x13a))/0x3+-parseInt(f(0x128))/0x4+parseInt(f(0x136))/0x5+parseInt(f(0x126))/0x6*(-parseInt(f(0x144))/0x7)+parseInt(f(0x139))/0x8+parseInt(f(0x137))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x6941d));var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0x145)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a[h(0x13f)]()[h(0x12f)](h(0x135))[h(0x13f)]()['constructor'](a44a)['search'](h(0x135));});function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0x126;var f=c[d];return f;},a44d(a,b);}a44a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a44c(){var n=['toString','logger','roomB','isLockable','unlockItemOrSolution','196AoVmbV','apply','84irfSTC','Failed\x20to\x20unlock\x20door:\x20','2092628RWOzrY','306234NtXNNa','attemptUnlock','\x20and\x20','Door\x20created\x20between\x20','To\x20','getOtherSide','search','roomA','isLocked','checkIfLocked','1sUuHDL','getInstance','(((.+)+)+)+$','2577630TsIXen','2735820bdpABO','checkIfLockable','1039752JkiNTO','474972KDHoZu','.\x20Used:\x20','name','Door\x20unlocked:\x20','write'];a44c=function(){return n;};return a44c();}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a44i(0x130)];['roomB'];[a44i(0x131)];[a44i(0x143)];[a44i(0x13c)];[a44i(0x140)];[a44i(0x142)];constructor(a){var j=a44i;super(),this['roomA']=a[j(0x130)],this[j(0x141)]=a[j(0x141)],this[j(0x131)]=a['isLocked']||![],this['unlockItemOrSolution']=a['unlockItemOrSolution'],this[j(0x13c)]=a[j(0x13c)]?capitalCase(a['name']):j(0x12d)+a['roomB'][j(0x13c)],this['logger']=Logger[j(0x134)](),this[j(0x142)]=!!a[j(0x143)],this[j(0x140)][j(0x13e)](j(0x12c)+this[j(0x130)][j(0x13c)]+j(0x12b)+this[j(0x141)][j(0x13c)]+'.\x20Is\x20Locked:\x20'+this['isLocked']);}[a44i(0x12e)](a){var k=a44i;return this[k(0x130)]===a?this[k(0x141)]:this[k(0x130)];}[a44i(0x12a)](a){var l=a44i;if(this[l(0x131)]&&this[l(0x143)]&&this[l(0x143)]===a)return this[l(0x131)]=![],this['logger'][l(0x13e)](l(0x13d)+this[l(0x13c)]+l(0x13b)+a),!![];return this['logger'][l(0x13e)](l(0x127)+this[l(0x13c)]+'.\x20Used:\x20'+a),![];}[a44i(0x132)](){return this['isLocked'];}[a44i(0x138)](){var m=a44i;return this[m(0x142)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45h=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0x20e))/0x1+parseInt(f(0x20d))/0x2*(parseInt(f(0x1fa))/0x3)+parseInt(f(0x20a))/0x4*(parseInt(f(0x208))/0x5)+-parseInt(f(0x1f5))/0x6+-parseInt(f(0x1f8))/0x7*(-parseInt(f(0x1fb))/0x8)+parseInt(f(0x213))/0x9+parseInt(f(0x206))/0xa*(-parseInt(f(0x1f7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xdec0a));function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a45d(a,b);}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 g=a45d;return a45a[g(0x200)]()['search'](g(0x1f1))[g(0x200)]()[g(0x201)](a45a)[g(0x1ff)](g(0x1f1));});a45a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';function a45c(){const q=['15257fUUJpl','2475515csXFNN','write','834204LaAmMs','32ggnjTb','get','logger','Checked\x20for\x20item:\x20','search','toString','constructor','name','toLowerCase','Retrieved\x20details\x20for\x20item:\x20','delete','8790QvAUTj','getItem','5ysjnoP','join','7213468XfUROp','addItem','items','2AiJJed','1030621SRLVEK','hasItem','values','\x20from\x20inventory.','.\x20Exists:\x20','10797669SsCiBk','getInstance','map','\x20to\x20inventory.','removeItem','.\x20Item\x20not\x20found.','Added\x20item:\x20','(((.+)+)+)+$','getAllItems','Listed\x20items\x20in\x20inventory:\x20','listItems','9201408pgAiwI','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'];a45c=function(){return q;};return a45c();}import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a45h(0x20c)];[a45h(0x1fd)];constructor(){const i=a45h;super(),this[i(0x20c)]=new Map(),this[i(0x1fd)]=Logger[i(0x214)]();}[a45h(0x20b)](a){const j=a45h;this[j(0x20c)]['set'](a[j(0x202)][j(0x203)](),a),this[j(0x1fd)]['write'](j(0x1f0)+a[j(0x202)]+j(0x1ed));}[a45h(0x1ee)](a){const k=a45h,b=this['getItem'](a);if(b)return this[k(0x20c)][k(0x205)](a[k(0x203)]()),this[k(0x1fd)][k(0x1f9)]('Removed\x20item:\x20'+a+k(0x211)),b;return this[k(0x1fd)][k(0x1f9)]('Failed\x20to\x20remove\x20item:\x20'+a+k(0x1ef)),null;}[a45h(0x20f)](a){const l=a45h,b=this[l(0x20c)]['has'](a[l(0x203)]()),c=[...this['items']['keys']()];return this[l(0x1fd)][l(0x1f9)](l(0x1fe)+a+'\x20in\x20'+c[l(0x209)](',\x20')+l(0x212)+b+'.'),b;}[a45h(0x207)](a){const m=a45h,b=this[m(0x20c)][m(0x1fc)](a['toLowerCase']())||null;return b?this[m(0x1fd)]['write'](m(0x204)+a+'.'):this[m(0x1fd)]['write'](m(0x1f6)+a+m(0x1ef)),b;}[a45h(0x1f4)](){const n=a45h,a=[...this['items']['keys']()],b=a[n(0x1ec)](c=>capitalCase(c));return this['logger']['write'](n(0x1f3)+b[n(0x209)](',\x20')+'.'),a;}['getWeight'](){const o=a45h;let a=0x0;for(const b of this['items'][o(0x210)]()){a+=b['weight'];}return a;}[a45h(0x1f2)](){const p=a45h;return[...this[p(0x20c)][p(0x210)]()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a46c(){var l=['color','3959694cVHNOW','constructor','1978053AbEqmf','uuid','description','10409704jzexnU','117816RFTtxC','apply','shape','size','use','6pRyNCU','rating','3091AFpZeT','weight','toString','.\x20Nothing\x20special\x20happens.','name','1060dVBIdq','2757336axmSJn','1YlkaiP','5UhYeAb','You\x20use\x20the\x20','(((.+)+)+)+$','texture','category','99774VGypXX','531364AKXgpd'];a46c=function(){return l;};return a46c();}var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0xc9))/0x1*(parseInt(f(0xd2))/0x2)+parseInt(f(0xc0))/0x3*(parseInt(f(0xd0))/0x4)+-parseInt(f(0xca))/0x5*(parseInt(f(0xc8))/0x6)+parseInt(f(0xd4))/0x7+parseInt(f(0xba))/0x8+parseInt(f(0xcf))/0x9*(-parseInt(f(0xc7))/0xa)+parseInt(f(0xc2))/0xb*(parseInt(f(0xbb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xf2a15));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0xc4)]()['search'](h(0xcc))['toString']()[h(0xd3)](a46a)['search'](h(0xcc));});a46a();import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xb9;var f=c[d];return f;},a46d(a,b);}export class Item extends AbstractItem{[a46i(0xd5)];['name'];['description'];[a46i(0xbe)];[a46i(0xce)];[a46i(0xbd)];[a46i(0xd1)];[a46i(0xcd)];[a46i(0xc1)];[a46i(0xc3)];constructor(a){var j=a46i;super(),this['name']=a[j(0xc6)],this[j(0xb9)]=a['description'],this[j(0xbe)]=a[j(0xbe)],this['category']=a[j(0xce)],this[j(0xbd)]=a[j(0xbd)],this[j(0xd1)]=a[j(0xd1)],this['texture']=a[j(0xcd)],this['rating']=a['rating'],this[j(0xc3)]=a[j(0xc3)],this[j(0xd5)]=a46e();}[a46i(0xbf)](){var k=a46i;return k(0xcb)+this[k(0xc6)]+k(0xc5);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x163))/0x1*(-parseInt(f(0x173))/0x2)+parseInt(f(0x174))/0x3+parseInt(f(0x16d))/0x4*(-parseInt(f(0x168))/0x5)+parseInt(f(0x161))/0x6*(parseInt(f(0x15d))/0x7)+parseInt(f(0x16f))/0x8+-parseInt(f(0x165))/0x9*(-parseInt(f(0x172))/0xa)+-parseInt(f(0x15f))/0xb*(parseInt(f(0x170))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xdc504));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x167)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x171)]()[h(0x16c)](h(0x169))[h(0x171)]()['constructor'](a47a)['search'](h(0x169));});a47a();import{Player}from'./player.js';function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x15c;let f=c[d];return f;},a47d(a,b);}import{GoCommand}from'../commands/go.js';function a47c(){const n=['apply','143240tFoWPD','(((.+)+)+)+$','speak','name','search','88ATydVi','random','13161672FDbJiN','66228FvJQKs','toString','10NdcOWH','1203082jewZqI','4492557FPblHW','length','moveTo','scene','7fIxlrE','autonomousMove','6182bIUgFg','_dialogue','9728976HwToIx','rooms','3UgsxMM','_name','15072633lnbpTe','execute'];a47c=function(){return n;};return a47c();}export class NPC extends Player{['_name'];[a47i(0x160)];[a47i(0x162)];[a47i(0x15c)];constructor(a,b,c,d){const j=a47i;super(d),this[j(0x164)]=a,this['_dialogue']=b,this[j(0x162)]=c;}get[a47i(0x16b)](){return this['_name'];}[a47i(0x16a)](){const k=a47i;return this['_dialogue'][Math['floor'](Math[k(0x16e)]()*this[k(0x160)][k(0x175)])];}[a47i(0x15e)](a){const l=a47i,b=a[Math['floor'](Math[l(0x16e)]()*a[l(0x175)])];this[l(0x176)](b[l(0x16b)]);}['moveTo'](a){const m=a47i,b={'actor':this,'rooms':this[m(0x162)],'scene':this['scene']},c=new GoCommand(b);c[m(0x166)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0xb7))/0x1*(-parseInt(f(0xa8))/0x2)+-parseInt(f(0xee))/0x3+-parseInt(f(0xab))/0x4+parseInt(f(0xc2))/0x5+-parseInt(f(0xa0))/0x6+parseInt(f(0xac))/0x7*(parseInt(f(0xa2))/0x8)+parseInt(f(0xe9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x58eca));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0xe7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0xc7)]()[h(0xeb)](h(0xdb))['toString']()['constructor'](a48a)[h(0xeb)](h(0xdb));});function a48c(){const C=['search','\x20says:\x20\x22','You\x20don\x27t\x20have\x20','1603035gxxNsV','Max\x20carrying\x20weight\x20must\x20be\x20positive.','BodyArmor','leaveRoom','bind','enterRoom','legarmor','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','boots','gloves','playerName','2724000IOKgnr','includes','182896igrnzx','Invalid\x20category\x20or\x20slot:\x20','bodyarmor','initialEquipment','A\x20featureless\x20room','\x20slot.','22638rDivhD','leg\x20armor','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','60552rFtNmy','210TUzHLH','You\x20unequipped\x20','getWeight','Helmet','Shield','Hat','unequipBySlot','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','\x20to\x20player\x27s\x20inventory.','equipment','inventory','26ndcJxJ','You\x20can\x27t\x20equip\x20','maxCarryingWeight','\x20is\x20no\x20longer\x20listeng\x20in\x20','startLocation','currentWeight','_inventory','unequip','removeItem','\x20in\x20your\x20inventory.','name','55790SkgfTZ','Nexus','helmet','currentLocation','equip','toString','\x20from\x20player\x27s\x20inventory.','rightHand','armarmor','head','category','.\x20You\x20must\x20unequip\x20it\x20first.','You\x20equipped\x20','toLowerCase','Gloves','determineEquipmentSlot','_currentLocation','arms','write','LegArmor','weight','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','getInstance','logger','arm\x20armor','(((.+)+)+)+$','addItem','shield','speak','weapon','_equipment','leftHand','hear','log','legs','removeInventory','feet','apply','_playerName','8684937YKyKpR','_maxCarryingWeight'];a48c=function(){return C;};return a48c();}a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x9b;let f=c[d];return f;},a48d(a,b);}export class Player extends AbstractPlayer{[a48i(0xe8)];[a48i(0xd2)];[a48i(0xbd)];[a48i(0xe0)];[a48i(0xea)]=0x32;[a48i(0xd9)];constructor(a){const j=a48i;super(),this[j(0xe8)]=a[j(0x9f)],this[j(0xd2)]=a[j(0xbb)]||new Room({'name':j(0xc3),'description':j(0xa6)}),this[j(0xbd)]=new Inventory(),this[j(0xd9)]=Logger[j(0xd8)]();if(a?.['inventoryItems'])for(const b of a['inventoryItems']){this[j(0xbd)][j(0xdc)](b);}this[j(0xe0)]=a?.[j(0xa5)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48i(0xc1)](){const k=a48i;return this[k(0xe8)];}get[a48i(0xc5)](){const l=a48i;return this[l(0xd2)];}set[a48i(0xc5)](a){const m=a48i;this[m(0xd2)]!==a&&(this[m(0xf1)](),this[m(0xf3)](a)),this[m(0xd2)]=a;}get[a48i(0xb6)](){const n=a48i;return this[n(0xbd)];}get[a48i(0xb5)](){return this['_equipment'];}set[a48i(0xb5)](a){const o=a48i;this[o(0xe0)]=a;}get['maxCarryingWeight'](){const p=a48i;return this[p(0xea)];}set[a48i(0xb9)](a){const q=a48i;a>0x0?this['_maxCarryingWeight']=a:console['error'](q(0xef));}get['currentWeight'](){const r=a48i;let a=this[r(0xbd)][r(0xae)]();for(const b in this[r(0xe0)]){const c=this[r(0xe0)][b];c&&(a+=c[r(0xd6)]);}return a;}['addInventory'](a){const s=a48i;if(this[s(0xbc)]+a[s(0xd6)]>this[s(0xb9)]){this[s(0xd9)][s(0xd4)](s(0xd7));throw new Error(s(0x9c));}this[s(0xbd)]['addItem'](a),this[s(0xd9)]['write']('Added\x20'+a[s(0xc1)]+s(0xb4));}[a48i(0xe5)](a){const t=a48i;if(this[t(0xbd)][t(0xbf)](a[t(0xc1)]))return this[t(0xd9)]['write']('Removed\x20'+a[t(0xc1)]+t(0xc8)),!![];return this[t(0xd9)][t(0xd4)]('Failed\x20to\x20remove\x20'+a[t(0xc1)]+t(0xc8)),![];}[a48i(0xc6)](a){const u=a48i;if(!this['_inventory']['hasItem'](a[u(0xc1)]))return u(0xed)+a[u(0xc1)]+u(0xc0);if(!this['canEquip'](a))return u(0xb8)+a[u(0xc1)]+'.';const b=this[u(0xd1)](a['category']);if(!b)return a[u(0xc1)]+u(0xaa);if(this['equipment'][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+u(0xcd);return this['equipment'][b]=a,this[u(0xe5)](a),u(0xce)+a['name']+'.';}[a48i(0xbe)](a){const v=a48i;let b=a;if(!this[v(0xb5)][camelCase(b)]){b=this[v(0xd1)](a);if(!b)return v(0xa3)+a+'.';}return this[v(0xb2)](b);}[a48i(0xd1)](a){const w=a48i;switch(a[w(0xcf)]()){case Category['Weapon'][w(0xcf)]():return w(0xc9);case Category[w(0xb0)][w(0xcf)]():return w(0xe1);case Category[w(0xd0)]['toLowerCase']():return w(0x9e);case Category[w(0xaf)][w(0xcf)]():case Category[w(0xb1)][w(0xcf)]():return w(0xcb);case Category['Boots']['toLowerCase']():return w(0xe6);case Category[w(0xd5)]['toLowerCase']():return w(0xe4);case Category['ArmArmor'][w(0xcf)]():return'arms';case Category[w(0xf0)][w(0xcf)]():return'torso';case w(0xdf):return w(0xc9);case w(0xdd):return w(0xe1);case w(0x9e):return'gloves';case w(0xc4):case'hat':return w(0xcb);case w(0x9d):return w(0xe6);case w(0xa9):case w(0x9b):return w(0xe4);case w(0xda):case w(0xca):return w(0xd3);case'body\x20armor':case w(0xa4):case'torso':return'torso';default:return null;}}['canEquip'](a){const x=a48i;return Object['values'](Category)[x(0xa1)](a[x(0xcc)]);}['unequipBySlot'](a){const y=a48i,b=this[y(0xb5)][a];if(!b)return y(0xb3)+a+y(0xa7);return this['addInventory'](b),this[y(0xb5)][a]=null,y(0xad)+b[y(0xc1)]+'.';}[a48i(0xe2)](a,b){const z=a48i;a!==this&&this[z(0xd9)][z(0xe3)](a[z(0xc1)]+z(0xec)+b+'\x22');}['enterRoom'](a){const A=a48i;this[A(0xd2)]=a,a['on'](A(0xde),this['hear'][A(0xf2)](this)),this[A(0xd9)][A(0xd4)](this[A(0xc1)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[A(0xc1)]);}['leaveRoom'](){const B=a48i;this['_currentLocation']&&(this[B(0xd2)]['off'](B(0xde),this[B(0xe2)][B(0xf2)](this)),this[B(0xd9)]['write'](this[B(0xc1)]+B(0xba)+this[B(0xd2)][B(0xc1)]));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a49h=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x199))/0x1*(parseInt(f(0x192))/0x2)+-parseInt(f(0x1a5))/0x3+parseInt(f(0x1a4))/0x4*(-parseInt(f(0x19d))/0x5)+-parseInt(f(0x19c))/0x6*(parseInt(f(0x1a1))/0x7)+parseInt(f(0x19e))/0x8*(-parseInt(f(0x193))/0x9)+parseInt(f(0x1ab))/0xa+parseInt(f(0x18e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xc5bdf));var a49b=(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;};}()),a49a=a49b(this,function(){var g=a49d;return a49a[g(0x191)]()[g(0x190)](g(0x194))['toString']()['constructor'](a49a)[g(0x190)](g(0x194));});function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x18e;var f=c[d];return f;},a49d(a,b);}a49a();import{Logger}from'../utilities/logger.js';function a49c(){var m=['logger','You\x20have\x20already\x20solved\x20this\x20puzzle.','riddle','write','16007570HgMEDr','successMessage','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','rewardItem','36069968wWasdO','failureMessage','search','toString','2712LVsHHt','8721153TivDVV','(((.+)+)+)+$','hasRequiredItem','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','solved','requiredPhrase','529aCyfvc','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','solve','4787670bvjRTw','1338170pgKmOP','8KScYPG','You\x20solved\x20the\x20puzzle!','requiredItem','14edpcOy','matchesRequiredPhrase','getInstance','4XSlQzb','1560087BfPRxz','Puzzle:\x20Correct\x20solution\x20provided.'];a49c=function(){return m;};return a49c();}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a49h(0x1a7)]=Logger[a49h(0x1a3)]();[a49h(0x197)]=![];[a49h(0x1a0)];[a49h(0x198)];['riddle'];[a49h(0x1ae)];[a49h(0x1ac)];[a49h(0x18f)];constructor(a){var i=a49h;super(),this['requiredItem']=a['requiredItem'],this[i(0x198)]=a[i(0x198)],this[i(0x1a9)]=a[i(0x1a9)],this[i(0x1ae)]=a[i(0x1ae)],this['successMessage']=a[i(0x1ac)]||i(0x19f),this[i(0x18f)]=a['failureMessage']||i(0x1ad);}[a49h(0x195)](a){var j=a49h;if(this[j(0x1a0)])return a['hasItem'](this['requiredItem']);return![];}[a49h(0x1a2)](a){var k=a49h;return this[k(0x198)]===a;}[a49h(0x19b)](a,b){var l=a49h;if(this['solved'])return this['logger'][l(0x1aa)](l(0x196)),{'success':![],'message':l(0x1a8)};return this[l(0x195)](b)||this['matchesRequiredPhrase'](a)?(this[l(0x197)]=!![],this[l(0x1a7)][l(0x1aa)](l(0x1a6)),{'success':!![],'message':this['successMessage']}):(this[l(0x1a7)]['write'](l(0x19a)),{'success':![],'message':this['failureMessage']});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x9e))/0x1+-parseInt(f(0x7c))/0x2+parseInt(f(0x76))/0x3*(parseInt(f(0x77))/0x4)+-parseInt(f(0x78))/0x5+-parseInt(f(0xa5))/0x6*(parseInt(f(0x98))/0x7)+parseInt(f(0x8b))/0x8+parseInt(f(0x81))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x23454));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x79)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0x83)]()[h(0x94)]('(((.+)+)+)+$')[h(0x83)]()[h(0x74)](a50a)[h(0x94)](h(0x75));});a50a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x6d;let f=c[d];return f;},a50d(a,b);}function a50c(){const u=['6687LgdnVR','136VGBdEd','181065CwQSdb','apply','setPuzzle','puzzle','177054jYVfFD','Room\x20created:\x20','write','\x20unlocked!','roomB','2785248XAZxLb','addExit','toString','logger','INSIDE','isStartRoom','exits','roomA','EAST','emit','647112nizdMM','removeItem','WEST','description','inventory','\x20is\x20locked.\x20Result:\x20','Item\x20added\x20to\x20room\x20','values','getOppositeDirection','search','addItem','DOWN','west','529354ebPFaH','isExitLocked','south','hasItem','The\x20','north','29927ekDCDT','set','get','getInstance','Item\x20removed\x20from\x20room\x20','say','\x20remains\x20locked.','18VrObmX','findExistingDoor','name','Checking\x20if\x20exit\x20in\x20direction\x20','.\x20Success:\x20','NORTH','getExit','roomType','down','speak','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','constructor','(((.+)+)+)+$'];a50c=function(){return u;};return a50c();}import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a50i(0x84)]=Logger[a50i(0xa1)]();[a50i(0xa7)];[a50i(0x8e)];['exits']=new Map();[a50i(0x70)];[a50i(0x86)];[a50i(0x8f)]=new Inventory();constructor(a){const j=a50i;super(),this[j(0xa7)]=a[j(0xa7)],this[j(0x8e)]=a[j(0x8e)],this[j(0x70)]=a[j(0x70)]||RoomType[j(0x85)],a[j(0x87)]&&(this[j(0x87)]=a[j(0x87)]||new Map()),a['inventory']&&(this['inventory']=a['inventory']),a[j(0x7b)]&&(this[j(0x7b)]=a[j(0x7b)]),this['isStartRoom']=a[j(0x86)]||![],this[j(0x84)]['write'](j(0x7d)+this[j(0xa7)]);}[a50i(0xa3)](a,b){const k=a50i;this[k(0x8a)](k(0x72),a,b);}[a50i(0x82)](a,b,c){const l=a50i;let d=this[l(0xa6)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x87)][l(0x9f)](a,d),b[l(0x87)]['set'](this[l(0x93)](a),d);}['attemptUnlockExit'](a,b){const m=a50i,c=this['exits'][m(0xa0)](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[m(0x84)][m(0x7e)](m(0x73)+a+m(0x6d)+d),d?m(0x9c)+c[m(0xa7)]+m(0x7f):m(0x9c)+c[m(0xa7)]+m(0xa4);}return this[m(0x84)][m(0x7e)]('No\x20locked\x20exit\x20found\x20in\x20direction\x20'+a),'There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.';}[a50i(0x6f)](a){const n=a50i;return this[n(0x84)][n(0x7e)]('Fetching\x20exit\x20in\x20direction:\x20'+a),this[n(0x87)][n(0xa0)](a);}[a50i(0x99)](a){const o=a50i,b=this[o(0x87)][o(0xa0)](a),c=b instanceof Door&&b['checkIfLocked']();return this['logger']['write'](o(0xa8)+a+o(0x90)+c),c;}['addItem'](a){const p=a50i;this[p(0x8f)][p(0x95)](a),this[p(0x84)][p(0x7e)](p(0x91)+this[p(0xa7)]+':\x20'+a[p(0xa7)]);}[a50i(0x8c)](a){const q=a50i;this[q(0x8f)][q(0x9b)](a[q(0xa7)])?(this[q(0x8f)][q(0x8c)](a[q(0xa7)]),this[q(0x84)][q(0x7e)](q(0xa2)+this['name']+':\x20'+a[q(0xa7)])):this['logger'][q(0x7e)]('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this['name']+':\x20'+a['name']);}[a50i(0x7a)](a){const r=a50i;this[r(0x7b)]=a,this['logger'][r(0x7e)]('Puzzle\x20set\x20for\x20room\x20'+this[r(0xa7)]+':\x20'+a['riddle']);}[a50i(0x93)](a){const s=a50i;switch(a){case s(0x9d):return Direction['SOUTH'];case s(0x9a):return Direction[s(0x6e)];case'east':return Direction[s(0x8d)];case s(0x97):return Direction[s(0x89)];case'up':return Direction[s(0x96)];case s(0x71):return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}[a50i(0xa6)](a){const t=a50i;for(const b of this[t(0x87)][t(0x92)]()){if(b instanceof Door){if(b[t(0x88)]===this&&b['roomB']===a||b[t(0x80)]===this&&b[t(0x88)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51l=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=-parseInt(i(0x1e6))/0x1*(-parseInt(i(0x216))/0x2)+parseInt(i(0x21d))/0x3*(parseInt(i(0x221))/0x4)+parseInt(i(0x1ec))/0x5+-parseInt(i(0x203))/0x6+-parseInt(i(0x20a))/0x7*(parseInt(i(0x1e1))/0x8)+-parseInt(i(0x1e8))/0x9*(parseInt(i(0x1e2))/0xa)+-parseInt(i(0x1fe))/0xb*(-parseInt(i(0x214))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xef4b7));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a51d;if(c){const e=c[j(0x228)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const k=a51d;return a51a[k(0x21e)]()['search'](k(0x21c))[k(0x21e)]()[k(0x223)](a51a)[k(0x1ea)]('(((.+)+)+)+$');});a51a();function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1da;let f=c[d];return f;},a51d(a,b);}import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';function a51c(){const E=['addPuzzleToRoom','actors','Added\x20item\x20','warn','(((.+)+)+)+$','118497uAblcz','toString','Scene\x20initialized\x20with\x20rooms:\x20','addActor','192HDcCsA','currentLocation','constructor','\x27s\x20location.\x20Room\x20','push','setPuzzle','player','apply','get','getInstance','Actor\x20with\x20name\x20','set','hasOwnProperty','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','rooms','1654808wLPBQH','5224970zuOFdZ','getRooms','determineStartRoom','from','358690vKLtsP','getCharacterLocation','18QrqLcE','join','search','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','4324390zyRLaH','length','removeRoom','connectRooms','logger','write','Failed\x20to\x20add\x20puzzle.\x20Room\x20','.\x20Room\x20','values','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','Room\x20\x22','\x20found\x20in\x20the\x20scene.','roomConfiguration','direction','exits','\x22\x20does\x20not\x20exist.','\x20to\x20room\x20','addItem','606573fOWXVj','characterLocations','addExit','targetRoom','Failed\x20to\x20add\x20item\x20','5492154knXKEo','allActors','\x20not\x20found\x20in\x20scene.','roomFactory','createExitsFromConfig','Added\x20room\x20to\x20scene:\x20','has','63WZLbAI','generateRoomsFromConfig','No\x20actor\x20with\x20name\x20','name','initialize','getPlayer','toUpperCase','isStartRoom','addItemToRoom','keys','132lZLGNe','\x20is\x20now\x20in\x20room\x20','8BBcXlr','delete'];a51c=function(){return E;};return a51c();}import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];['player'];['logger'];[a51l(0x219)];[a51l(0x1ff)]=new Map();['roomFactory'];constructor(a){const m=a51l;super(),this['roomFactory']=new RoomFactory(),this[m(0x227)]=a[m(0x227)],this[m(0x1e0)]=this[m(0x20b)](a[m(0x1f8)]),this['logger']=Logger[m(0x1db)](),this[m(0x219)]=new Map(),this[m(0x207)](a[m(0x1f8)]),this[m(0x1f0)]['write'](m(0x21f)+Object[m(0x213)](this[m(0x1e0)])[m(0x1e9)](',\x20'));}[a51l(0x20e)](){const n=a51l;this[n(0x227)][n(0x222)]=this[n(0x1e4)]();}[a51l(0x20b)](a){const o=a51l;if(!this[o(0x206)])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this[o(0x206)]['createRoom'](c);b[c[o(0x20d)]]=d;}return b;}[a51l(0x207)](a){const p=a51l;for(const b of a){const c=this[p(0x1e0)][b['name']];if(b[p(0x1fa)])for(const d of b[p(0x1fa)]){const e=d[p(0x1f9)][p(0x210)](),f=d[p(0x201)],g=d['keyRequired'],h=this[p(0x1e0)][f];h&&c[p(0x200)](Direction[e],h,g);}}}[a51l(0x220)](a){const q=a51l;if(this[q(0x219)][q(0x209)](a[q(0x20d)]))throw new Error(q(0x1dc)+a[q(0x20d)]+'\x20already\x20exists\x20in\x20the\x20scene.');this[q(0x219)][q(0x1dd)](a[q(0x20d)],a);}['removeActor'](a){const r=a51l;if(!this[r(0x219)][r(0x209)](a))throw new Error(r(0x20c)+a+r(0x1f7));this[r(0x219)][r(0x217)](a);}['getActor'](a){const s=a51l;return this[s(0x219)][s(0x1da)](a);}get[a51l(0x204)](){const t=a51l;return Array[t(0x1e5)](this[t(0x219)][t(0x1f4)]());}['addRoom'](a){const u=a51l;this[u(0x1e0)][a[u(0x20d)]]=a,this['logger'][u(0x1f1)](u(0x208)+a['name']);}[a51l(0x1ee)](a){const v=a51l;return this[v(0x1e0)][a]?(delete this[v(0x1e0)][a],this[v(0x1f0)][v(0x1f1)]('Removed\x20room\x20from\x20scene:\x20'+a),!![]):(this[v(0x1f0)][v(0x1f1)](v(0x1eb)+a),![]);}[a51l(0x212)](a,b){const w=a51l,c=this[w(0x1e0)][b];c?(c[w(0x1fd)](a),this[w(0x1f0)][w(0x1f1)](w(0x21a)+a[w(0x20d)]+w(0x1fc)+c[w(0x20d)])):this['logger'][w(0x1f1)](w(0x202)+a['name']+w(0x1f3)+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0x218)](a,b){const x=a51l,c=this['rooms'][b];c?(c[x(0x226)](a),this['logger'][x(0x1f1)]('Added\x20puzzle\x20to\x20room\x20'+c[x(0x20d)])):this[x(0x1f0)]['write'](x(0x1f2)+b+x(0x205));}['setCharacterLocation'](a,b){const y=a51l,c=this[y(0x1e0)][b];c?(this[y(0x1ff)][y(0x1dd)](a[y(0x20d)],c),this[y(0x1f0)]['write'](a[y(0x20d)]+y(0x215)+c[y(0x20d)])):this[y(0x1f0)][y(0x1f1)]('Failed\x20to\x20set\x20'+a['name']+y(0x224)+b+y(0x205));}[a51l(0x1e7)](a){const z=a51l;return this['characterLocations'][z(0x1da)](a['name']);}[a51l(0x1e4)](){const A=a51l,a=[];for(const c in this[A(0x1e0)]){if(this[A(0x1e0)][A(0x1de)](c)){const d=this['rooms'][c];d[A(0x211)]&&a[A(0x225)](d);}}if(a[A(0x1ed)]>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a[A(0x1ed)]===0x1)return a[0x0];const b=Object[A(0x213)](this[A(0x1e0)]);if(b['length']===0x0)throw new Error(A(0x1df));return console[A(0x21b)](A(0x1f5)),this[A(0x1e0)][b[0x0]];}[a51l(0x20f)](){const B=a51l;return this[B(0x227)];}[a51l(0x1e3)](){const C=a51l;return this[C(0x1e0)];}[a51l(0x1ef)](a,b,c,d){const D=a51l,e=this['rooms'][a],f=this[D(0x1e0)][c];if(!e)throw new Error(D(0x1f6)+a+D(0x1fb));if(!f)throw new Error('Room\x20\x22'+c+'\x22\x20does\x20not\x20exist.');e[D(0x200)](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a52t=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0xf5))/0x1*(-parseInt(f(0x11e))/0x2)+-parseInt(f(0xf2))/0x3+-parseInt(f(0xed))/0x4*(parseInt(f(0x112))/0x5)+parseInt(f(0xfb))/0x6+parseInt(f(0x11b))/0x7*(-parseInt(f(0x11a))/0x8)+parseInt(f(0x122))/0x9*(-parseInt(f(0x118))/0xa)+parseInt(f(0x10a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xf1f82));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x121)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a['toString']()[h(0x106)](h(0xec))['toString']()[h(0x10c)](a52a)[h(0x106)](h(0xec));});a52a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xec;var f=c[d];return f;},a52d(a,b);}import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a52d;super({'name':a,'description':b,'size':Size[i(0xf1)],'category':Category[i(0x10d)],'shape':Shape[i(0x107)],'color':Color[i(0xef)],'texture':Texture[i(0x100)],'rating':Rating[i(0x117)],'weight':0x1});}['use'](){var j=a52d;return this[j(0x109)];}}export class Sword extends Item{constructor(a,b){var k=a52d;super({'name':a,'description':b,'size':Size[k(0xf1)],'category':Category[k(0xfc)],'shape':Shape[k(0x110)],'color':Color[k(0x101)],'texture':Texture[k(0x11d)],'rating':Rating[k(0x117)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a52d;super({'name':a,'description':b,'size':Size[l(0xf6)],'category':Category[l(0xfc)],'shape':Shape[l(0x120)],'color':Color[l(0x105)],'texture':Texture['Metallic'],'rating':Rating[l(0xfa)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a52d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[m(0xf3)],'shape':Shape['Circle'],'color':Color['Grey'],'texture':Texture[m(0x11d)],'rating':Rating[m(0x117)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a52d;super({'name':a,'description':b,'size':Size[n(0xf6)],'category':Category[n(0x11c)],'shape':Shape['Rectangle'],'color':Color[n(0x101)],'texture':Texture[n(0x11d)],'rating':Rating['Common'],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a52d;super({'name':a,'description':b,'size':Size[o(0xf1)],'category':Category['LegArmor'],'shape':Shape[o(0x107)],'color':Color[o(0x101)],'texture':Texture[o(0x11d)],'rating':Rating['Common'],'weight':0x6});}}function a52c(){var D=['2QSfhkT','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Rifle','apply','670491yRGNgg','(((.+)+)+)+$','781712VzQUGC','Gloves','Yellow','Sniper\x20Rifle','Medium','3136905TviFey','Helmet','publishDate','1629033KtsfZA','Large','Circle','Holy\x20Grail','Small','Rare','9270120ySjrLf','Weapon','author','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','Tiny','Smooth','Grey','Short\x20Sword','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','name','Brown','search','Rectangle','use','description','30663006gGoVfM','pageCount','constructor','Unknown','Boots','Unknown\x20Author','Blade','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','25dRHygc','ArmArmor','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','You\x20hold\x20the\x20','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Common','170GHBqvq','Book','13449880UAgVSE','7bFroCa','BodyArmor','Metallic'];a52c=function(){return D;};return a52c();}export class Boots extends Item{constructor(a,b){var p=a52d;super({'name':a,'description':b,'size':Size[p(0xf1)],'category':Category[p(0x10e)],'shape':Shape[p(0xf7)],'color':Color[p(0x105)],'texture':Texture[p(0x100)],'rating':Rating[p(0x117)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a52d;super({'name':a,'description':b,'size':Size['Small'],'category':Category[q(0xee)],'shape':Shape[q(0xf7)],'color':Color['Brown'],'texture':Texture[q(0x100)],'rating':Rating[q(0x117)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a52d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[r(0x113)],'shape':Shape[r(0x107)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a52d;super({'name':a,'description':b,'size':Size[s(0xff)],'category':Category['Key'],'shape':Shape[s(0x107)],'color':Color[s(0xef)],'texture':Texture['Smooth'],'rating':Rating[s(0x117)],'weight':0x0});}[a52t(0x108)](){var u=a52t;return u(0x111);}}export class Weapon extends Item{constructor(a,b){var v=a52t;super({'name':a,'description':b,'size':Size[v(0xf1)],'category':Category[v(0xfc)],'shape':Shape['Blade'],'color':Color['Grey'],'texture':Texture[v(0x11d)],'rating':Rating[v(0x117)],'weight':0x3});}[a52t(0x108)](){var w=a52t;return w(0x103);}}export class Book extends Item{[a52t(0xfd)];[a52t(0xf4)];[a52t(0x10b)];constructor(a,b='A\x20mysterious\x20book.',c=a52t(0x10f)){var x=a52t;super({'name':a,'description':b,'size':Size[x(0xf1)],'category':Category[x(0x119)],'shape':Shape[x(0x107)],'color':Color['Brown'],'texture':Texture[x(0x100)],'rating':Rating[x(0x117)],'weight':0x1}),this[x(0xfd)]=c,this[x(0xf4)]=new Date(),this[x(0x10b)]=0x64;}[a52t(0x108)](){var y=a52t;return y(0xfe);}}export class ShortSword extends Item{constructor(){var z=a52t;super({'name':z(0x102),'description':z(0x116),'size':Size[z(0xf1)],'category':Category['Weapon'],'shape':Shape[z(0x110)],'color':Color[z(0x101)],'texture':Texture[z(0x11d)],'rating':Rating[z(0x117)],'weight':0x3});}['use'](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class SniperRifle extends Item{constructor(){var A=a52t;super({'name':A(0xf0),'description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size[A(0xf6)],'category':Category[A(0xfc)],'shape':Shape[A(0x120)],'color':Color['Brown'],'texture':Texture[A(0x100)],'rating':Rating['Common'],'weight':0x5});}[a52t(0x108)](){return'You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22';}}export class HolyGrail extends Item{constructor(){var B=a52t;super({'name':B(0xf8),'description':B(0x114),'size':Size[B(0xf9)],'category':Category['Cup'],'shape':Shape[B(0xf7)],'color':Color['Gold'],'texture':Texture[B(0x11d)],'rating':Rating['Legendary'],'weight':0x1});}[a52t(0x108)](){var C=a52t;return C(0x115)+this[C(0x104)]+C(0x11f);}}
|