@maka/maka-cli 4.5.41 → 4.5.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/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/options/options.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a36c(){const k=['402746HKRlTI','\x22\x20from\x20','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','5748777QqYQsY','logger','name','getItem','write','1401928yAYZUo','\x22\x20is\x20too\x20heavy\x20to\x20carry.','78305MKderd','inventory','100TgjmTc','actor','Successfully\x20added\x20\x22','Item\x20\x22','toString','The\x20item\x20\x22','search','Error\x20during\x20\x27Take\x27\x20command:\x20','2qVrhWB','\x20during\x20\x27Take\x27\x20command.','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','\x22\x20in\x20this\x20room.','\x22\x20to\x20','1029ycikOc','10SKAdsp','take','addInventory','removeItem','46728lFMHCC','constructor','execute','join','15009181KQBMWp','\x22\x20not\x20retrieved\x20from\x20','message','currentLocation','toLowerCase','There\x20is\x20no\x20item\x20\x22','30336OKnfpz','Pick\x20up\x20an\x20item.'];a36c=function(){return k;};return a36c();}const a36h=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d=-parseInt(f(0x9c))/0x1*(parseInt(f(0xb1))/0x2)+-parseInt(f(0x90))/0x3+-parseInt(f(0xa9))/0x4*(parseInt(f(0xa7))/0x5)+-parseInt(f(0x9a))/0x6*(parseInt(f(0xb6))/0x7)+parseInt(f(0xa5))/0x8+parseInt(f(0xa0))/0x9+parseInt(f(0xb7))/0xa*(parseInt(f(0x94))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x98aea));const a36b=(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;};}()),a36a=a36b(this,function(){const g=a36d;return a36a[g(0xad)]()['search']('(((.+)+)+)+$')[g(0xad)]()[g(0x91)](a36a)[g(0xaf)]('(((.+)+)+)+$');});a36a();import{Command}from'./command.js';function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x90;let f=c[d];return f;},a36d(a,b);}export class TakeCommand extends Command{static ['verb']='take';static ['description']=a36h(0x9b);[a36h(0x92)](a){const i=a36h;return this[i(0xa1)][i(0xa4)](i(0x9e)+a[i(0x93)]('\x20')),this[i(0xb8)](a);}[a36h(0xb8)](a){const j=a36h,b=a[j(0x93)]('\x20')[j(0x98)](),c=this[j(0xaa)][j(0x97)];if(!c['inventory']['hasItem'](b))return this[j(0xa1)][j(0xa4)](j(0xac)+b+'\x22\x20not\x20found\x20in\x20'+c['name']+j(0xb2)),j(0x99)+b+j(0xb4);const d=c['inventory'][j(0xa3)](b);if(!d)return this[j(0xa1)][j(0xa4)]('Item\x20\x22'+b+j(0x95)+c[j(0xa2)]+j(0x9f)),j(0x99)+b+j(0xb4);try{return this[j(0xaa)][j(0xb9)](d),this[j(0xa1)][j(0xa4)](j(0xab)+b+j(0xb5)+this['actor'][j(0xa2)]+j(0xb3)),c[j(0xa8)][j(0xba)](b),this['logger'][j(0xa4)]('Successfully\x20removed\x20\x22'+b+j(0x9d)+c[j(0xa2)]+j(0x9f)),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this[j(0xa1)][j(0xa4)](j(0xb0)+e[j(0x96)]),j(0xae)+b+j(0xa6);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a37d(a,b);}const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x1bf))/0x1+-parseInt(f(0x1c3))/0x2*(parseInt(f(0x1ad))/0x3)+parseInt(f(0x1ac))/0x4*(-parseInt(f(0x1c0))/0x5)+-parseInt(f(0x1b2))/0x6+-parseInt(f(0x1ae))/0x7+-parseInt(f(0x1c2))/0x8*(parseInt(f(0x1b5))/0x9)+parseInt(f(0x1c1))/0xa*(parseInt(f(0x1b0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xe8cca));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x1be)]()[h(0x1b3)]('(((.+)+)+)+$')['toString']()[h(0x1bb)](a37a)['search'](h(0x1bd));});a37a();import{Command}from'./command.js';function a37c(){const k=['write','82475877TTCHtN','unequip','10515900YXasaR','search','apply','175779vVbysd','join','actor','UnequipCommand:\x20','description','name','constructor','logger','(((.+)+)+)+$','toString','305071hWdzBb','1474695NcwkDa','10dOwYkk','776hVVQrR','653726zkJOmQ','Unequip\x20an\x20item.','\x20unqeuiped\x20','toLowerCase','unqeuip','20jPPHnE','3hFSNQj','9804319cpIqSz'];a37c=function(){return k;};return a37c();}export class UnequipCommand extends Command{static ['verb']=a37i(0x1ab);static [a37i(0x1b9)]=a37i(0x1c4);['execute'](a){const j=a37i,b=a[j(0x1b6)]('\x20')[j(0x1aa)](),c=this[j(0x1b7)][j(0x1b1)](b);return this[j(0x1bc)][j(0x1af)](j(0x1b8)+this[j(0x1b7)][j(0x1ba)]+j(0x1a9)+c),c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d
|
|
1
|
+
function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xff;let f=c[d];return f;},a38d(a,b);}const a38k=a38d;function a38c(){const m=['2699710HATBVo','.\x20Result:\x20','15067890wJvZQi','20GoJEXu','currentLocation','description','22UiVCGI','UnlockCommand:\x20','has','getItem','unlockItemOrSolution','exits','error','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','2850hpbBpC','(((.+)+)+)+$','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','91484GoUmvT','search','9038772tOsMUx','\x22\x20here.','length','execute','Unlock\x20a\x20door.','actor','constructor','apply','toLowerCase','name','3SuKAIo','logger','2175610TYfqZy','unlock','There\x27s\x20no\x20door\x20named\x20\x22','isValidDirection','inventory','5789MDHSmh','get','toString','571437cvduYT','write','8HjjEOS'];a38c=function(){return m;};return a38c();}(function(a,b){const h=a38d,c=a();while(!![]){try{const d=-parseInt(h(0x10a))/0x1+parseInt(h(0x102))/0x2*(parseInt(h(0x100))/0x3)+parseInt(h(0x11e))/0x4*(parseInt(h(0x110))/0x5)+parseInt(h(0x11b))/0x6*(parseInt(h(0x107))/0x7)+-parseInt(h(0x10c))/0x8*(-parseInt(h(0x10f))/0x9)+-parseInt(h(0x10d))/0xa+-parseInt(h(0x113))/0xb*(parseInt(h(0x120))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xdb596));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a38d;if(c){const e=c[i(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a[j(0x109)]()[j(0x11f)](j(0x11c))['toString']()[j(0x126)](a38a)[j(0x11f)](j(0x11c));});a38a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static ['verb']=a38k(0x103);static [a38k(0x112)]=a38k(0x124);[a38k(0x123)](a){return this['unlock'](a);}[a38k(0x103)](a){const l=a38k;if(a[l(0x122)]===0x0)return this[l(0x101)][l(0x119)]('UnlockCommand:\x20No\x20target\x20specified.'),l(0x11a);const b=a[0x0][l(0x128)](),c=this[l(0x125)][l(0x111)];if(this[l(0x105)](b)&&c[l(0x118)][l(0x115)](b)){const d=c[l(0x118)][l(0x108)](b);if(d instanceof Door){const e=d[l(0x117)]?.[l(0x128)]();if(e&&this[l(0x125)][l(0x106)]['hasItem'](e)){const f=this[l(0x125)][l(0x106)][l(0x116)](e);if(f){const g=c['attemptUnlockExit'](b,f[l(0xff)]);return this[l(0x101)][l(0x10b)](l(0x114)+this['actor'][l(0xff)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+l(0x10e)+g),g;}}return this['logger'][l(0x10b)]('UnlockCommand:\x20'+this['actor'][l(0xff)]+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),'You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.';}else return this[l(0x101)][l(0x10b)](l(0x114)+b+l(0x11d)+c[l(0xff)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+l(0x121);}else return this[l(0x101)]['write'](l(0x114)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c['name']+'.'),l(0x104)+b+'\x22\x20here.';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a39c(){const k=['execute',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','You\x20don\x27t\x20have\x20the\x20','780606ALOTCz','18NQxfXF','description','function','name','constructor','1279425VUeITu','\x20to\x20use.','You\x20can\x27t\x20use\x20the\x20','691780zzVPgO','toLowerCase','inventory','\x20used\x20','verb','Use\x20an\x20item.','toString','write','464720YKcDYm','UseCommand:\x20','81028EuBIQz','\x20in\x20this\x20way.','hasItem','logger','actor','use','\x20attempted\x20to\x20use\x20','getItem','22RTtmCj','33742dBGbvD','35fMQEhF','337916XfwBFU','\x20not\x20retrieved\x20from\x20','(((.+)+)+)+$','39HNthqq','join','\x27s\x20inventory.'];a39c=function(){return k;};return a39c();}const a39h=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0x19f))/0x1+-parseInt(f(0x196))/0x2*(parseInt(f(0x1a4))/0x3)+-parseInt(f(0x1a1))/0x4*(-parseInt(f(0x1a0))/0x5)+-parseInt(f(0x1ab))/0x6*(-parseInt(f(0x1b0))/0x7)+-parseInt(f(0x194))/0x8+-parseInt(f(0x1aa))/0x9+parseInt(f(0x1b3))/0xa*(-parseInt(f(0x19e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x4848a));function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x193;let f=c[d];return f;},a39d(a,b);}const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const g=a39d;return a39a[g(0x1b9)]()['search'](g(0x1a3))[g(0x1b9)]()[g(0x1af)](a39a)['search'](g(0x1a3));});a39a();import{Command}from'./command.js';export class UseCommand extends Command{static [a39h(0x1b7)]='use';static [a39h(0x1ac)]=a39h(0x1b8);[a39h(0x1a7)](a){const i=a39h;return this[i(0x19b)](a);}['use'](a){const j=a39h,b=a[j(0x1a5)]('\x20')[j(0x1b4)]();if(!this[j(0x19a)]['inventory'][j(0x198)](b))return this[j(0x199)][j(0x193)](j(0x195)+this[j(0x19a)][j(0x1ae)]+j(0x19c)+b+j(0x1a8)),j(0x1a9)+b+j(0x1b1);const c=this['actor'][j(0x1b5)][j(0x19d)](b);if(!c)return this['logger'][j(0x193)](j(0x195)+b+j(0x1a2)+this[j(0x19a)]['name']+j(0x1a6)),j(0x1a9)+b+j(0x1b1);if(typeof c['use']===j(0x1ad)){const d=c[j(0x19b)]();return this['logger']['write'](j(0x195)+this[j(0x19a)]['name']+j(0x1b6)+b+'.'),d;}else return this[j(0x199)][j(0x193)](j(0x195)+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),j(0x1b2)+b+j(0x197);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x106))/0x1+parseInt(f(0x108))/0x2+parseInt(f(0x114))/0x3*(-parseInt(f(0x10a))/0x4)+-parseInt(f(0x10f))/0x5*(parseInt(f(0x10d))/0x6)+-parseInt(f(0x112))/0x7+-parseInt(f(0x105))/0x8*(-parseInt(f(0x107))/0x9)+-parseInt(f(0x10b))/0xa*(-parseInt(f(0x103))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x58ce5));function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x103;let f=c[d];return f;},a40d(a,b);}function a40c(){const m=['toString','896LLtCpi','281197FIPbPS','49185flUDlx','1095296jaCeif','search','65332OhJjNj','232070hIdDxN','getAllRegisteredCommands','771942DISpJh','apply','15exkMEu','registerCommand','commandMap','3205986GdhHBw','(((.+)+)+)+$','12rvjPtw','187QpAjAT'];a40c=function(){return m;};return a40c();}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a['toString']()[h(0x109)](h(0x113))[h(0x104)]()['constructor'](a40a)[h(0x109)](h(0x113));});a40a();export class CommandFactory{static [a40i(0x111)]={};static[a40i(0x110)](a,b){const j=a40i;this[j(0x111)][a]=b;}static['createCommand'](a,b){const k=a40i,c=this[k(0x111)][a];if(c)return new c(b);return null;}static[a40i(0x10c)](){const l=a40i;return this[l(0x111)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41k=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x193))/0x1+parseInt(f(0x17f))/0x2*(parseInt(f(0x196))/0x3)+parseInt(f(0x199))/0x4+parseInt(f(0x191))/0x5*(-parseInt(f(0x17d))/0x6)+-parseInt(f(0x19e))/0x7*(-parseInt(f(0x19c))/0x8)+-parseInt(f(0x187))/0x9+parseInt(f(0x19f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xaafec));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x18e)]()[h(0x186)](h(0x19d))['toString']()[h(0x18d)](a41a)[h(0x186)](h(0x19d));});a41a();function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x179;let f=c[d];return f;},a41d(a,b);}import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';function a41c(){const o=['rewardItem','5yOboDW','gauntlets','1009121yJGoIK','createItem','setPuzzle','1258737XZJbCL','book','description','2958304UrJwYS','helmet','boots','8bgmHog','(((.+)+)+)+$','2144639FQJbUf','4180790XoaghA','content','INSIDE','forEach','apply','gloves','1221630XvwxKw','toUpperCase','6WzbGKp','roomType','convertToRoomConfig','createPuzzle','name','bodyarmor','sword','search','7286823ZYtPFo','puzzle','legarmor','addItem','type','items','constructor','toString','key'];a41c=function(){return o;};return a41c();}export class RoomFactory{['createRoom'](a){const i=a41d,b=this[i(0x181)](a),c=new Room(b);if(a[i(0x18c)]){const d=new Inventory();a[i(0x18c)][i(0x17a)](e=>{const j=i;d[j(0x18a)](this['createItem'](e));}),c['inventory']=d;}return a[i(0x188)]&&c[i(0x195)](this[i(0x182)](a['puzzle'])),c;}[a41k(0x194)](a){const l=a41k;switch(a[l(0x18b)]){case l(0x18f):return new Key(a[l(0x183)],a[l(0x198)]);case l(0x197):return new Book(a['name'],a[l(0x198)],a[l(0x1a0)]);case l(0x185):return new Sword(a[l(0x183)],a['description']);case'rifle':return new Rifle(a[l(0x183)],a['description']);case l(0x19a):return new Helmet(a[l(0x183)],a[l(0x198)]);case l(0x184):return new BodyArmor(a[l(0x183)],a[l(0x198)]);case l(0x189):return new LegArmor(a[l(0x183)],a[l(0x198)]);case l(0x19b):return new Boots(a[l(0x183)],a[l(0x198)]);case l(0x17c):return new Gloves(a[l(0x183)],a[l(0x198)]);case l(0x192):return new Gauntlets(a[l(0x183)],a[l(0x198)]);default:return new BasicItem(a[l(0x183)],a[l(0x198)]);}}['createPuzzle'](a){const m=a41k,b=this[m(0x194)](a[m(0x190)]);return new Puzzle({...a,'rewardItem':b});}[a41k(0x181)](a){const n=a41k,b=a[n(0x180)]&&RoomType[a[n(0x180)][n(0x17e)]()]?RoomType[a[n(0x180)][n(0x17e)]()]:RoomType[n(0x179)];return{'name':a[n(0x183)],'description':a[n(0x198)],'isStartRoom':a['isStartRoom'],'roomType':b};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42j=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=-parseInt(h(0xfe))/0x1+-parseInt(h(0x108))/0x2+parseInt(h(0xfc))/0x3+-parseInt(h(0xfb))/0x4+-parseInt(h(0x10a))/0x5+-parseInt(h(0x124))/0x6+parseInt(h(0xff))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x7191f));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 i=a42d;return a42a['toString']()[i(0x101)](i(0x11e))['toString']()[i(0x123)](a42a)['search'](i(0x11e));});a42a();import{Scene}from'./models/scene.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xfb;let f=c[d];return f;},a42d(a,b);}import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';function a42c(){const r=['getAllRegisteredCommands','quit','getRooms','1512194rBkpZq','scene','939565VxWrpO','Welcome,\x20','use','instance','execute','drop','equip','currentLocation','split','maka','registerCommand','help','Available\x20Commands:\x0a','handleInput','-\x20clear:\x20Clear\x20the\x20screen.\x0a','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','player','look','lock','name','(((.+)+)+)+$','-\x20quit:\x20Exit\x20the\x20game.\x0a','hasOwnProperty','solve','getWelcomeMessage','constructor','3005124oBCMJN','determineStartRoom','getHelpMessage','createCommand','toLowerCase','1976468wlCVAU','961881CVTUZC','rooms','520047oTPSfD','18225088sEylhJ','trim','search','clear','registerCommands','unequip'];a42c=function(){return r;};return a42c();}import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a42j(0x10d)];[a42j(0x109)];['player'];['currentRoom'];[a42j(0xfd)];constructor(a,b){const k=a42j;this[k(0x11a)]=a,this[k(0x109)]=new Scene({'player':a,'roomConfiguration':b}),this[k(0x109)]['initialize'](),this[k(0x11a)][k(0x111)]=this[k(0x125)](),this['registerCommands']();}[a42j(0x103)](){const l=a42j;CommandFactory[l(0x114)](l(0x11b),LookCommand),CommandFactory[l(0x114)]('go',GoCommand),CommandFactory[l(0x114)]('take',TakeCommand),CommandFactory[l(0x114)](l(0x10c),UseCommand),CommandFactory[l(0x114)](l(0x110),EquipCommand),CommandFactory[l(0x114)](l(0x104),UnequipCommand),CommandFactory[l(0x114)](l(0x121),SolveCommand),CommandFactory[l(0x114)](l(0x10f),DropCommand),CommandFactory[l(0x114)]('unlock',UnlockCommand),CommandFactory['registerCommand'](l(0x11c),LockCommand),CommandFactory[l(0x114)](l(0x101),SearchCommand),CommandFactory['registerCommand']('say',SayCommand);}[a42j(0x125)](){const m=a42j;return this['scene'][m(0x125)]();}[a42j(0x122)](){const n=a42j;return n(0x10b)+this['player'][n(0x11d)];}static['getInstance'](a,b){const o=a42j;return!Game['instance']&&(Game['instance']=new Game(a,b)),Game[o(0x10d)];}[a42j(0x117)](a){const p=a42j,b=a[p(0x100)]()[p(0x112)]('\x20'),c=b[0x0][p(0x128)](),d=b['slice'](0x1);if(c===p(0x106))return null;if(c===p(0x113))return p(0x119);if(c===p(0x115))return this[p(0x126)]();if(c===p(0x102))return'';const e={'actor':this[p(0x11a)],'rooms':this['scene'][p(0x107)](),'scene':this[p(0x109)]},f=CommandFactory[p(0x127)](c,e);if(f){const g=f[p(0x10e)](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}['getHelpMessage'](){const q=a42j,a=CommandFactory[q(0x105)]();let b=q(0x116);for(const c in a){if(a[q(0x120)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d['getDescription']()+'\x0a';}}return b+=q(0x118),b+=q(0x11f),b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a43d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x19d;var f=c[d];return f;},a43d(a,b);}(function(a,b){var f=a43d,c=a();while(!![]){try{var d=parseInt(f(0x19d))/0x1*(-parseInt(f(0x1a2))/0x2)+parseInt(f(0x1aa))/0x3*(parseInt(f(0x1a6))/0x4)+-parseInt(f(0x19e))/0x5*(-parseInt(f(0x1ab))/0x6)+parseInt(f(0x19f))/0x7+-parseInt(f(0x1a3))/0x8+-parseInt(f(0x1a9))/0x9+parseInt(f(0x1a4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xd9fd6));var a43b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a43d;if(c){var e=c[g(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){var h=a43d;return a43a[h(0x1a5)]()['search'](h(0x1a8))[h(0x1a5)]()[h(0x1a0)](a43a)[h(0x1a7)]('(((.+)+)+)+$');});function a43c(){var i=['2BGWgAf','315ABGPSf','7384307aNlIcr','constructor','apply','457246sSdnSh','3494584CbdOVx','10050230mbPsve','toString','68NyLdPz','search','(((.+)+)+)+$','8741682FSDbaF','121767DPmxrd','792sRSnay'];a43c=function(){return i;};return a43c();}a43a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d
|
|
1
|
+
var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=parseInt(f(0xc9))/0x1*(-parseInt(f(0xc5))/0x2)+-parseInt(f(0xc8))/0x3+parseInt(f(0xcd))/0x4*(-parseInt(f(0xdc))/0x5)+-parseInt(f(0xce))/0x6*(-parseInt(f(0xdb))/0x7)+parseInt(f(0xd8))/0x8*(parseInt(f(0xd1))/0x9)+parseInt(f(0xd0))/0xa*(parseInt(f(0xbd))/0xb)+parseInt(f(0xcf))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x79fbf));var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0xc6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a['toString']()[h(0xd3)](h(0xba))[h(0xc0)]()[h(0xbb)](a44a)[h(0xd3)](h(0xba));});a44a();import{Logger}from'../utilities/logger.js';function a44c(){var n=['330LetnZC','8260983OCciBC','isLocked','search','roomB','logger','checkIfLocked','.\x20Used:\x20','8bAfCvF','unlockItemOrSolution','name','7ZUFHkk','5IccFSf','attemptUnlock','(((.+)+)+)+$','constructor','Door\x20unlocked:\x20','328273WBSKpd','To\x20','roomA','toString','getInstance','\x20and\x20','Failed\x20to\x20unlock\x20door:\x20','.\x20Is\x20Locked:\x20','2YrKuMx','apply','write','437352EiSmXe','622187rvyEXT','Door\x20created\x20between\x20','checkIfLockable','isLockable','2966024MSGlwi','629718IFaNKJ','17580MwFlCw'];a44c=function(){return n;};return a44c();}import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0xb9;var f=c[d];return f;},a44d(a,b);}export class Door extends AbstractDoor{[a44i(0xbf)];[a44i(0xd4)];['isLocked'];[a44i(0xd9)];[a44i(0xda)];[a44i(0xd5)];[a44i(0xcc)];constructor(a){var j=a44i;super(),this[j(0xbf)]=a[j(0xbf)],this[j(0xd4)]=a['roomB'],this['isLocked']=a[j(0xd2)]||![],this[j(0xd9)]=a[j(0xd9)],this['name']=a[j(0xda)]?capitalCase(a['name']):j(0xbe)+a['roomB'][j(0xda)],this[j(0xd5)]=Logger[j(0xc1)](),this['isLockable']=!!a['unlockItemOrSolution'],this['logger'][j(0xc7)](j(0xca)+this[j(0xbf)][j(0xda)]+j(0xc2)+this[j(0xd4)]['name']+j(0xc4)+this[j(0xd2)]);}['getOtherSide'](a){var k=a44i;return this[k(0xbf)]===a?this[k(0xd4)]:this[k(0xbf)];}[a44i(0xb9)](a){var l=a44i;if(this['isLocked']&&this[l(0xd9)]&&this[l(0xd9)]===a)return this[l(0xd2)]=![],this[l(0xd5)][l(0xc7)](l(0xbc)+this['name']+l(0xd7)+a),!![];return this['logger'][l(0xc7)](l(0xc3)+this['name']+l(0xd7)+a),![];}[a44i(0xd6)](){var m=a44i;return this[m(0xd2)];}[a44i(0xcb)](){return this['isLockable'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a45i=a45d;function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x88;let f=c[d];return f;},a45d(a,b);}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0xab))/0x1+-parseInt(f(0x8e))/0x2*(parseInt(f(0xa3))/0x3)+parseInt(f(0x8d))/0x4*(-parseInt(f(0xa8))/0x5)+parseInt(f(0xa7))/0x6*(-parseInt(f(0xa6))/0x7)+parseInt(f(0xa0))/0x8+parseInt(f(0x9b))/0x9*(parseInt(f(0xac))/0xa)+parseInt(f(0x9f))/0xb*(parseInt(f(0xaa))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x307c7));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0xa1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x96)]()['search']('(((.+)+)+)+$')[h(0x96)]()[h(0xad)](a45a)[h(0x88)]('(((.+)+)+)+$');});a45a();import{capitalCase}from'change-case';function a45c(){const r=['9AcGskI','\x20to\x20inventory.','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','join','22xAEoHp','1131392LegSXg','apply','Removed\x20item:\x20','18pAKqtA','removeItem','set','7awnMiz','1832124eJJRRV','22835PWcesD','has','4854084pHVtCH','307370BqCxBM','1435880LrcNgv','constructor','\x20in\x20','write','search','\x20from\x20inventory.','get','Failed\x20to\x20remove\x20item:\x20','map','220DqaHwV','10506kCnezZ','logger','listItems','weight','keys','items','toLowerCase','Checked\x20for\x20item:\x20','toString','Retrieved\x20details\x20for\x20item:\x20','getItem','Listed\x20items\x20in\x20inventory:\x20','values'];a45c=function(){return r;};return a45c();}import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a45i(0x93)];['logger'];constructor(){const j=a45i;super(),this[j(0x93)]=new Map(),this[j(0x8f)]=Logger['getInstance']();}['addItem'](a){const k=a45i;this[k(0x93)][k(0xa5)](a['name'][k(0x94)](),a),this['logger'][k(0xaf)]('Added\x20item:\x20'+a['name']+k(0x9c));}[a45i(0xa4)](a){const l=a45i,b=this[l(0x98)](a);if(b)return this[l(0x93)]['delete'](a['toLowerCase']()),this[l(0x8f)][l(0xaf)](l(0xa2)+a+l(0x89)),b;return this['logger']['write'](l(0x8b)+a+'.\x20Item\x20not\x20found.'),null;}['hasItem'](a){const m=a45i,b=this[m(0x93)][m(0xa9)](a[m(0x94)]()),c=[...this[m(0x93)][m(0x92)]()];return this[m(0x8f)][m(0xaf)](m(0x95)+a+m(0xae)+c[m(0x9e)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}[a45i(0x98)](a){const n=a45i,b=this[n(0x93)][n(0x8a)](a[n(0x94)]())||null;return b?this[n(0x8f)][n(0xaf)](n(0x97)+a+'.'):this['logger'][n(0xaf)](n(0x9d)+a+'.\x20Item\x20not\x20found.'),b;}[a45i(0x90)](){const o=a45i,a=[...this[o(0x93)][o(0x92)]()],b=a[o(0x8c)](c=>capitalCase(c));return this[o(0x8f)]['write'](o(0x99)+b[o(0x9e)](',\x20')+'.'),a;}['getWeight'](){const p=a45i;let a=0x0;for(const b of this[p(0x93)][p(0x9a)]()){a+=b[p(0x91)];}return a;}['getAllItems'](){const q=a45i;return[...this[q(0x93)]['values']()];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a46h=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0x141))/0x1*(parseInt(f(0x150))/0x2)+parseInt(f(0x14a))/0x3*(-parseInt(f(0x149))/0x4)+-parseInt(f(0x14c))/0x5+-parseInt(f(0x148))/0x6*(parseInt(f(0x147))/0x7)+-parseInt(f(0x157))/0x8*(-parseInt(f(0x143))/0x9)+-parseInt(f(0x140))/0xa*(parseInt(f(0x156))/0xb)+parseInt(f(0x154))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xf3226));function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x13f;var f=c[d];return f;},a46d(a,b);}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['toString']()[g(0x14e)]('(((.+)+)+)+$')[g(0x158)]()['constructor'](a46a)[g(0x14e)]('(((.+)+)+)+$');});a46a();import{v4 as a46e}from'uuid';function a46c(){var k=['use','search','color','1094buBHoR','texture','.\x20Nothing\x20special\x20happens.','shape','44082888wvSOtu','rating','6941dTOVCI','7456856gXhqVo','toString','uuid','15790cEkIVr','2721FCRvfG','weight','18UJhkOs','description','name','category','7MixfOd','1512150YSuvIv','19952tjLejt','213aemDYy','size','7255005GRcnmy'];a46c=function(){return k;};return a46c();}import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{['uuid'];[a46h(0x145)];[a46h(0x144)];['size'];['category'];['shape'];[a46h(0x14f)];['texture'];[a46h(0x155)];[a46h(0x142)];constructor(a){var i=a46h;super(),this['name']=a[i(0x145)],this[i(0x144)]=a[i(0x144)],this[i(0x14b)]=a[i(0x14b)],this['category']=a[i(0x146)],this['shape']=a[i(0x153)],this[i(0x14f)]=a['color'],this[i(0x151)]=a['texture'],this['rating']=a['rating'],this[i(0x142)]=a[i(0x142)],this[i(0x13f)]=a46e();}[a46h(0x14d)](){var j=a46h;return'You\x20use\x20the\x20'+this[j(0x145)]+j(0x152);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d
|
|
1
|
+
const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0x162))/0x1+-parseInt(f(0x160))/0x2*(-parseInt(f(0x150))/0x3)+-parseInt(f(0x14c))/0x4*(-parseInt(f(0x155))/0x5)+-parseInt(f(0x161))/0x6+-parseInt(f(0x15b))/0x7+parseInt(f(0x14d))/0x8+-parseInt(f(0x153))/0x9*(-parseInt(f(0x15e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x19645));function a47c(){const o=['4rTNmqh','331712ByKiiM','rooms','speak','3iUccHE','floor','search','14805MXGfTE','random','588635WumbsY','length','toString','name','execute','_dialogue','155372LGzXHX','(((.+)+)+)+$','autonomousMove','860fJFDrm','scene','225832MmgsCq','686502PgFECL','172959TncfdZ','apply','moveTo','_name'];a47c=function(){return o;};return a47c();}const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x157)]()[h(0x152)]('(((.+)+)+)+$')['toString']()['constructor'](a47a)[h(0x152)](h(0x15c));});function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x14a;let f=c[d];return f;},a47d(a,b);}a47a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{['_name'];[a47i(0x15a)];[a47i(0x14e)];[a47i(0x15f)];constructor(a,b,c,d){const j=a47i;super(d),this[j(0x14b)]=a,this[j(0x15a)]=b,this[j(0x14e)]=c;}get[a47i(0x158)](){const k=a47i;return this[k(0x14b)];}[a47i(0x14f)](){const l=a47i;return this['_dialogue'][Math[l(0x151)](Math[l(0x154)]()*this[l(0x15a)]['length'])];}[a47i(0x15d)](a){const m=a47i,b=a[Math['floor'](Math['random']()*a[m(0x156)])];this[m(0x14a)](b[m(0x158)]);}[a47i(0x14a)](a){const n=a47i,b={'actor':this,'rooms':this[n(0x14e)],'scene':this[n(0x15f)]},c=new GoCommand(b);c[n(0x159)]([a]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x156;let f=c[d];return f;},a48d(a,b);}const a48h=a48d;function a48c(){const A=['156804JMRdSo','_inventory','inventoryItems','helmet','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','playerName','61192eqKYQE','\x20from\x20player\x27s\x20inventory.','Hat','search','You\x20don\x27t\x20have\x20','\x20slot.','unequip','2277ZCfwBW','736149zPIWqM','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','torso','\x20is\x20no\x20longer\x20listeng\x20in\x20','Nexus','logger','currentLocation','body\x20armor','188127tZHPPv','7548519FHtvTx','A\x20featureless\x20room','hear','Added\x20','toString','Boots','includes','name','You\x20can\x27t\x20equip\x20','determineEquipmentSlot','getWeight','rightHand','addItem','off','You\x20unequipped\x20','hat','weapon','enterRoom','LegArmor','49jcESqW','bodyarmor','canEquip','feet','addInventory','arms','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','removeInventory','leaveRoom','write','ArmArmor','maxCarryingWeight','equip','_currentLocation','equipment','Invalid\x20category\x20or\x20slot:\x20','965180wiVlmi','category','unequipBySlot','arm\x20armor','weight','\x20to\x20player\x27s\x20inventory.','BodyArmor','values','(((.+)+)+)+$','152ihHnTs','boots','_equipment','bind','_maxCarryingWeight','getInstance','head','\x20is\x20now\x20listening\x20in\x20room\x20','\x20says:\x20\x22','Weapon','Max\x20carrying\x20weight\x20must\x20be\x20positive.','gloves','log','140VVdHwA','_playerName','Failed\x20to\x20remove\x20','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','legarmor','toLowerCase','Removed\x20','206dzkumn','\x20in\x20your\x20inventory.','You\x20equipped\x20','Gloves'];a48c=function(){return A;};return a48c();}(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x16e))/0x1*(-parseInt(f(0x15d))/0x2)+-parseInt(f(0x16f))/0x3+-parseInt(f(0x167))/0x4*(-parseInt(f(0x1b1))/0x5)+parseInt(f(0x161))/0x6*(parseInt(f(0x18b))/0x7)+-parseInt(f(0x1a4))/0x8*(-parseInt(f(0x177))/0x9)+-parseInt(f(0x19b))/0xa+-parseInt(f(0x178))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x34738));const a48b=(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;};}()),a48a=a48b(this,function(){const g=a48d;return a48a[g(0x17c)]()[g(0x16a)](g(0x1a3))[g(0x17c)]()['constructor'](a48a)['search'](g(0x1a3));});a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a48h(0x156)];[a48h(0x198)];[a48h(0x162)];[a48h(0x1a6)];['_maxCarryingWeight']=0x32;[a48h(0x174)];constructor(a){const i=a48h;super(),this[i(0x156)]=a[i(0x166)],this[i(0x198)]=a['startLocation']||new Room({'name':i(0x173),'description':i(0x179)}),this[i(0x162)]=new Inventory(),this[i(0x174)]=Logger[i(0x1a9)]();if(a?.['inventoryItems'])for(const b of a[i(0x163)]){this[i(0x162)]['addItem'](b);}this[i(0x1a6)]=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48h(0x17f)](){const j=a48h;return this[j(0x156)];}get[a48h(0x175)](){return this['_currentLocation'];}set[a48h(0x175)](a){const k=a48h;this['_currentLocation']!==a&&(this[k(0x193)](),this[k(0x189)](a)),this['_currentLocation']=a;}get['inventory'](){const l=a48h;return this[l(0x162)];}get[a48h(0x199)](){return this['_equipment'];}set['equipment'](a){const m=a48h;this[m(0x1a6)]=a;}get['maxCarryingWeight'](){const n=a48h;return this[n(0x1a8)];}set[a48h(0x196)](a){const o=a48h;a>0x0?this[o(0x1a8)]=a:console['error'](o(0x1ae));}get['currentWeight'](){const p=a48h;let a=this['_inventory'][p(0x182)]();for(const b in this['_equipment']){const c=this[p(0x1a6)][b];c&&(a+=c[p(0x19f)]);}return a;}[a48h(0x18f)](a){const q=a48h;if(this['currentWeight']+a[q(0x19f)]>this[q(0x196)]){this['logger'][q(0x194)](q(0x165));throw new Error(q(0x191));}this['_inventory'][q(0x184)](a),this['logger'][q(0x194)](q(0x17b)+a[q(0x17f)]+q(0x1a0));}[a48h(0x192)](a){const r=a48h;if(this[r(0x162)]['removeItem'](a[r(0x17f)]))return this[r(0x174)][r(0x194)](r(0x15c)+a[r(0x17f)]+r(0x168)),!![];return this[r(0x174)][r(0x194)](r(0x157)+a[r(0x17f)]+r(0x168)),![];}[a48h(0x197)](a){const s=a48h;if(!this[s(0x162)]['hasItem'](a[s(0x17f)]))return s(0x16b)+a[s(0x17f)]+s(0x15e);if(!this['canEquip'](a))return s(0x180)+a[s(0x17f)]+'.';const b=this['determineEquipmentSlot'](a[s(0x19c)]);if(!b)return a[s(0x17f)]+s(0x158);if(this['equipment'][b])return s(0x170)+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this[s(0x199)][b]=a,this['removeInventory'](a),s(0x15f)+a[s(0x17f)]+'.';}[a48h(0x16d)](a){const t=a48h;let b=a;if(!this[t(0x199)][camelCase(b)]){b=this[t(0x181)](a);if(!b)return t(0x19a)+a+'.';}return this[t(0x19d)](b);}[a48h(0x181)](a){const u=a48h;switch(a['toLowerCase']()){case Category[u(0x1ad)][u(0x15b)]():return u(0x183);case Category['Shield'][u(0x15b)]():return'leftHand';case Category[u(0x160)][u(0x15b)]():return u(0x1af);case Category['Helmet']['toLowerCase']():case Category[u(0x169)]['toLowerCase']():return u(0x1aa);case Category[u(0x17d)][u(0x15b)]():return'feet';case Category[u(0x18a)][u(0x15b)]():return'legs';case Category[u(0x195)][u(0x15b)]():return u(0x190);case Category[u(0x1a1)][u(0x15b)]():return'torso';case u(0x188):return u(0x183);case'shield':return'leftHand';case u(0x1af):return'gloves';case u(0x164):case u(0x187):return u(0x1aa);case u(0x1a5):return u(0x18e);case'leg\x20armor':case u(0x15a):return'legs';case u(0x19e):case'armarmor':return'arms';case u(0x176):case u(0x18c):case u(0x171):return u(0x171);default:return null;}}[a48h(0x18d)](a){const v=a48h;return Object[v(0x1a2)](Category)[v(0x17e)](a['category']);}['unequipBySlot'](a){const w=a48h,b=this[w(0x199)][a];if(!b)return w(0x159)+a+w(0x16c);return this[w(0x18f)](b),this[w(0x199)][a]=null,w(0x186)+b[w(0x17f)]+'.';}[a48h(0x17a)](a,b){const x=a48h;a!==this&&this[x(0x174)][x(0x1b0)](a[x(0x17f)]+x(0x1ac)+b+'\x22');}[a48h(0x189)](a){const y=a48h;this['_currentLocation']=a,a['on']('speak',this[y(0x17a)][y(0x1a7)](this)),this[y(0x174)][y(0x194)](this['name']+y(0x1ab)+a[y(0x17f)]);}[a48h(0x193)](){const z=a48h;this['_currentLocation']&&(this['_currentLocation'][z(0x185)]('speak',this[z(0x17a)]['bind'](this)),this['logger'][z(0x194)](this[z(0x17f)]+z(0x172)+this[z(0x198)]['name']));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a49h=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0xf9))/0x1*(parseInt(f(0xf8))/0x2)+parseInt(f(0x10d))/0x3+-parseInt(f(0xff))/0x4*(parseInt(f(0xf5))/0x5)+parseInt(f(0x10b))/0x6+parseInt(f(0x10c))/0x7+parseInt(f(0x106))/0x8+-parseInt(f(0xfc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x8907b));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(0xf7)]()[g(0x100)](g(0xf1))['toString']()[g(0xfe)](a49a)['search'](g(0xf1));});function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xf0;var f=c[d];return f;},a49d(a,b);}a49a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';function a49c(){var m=['solve','riddle','requiredItem','write','requiredPhrase','7003680EwLsqY','rewardItem','successMessage','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','getInstance','4638258tzvouO','7237895GWYqCu','1849851mvJCGv','hasRequiredItem','(((.+)+)+)+$','Puzzle:\x20Correct\x20solution\x20provided.','failureMessage','logger','32955gyrkCf','solved','toString','72yXkQkR','3398qzxRRR','hasItem','You\x20have\x20already\x20solved\x20this\x20puzzle.','17140167DUAKeR','matchesRequiredPhrase','constructor','580bsjaza','search'];a49c=function(){return m;};return a49c();}export class Puzzle extends AbstractPuzzle{[a49h(0xf4)]=Logger[a49h(0x10a)]();[a49h(0xf6)]=![];['requiredItem'];[a49h(0x105)];[a49h(0x102)];[a49h(0x107)];[a49h(0x108)];[a49h(0xf3)];constructor(a){var i=a49h;super(),this[i(0x103)]=a[i(0x103)],this[i(0x105)]=a[i(0x105)],this[i(0x102)]=a[i(0x102)],this[i(0x107)]=a[i(0x107)],this[i(0x108)]=a[i(0x108)]||'You\x20solved\x20the\x20puzzle!',this[i(0xf3)]=a[i(0xf3)]||i(0x109);}[a49h(0xf0)](a){var j=a49h;if(this[j(0x103)])return a[j(0xfa)](this[j(0x103)]);return![];}[a49h(0xfd)](a){var k=a49h;return this[k(0x105)]===a;}[a49h(0x101)](a,b){var l=a49h;if(this[l(0xf6)])return this[l(0xf4)][l(0x104)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':l(0xfb)};return this['hasRequiredItem'](b)||this[l(0xfd)](a)?(this[l(0xf6)]=!![],this[l(0xf4)][l(0x104)](l(0xf2)),{'success':!![],'message':this['successMessage']}):(this['logger'][l(0x104)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[l(0xf3)]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x165))/0x1*(-parseInt(f(0x13a))/0x2)+-parseInt(f(0x13c))/0x3+parseInt(f(0x12c))/0x4+parseInt(f(0x14e))/0x5+-parseInt(f(0x142))/0x6*(-parseInt(f(0x14b))/0x7)+-parseInt(f(0x131))/0x8+parseInt(f(0x130))/0x9*(parseInt(f(0x167))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xdcc6f));function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x12a;let f=c[d];return f;},a50d(a,b);}const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x141)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0x13b)]()['search'](h(0x151))[h(0x13b)]()[h(0x161)](a50a)[h(0x153)](h(0x151));});a50a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';function a50c(){const u=['There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','NORTH','Fetching\x20exit\x20in\x20direction:\x20','4sPdmPp','toString','4775232AJlBZS','roomB','roomType','removeItem','\x20is\x20locked.\x20Result:\x20','apply','4949754zVMRRt','setPuzzle','north','Room\x20created:\x20','description','riddle','set','hasItem','logger','7qWQSMu','name','exits','5817865RUknTe','get','say','(((.+)+)+)+$','Item\x20added\x20to\x20room\x20','search','write','The\x20','INSIDE','west','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','Item\x20removed\x20from\x20room\x20','addItem','checkIfLocked','EAST','WEST','getInstance','puzzle','addExit','constructor','inventory','down','No\x20locked\x20exit\x20found\x20in\x20direction\x20','550993FXjjki','SOUTH','18917780YwWTKU','isStartRoom','\x20remains\x20locked.','.\x20Success:\x20','236316clpZNH','Invalid\x20direction:\x20','getExit','findExistingDoor','9YpNUTo','2730848TxAoUS','speak','roomA','Puzzle\x20set\x20for\x20room\x20','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','DOWN'];a50c=function(){return u;};return a50c();}export class Room extends AbstractRoom{['logger']=Logger[a50i(0x15e)]();[a50i(0x14c)];[a50i(0x146)];[a50i(0x14d)]=new Map();[a50i(0x13e)];[a50i(0x168)];[a50i(0x162)]=new Inventory();constructor(a){const j=a50i;super(),this[j(0x14c)]=a[j(0x14c)],this[j(0x146)]=a['description'],this[j(0x13e)]=a[j(0x13e)]||RoomType[j(0x156)],a['exits']&&(this[j(0x14d)]=a[j(0x14d)]||new Map()),a[j(0x162)]&&(this['inventory']=a['inventory']),a[j(0x15f)]&&(this['puzzle']=a[j(0x15f)]),this['isStartRoom']=a[j(0x168)]||![],this['logger'][j(0x154)](j(0x145)+this['name']);}[a50i(0x150)](a,b){const k=a50i;this['emit'](k(0x132),a,b);}[a50i(0x160)](a,b,c){const l=a50i;let d=this[l(0x12f)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0x14d)][l(0x148)](a,d),b[l(0x14d)][l(0x148)](this['getOppositeDirection'](a),d);}['attemptUnlockExit'](a,b){const m=a50i,c=this[m(0x14d)]['get'](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[m(0x14a)][m(0x154)](m(0x135)+a+m(0x12b)+d),d?m(0x155)+c[m(0x14c)]+'\x20unlocked!':m(0x155)+c[m(0x14c)]+m(0x12a);}return this['logger']['write'](m(0x164)+a),m(0x137);}[a50i(0x12e)](a){const n=a50i;return this[n(0x14a)][n(0x154)](n(0x139)+a),this['exits'][n(0x14f)](a);}['isExitLocked'](a){const o=a50i,b=this[o(0x14d)][o(0x14f)](a),c=b instanceof Door&&b[o(0x15b)]();return this[o(0x14a)][o(0x154)]('Checking\x20if\x20exit\x20in\x20direction\x20'+a+o(0x140)+c),c;}['addItem'](a){const p=a50i;this[p(0x162)][p(0x15a)](a),this[p(0x14a)][p(0x154)](p(0x152)+this['name']+':\x20'+a[p(0x14c)]);}['removeItem'](a){const q=a50i;this[q(0x162)][q(0x149)](a[q(0x14c)])?(this[q(0x162)][q(0x13f)](a['name']),this[q(0x14a)][q(0x154)](q(0x159)+this[q(0x14c)]+':\x20'+a[q(0x14c)])):this['logger'][q(0x154)](q(0x158)+this['name']+':\x20'+a[q(0x14c)]);}[a50i(0x143)](a){const r=a50i;this[r(0x15f)]=a,this[r(0x14a)]['write'](r(0x134)+this[r(0x14c)]+':\x20'+a[r(0x147)]);}['getOppositeDirection'](a){const s=a50i;switch(a){case s(0x144):return Direction[s(0x166)];case'south':return Direction[s(0x138)];case'east':return Direction[s(0x15d)];case s(0x157):return Direction[s(0x15c)];case'up':return Direction[s(0x136)];case s(0x163):return Direction['UP'];default:throw new Error(s(0x12d)+a);}}[a50i(0x12f)](a){const t=a50i;for(const b of this[t(0x14d)]['values']()){if(b instanceof Door){if(b['roomA']===this&&b['roomB']===a||b[t(0x13d)]===this&&b[t(0x133)]===a)return b;}}return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a51l=a51d;function
|
|
1
|
+
const a51l=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=-parseInt(i(0xf0))/0x1*(-parseInt(i(0x124))/0x2)+parseInt(i(0x108))/0x3+-parseInt(i(0xec))/0x4*(parseInt(i(0xee))/0x5)+parseInt(i(0xf7))/0x6+parseInt(i(0x11a))/0x7*(-parseInt(i(0x129))/0x8)+-parseInt(i(0x10b))/0x9*(parseInt(i(0xfe))/0xa)+-parseInt(i(0x11b))/0xb*(-parseInt(i(0xe6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x57dcc));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a51d;if(c){const e=c[j(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const k=a51d;return a51a[k(0xf2)]()['search'](k(0x10f))[k(0xf2)]()['constructor'](a51a)[k(0x12b)](k(0x10f));});a51a();function a51c(){const D=['285108FqKhQj','push','Added\x20room\x20to\x20scene:\x20','1108494PzDzgn','Scene\x20initialized\x20with\x20rooms:\x20','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','characterLocations','(((.+)+)+)+$','addRoom','Added\x20item\x20','warn','Failed\x20to\x20add\x20puzzle.\x20Room\x20','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','connectRooms','actors','removeRoom','Failed\x20to\x20add\x20item\x20','write','509446JpbfvH','5766673cTICkh','Actor\x20with\x20name\x20','getRooms','get','player','generateRoomsFromConfig','addActor','addItem','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','42572fpAgTJ','determineStartRoom','\x20to\x20room\x20','logger','Removed\x20room\x20from\x20scene:\x20','8eLOGGB','getPlayer','search','addItemToRoom','keyRequired','initialize','\x27s\x20location.\x20Room\x20','keys','currentLocation','set','roomFactory','isStartRoom','exits','addPuzzleToRoom','12brloAc','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','Room\x20\x22','getCharacterLocation','.\x20Room\x20','\x20found\x20in\x20the\x20scene.','907580ZlaGdo','getActor','5juxUYk','rooms','2vDvZjQ','name','toString','setPuzzle','removeActor','apply','join','2203224pdEksY','roomConfiguration','createExitsFromConfig','setCharacterLocation','length','\x20is\x20now\x20in\x20room\x20','No\x20actor\x20with\x20name\x20','30rdXzzU','addExit','allActors','\x20not\x20found\x20in\x20scene.','from','\x20already\x20exists\x20in\x20the\x20scene.','direction','has','Failed\x20to\x20set\x20','\x22\x20does\x20not\x20exist.'];a51c=function(){return D;};return a51c();}import{Logger}from'../utilities/logger.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0xe4;let f=c[d];return f;},a51d(a,b);}import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a51l(0xef)];[a51l(0x11f)];[a51l(0x127)];[a51l(0x116)];[a51l(0x10e)]=new Map();[a51l(0x133)];constructor(a){const m=a51l;super(),this['roomFactory']=new RoomFactory(),this[m(0x11f)]=a[m(0x11f)],this[m(0xef)]=this['generateRoomsFromConfig'](a[m(0xf8)]),this['logger']=Logger['getInstance'](),this[m(0x116)]=new Map(),this['createExitsFromConfig'](a[m(0xf8)]),this['logger'][m(0x119)](m(0x10c)+Object[m(0x130)](this[m(0xef)])[m(0xf6)](',\x20'));}[a51l(0x12e)](){const n=a51l;this[n(0x11f)][n(0x131)]=this[n(0x125)]();}[a51l(0x120)](a){const o=a51l;if(!this[o(0x133)])throw new Error(o(0x114));const b={};for(const c of a){const d=this[o(0x133)]['createRoom'](c);b[c['name']]=d;}return b;}[a51l(0xf9)](a){const p=a51l;for(const b of a){const c=this[p(0xef)][b[p(0xf1)]];if(b['exits'])for(const d of b[p(0xe4)]){const e=d[p(0x104)]['toUpperCase'](),f=d['targetRoom'],g=d[p(0x12d)],h=this[p(0xef)][f];h&&c[p(0xff)](Direction[e],h,g);}}}[a51l(0x121)](a){const q=a51l;if(this[q(0x116)][q(0x105)](a[q(0xf1)]))throw new Error(q(0x11c)+a[q(0xf1)]+q(0x103));this['actors'][q(0x132)](a[q(0xf1)],a);}[a51l(0xf4)](a){const r=a51l;if(!this[r(0x116)][r(0x105)](a))throw new Error(r(0xfd)+a+r(0xeb));this[r(0x116)]['delete'](a);}[a51l(0xed)](a){const s=a51l;return this['actors'][s(0x11e)](a);}get[a51l(0x100)](){const t=a51l;return Array[t(0x102)](this['actors']['values']());}[a51l(0x110)](a){const u=a51l;this['rooms'][a[u(0xf1)]]=a,this[u(0x127)][u(0x119)](u(0x10a)+a[u(0xf1)]);}[a51l(0x117)](a){const v=a51l;return this[v(0xef)][a]?(delete this[v(0xef)][a],this['logger']['write'](v(0x128)+a),!![]):(this['logger'][v(0x119)](v(0x123)+a),![]);}[a51l(0x12c)](a,b){const w=a51l,c=this['rooms'][b];c?(c[w(0x122)](a),this[w(0x127)][w(0x119)](w(0x111)+a[w(0xf1)]+w(0x126)+c['name'])):this[w(0x127)][w(0x119)](w(0x118)+a[w(0xf1)]+w(0xea)+b+w(0x101));}[a51l(0xe5)](a,b){const x=a51l,c=this['rooms'][b];c?(c[x(0xf3)](a),this[x(0x127)][x(0x119)]('Added\x20puzzle\x20to\x20room\x20'+c['name'])):this['logger'][x(0x119)](x(0x113)+b+x(0x101));}[a51l(0xfa)](a,b){const y=a51l,c=this[y(0xef)][b];c?(this['characterLocations']['set'](a[y(0xf1)],c),this[y(0x127)]['write'](a[y(0xf1)]+y(0xfc)+c[y(0xf1)])):this[y(0x127)]['write'](y(0x106)+a[y(0xf1)]+y(0x12f)+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0xe9)](a){const z=a51l;return this[z(0x10e)]['get'](a[z(0xf1)]);}[a51l(0x125)](){const A=a51l,a=[];for(const c in this['rooms']){if(this[A(0xef)]['hasOwnProperty'](c)){const d=this['rooms'][c];d[A(0x134)]&&a[A(0x109)](d);}}if(a[A(0xfb)]>0x1)throw new Error(A(0x10d));if(a[A(0xfb)]===0x1)return a[0x0];const b=Object[A(0x130)](this[A(0xef)]);if(b[A(0xfb)]===0x0)throw new Error(A(0xe7));return console[A(0x112)]('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this['rooms'][b[0x0]];}[a51l(0x12a)](){return this['player'];}[a51l(0x11d)](){const B=a51l;return this[B(0xef)];}[a51l(0x115)](a,b,c,d){const C=a51l,e=this['rooms'][a],f=this[C(0xef)][c];if(!e)throw new Error(C(0xe8)+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(C(0xe8)+c+C(0x107));e['addExit'](b,f,d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x94))/0x1*(-parseInt(f(0xb5))/0x2)+parseInt(f(0xa9))/0x3*(-parseInt(f(0xb1))/0x4)+parseInt(f(0xa4))/0x5*(-parseInt(f(0xa2))/0x6)+-parseInt(f(0x9b))/0x7*(parseInt(f(0xbe))/0x8)+parseInt(f(0x9d))/0x9+-parseInt(f(0xad))/0xa+parseInt(f(0xa1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x614d0));var a52b=(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;};}()),a52a=a52b(this,function(){var g=a52d;return a52a[g(0xc8)]()[g(0xc7)](g(0xb9))[g(0xc8)]()[g(0xb7)](a52a)[g(0xc7)]('(((.+)+)+)+$');});a52a();function a52c(){var D=['Unknown','Gloves','732352KrAmLu','Small','LegArmor','use','Grey','Rectangle','Circle','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','search','toString','Boots','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Unknown\x20Author','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Yellow','251KjCwMn','BodyArmor','A\x20mysterious\x20book.','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Brown','Book','Medium','49mXHkiT','Weapon','1173366CGlolU','Cup','Short\x20Sword','name','30453126SpycHJ','594498lGYBqh','Rifle','40NxfMgJ','Legendary','Smooth','publishDate','Helmet','2204214LoMLkH','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Common','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','6932750mTFMKx','Holy\x20Grail','author','Large','4HzqGXj','pageCount','Key','description','2878essHuI','Metallic','constructor','Blade','(((.+)+)+)+$','Rare','Gold'];a52c=function(){return D;};return a52c();}import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var h=a52d;super({'name':a,'description':b,'size':Size[h(0x9a)],'category':Category[h(0xbc)],'shape':Shape[h(0xc3)],'color':Color[h(0x93)],'texture':Texture[h(0xa6)],'rating':Rating[h(0xab)],'weight':0x1});}[a52i(0xc1)](){var j=a52i;return this[j(0xb4)];}}export class Sword extends Item{constructor(a,b){var k=a52i;super({'name':a,'description':b,'size':Size[k(0x9a)],'category':Category[k(0x9c)],'shape':Shape[k(0xb8)],'color':Color[k(0xc2)],'texture':Texture[k(0xb6)],'rating':Rating[k(0xab)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a52i;super({'name':a,'description':b,'size':Size[l(0xb0)],'category':Category[l(0x9c)],'shape':Shape[l(0xa3)],'color':Color[l(0x98)],'texture':Texture[l(0xb6)],'rating':Rating[l(0xba)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a52i;super({'name':a,'description':b,'size':Size[m(0x9a)],'category':Category[m(0xa8)],'shape':Shape['Circle'],'color':Color[m(0xc2)],'texture':Texture[m(0xb6)],'rating':Rating[m(0xab)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a52i;super({'name':a,'description':b,'size':Size['Large'],'category':Category[n(0x95)],'shape':Shape[n(0xc3)],'color':Color[n(0xc2)],'texture':Texture[n(0xb6)],'rating':Rating[n(0xab)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a52i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[o(0xc0)],'shape':Shape[o(0xc3)],'color':Color[o(0xc2)],'texture':Texture[o(0xb6)],'rating':Rating[o(0xab)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a52i;super({'name':a,'description':b,'size':Size[p(0x9a)],'category':Category[p(0xc9)],'shape':Shape['Circle'],'color':Color[p(0x98)],'texture':Texture['Smooth'],'rating':Rating[p(0xab)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a52i;super({'name':a,'description':b,'size':Size[q(0xbf)],'category':Category[q(0xbd)],'shape':Shape[q(0xc4)],'color':Color[q(0x98)],'texture':Texture[q(0xa6)],'rating':Rating[q(0xab)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a52i;super({'name':a,'description':b,'size':Size[r(0x9a)],'category':Category['ArmArmor'],'shape':Shape[r(0xc3)],'color':Color[r(0xc2)],'texture':Texture[r(0xb6)],'rating':Rating['Common'],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a52i;super({'name':a,'description':b,'size':Size['Tiny'],'category':Category[s(0xb3)],'shape':Shape[s(0xc3)],'color':Color[s(0x93)],'texture':Texture[s(0xa6)],'rating':Rating['Common'],'weight':0x0});}[a52i(0xc1)](){var t=a52i;return t(0x97);}}export class Weapon extends Item{constructor(a,b){var u=a52i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[u(0x9c)],'shape':Shape[u(0xb8)],'color':Color['Grey'],'texture':Texture[u(0xb6)],'rating':Rating[u(0xab)],'weight':0x3});}[a52i(0xc1)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class Book extends Item{[a52i(0xaf)];[a52i(0xa7)];[a52i(0xb2)];constructor(a,b=a52i(0x96),c=a52i(0x91)){var v=a52i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[v(0x99)],'shape':Shape[v(0xc3)],'color':Color[v(0x98)],'texture':Texture[v(0xa6)],'rating':Rating['Common'],'weight':0x1}),this['author']=c,this[v(0xa7)]=new Date(),this[v(0xb2)]=0x64;}[a52i(0xc1)](){var w=a52i;return w(0xca);}}export class ShortSword extends Item{constructor(){var x=a52i;super({'name':x(0x9f),'description':x(0xcb),'size':Size[x(0x9a)],'category':Category['Weapon'],'shape':Shape[x(0xb8)],'color':Color[x(0xc2)],'texture':Texture[x(0xb6)],'rating':Rating[x(0xab)],'weight':0x3});}[a52i(0xc1)](){var y=a52i;return y(0xaa);}}export class SniperRifle extends Item{constructor(){var z=a52i;super({'name':'Sniper\x20Rifle','description':z(0xc5),'size':Size['Large'],'category':Category[z(0x9c)],'shape':Shape[z(0xa3)],'color':Color[z(0x98)],'texture':Texture[z(0xa6)],'rating':Rating[z(0xab)],'weight':0x5});}[a52i(0xc1)](){var A=a52i;return A(0xac);}}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x91;var f=c[d];return f;},a52d(a,b);}export class HolyGrail extends Item{constructor(){var B=a52i;super({'name':B(0xae),'description':B(0xc6),'size':Size[B(0xbf)],'category':Category[B(0x9e)],'shape':Shape[B(0xc4)],'color':Color[B(0xbb)],'texture':Texture[B(0xb6)],'rating':Rating[B(0xa5)],'weight':0x1});}[a52i(0xc1)](){var C=a52i;return'You\x20hold\x20the\x20'+this[C(0xa0)]+C(0x92);}}
|