@maka/maka-cli 4.5.38 → 4.5.41

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.
Files changed (134) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/jsdoc.js +1 -1
  73. package/bundle/obf/src/commands/lint.js +1 -1
  74. package/bundle/obf/src/commands/login.js +1 -1
  75. package/bundle/obf/src/commands/logout.js +1 -1
  76. package/bundle/obf/src/commands/logs.js +1 -1
  77. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  78. package/bundle/obf/src/commands/murder.js +1 -1
  79. package/bundle/obf/src/commands/proxy.js +1 -1
  80. package/bundle/obf/src/commands/reconfig.js +1 -1
  81. package/bundle/obf/src/commands/run/_index.js +1 -1
  82. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  83. package/bundle/obf/src/commands/run/run.command.js +1 -1
  84. package/bundle/obf/src/commands/set/_index.js +1 -1
  85. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/set.command.js +1 -1
  88. package/bundle/obf/src/commands/ssh.js +1 -1
  89. package/bundle/obf/src/commands/ssl.js +1 -1
  90. package/bundle/obf/src/commands/test.js +1 -1
  91. package/bundle/obf/src/commands/version.js +1 -1
  92. package/bundle/obf/src/error.js +1 -1
  93. package/bundle/obf/src/exec.js +1 -1
  94. package/bundle/obf/src/generator.js +1 -1
  95. package/bundle/obf/src/generators/_index.js +1 -1
  96. package/bundle/obf/src/generators/api.js +1 -1
  97. package/bundle/obf/src/generators/collection.js +1 -1
  98. package/bundle/obf/src/generators/component.js +1 -1
  99. package/bundle/obf/src/generators/config.js +1 -1
  100. package/bundle/obf/src/generators/dbc.js +1 -1
  101. package/bundle/obf/src/generators/dockerfile.js +1 -1
  102. package/bundle/obf/src/generators/hook.js +1 -1
  103. package/bundle/obf/src/generators/kit.js +1 -1
  104. package/bundle/obf/src/generators/layout.js +1 -1
  105. package/bundle/obf/src/generators/maka.gen.js +1 -1
  106. package/bundle/obf/src/generators/methods.js +1 -1
  107. package/bundle/obf/src/generators/package.js +1 -1
  108. package/bundle/obf/src/generators/page.js +1 -1
  109. package/bundle/obf/src/generators/publish.js +1 -1
  110. package/bundle/obf/src/generators/route.js +1 -1
  111. package/bundle/obf/src/generators/service.js +1 -1
  112. package/bundle/obf/src/generators/services/_index.js +1 -1
  113. package/bundle/obf/src/generators/services/openssl.js +1 -1
  114. package/bundle/obf/src/generators/services/translation.js +1 -1
  115. package/bundle/obf/src/maka.js +1 -1
  116. package/bundle/obf/src/tool.js +1 -1
  117. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  118. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  120. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  122. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  124. package/bundle/obf/src/tools/https/https.class.js +1 -1
  125. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  126. package/bundle/obf/src/tools/log/log.class.js +1 -1
  127. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/options/options.class.js +1 -0
  129. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  130. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  131. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  132. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  134. package/package.json +1 -1
@@ -1 +1 @@
1
- const a36i=a36d;function a36c(){const l=['5RvpNCP','name','logger','5005808HkhJOO','verb','apply','join','currentLocation','19364DtkfFH','\x22\x20in\x20this\x20room.','constructor','write','(((.+)+)+)+$','\x22\x20is\x20too\x20heavy\x20to\x20carry.','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','The\x20item\x20\x22','\x22\x20not\x20found\x20in\x20','description','There\x20is\x20no\x20item\x20\x22','41141166kMfHTk','\x22\x20to\x20','toLowerCase','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','search','1461411BAoRKs','hasItem','Pick\x20up\x20an\x20item.','inventory','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','10omwphL','message','48gnMIrd','740262UuAyYP','You\x20have\x20taken\x20the\x20','\x20during\x20\x27Take\x27\x20command.','addInventory','8752113dIAJHp','toString','Successfully\x20added\x20\x22','4542224oUbmde','Error\x20during\x20\x27Take\x27\x20command:\x20','take','112CteXjk','actor'];a36c=function(){return l;};return a36c();}(function(a,b){const f=a36d,c=a();while(!![]){try{const d=-parseInt(f(0x102))/0x1*(parseInt(f(0x119))/0x2)+parseInt(f(0x112))/0x3+-parseInt(f(0x121))/0x4*(parseInt(f(0xfa))/0x5)+parseInt(f(0x11a))/0x6*(-parseInt(f(0xf8))/0x7)+-parseInt(f(0xfd))/0x8+parseInt(f(0x11e))/0x9+-parseInt(f(0x117))/0xa*(-parseInt(f(0x10d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0xf40e2));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a[h(0x11f)]()[h(0x111)](h(0x106))[h(0x11f)]()[h(0x104)](a36a)[h(0x111)](h(0x106));});function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0xf7;let f=c[d];return f;},a36d(a,b);}a36a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a36i(0xfe)]=a36i(0xf7);static [a36i(0x10b)]=a36i(0x114);['execute'](a){const j=a36i;return this['logger'][j(0x105)](j(0x108)+a[j(0x100)]('\x20')),this[j(0xf7)](a);}[a36i(0xf7)](a){const k=a36i,b=a[k(0x100)]('\x20')[k(0x10f)](),c=this[k(0xf9)][k(0x101)];if(!c['inventory'][k(0x113)](b))return this[k(0xfc)][k(0x105)]('Item\x20\x22'+b+k(0x10a)+c['name']+k(0x11c)),k(0x10c)+b+k(0x103);const d=c['inventory']['getItem'](b);if(!d)return this[k(0xfc)][k(0x105)]('Item\x20\x22'+b+'\x22\x20not\x20retrieved\x20from\x20'+c['name']+k(0x110)),k(0x10c)+b+k(0x103);try{return this[k(0xf9)][k(0x11d)](d),this[k(0xfc)][k(0x105)](k(0x120)+b+k(0x10e)+this['actor'][k(0xfb)]+k(0x116)),c[k(0x115)]['removeItem'](b),this[k(0xfc)]['write']('Successfully\x20removed\x20\x22'+b+'\x22\x20from\x20'+c['name']+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x11b)+b+'.';}catch(e){return this[k(0xfc)][k(0x105)](k(0x122)+e[k(0x118)]),k(0x109)+b+k(0x107);}}}
1
+ const a36i=a36d;function a36c(){const l=['Successfully\x20added\x20\x22','1195852Mcremj','11060ggUpXi','removeItem','message','\x22\x20is\x20too\x20heavy\x20to\x20carry.','currentLocation','You\x20have\x20taken\x20the\x20','\x22\x20to\x20','10JKtgBN','\x22\x20from\x20','272901sHwrtf','There\x20is\x20no\x20item\x20\x22','name','Item\x20\x22','toString','294QqCNeq','getItem','1358928zzXuoX','Error\x20during\x20\x27Take\x27\x20command:\x20','join','2222foEtLH','actor','inventory','execute','addInventory','hasItem','652392dNPukc','\x22\x20in\x20this\x20room.','\x20during\x20\x27Take\x27\x20command.','191ENSbmt','take','Pick\x20up\x20an\x20item.','write','constructor','toLowerCase','apply','616779YYelKj','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','description','logger'];a36c=function(){return l;};return a36c();}(function(a,b){const f=a36d,c=a();while(!![]){try{const d=-parseInt(f(0x102))/0x1*(-parseInt(f(0xf9))/0x2)+-parseInt(f(0xef))/0x3+parseInt(f(0xff))/0x4+-parseInt(f(0xe6))/0x5*(-parseInt(f(0xf4))/0x6)+-parseInt(f(0xe5))/0x7+-parseInt(f(0xf6))/0x8+-parseInt(f(0xe0))/0x9*(-parseInt(f(0xed))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x1d6e5));function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0xda;let f=c[d];return f;},a36d(a,b);}const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a[h(0xf3)]()['search']('(((.+)+)+)+$')[h(0xf3)]()[h(0xdd)](a36a)['search']('(((.+)+)+)+$');});a36a();import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']=a36i(0xda);static [a36i(0xe2)]=a36i(0xdb);[a36i(0xfc)](a){const j=a36i;return this[j(0xe3)]['write']('Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20'+a['join']('\x20')),this[j(0xda)](a);}[a36i(0xda)](a){const k=a36i,b=a[k(0xf8)]('\x20')[k(0xde)](),c=this[k(0xfa)][k(0xea)];if(!c['inventory'][k(0xfe)](b))return this['logger'][k(0xdc)](k(0xf2)+b+'\x22\x20not\x20found\x20in\x20'+c[k(0xf1)]+k(0x101)),k(0xf0)+b+'\x22\x20in\x20this\x20room.';const d=c[k(0xfb)][k(0xf5)](b);if(!d)return this[k(0xe3)][k(0xdc)](k(0xf2)+b+'\x22\x20not\x20retrieved\x20from\x20'+c[k(0xf1)]+k(0xe1)),'There\x20is\x20no\x20item\x20\x22'+b+k(0x100);try{return this['actor'][k(0xfd)](d),this[k(0xe3)]['write'](k(0xe4)+b+k(0xec)+this[k(0xfa)][k(0xf1)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[k(0xfb)][k(0xe7)](b),this[k(0xe3)][k(0xdc)]('Successfully\x20removed\x20\x22'+b+k(0xee)+c[k(0xf1)]+k(0xe1)),k(0xeb)+b+'.';}catch(e){return this['logger'][k(0xdc)](k(0xf7)+e[k(0xe8)]),'The\x20item\x20\x22'+b+k(0xe9);}}}
@@ -1 +1 @@
1
- const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x1a3))/0x1*(parseInt(f(0x19a))/0x2)+parseInt(f(0x1a0))/0x3+parseInt(f(0x1ab))/0x4+parseInt(f(0x19c))/0x5+parseInt(f(0x196))/0x6*(-parseInt(f(0x1ac))/0x7)+parseInt(f(0x1aa))/0x8*(parseInt(f(0x19b))/0x9)+parseInt(f(0x1a4))/0xa*(-parseInt(f(0x1ad))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xef841));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x1a6)]()[h(0x1a8)](h(0x1af))[h(0x1a6)]()[h(0x1a2)](a37a)[h(0x1a8)](h(0x1af));});a37a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a37i(0x1a1)]=a37i(0x198);static ['description']=a37i(0x19e);[a37i(0x19f)](a){const j=a37i,b=a['join']('\x20')[j(0x199)](),c=this[j(0x19d)][j(0x1a5)](b);return this[j(0x1a7)][j(0x1a9)](j(0x197)+this[j(0x19d)]['name']+'\x20unqeuiped\x20'+c),c;}}function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x196;let f=c[d];return f;},a37d(a,b);}function a37c(){const k=['5202656JcsjJf','2772FYWDEP','39382651eqboXB','apply','(((.+)+)+)+$','28920PaVWkS','UnequipCommand:\x20','unqeuip','toLowerCase','3830sScZEA','1699794qpAMIn','6933220EynUvl','actor','Unequip\x20an\x20item.','execute','5471721fkcoti','verb','constructor','727UqLywL','10LBBKtY','unequip','toString','logger','search','write','24rotuSg'];a37c=function(){return k;};return a37c();}
1
+ const a37h=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0xef))/0x1*(parseInt(f(0xde))/0x2)+parseInt(f(0xd8))/0x3*(parseInt(f(0xe9))/0x4)+-parseInt(f(0xe6))/0x5+-parseInt(f(0xe3))/0x6*(parseInt(f(0xdb))/0x7)+parseInt(f(0xdc))/0x8+parseInt(f(0xec))/0x9*(parseInt(f(0xd6))/0xa)+parseInt(f(0xe5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xd72ef));const a37b=(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;};}()),a37a=a37b(this,function(){const g=a37d;return a37a[g(0xdf)]()[g(0xeb)](g(0xd7))[g(0xdf)]()[g(0xe7)](a37a)['search'](g(0xd7));});function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0xd6;let f=c[d];return f;},a37d(a,b);}a37a();import{Command}from'./command.js';function a37c(){const j=['search','27rtIXHw','logger','Unequip\x20an\x20item.','1480747gJnqrm','3388900ptUCbO','(((.+)+)+)+$','9HxBbCF','unqeuip','verb','35uyHXWN','5950536YmJQnh','UnequipCommand:\x20','2ajDZjq','toString','\x20unqeuiped\x20','execute','toLowerCase','2081658WYIfbI','join','24469907kDLPcS','503965juimdo','constructor','description','283496wEwLWM','name'];a37c=function(){return j;};return a37c();}export class UnequipCommand extends Command{static [a37h(0xda)]=a37h(0xd9);static [a37h(0xe8)]=a37h(0xee);[a37h(0xe1)](a){const i=a37h,b=a[i(0xe4)]('\x20')[i(0xe2)](),c=this['actor']['unequip'](b);return this[i(0xed)]['write'](i(0xdd)+this['actor'][i(0xea)]+i(0xe0)+c),c;}}
@@ -1 +1 @@
1
- const a38j=a38d;function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x1af;let f=c[d];return f;},a38d(a,b);}(function(a,b){const h=a38d,c=a();while(!![]){try{const d=-parseInt(h(0x1bd))/0x1*(-parseInt(h(0x1c5))/0x2)+-parseInt(h(0x1bf))/0x3+parseInt(h(0x1d0))/0x4+parseInt(h(0x1c3))/0x5*(-parseInt(h(0x1d2))/0x6)+-parseInt(h(0x1b5))/0x7+-parseInt(h(0x1b1))/0x8+parseInt(h(0x1b4))/0x9*(parseInt(h(0x1d4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x99f24));const a38b=(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;};}()),a38a=a38b(this,function(){const i=a38d;return a38a['toString']()[i(0x1b9)](i(0x1d3))[i(0x1cd)]()['constructor'](a38a)['search'](i(0x1d3));});a38a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a38j(0x1b2)]='unlock';static [a38j(0x1b6)]=a38j(0x1c4);['execute'](a){const k=a38j;return this[k(0x1d1)](a);}['unlock'](a){const l=a38j;if(a[l(0x1c2)]===0x0)return this['logger'][l(0x1bc)](l(0x1c1)),'Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.';const b=a[0x0]['toLowerCase'](),c=this[l(0x1c6)][l(0x1cb)];if(this['isValidDirection'](b)&&c[l(0x1bb)][l(0x1cf)](b)){const d=c[l(0x1bb)][l(0x1c8)](b);if(d instanceof Door){const e=d[l(0x1b7)]?.[l(0x1cc)]();if(e&&this[l(0x1c6)][l(0x1c9)][l(0x1d5)](e)){const f=this[l(0x1c6)]['inventory'][l(0x1c0)](e);if(f){const g=c[l(0x1be)](b,f['name']);return this[l(0x1af)][l(0x1b3)]('UnlockCommand:\x20'+this['actor']['name']+l(0x1d6)+b+'.\x20Result:\x20'+g),g;}}return this['logger'][l(0x1b3)](l(0x1c7)+this[l(0x1c6)][l(0x1ba)]+l(0x1ca)+b+'.'),l(0x1ce);}else return this[l(0x1af)][l(0x1b3)](l(0x1c7)+b+l(0x1b8)+c[l(0x1ba)]+'.'),l(0x1d7)+b+l(0x1b0);}else return this['logger'][l(0x1b3)](l(0x1c7)+b+l(0x1b8)+c[l(0x1ba)]+'.'),l(0x1d7)+b+'\x22\x20here.';}}function a38c(){const m=['There\x27s\x20no\x20door\x20named\x20\x22','logger','\x22\x20here.','534640oJXaFr','verb','write','464850njfqth','3606281CGaipE','description','unlockItemOrSolution','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','search','name','exits','error','479414WitoJM','attemptUnlockExit','1099788XrVGBs','getItem','UnlockCommand:\x20No\x20target\x20specified.','length','10yoMyJO','Unlock\x20a\x20door.','2mvcSFz','actor','UnlockCommand:\x20','get','inventory','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','currentLocation','toLowerCase','toString','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','has','420212fpdORq','unlock','734682suOTlz','(((.+)+)+)+$','240QIQiCd','hasItem','\x20is\x20attempted\x20to\x20unlock\x20'];a38c=function(){return m;};return a38c();}
1
+ const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=parseInt(h(0x99))/0x1*(parseInt(h(0xac))/0x2)+-parseInt(h(0xa0))/0x3+-parseInt(h(0x8b))/0x4+parseInt(h(0xab))/0x5+parseInt(h(0x89))/0x6*(-parseInt(h(0xaa))/0x7)+parseInt(h(0x95))/0x8*(parseInt(h(0x85))/0x9)+parseInt(h(0x8d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x81440));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a38d;if(c){const e=c[i(0x9d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a[j(0xa5)]()[j(0x93)]('(((.+)+)+)+$')['toString']()[j(0x97)](a38a)[j(0x93)](j(0xa4));});function a38c(){const n=['1863036driErL','Unlock\x20a\x20door.','hasItem','\x22\x20here.','6121884LOQdFi','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','871208BxcTBZ','currentLocation','14342030SukoLT','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','execute','inventory','exits','isValidDirection','search','UnlockCommand:\x20','8LgARbZ','attemptUnlockExit','constructor','UnlockCommand:\x20No\x20target\x20specified.','7886MDXvUa','.\x20Result:\x20','getItem','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','apply','name','toLowerCase','746799prBdfB','unlockItemOrSolution','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','logger','(((.+)+)+)+$','toString','length','There\x27s\x20no\x20door\x20named\x20\x22','get','actor','7WNAKoG','1718850qhQinM','8mVVsRM','unlock','verb','write'];a38c=function(){return n;};return a38c();}a38a();import{Door}from'../models/door.js';import{Command}from'./command.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x85;let f=c[d];return f;},a38d(a,b);}export class UnlockCommand extends Command{static [a38k(0xae)]=a38k(0xad);static ['description']=a38k(0x86);[a38k(0x8f)](a){const l=a38k;return this[l(0xad)](a);}[a38k(0xad)](a){const m=a38k;if(a[m(0xa6)]===0x0)return this[m(0xa3)]['error'](m(0x98)),m(0x8a);const b=a[0x0][m(0x9f)](),c=this['actor'][m(0x8c)];if(this[m(0x92)](b)&&c[m(0x91)]['has'](b)){const d=c[m(0x91)][m(0xa8)](b);if(d instanceof Door){const e=d[m(0xa1)]?.[m(0x9f)]();if(e&&this[m(0xa9)]['inventory'][m(0x87)](e)){const f=this[m(0xa9)][m(0x90)][m(0x9b)](e);if(f){const g=c[m(0x96)](b,f['name']);return this[m(0xa3)][m(0xaf)](m(0x94)+this[m(0xa9)]['name']+'\x20is\x20attempted\x20to\x20unlock\x20'+b+m(0x9a)+g),g;}}return this[m(0xa3)][m(0xaf)](m(0x94)+this[m(0xa9)][m(0x9e)]+m(0x8e)+b+'.'),m(0xa2);}else return this[m(0xa3)][m(0xaf)]('UnlockCommand:\x20'+b+m(0x9c)+c[m(0x9e)]+'.'),m(0xa7)+b+'\x22\x20here.';}else return this['logger']['write'](m(0x94)+b+m(0x9c)+c[m(0x9e)]+'.'),m(0xa7)+b+m(0x88);}}
@@ -1 +1 @@
1
- function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x1af;let f=c[d];return f;},a39d(a,b);}const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0x1c4))/0x1*(parseInt(f(0x1d2))/0x2)+parseInt(f(0x1af))/0x3*(parseInt(f(0x1c7))/0x4)+parseInt(f(0x1cf))/0x5+-parseInt(f(0x1b1))/0x6+-parseInt(f(0x1b5))/0x7+-parseInt(f(0x1bf))/0x8+-parseInt(f(0x1d1))/0x9*(-parseInt(f(0x1b6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xe5a4c));function a39c(){const l=['verb','name','toString','\x20attempted\x20to\x20use\x20','\x20in\x20this\x20way.','constructor','6993685zDceii','write','61749cwPKHA','14suKfyk','inventory','\x20not\x20retrieved\x20from\x20','3613728RUNXOt','You\x20don\x27t\x20have\x20the\x20','1268016sxRoOh','toLowerCase','\x20doesn\x27t\x20have\x20a\x20use\x20method.','join','201257QgCihv','410DkoPVt','execute','\x27s\x20inventory.','apply','actor','\x20used\x20','logger','search','Use\x20an\x20item.','9303632gGgike','use','UseCommand:\x20','(((.+)+)+)+$','function','77279vBXFDL','You\x20can\x27t\x20use\x20the\x20','\x20to\x20use.','4vTyjLZ','getItem'];a39c=function(){return l;};return a39c();}const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x1cb)]()['search'](h(0x1c2))[h(0x1cb)]()[h(0x1ce)](a39a)[h(0x1bd)](h(0x1c2));});a39a();import{Command}from'./command.js';export class UseCommand extends Command{static [a39i(0x1c9)]=a39i(0x1c0);static ['description']=a39i(0x1be);[a39i(0x1b7)](a){const j=a39i;return this[j(0x1c0)](a);}[a39i(0x1c0)](a){const k=a39i,b=a[k(0x1b4)]('\x20')[k(0x1b2)]();if(!this[k(0x1ba)][k(0x1d3)]['hasItem'](b))return this[k(0x1bc)][k(0x1d0)](k(0x1c1)+this[k(0x1ba)]['name']+k(0x1cc)+b+',\x20which\x20is\x20not\x20in\x20their\x20inventory.'),'You\x20don\x27t\x20have\x20the\x20'+b+k(0x1c6);const c=this[k(0x1ba)]['inventory'][k(0x1c8)](b);if(!c)return this[k(0x1bc)][k(0x1d0)](k(0x1c1)+b+k(0x1d4)+this[k(0x1ba)][k(0x1ca)]+k(0x1b8)),k(0x1b0)+b+'\x20to\x20use.';if(typeof c[k(0x1c0)]===k(0x1c3)){const d=c[k(0x1c0)]();return this[k(0x1bc)]['write'](k(0x1c1)+this[k(0x1ba)][k(0x1ca)]+k(0x1bb)+b+'.'),d;}else return this[k(0x1bc)][k(0x1d0)](k(0x1c1)+b+k(0x1b3)),k(0x1c5)+b+k(0x1cd);}}
1
+ const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0xd0))/0x1+-parseInt(f(0xcd))/0x2+parseInt(f(0xd9))/0x3+parseInt(f(0xc6))/0x4+parseInt(f(0xc2))/0x5*(-parseInt(f(0xd3))/0x6)+parseInt(f(0xde))/0x7*(-parseInt(f(0xe0))/0x8)+parseInt(f(0xdd))/0x9*(parseInt(f(0xda))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x5e8b9));function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xbd;let f=c[d];return f;},a39d(a,b);}const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0xd1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a['toString']()['search']('(((.+)+)+)+$')['toString']()[h(0xc1)](a39a)['search'](h(0xc3));});a39a();function a39c(){const l=[',\x20which\x20is\x20not\x20in\x20their\x20inventory.','You\x20don\x27t\x20have\x20the\x20','\x20in\x20this\x20way.','inventory','1039262KBmDAr','toLowerCase','\x20attempted\x20to\x20use\x20','475472bNeEbR','apply','description','1382046VzADjl','\x20not\x20retrieved\x20from\x20','use','\x20used\x20','\x27s\x20inventory.','Use\x20an\x20item.','1767771jblIGB','1390npVsSL','write','\x20to\x20use.','95607vWPbIn','154zBafPw','UseCommand:\x20','215048RXxVmr','verb','getItem','You\x20can\x27t\x20use\x20the\x20','hasItem','constructor','10JQgGTB','(((.+)+)+)+$','logger','actor','1474280PMrbBz','function','name'];a39c=function(){return l;};return a39c();}import{Command}from'./command.js';export class UseCommand extends Command{static [a39i(0xbd)]=a39i(0xd5);static [a39i(0xd2)]=a39i(0xd8);['execute'](a){const j=a39i;return this[j(0xd5)](a);}[a39i(0xd5)](a){const k=a39i,b=a['join']('\x20')[k(0xce)]();if(!this[k(0xc5)][k(0xcc)][k(0xc0)](b))return this[k(0xc4)]['write'](k(0xdf)+this[k(0xc5)][k(0xc8)]+k(0xcf)+b+k(0xc9)),k(0xca)+b+'\x20to\x20use.';const c=this['actor'][k(0xcc)][k(0xbe)](b);if(!c)return this['logger'][k(0xdb)](k(0xdf)+b+k(0xd4)+this[k(0xc5)][k(0xc8)]+k(0xd7)),'You\x20don\x27t\x20have\x20the\x20'+b+k(0xdc);if(typeof c['use']===k(0xc7)){const d=c[k(0xd5)]();return this[k(0xc4)][k(0xdb)](k(0xdf)+this[k(0xc5)][k(0xc8)]+k(0xd6)+b+'.'),d;}else return this[k(0xc4)][k(0xdb)](k(0xdf)+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),k(0xbf)+b+k(0xcb);}}
@@ -1 +1 @@
1
- const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x14b))/0x1+parseInt(f(0x145))/0x2*(-parseInt(f(0x13a))/0x3)+-parseInt(f(0x144))/0x4+parseInt(f(0x141))/0x5*(parseInt(f(0x143))/0x6)+-parseInt(f(0x140))/0x7+-parseInt(f(0x13d))/0x8*(-parseInt(f(0x13b))/0x9)+parseInt(f(0x13c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xcce7b));function a40c(){const k=['853820ynlzTE','14956hYsikL','apply','commandMap','constructor','createCommand','search','1541710SoGblP','177ApiIlG','7263mhSQVZ','16036530SvhzHu','14192PRDCLr','toString','getAllRegisteredCommands','367934vmdtBj','65wMODKe','(((.+)+)+)+$','24438FJsRWt'];a40c=function(){return k;};return a40c();}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x13e)]()[h(0x14a)](h(0x142))[h(0x13e)]()[h(0x148)](a40a)['search'](h(0x142));});function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x13a;let f=c[d];return f;},a40d(a,b);}a40a();export class CommandFactory{static [a40i(0x147)]={};static['registerCommand'](a,b){this['commandMap'][a]=b;}static[a40i(0x149)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static[a40i(0x13f)](){const j=a40i;return this[j(0x147)];}}
1
+ const a40h=a40d;function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x145;let f=c[d];return f;},a40d(a,b);}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x147))/0x1*(-parseInt(f(0x148))/0x2)+parseInt(f(0x150))/0x3*(-parseInt(f(0x152))/0x4)+-parseInt(f(0x14c))/0x5+parseInt(f(0x146))/0x6+-parseInt(f(0x149))/0x7*(-parseInt(f(0x14e))/0x8)+-parseInt(f(0x14b))/0x9+parseInt(f(0x154))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x4ef46));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(0x156)]()[g(0x153)](g(0x155))[g(0x156)]()[g(0x145)](a40a)[g(0x153)](g(0x155));});a40a();export class CommandFactory{static ['commandMap']={};static[a40h(0x14f)](a,b){const i=a40h;this[i(0x151)][a]=b;}static[a40h(0x14a)](a,b){const j=a40h,c=this[j(0x151)][a];if(c)return new c(b);return null;}static[a40h(0x14d)](){return this['commandMap'];}}function a40c(){const k=['3655260SmvZeo','3cEARUW','247318qRQCmL','196INRGpt','createCommand','1495845bCajHr','1066115yUueBX','getAllRegisteredCommands','72552qNnMVa','registerCommand','191931ebAVWH','commandMap','12aIOxVi','search','4025920aulUSi','(((.+)+)+)+$','toString','constructor'];a40c=function(){return k;};return a40c();}
@@ -1 +1 @@
1
- const a41h=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0xdd;let f=c[d];return f;},a41d(a,b);}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0xf7))/0x1*(parseInt(f(0xff))/0x2)+-parseInt(f(0xe2))/0x3+parseInt(f(0xf8))/0x4*(-parseInt(f(0xe1))/0x5)+-parseInt(f(0xf0))/0x6+-parseInt(f(0xf6))/0x7+parseInt(f(0xe3))/0x8*(parseInt(f(0xf4))/0x9)+parseInt(f(0xde))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x8a00a));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const g=a41d;return a41a['toString']()[g(0xe7)](g(0xf3))[g(0xed)]()['constructor'](a41a)[g(0xe7)](g(0xf3));});a41a();import{Room,Puzzle,Inventory}from'../models/_index.js';function a41c(){const n=['legarmor','29205yYNyoi','1564452vklbbh','1758424prMqmy','createItem','toUpperCase','roomType','search','key','content','forEach','convertToRoomConfig','name','toString','createRoom','createPuzzle','5209254VhyRZP','INSIDE','isStartRoom','(((.+)+)+)+$','45xNocZT','sword','7286146fYKjnp','4909cpNMlN','548VCXNVO','rifle','description','items','inventory','puzzle','type','4QFOpjf','bodyarmor','27068490jULAlZ','rewardItem'];a41c=function(){return n;};return a41c();}import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{[a41h(0xee)](a){const i=a41h,b=this[i(0xeb)](a),c=new Room(b);if(a['items']){const d=new Inventory();a[i(0xfb)][i(0xea)](e=>{const j=i;d['addItem'](this[j(0xe4)](e));}),c[i(0xfc)]=d;}return a[i(0xfd)]&&c['setPuzzle'](this[i(0xef)](a[i(0xfd)])),c;}[a41h(0xe4)](a){const k=a41h;switch(a[k(0xfe)]){case k(0xe8):return new Key(a[k(0xec)],a[k(0xfa)]);case'book':return new Book(a['name'],a[k(0xfa)],a[k(0xe9)]);case k(0xf5):return new Sword(a[k(0xec)],a[k(0xfa)]);case k(0xf9):return new Rifle(a['name'],a[k(0xfa)]);case'helmet':return new Helmet(a['name'],a['description']);case k(0xdd):return new BodyArmor(a[k(0xec)],a[k(0xfa)]);case k(0xe0):return new LegArmor(a[k(0xec)],a['description']);case'boots':return new Boots(a['name'],a[k(0xfa)]);case'gloves':return new Gloves(a[k(0xec)],a[k(0xfa)]);case'gauntlets':return new Gauntlets(a[k(0xec)],a['description']);default:return new BasicItem(a['name'],a[k(0xfa)]);}}[a41h(0xef)](a){const l=a41h,b=this[l(0xe4)](a[l(0xdf)]);return new Puzzle({...a,'rewardItem':b});}[a41h(0xeb)](a){const m=a41h,b=a[m(0xe6)]&&RoomType[a[m(0xe6)][m(0xe5)]()]?RoomType[a['roomType'][m(0xe5)]()]:RoomType[m(0xf1)];return{'name':a['name'],'description':a[m(0xfa)],'isStartRoom':a[m(0xf2)],'roomType':b};}}
1
+ const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=parseInt(f(0x1fd))/0x1*(-parseInt(f(0x1f4))/0x2)+-parseInt(f(0x20d))/0x3*(parseInt(f(0x1f8))/0x4)+-parseInt(f(0x203))/0x5*(parseInt(f(0x1fa))/0x6)+-parseInt(f(0x200))/0x7*(-parseInt(f(0x207))/0x8)+parseInt(f(0x1f9))/0x9+parseInt(f(0x1ee))/0xa*(parseInt(f(0x20c))/0xb)+parseInt(f(0x201))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x63f92));function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a41d(a,b);}function a41c(){const o=['convertToRoomConfig','(((.+)+)+)+$','gloves','toUpperCase','10whKVnx','setPuzzle','type','toString','apply','createPuzzle','22DhPDQS','search','isStartRoom','roomType','48XlIisu','1292328MjDINU','120UuEPqZ','createRoom','items','62162EEwOtP','INSIDE','content','7PItOey','21197844RPlXqi','helmet','202535YhxMuO','book','puzzle','createItem','2713328KBmWUb','rewardItem','rifle','legarmor','description','4614797DBvBeL','191340SedEph','name','sword','key','forEach','bodyarmor'];a41c=function(){return o;};return a41c();}const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a['toString']()['search'](h(0x1eb))[h(0x1f1)]()['constructor'](a41a)[h(0x1f5)](h(0x1eb));});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(0x1fb)](a){const j=a41i,b=this[j(0x213)](a),c=new Room(b);if(a[j(0x1fc)]){const d=new Inventory();a['items'][j(0x211)](e=>{const k=j;d['addItem'](this[k(0x206)](e));}),c['inventory']=d;}return a[j(0x205)]&&c[j(0x1ef)](this[j(0x1f3)](a[j(0x205)])),c;}['createItem'](a){const l=a41i;switch(a[l(0x1f0)]){case l(0x210):return new Key(a[l(0x20e)],a[l(0x20b)]);case l(0x204):return new Book(a[l(0x20e)],a[l(0x20b)],a[l(0x1ff)]);case l(0x20f):return new Sword(a['name'],a[l(0x20b)]);case l(0x209):return new Rifle(a[l(0x20e)],a[l(0x20b)]);case l(0x202):return new Helmet(a[l(0x20e)],a['description']);case l(0x212):return new BodyArmor(a['name'],a[l(0x20b)]);case l(0x20a):return new LegArmor(a['name'],a[l(0x20b)]);case'boots':return new Boots(a['name'],a[l(0x20b)]);case l(0x1ec):return new Gloves(a[l(0x20e)],a[l(0x20b)]);case'gauntlets':return new Gauntlets(a[l(0x20e)],a['description']);default:return new BasicItem(a['name'],a[l(0x20b)]);}}['createPuzzle'](a){const m=a41i,b=this[m(0x206)](a[m(0x208)]);return new Puzzle({...a,'rewardItem':b});}[a41i(0x213)](a){const n=a41i,b=a[n(0x1f7)]&&RoomType[a[n(0x1f7)][n(0x1ed)]()]?RoomType[a['roomType'][n(0x1ed)]()]:RoomType[n(0x1fe)];return{'name':a['name'],'description':a['description'],'isStartRoom':a[n(0x1f6)],'roomType':b};}}
@@ -1 +1 @@
1
- const a42j=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=parseInt(h(0x1ea))/0x1+parseInt(h(0x200))/0x2*(parseInt(h(0x1dd))/0x3)+parseInt(h(0x1d9))/0x4+parseInt(h(0x1f6))/0x5*(parseInt(h(0x1d2))/0x6)+-parseInt(h(0x1db))/0x7*(-parseInt(h(0x1ee))/0x8)+parseInt(h(0x1d3))/0x9*(-parseInt(h(0x1fd))/0xa)+parseInt(h(0x1e7))/0xb*(-parseInt(h(0x1ed))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x21e86));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(0x1e8)](i(0x1e2))[i(0x1da)]()[i(0x1f8)](a42a)[i(0x1e8)](i(0x1e2));});a42a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1d2;let f=c[d];return f;},a42d(a,b);}import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';import{LockCommand}from'./commands/lock.js';function a42c(){const r=['218924vMosSA','-\x20quit:\x20Exit\x20the\x20game.\x0a','drop','59256YMkVja','1030328QwBFnS','Welcome,\x20','getHelpMessage','getDescription','unequip','initialize','handleInput','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','15PXYmts','currentRoom','constructor','trim','registerCommand','maka','scene','30DoiFCM','toLowerCase','slice','22rvSWrY','291156BfhEcz','240741lGObXU','name','say','getWelcomeMessage','determineStartRoom','instance','347008uiasWP','toString','7OYtqir','registerCommands','47016wsAhXA','-\x20clear:\x20Clear\x20the\x20screen.\x0a','hasOwnProperty','take','getAllRegisteredCommands','(((.+)+)+)+$','getRooms','use','currentLocation','player','1188cGcWag','search','quit'];a42c=function(){return r;};return a42c();}import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a42j(0x1d8)];[a42j(0x1fc)];['player'];[a42j(0x1f7)];['rooms'];constructor(a,b){const k=a42j;this[k(0x1e6)]=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this[k(0x1fc)][k(0x1f3)](),this['player'][k(0x1e5)]=this[k(0x1d7)](),this[k(0x1dc)]();}[a42j(0x1dc)](){const l=a42j;CommandFactory['registerCommand']('look',LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory[l(0x1fa)](l(0x1e0),TakeCommand),CommandFactory[l(0x1fa)](l(0x1e4),UseCommand),CommandFactory[l(0x1fa)]('equip',EquipCommand),CommandFactory[l(0x1fa)](l(0x1f2),UnequipCommand),CommandFactory['registerCommand']('solve',SolveCommand),CommandFactory[l(0x1fa)](l(0x1ec),DropCommand),CommandFactory[l(0x1fa)]('unlock',UnlockCommand),CommandFactory[l(0x1fa)]('lock',LockCommand),CommandFactory[l(0x1fa)](l(0x1e8),SearchCommand),CommandFactory[l(0x1fa)](l(0x1d5),SayCommand);}['determineStartRoom'](){const m=a42j;return this['scene'][m(0x1d7)]();}[a42j(0x1d6)](){const n=a42j;return n(0x1ef)+this[n(0x1e6)][n(0x1d4)];}static['getInstance'](a,b){const o=a42j;return!Game[o(0x1d8)]&&(Game[o(0x1d8)]=new Game(a,b)),Game[o(0x1d8)];}[a42j(0x1f4)](a){const p=a42j,b=a[p(0x1f9)]()['split']('\x20'),c=b[0x0][p(0x1fe)](),d=b[p(0x1ff)](0x1);if(c===p(0x1e9))return null;if(c===p(0x1fb))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c==='help')return this[p(0x1f0)]();if(c==='clear')return'';const e={'actor':this[p(0x1e6)],'rooms':this['scene'][p(0x1e3)](),'scene':this[p(0x1fc)]},f=CommandFactory['createCommand'](c,e);if(f){const g=f['execute'](d);return g;}return p(0x1f5)+c+'\x22.';}[a42j(0x1f0)](){const q=a42j,a=CommandFactory[q(0x1e1)]();let b='Available\x20Commands:\x0a';for(const c in a){if(a[q(0x1df)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[q(0x1f1)]()+'\x0a';}}return b+=q(0x1de),b+=q(0x1eb),b;}}
1
+ const a42k=a42d;function a42c(){const s=['name','scene','initialize','1dRVKUl','trim','Available\x20Commands:\x0a','currentLocation','slice','solve','look','take','unlock','determineStartRoom','407730vBfWrM','2318578knEArH','createCommand','player','-\x20quit:\x20Exit\x20the\x20game.\x0a','split','rooms','8yKSiql','equip','1031490TtgckC','getWelcomeMessage','3854992pwMzAK','Welcome,\x20','search','instance','unequip','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','(((.+)+)+)+$','toString','clear','currentRoom','registerCommands','6088488vduBem','constructor','registerCommand','use','getInstance','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','getHelpMessage','lock','10985373DWVxjb','getAllRegisteredCommands','apply','execute','12728849bQPToa'];a42c=function(){return s;};return a42c();}(function(a,b){const h=a42d,c=a();while(!![]){try{const d=parseInt(h(0x1d7))/0x1*(parseInt(h(0x1e2))/0x2)+parseInt(h(0x1e1))/0x3+-parseInt(h(0x1bc))/0x4+parseInt(h(0x1ba))/0x5+parseInt(h(0x1c7))/0x6+-parseInt(h(0x1d3))/0x7+parseInt(h(0x1b8))/0x8*(parseInt(h(0x1cf))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xe913f));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0x1c3)]()['search'](j(0x1c2))[j(0x1c3)]()[j(0x1c8)](a42a)[j(0x1be)](j(0x1c2));});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 a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1b4;let f=c[d];return f;},a42d(a,b);}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';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a42k(0x1bf)];['scene'];[a42k(0x1b4)];[a42k(0x1c5)];[a42k(0x1b7)];constructor(a,b){const l=a42k;this[l(0x1b4)]=a,this[l(0x1d5)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x1d5)][l(0x1d6)](),this[l(0x1b4)][l(0x1da)]=this[l(0x1e0)](),this[l(0x1c6)]();}[a42k(0x1c6)](){const m=a42k;CommandFactory['registerCommand'](m(0x1dd),LookCommand),CommandFactory[m(0x1c9)]('go',GoCommand),CommandFactory[m(0x1c9)](m(0x1de),TakeCommand),CommandFactory[m(0x1c9)](m(0x1ca),UseCommand),CommandFactory[m(0x1c9)](m(0x1b9),EquipCommand),CommandFactory['registerCommand'](m(0x1c0),UnequipCommand),CommandFactory['registerCommand'](m(0x1dc),SolveCommand),CommandFactory[m(0x1c9)]('drop',DropCommand),CommandFactory[m(0x1c9)](m(0x1df),UnlockCommand),CommandFactory[m(0x1c9)](m(0x1ce),LockCommand),CommandFactory[m(0x1c9)](m(0x1be),SearchCommand),CommandFactory['registerCommand']('say',SayCommand);}['determineStartRoom'](){const n=a42k;return this['scene'][n(0x1e0)]();}[a42k(0x1bb)](){const o=a42k;return o(0x1bd)+this[o(0x1b4)][o(0x1d4)];}static[a42k(0x1cb)](a,b){const p=a42k;return!Game[p(0x1bf)]&&(Game['instance']=new Game(a,b)),Game[p(0x1bf)];}['handleInput'](a){const q=a42k,b=a[q(0x1d8)]()[q(0x1b6)]('\x20'),c=b[0x0]['toLowerCase'](),d=b[q(0x1db)](0x1);if(c==='quit')return null;if(c==='maka')return q(0x1cc);if(c==='help')return this[q(0x1cd)]();if(c===q(0x1c4))return'';const e={'actor':this[q(0x1b4)],'rooms':this[q(0x1d5)]['getRooms'](),'scene':this['scene']},f=CommandFactory[q(0x1e3)](c,e);if(f){const g=f[q(0x1d2)](d);return g;}return q(0x1c1)+c+'\x22.';}[a42k(0x1cd)](){const r=a42k,a=CommandFactory[r(0x1d0)]();let b=r(0x1d9);for(const c in a){if(a['hasOwnProperty'](c)){const d=a[c];b+='-\x20'+c+':\x20'+d['getDescription']()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+=r(0x1b5),b;}}
@@ -1 +1 @@
1
- function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x6f;var f=c[d];return f;},a43d(a,b);}(function(a,b){var f=a43d,c=a();while(!![]){try{var d=-parseInt(f(0x7e))/0x1+-parseInt(f(0x72))/0x2*(parseInt(f(0x7d))/0x3)+parseInt(f(0x77))/0x4+parseInt(f(0x71))/0x5*(-parseInt(f(0x76))/0x6)+parseInt(f(0x6f))/0x7*(-parseInt(f(0x7c))/0x8)+parseInt(f(0x75))/0x9+parseInt(f(0x7b))/0xa*(parseInt(f(0x78))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xa1944));var a43b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a43d;if(c){var e=c[g(0x70)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){var h=a43d;return a43a[h(0x79)]()[h(0x7a)]('(((.+)+)+)+$')[h(0x79)]()[h(0x73)](a43a)[h(0x7a)](h(0x74));});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';function a43c(){var i=['2370lGfgZH','839367odvoOT','6405VXjhbs','apply','5aPaIva','2902FElVum','constructor','(((.+)+)+)+$','1092069dKmxJZ','4870554ehPPol','2095644MVNzxu','11vrwejl','toString','search','31150270OlQNbS','2632rcQlDU'];a43c=function(){return i;};return a43c();}export*from'./scene.js';
1
+ (function(a,b){var f=a43d,c=a();while(!![]){try{var d=parseInt(f(0x182))/0x1+-parseInt(f(0x17e))/0x2*(parseInt(f(0x17b))/0x3)+parseInt(f(0x178))/0x4+parseInt(f(0x177))/0x5*(parseInt(f(0x17d))/0x6)+parseInt(f(0x180))/0x7+parseInt(f(0x181))/0x8*(-parseInt(f(0x17f))/0x9)+parseInt(f(0x17c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x467b2));function a43c(){var h=['31134jRcMxT','30448wsLcyX','414IjKhLi','1745436pbbCQi','65368QaPLDA','308558EfzvsA','search','45suFdkZ','520452LGHlUm','(((.+)+)+)+$','toString','72QyInJG','2952120TLlGYP'];a43c=function(){return h;};return a43c();}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(0x17a)]()[g(0x183)](g(0x179))[g(0x17a)]()['constructor'](a43a)[g(0x183)](g(0x179));});a43a();function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x177;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';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
@@ -1 +1 @@
1
- function a44c(){var o=['8045aPxQVZ','roomB','Failed\x20to\x20unlock\x20door:\x20','checkIfLockable','toString','.\x20Is\x20Locked:\x20','isLockable','3347318nZAjue','\x20and\x20','logger','name','Door\x20created\x20between\x20','attemptUnlock','6416774rLmmPT','search','1520GcrLiB','(((.+)+)+)+$','2874DJBVNT','checkIfLocked','getOtherSide','roomA','write','72342tQbNep','684396pIISYO','9mogvuV','constructor','isLocked','apply','.\x20Used:\x20','To\x20','getInstance','1391086eUTbuD','3984888xgrBZe','unlockItemOrSolution'];a44c=function(){return o;};return a44c();}var a44i=a44d;function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0xfa;var f=c[d];return f;},a44d(a,b);}(function(a,b){var f=a44d,c=a();while(!![]){try{var d=parseInt(f(0xfd))/0x1+parseInt(f(0x107))/0x2+-parseInt(f(0x118))/0x3*(parseInt(f(0x117))/0x4)+parseInt(f(0x100))/0x5*(-parseInt(f(0x111))/0x6)+parseInt(f(0x10d))/0x7+-parseInt(f(0xfe))/0x8+-parseInt(f(0x116))/0x9*(parseInt(f(0x10f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xeea7c));var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0x11b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a[h(0x104)]()[h(0x10e)](h(0x110))['toString']()[h(0x119)](a44a)[h(0x10e)](h(0x110));});a44a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];['roomB'];[a44i(0x11a)];['unlockItemOrSolution'];[a44i(0x10a)];[a44i(0x109)];[a44i(0x106)];constructor(a){var j=a44i;super(),this[j(0x114)]=a[j(0x114)],this[j(0x101)]=a[j(0x101)],this[j(0x11a)]=a[j(0x11a)]||![],this['unlockItemOrSolution']=a[j(0xff)],this[j(0x10a)]=a[j(0x10a)]?capitalCase(a['name']):j(0xfb)+a[j(0x101)]['name'],this['logger']=Logger[j(0xfc)](),this[j(0x106)]=!!a['unlockItemOrSolution'],this[j(0x109)][j(0x115)](j(0x10b)+this[j(0x114)][j(0x10a)]+j(0x108)+this['roomB'][j(0x10a)]+j(0x105)+this['isLocked']);}[a44i(0x113)](a){var k=a44i;return this[k(0x114)]===a?this[k(0x101)]:this['roomA'];}[a44i(0x10c)](a){var l=a44i;if(this[l(0x11a)]&&this[l(0xff)]&&this[l(0xff)]===a)return this[l(0x11a)]=![],this[l(0x109)][l(0x115)]('Door\x20unlocked:\x20'+this[l(0x10a)]+l(0xfa)+a),!![];return this[l(0x109)][l(0x115)](l(0x102)+this[l(0x10a)]+l(0xfa)+a),![];}[a44i(0x112)](){var m=a44i;return this[m(0x11a)];}[a44i(0x103)](){var n=a44i;return this[n(0x106)];}}
1
+ var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=-parseInt(f(0xe2))/0x1*(parseInt(f(0xe1))/0x2)+parseInt(f(0xee))/0x3*(-parseInt(f(0xe6))/0x4)+-parseInt(f(0xf4))/0x5*(-parseInt(f(0xef))/0x6)+parseInt(f(0xe7))/0x7+-parseInt(f(0xf6))/0x8*(-parseInt(f(0xf3))/0x9)+-parseInt(f(0xe5))/0xa*(parseInt(f(0xeb))/0xb)+parseInt(f(0xe4))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x76bae));var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0xfd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a[h(0xf1)]()['search']('(((.+)+)+)+$')[h(0xf1)]()['constructor'](a44a)[h(0xfc)]('(((.+)+)+)+$');});function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0xe1;var f=c[d];return f;},a44d(a,b);}a44a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a44c(){var o=['2714RnzEpY','376SjAEeM','isLockable','1420368PlkWTZ','22910gMWfCa','4SogwyI','5013442hWiONn','roomA','getOtherSide','logger','1474vstZlD','isLocked','Door\x20unlocked:\x20','2624637snSaaF','6wHkuLp','attemptUnlock','toString','roomB','108HqZBtL','4846065qCHFGf','.\x20Used:\x20','249760kGFskL','To\x20','checkIfLocked','.\x20Is\x20Locked:\x20','checkIfLockable','Failed\x20to\x20unlock\x20door:\x20','search','apply','unlockItemOrSolution','name','write'];a44c=function(){return o;};return a44c();}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a44i(0xe8)];[a44i(0xf2)];[a44i(0xec)];['unlockItemOrSolution'];[a44i(0xff)];[a44i(0xea)];[a44i(0xe3)];constructor(a){var j=a44i;super(),this[j(0xe8)]=a[j(0xe8)],this[j(0xf2)]=a['roomB'],this['isLocked']=a[j(0xec)]||![],this[j(0xfe)]=a[j(0xfe)],this[j(0xff)]=a[j(0xff)]?capitalCase(a[j(0xff)]):j(0xf7)+a[j(0xf2)][j(0xff)],this[j(0xea)]=Logger['getInstance'](),this['isLockable']=!!a['unlockItemOrSolution'],this[j(0xea)][j(0x100)]('Door\x20created\x20between\x20'+this[j(0xe8)][j(0xff)]+'\x20and\x20'+this['roomB'][j(0xff)]+j(0xf9)+this[j(0xec)]);}[a44i(0xe9)](a){var k=a44i;return this[k(0xe8)]===a?this['roomB']:this[k(0xe8)];}[a44i(0xf0)](a){var l=a44i;if(this[l(0xec)]&&this[l(0xfe)]&&this[l(0xfe)]===a)return this[l(0xec)]=![],this['logger'][l(0x100)](l(0xed)+this[l(0xff)]+l(0xf5)+a),!![];return this[l(0xea)][l(0x100)](l(0xfb)+this['name']+l(0xf5)+a),![];}[a44i(0xf8)](){var m=a44i;return this[m(0xec)];}[a44i(0xfa)](){var n=a44i;return this[n(0xe3)];}}
@@ -1 +1 @@
1
- const a45j=a45d;function a45c(){const q=['(((.+)+)+)+$','getInstance','has','getItem','constructor','write','items','name','211112BDDctE','Listed\x20items\x20in\x20inventory:\x20','7386rvxSWC','logger','keys','6531715GUMYgy','\x20from\x20inventory.','join','4tyumma','toString','.\x20Exists:\x20','Checked\x20for\x20item:\x20','6lyCMES','Retrieved\x20details\x20for\x20item:\x20','set','.\x20Item\x20not\x20found.','Removed\x20item:\x20','hasItem','10258650qjSMrZ','values','toLowerCase','1155144exDcGt','apply','map','getWeight','\x20in\x20','540nFJOEz','Added\x20item:\x20','delete','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','listItems','removeItem','get','search','\x20to\x20inventory.','1223172yfMxEp','Failed\x20to\x20remove\x20item:\x20','10073ajdSmy','41194494VHtzDk','addItem'];a45c=function(){return q;};return a45c();}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0x140))/0x1+parseInt(f(0x159))/0x2*(-parseInt(f(0x132))/0x3)+-parseInt(f(0x155))/0x4*(parseInt(f(0x152))/0x5)+parseInt(f(0x14f))/0x6*(-parseInt(f(0x142))/0x7)+parseInt(f(0x14d))/0x8*(parseInt(f(0x137))/0x9)+parseInt(f(0x12f))/0xa+parseInt(f(0x143))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xdb42b));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x156)]()[h(0x13e)](h(0x145))['toString']()[h(0x149)](a45a)['search'](h(0x145));});function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x12b;let f=c[d];return f;},a45d(a,b);}a45a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{['items'];['logger'];constructor(){const i=a45d;super(),this[i(0x14b)]=new Map(),this[i(0x150)]=Logger[i(0x146)]();}[a45j(0x144)](a){const k=a45j;this[k(0x14b)][k(0x12b)](a[k(0x14c)]['toLowerCase'](),a),this[k(0x150)]['write'](k(0x138)+a[k(0x14c)]+k(0x13f));}[a45j(0x13c)](a){const l=a45j,b=this[l(0x148)](a);if(b)return this[l(0x14b)][l(0x139)](a[l(0x131)]()),this['logger']['write'](l(0x12d)+a+l(0x153)),b;return this[l(0x150)][l(0x14a)](l(0x141)+a+l(0x12c)),null;}[a45j(0x12e)](a){const m=a45j,b=this[m(0x14b)][m(0x147)](a['toLowerCase']()),c=[...this['items'][m(0x151)]()];return this[m(0x150)]['write'](m(0x158)+a+m(0x136)+c['join'](',\x20')+m(0x157)+b+'.'),b;}['getItem'](a){const n=a45j,b=this[n(0x14b)][n(0x13d)](a[n(0x131)]())||null;return b?this[n(0x150)][n(0x14a)](n(0x15a)+a+'.'):this[n(0x150)][n(0x14a)](n(0x13a)+a+n(0x12c)),b;}[a45j(0x13b)](){const o=a45j,a=[...this[o(0x14b)]['keys']()],b=a[o(0x134)](c=>capitalCase(c));return this[o(0x150)][o(0x14a)](o(0x14e)+b[o(0x154)](',\x20')+'.'),a;}[a45j(0x135)](){let a=0x0;for(const b of this['items']['values']()){a+=b['weight'];}return a;}['getAllItems'](){const p=a45j;return[...this[p(0x14b)][p(0x130)]()];}}
1
+ const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0xe4))/0x1+-parseInt(f(0xf5))/0x2+-parseInt(f(0xf2))/0x3+parseInt(f(0xe8))/0x4*(-parseInt(f(0xfa))/0x5)+parseInt(f(0xfd))/0x6+parseInt(f(0xef))/0x7+parseInt(f(0xf8))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xd4bda));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0xfc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a['toString']()[h(0xe7)](h(0xdd))[h(0xec)]()[h(0xe2)](a45a)['search']('(((.+)+)+)+$');});a45a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';function a45c(){const r=['3435034IyvAkV','Removed\x20item:\x20','removeItem','34395968bcwZCr','weight','21290QjkeVf','has','apply','6118416OhPgNJ','items','Failed\x20to\x20remove\x20item:\x20','name','keys','getItem','logger','Listed\x20items\x20in\x20inventory:\x20','(((.+)+)+)+$','values','addItem','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','toLowerCase','constructor','Added\x20item:\x20','948387pfpGmp','getWeight','write','search','948boxCqL','Checked\x20for\x20item:\x20','listItems','join','toString','map','.\x20Item\x20not\x20found.','6400296KvTWcZ','get','\x20to\x20inventory.','5061372zDSKGb','Retrieved\x20details\x20for\x20item:\x20','\x20in\x20'];a45c=function(){return r;};return a45c();}function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xdc;let f=c[d];return f;},a45d(a,b);}export class Inventory extends AbstractInventory{[a45i(0xfe)];[a45i(0x103)];constructor(){const j=a45i;super(),this[j(0xfe)]=new Map(),this[j(0x103)]=Logger['getInstance']();}[a45i(0xdf)](a){const k=a45i;this[k(0xfe)]['set'](a['name'][k(0xe1)](),a),this['logger'][k(0xe6)](k(0xe3)+a[k(0x100)]+k(0xf1));}[a45i(0xf7)](a){const l=a45i,b=this[l(0x102)](a);if(b)return this[l(0xfe)]['delete'](a[l(0xe1)]()),this[l(0x103)][l(0xe6)](l(0xf6)+a+'\x20from\x20inventory.'),b;return this[l(0x103)][l(0xe6)](l(0xff)+a+l(0xee)),null;}['hasItem'](a){const m=a45i,b=this[m(0xfe)][m(0xfb)](a[m(0xe1)]()),c=[...this['items'][m(0x101)]()];return this[m(0x103)]['write'](m(0xe9)+a+m(0xf4)+c[m(0xeb)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}['getItem'](a){const n=a45i,b=this[n(0xfe)][n(0xf0)](a[n(0xe1)]())||null;return b?this['logger']['write'](n(0xf3)+a+'.'):this[n(0x103)][n(0xe6)](n(0xe0)+a+n(0xee)),b;}[a45i(0xea)](){const o=a45i,a=[...this[o(0xfe)]['keys']()],b=a[o(0xed)](c=>capitalCase(c));return this[o(0x103)][o(0xe6)](o(0xdc)+b[o(0xeb)](',\x20')+'.'),a;}[a45i(0xe5)](){const p=a45i;let a=0x0;for(const b of this[p(0xfe)][p(0xde)]()){a+=b[p(0xf9)];}return a;}['getAllItems'](){const q=a45i;return[...this[q(0xfe)]['values']()];}}
@@ -1 +1 @@
1
- var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0xef))/0x1*(-parseInt(f(0xf4))/0x2)+-parseInt(f(0xfc))/0x3*(-parseInt(f(0x103))/0x4)+parseInt(f(0xed))/0x5+parseInt(f(0xec))/0x6*(parseInt(f(0xea))/0x7)+parseInt(f(0xf6))/0x8+-parseInt(f(0x101))/0x9+-parseInt(f(0xfd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xe4346));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0xfb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a['toString']()[h(0xff)](h(0xfa))[h(0xf3)]()[h(0xeb)](a46a)['search']('(((.+)+)+)+$');});a46a();function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xea;var f=c[d];return f;},a46d(a,b);}import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{['uuid'];[a46i(0xf1)];['description'];[a46i(0xfe)];[a46i(0xf8)];[a46i(0x100)];[a46i(0xf7)];[a46i(0xf5)];[a46i(0x102)];[a46i(0xf9)];constructor(a){var j=a46i;super(),this[j(0xf1)]=a[j(0xf1)],this[j(0xee)]=a['description'],this['size']=a[j(0xfe)],this[j(0xf8)]=a[j(0xf8)],this[j(0x100)]=a['shape'],this['color']=a[j(0xf7)],this['texture']=a[j(0xf5)],this[j(0x102)]=a[j(0x102)],this[j(0xf9)]=a[j(0xf9)],this[j(0xf2)]=a46e();}['use'](){var k=a46i;return'You\x20use\x20the\x20'+this['name']+k(0xf0);}}function a46c(){var l=['shape','10906731pdDzqX','rating','2780524hmGGBF','3383331RopFzS','constructor','18JNvhIB','5452060VjMrrv','description','1jGIfFv','.\x20Nothing\x20special\x20happens.','name','uuid','toString','3369172gYhQPL','texture','11742096MCethp','color','category','weight','(((.+)+)+)+$','apply','6SJyBzH','15672640cuGcQA','size','search'];a46c=function(){return l;};return a46c();}
1
+ function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x113;var f=c[d];return f;},a46d(a,b);}var a46i=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0x11c))/0x1*(-parseInt(f(0x11f))/0x2)+-parseInt(f(0x12c))/0x3*(-parseInt(f(0x120))/0x4)+parseInt(f(0x118))/0x5*(-parseInt(f(0x128))/0x6)+parseInt(f(0x126))/0x7*(-parseInt(f(0x11d))/0x8)+parseInt(f(0x119))/0x9*(-parseInt(f(0x12d))/0xa)+-parseInt(f(0x115))/0xb*(-parseInt(f(0x11a))/0xc)+parseInt(f(0x11e))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xd1d7b));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x130)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0x12a)]()['search'](h(0x124))[h(0x12a)]()[h(0x11b)](a46a)['search'](h(0x124));});function a46c(){var l=['category','3497755GzUeTr','228708dsKRms','60YGdxOJ','constructor','1fqxaps','40UUJlID','17395924eiIeLn','2017454GGuIQy','129164NeWpzk','name','use','color','(((.+)+)+)+$','.\x20Nothing\x20special\x20happens.','202307truiBr','rating','12rrdmNX','description','toString','uuid','84lkFzpI','160NopbxN','texture','weight','apply','size','You\x20use\x20the\x20','3467519bSaYSe','shape'];a46c=function(){return l;};return a46c();}a46a();import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a46i(0x12b)];[a46i(0x121)];[a46i(0x129)];[a46i(0x113)];[a46i(0x117)];[a46i(0x116)];[a46i(0x123)];[a46i(0x12e)];[a46i(0x127)];[a46i(0x12f)];constructor(a){var j=a46i;super(),this[j(0x121)]=a[j(0x121)],this[j(0x129)]=a[j(0x129)],this[j(0x113)]=a['size'],this[j(0x117)]=a[j(0x117)],this[j(0x116)]=a[j(0x116)],this[j(0x123)]=a[j(0x123)],this[j(0x12e)]=a[j(0x12e)],this[j(0x127)]=a[j(0x127)],this[j(0x12f)]=a['weight'],this[j(0x12b)]=a46e();}[a46i(0x122)](){var k=a46i;return k(0x114)+this[k(0x121)]+k(0x125);}}
@@ -1 +1 @@
1
- const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0x77))/0x1+parseInt(f(0x7f))/0x2*(parseInt(f(0x6d))/0x3)+parseInt(f(0x70))/0x4*(parseInt(f(0x78))/0x5)+parseInt(f(0x67))/0x6+-parseInt(f(0x6e))/0x7+-parseInt(f(0x6b))/0x8+-parseInt(f(0x69))/0x9*(parseInt(f(0x7e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x56e8f));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x66)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x71)]()['search'](h(0x7c))[h(0x71)]()[h(0x74)](a47a)[h(0x7d)](h(0x7c));});function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x66;let f=c[d];return f;},a47d(a,b);}a47a();import{Player}from'./player.js';function a47c(){const n=['autonomousMove','1676163dsarzD','1714041hmCvbF','scene','76Yacigy','toString','name','random','constructor','_name','moveTo','301193guNZvY','145640kBinuV','rooms','floor','speak','(((.+)+)+)+$','search','200210JMfrIA','2xOWiUf','apply','2013066dLIeZG','length','117rvbcjM','_dialogue','2282816qJrMmN'];a47c=function(){return n;};return a47c();}import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a47i(0x75)];[a47i(0x6a)];[a47i(0x79)];[a47i(0x6f)];constructor(a,b,c,d){const j=a47i;super(d),this[j(0x75)]=a,this[j(0x6a)]=b,this[j(0x79)]=c;}get[a47i(0x72)](){const k=a47i;return this[k(0x75)];}[a47i(0x7b)](){const l=a47i;return this['_dialogue'][Math['floor'](Math[l(0x73)]()*this[l(0x6a)][l(0x68)])];}[a47i(0x6c)](a){const m=a47i,b=a[Math[m(0x7a)](Math[m(0x73)]()*a[m(0x68)])];this['moveTo'](b['name']);}[a47i(0x76)](a){const b={'actor':this,'rooms':this['rooms'],'scene':this['scene']},c=new GoCommand(b);c['execute']([a]);}}
1
+ const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x9d))/0x1+parseInt(f(0xa5))/0x2+parseInt(f(0x9f))/0x3+-parseInt(f(0xa6))/0x4*(parseInt(f(0xa3))/0x5)+parseInt(f(0x9e))/0x6*(-parseInt(f(0xa4))/0x7)+parseInt(f(0xaa))/0x8+-parseInt(f(0xa8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x72a69));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a['toString']()[h(0xaf)](h(0xa0))[h(0xad)]()[h(0xab)](a47a)['search']('(((.+)+)+)+$');});a47a();import{Player}from'./player.js';function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x99;let f=c[d];return f;},a47d(a,b);}function a47c(){const o=['rooms','name','speak','moveTo','_dialogue','164489AZXkRw','690978KetQut','2654727yfIpDW','(((.+)+)+)+$','length','apply','1658165nkymQl','7ZODinG','1741878rMdLdS','4UYBjaP','scene','15721587LukzOB','_name','5943288YqWUZd','constructor','random','toString','execute','search'];a47c=function(){return o;};return a47c();}import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a47i(0xa9)];[a47i(0x9c)];['rooms'];['scene'];constructor(a,b,c,d){const j=a47i;super(d),this['_name']=a,this[j(0x9c)]=b,this[j(0xb0)]=c;}get[a47i(0x99)](){const k=a47i;return this[k(0xa9)];}[a47i(0x9a)](){const l=a47i;return this[l(0x9c)][Math['floor'](Math[l(0xac)]()*this['_dialogue'][l(0xa1)])];}['autonomousMove'](a){const m=a47i,b=a[Math['floor'](Math[m(0xac)]()*a[m(0xa1)])];this[m(0x9b)](b[m(0x99)]);}['moveTo'](a){const n=a47i,b={'actor':this,'rooms':this['rooms'],'scene':this[n(0xa7)]},c=new GoCommand(b);c[n(0xae)]([a]);}}
@@ -1 +1 @@
1
- const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x21d))/0x1+parseInt(f(0x207))/0x2*(-parseInt(f(0x1ed))/0x3)+parseInt(f(0x1ff))/0x4*(-parseInt(f(0x215))/0x5)+-parseInt(f(0x1f0))/0x6*(-parseInt(f(0x1c4))/0x7)+parseInt(f(0x1d3))/0x8*(parseInt(f(0x1e4))/0x9)+-parseInt(f(0x1e6))/0xa+parseInt(f(0x210))/0xb*(parseInt(f(0x1fd))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x87e08));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x213)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x1ee)]()[h(0x20e)]('(((.+)+)+)+$')[h(0x1ee)]()['constructor'](a48a)['search']('(((.+)+)+)+$');});a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';function a48c(){const A=['helmet','hasItem','\x20is\x20no\x20longer\x20listeng\x20in\x20','logger','hear','currentLocation','You\x20can\x27t\x20equip\x20','Invalid\x20category\x20or\x20slot:\x20','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','head','86556lfcxRR','currentWeight','1612nKrvNf','_equipment','feet','log','Shield','weight','enterRoom','Helmet','803078CPbwTh','getInstance','canEquip','You\x20unequipped\x20','torso','write','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','search','\x20from\x20player\x27s\x20inventory.','4213LbKjmi','error','unequip','apply','removeInventory','12735djdmlF','leaveRoom','category','speak','boots','arm\x20armor','\x20says:\x20\x22','inventoryItems','1048238WFCUdU','leg\x20armor','unequipBySlot','1225vfNzFJ','maxCarryingWeight','Hat','arms','off','LegArmor','toLowerCase','_maxCarryingWeight','\x20in\x20your\x20inventory.','Added\x20','name','Weapon','Boots','armarmor','equip','473048UFaISD','Max\x20carrying\x20weight\x20must\x20be\x20positive.','legarmor','getWeight','_currentLocation','hat','leftHand','equipment','_inventory','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','You\x20don\x27t\x20have\x20','legs','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','inventory','ArmArmor','determineEquipmentSlot','shield','45jJgsUj','addItem','4326890xtDkwQ','body\x20armor','bind','Failed\x20to\x20remove\x20','initialEquipment','rightHand','gloves','3HeGHVV','toString','values','13962kGDAdP','A\x20featureless\x20room','_playerName'];a48c=function(){return A;};return a48c();}function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a48d(a,b);}import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a48i(0x1f2)];[a48i(0x1d7)];['_inventory'];['_equipment'];[a48i(0x1cb)]=0x32;['logger'];constructor(a){const j=a48i;super(),this[j(0x1f2)]=a['playerName'],this[j(0x1d7)]=a['startLocation']||new Room({'name':'Nexus','description':j(0x1f1)}),this['_inventory']=new Inventory(),this['logger']=Logger[j(0x208)]();if(a?.['inventoryItems'])for(const b of a[j(0x21c)]){this[j(0x1db)][j(0x1e5)](b);}this['_equipment']=a?.[j(0x1ea)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48i(0x1ce)](){return this['_playerName'];}get[a48i(0x1f8)](){return this['_currentLocation'];}set[a48i(0x1f8)](a){const k=a48i;this[k(0x1d7)]!==a&&(this[k(0x216)](),this[k(0x205)](a)),this['_currentLocation']=a;}get[a48i(0x1e0)](){return this['_inventory'];}get[a48i(0x1da)](){const l=a48i;return this[l(0x200)];}set[a48i(0x1da)](a){const m=a48i;this[m(0x200)]=a;}get['maxCarryingWeight'](){const n=a48i;return this[n(0x1cb)];}set[a48i(0x1c5)](a){const o=a48i;a>0x0?this['_maxCarryingWeight']=a:console[o(0x211)](o(0x1d4));}get['currentWeight'](){const p=a48i;let a=this[p(0x1db)][p(0x1d6)]();for(const b in this['_equipment']){const c=this['_equipment'][b];c&&(a+=c[p(0x204)]);}return a;}['addInventory'](a){const q=a48i;if(this[q(0x1fe)]+a[q(0x204)]>this['maxCarryingWeight']){this[q(0x1f6)]['write'](q(0x1dc));throw new Error(q(0x20d));}this[q(0x1db)][q(0x1e5)](a),this['logger']['write'](q(0x1cd)+a[q(0x1ce)]+'\x20to\x20player\x27s\x20inventory.');}['removeInventory'](a){const r=a48i;if(this['_inventory']['removeItem'](a[r(0x1ce)]))return this['logger'][r(0x20c)]('Removed\x20'+a[r(0x1ce)]+r(0x20f)),!![];return this[r(0x1f6)][r(0x20c)](r(0x1e9)+a[r(0x1ce)]+'\x20from\x20player\x27s\x20inventory.'),![];}[a48i(0x1d2)](a){const s=a48i;if(!this[s(0x1db)][s(0x1f4)](a[s(0x1ce)]))return s(0x1dd)+a[s(0x1ce)]+s(0x1cc);if(!this[s(0x209)](a))return s(0x1f9)+a['name']+'.';const b=this['determineEquipmentSlot'](a[s(0x217)]);if(!b)return a[s(0x1ce)]+s(0x1fb);if(this[s(0x1da)][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this[s(0x1da)][b]=a,this[s(0x214)](a),'You\x20equipped\x20'+a[s(0x1ce)]+'.';}[a48i(0x212)](a){const t=a48i;let b=a;if(!this[t(0x1da)][camelCase(b)]){b=this[t(0x1e2)](a);if(!b)return t(0x1fa)+a+'.';}return this[t(0x1c3)](b);}[a48i(0x1e2)](a){const u=a48i;switch(a[u(0x1ca)]()){case Category[u(0x1cf)]['toLowerCase']():return u(0x1eb);case Category[u(0x203)][u(0x1ca)]():return u(0x1d9);case Category['Gloves'][u(0x1ca)]():return'gloves';case Category[u(0x206)][u(0x1ca)]():case Category[u(0x1c6)][u(0x1ca)]():return'head';case Category[u(0x1d0)][u(0x1ca)]():return u(0x201);case Category[u(0x1c9)]['toLowerCase']():return u(0x1de);case Category[u(0x1e1)][u(0x1ca)]():return u(0x1c7);case Category['BodyArmor'][u(0x1ca)]():return'torso';case'weapon':return u(0x1eb);case u(0x1e3):return u(0x1d9);case u(0x1ec):return u(0x1ec);case u(0x1f3):case u(0x1d8):return u(0x1fc);case u(0x219):return u(0x201);case u(0x21e):case u(0x1d5):return u(0x1de);case u(0x21a):case u(0x1d1):return'arms';case u(0x1e7):case'bodyarmor':case u(0x20b):return u(0x20b);default:return null;}}['canEquip'](a){const v=a48i;return Object[v(0x1ef)](Category)['includes'](a[v(0x217)]);}[a48i(0x1c3)](a){const w=a48i,b=this[w(0x1da)][a];if(!b)return w(0x1df)+a+'\x20slot.';return this['addInventory'](b),this[w(0x1da)][a]=null,w(0x20a)+b['name']+'.';}[a48i(0x1f7)](a,b){const x=a48i;a!==this&&this['logger'][x(0x202)](a[x(0x1ce)]+x(0x21b)+b+'\x22');}[a48i(0x205)](a){const y=a48i;this[y(0x1d7)]=a,a['on'](y(0x218),this[y(0x1f7)][y(0x1e8)](this)),this[y(0x1f6)][y(0x20c)](this[y(0x1ce)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[y(0x1ce)]);}[a48i(0x216)](){const z=a48i;this['_currentLocation']&&(this['_currentLocation'][z(0x1c8)](z(0x218),this[z(0x1f7)][z(0x1e8)](this)),this[z(0x1f6)][z(0x20c)](this[z(0x1ce)]+z(0x1f5)+this[z(0x1d7)][z(0x1ce)]));}}
1
+ const a48h=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0x223))/0x1+parseInt(f(0x23b))/0x2+-parseInt(f(0x1ea))/0x3+-parseInt(f(0x1ed))/0x4*(parseInt(f(0x213))/0x5)+-parseInt(f(0x1e6))/0x6*(-parseInt(f(0x22c))/0x7)+-parseInt(f(0x219))/0x8+-parseInt(f(0x222))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xbc923));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(0x232)]()[g(0x23c)](g(0x229))['toString']()[g(0x228)](a48a)[g(0x23c)]('(((.+)+)+)+$');});function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x1e6;let f=c[d];return f;},a48d(a,b);}function a48c(){const C=['Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','enterRoom','85hqmVLd','Failed\x20to\x20remove\x20','Max\x20carrying\x20weight\x20must\x20be\x20positive.','inventory','category','equip','9973984oNHXOY','BodyArmor','bodyarmor','startLocation','hear','\x20from\x20player\x27s\x20inventory.','determineEquipmentSlot','removeInventory','currentLocation','7999245IstnjY','1271370rFROlS','getInstance','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','rightHand','write','constructor','(((.+)+)+)+$','addItem','name','49ASCYwC','Invalid\x20category\x20or\x20slot:\x20','gloves','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','LegArmor','leftHand','toString','maxCarryingWeight','includes','body\x20armor','ArmArmor','unequipBySlot','.\x20You\x20must\x20unequip\x20it\x20first.','error','legs','1476276HexMcc','search','\x20is\x20no\x20longer\x20listeng\x20in\x20','\x20to\x20player\x27s\x20inventory.','You\x20can\x27t\x20equip\x20','_inventory','speak','940074OkYZHy','_equipment','unequip','canEquip','8616JaMCiA','removeItem','log','45988rkYPzb','inventoryItems','Helmet','torso','hat','currentWeight','Removed\x20','boots','weight','Hat','arms','playerName','toLowerCase','addInventory','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','Boots','A\x20featureless\x20room','_currentLocation','equipment','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','_maxCarryingWeight','getWeight','You\x20don\x27t\x20have\x20','_playerName','You\x20equipped\x20','weapon','arm\x20armor','\x20says:\x20\x22','Shield','leaveRoom','Weapon','values','logger','bind','feet','head'];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';export class Player extends AbstractPlayer{[a48h(0x204)];[a48h(0x1fe)];[a48h(0x240)];['_equipment'];['_maxCarryingWeight']=0x32;[a48h(0x20d)];constructor(a){const i=a48h;super(),this[i(0x204)]=a[i(0x1f8)],this[i(0x1fe)]=a[i(0x21c)]||new Room({'name':'Nexus','description':i(0x1fd)}),this['_inventory']=new Inventory(),this[i(0x20d)]=Logger[i(0x224)]();if(a?.[i(0x1ee)])for(const b of a['inventoryItems']){this[i(0x240)]['addItem'](b);}this[i(0x1e7)]=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48h(0x22b)](){const j=a48h;return this[j(0x204)];}get[a48h(0x221)](){const k=a48h;return this[k(0x1fe)];}set[a48h(0x221)](a){const l=a48h;this['_currentLocation']!==a&&(this[l(0x20a)](),this['enterRoom'](a)),this['_currentLocation']=a;}get[a48h(0x216)](){const m=a48h;return this[m(0x240)];}get['equipment'](){const n=a48h;return this[n(0x1e7)];}set[a48h(0x1ff)](a){const o=a48h;this[o(0x1e7)]=a;}get[a48h(0x233)](){const p=a48h;return this[p(0x201)];}set['maxCarryingWeight'](a){const q=a48h;a>0x0?this[q(0x201)]=a:console[q(0x239)](q(0x215));}get[a48h(0x1f2)](){const r=a48h;let a=this[r(0x240)][r(0x202)]();for(const b in this['_equipment']){const c=this[r(0x1e7)][b];c&&(a+=c['weight']);}return a;}[a48h(0x1fa)](a){const s=a48h;if(this[s(0x1f2)]+a[s(0x1f5)]>this[s(0x233)]){this[s(0x20d)][s(0x227)](s(0x211));throw new Error(s(0x22f));}this[s(0x240)][s(0x22a)](a),this[s(0x20d)]['write']('Added\x20'+a[s(0x22b)]+s(0x23e));}[a48h(0x220)](a){const t=a48h;if(this[t(0x240)][t(0x1eb)](a[t(0x22b)]))return this[t(0x20d)][t(0x227)](t(0x1f3)+a[t(0x22b)]+t(0x21e)),!![];return this[t(0x20d)]['write'](t(0x214)+a['name']+'\x20from\x20player\x27s\x20inventory.'),![];}[a48h(0x218)](a){const u=a48h;if(!this[u(0x240)]['hasItem'](a[u(0x22b)]))return u(0x203)+a['name']+'\x20in\x20your\x20inventory.';if(!this['canEquip'](a))return u(0x23f)+a[u(0x22b)]+'.';const b=this[u(0x21f)](a['category']);if(!b)return a['name']+u(0x1fb);if(this[u(0x1ff)][b])return u(0x225)+b+u(0x238);return this[u(0x1ff)][b]=a,this[u(0x220)](a),u(0x205)+a[u(0x22b)]+'.';}[a48h(0x1e8)](a){const v=a48h;let b=a;if(!this['equipment'][camelCase(b)]){b=this[v(0x21f)](a);if(!b)return v(0x22d)+a+'.';}return this[v(0x237)](b);}[a48h(0x21f)](a){const w=a48h;switch(a['toLowerCase']()){case Category[w(0x20b)][w(0x1f9)]():return w(0x226);case Category[w(0x209)]['toLowerCase']():return'leftHand';case Category['Gloves'][w(0x1f9)]():return w(0x22e);case Category[w(0x1ef)][w(0x1f9)]():case Category[w(0x1f6)][w(0x1f9)]():return'head';case Category[w(0x1fc)][w(0x1f9)]():return w(0x20f);case Category[w(0x230)][w(0x1f9)]():return'legs';case Category[w(0x236)][w(0x1f9)]():return w(0x1f7);case Category[w(0x21a)]['toLowerCase']():return w(0x1f0);case w(0x206):return w(0x226);case'shield':return w(0x231);case'gloves':return w(0x22e);case'helmet':case w(0x1f1):return w(0x210);case w(0x1f4):return'feet';case'leg\x20armor':case'legarmor':return w(0x23a);case w(0x207):case'armarmor':return'arms';case w(0x235):case w(0x21b):case w(0x1f0):return w(0x1f0);default:return null;}}[a48h(0x1e9)](a){const x=a48h;return Object[x(0x20c)](Category)[x(0x234)](a[x(0x217)]);}[a48h(0x237)](a){const y=a48h,b=this[y(0x1ff)][a];if(!b)return y(0x200)+a+'\x20slot.';return this[y(0x1fa)](b),this[y(0x1ff)][a]=null,'You\x20unequipped\x20'+b[y(0x22b)]+'.';}['hear'](a,b){const z=a48h;a!==this&&this[z(0x20d)][z(0x1ec)](a[z(0x22b)]+z(0x208)+b+'\x22');}[a48h(0x212)](a){const A=a48h;this[A(0x1fe)]=a,a['on'](A(0x241),this['hear'][A(0x20e)](this)),this['logger'][A(0x227)](this['name']+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[A(0x22b)]);}[a48h(0x20a)](){const B=a48h;this[B(0x1fe)]&&(this['_currentLocation']['off']('speak',this[B(0x21d)]['bind'](this)),this[B(0x20d)][B(0x227)](this[B(0x22b)]+B(0x23d)+this[B(0x1fe)]['name']));}}
@@ -1 +1 @@
1
- var a49h=a49d;function a49c(){var m=['You\x20solved\x20the\x20puzzle!','logger','constructor','failureMessage','37532eURXFq','toString','(((.+)+)+)+$','getInstance','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','successMessage','riddle','solved','You\x20have\x20already\x20solved\x20this\x20puzzle.','solve','1062sSWaIW','24451880bohBGf','search','19816BsHYZX','295rvBUVx','669433YZSQdE','154dAphot','matchesRequiredPhrase','requiredItem','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','requiredPhrase','1425423taOEzl','write','hasItem','1463734odUOUr','rewardItem','214356RRBqIa','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'];a49c=function(){return m;};return a49c();}function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x192;var f=c[d];return f;},a49d(a,b);}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x1ac))/0x1+parseInt(f(0x195))/0x2+parseInt(f(0x192))/0x3+parseInt(f(0x19d))/0x4*(parseInt(f(0x1ab))/0x5)+parseInt(f(0x197))/0x6*(parseInt(f(0x1ad))/0x7)+parseInt(f(0x1aa))/0x8*(-parseInt(f(0x1a7))/0x9)+-parseInt(f(0x1a8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x74d48));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['toString']()[g(0x1a9)](g(0x19f))[g(0x19e)]()[g(0x19b)](a49a)[g(0x1a9)](g(0x19f));});a49a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a49h(0x19a)]=Logger[a49h(0x1a0)]();[a49h(0x1a4)]=![];[a49h(0x1af)];[a49h(0x1b1)];['riddle'];[a49h(0x196)];[a49h(0x1a2)];[a49h(0x19c)];constructor(a){var i=a49h;super(),this[i(0x1af)]=a['requiredItem'],this[i(0x1b1)]=a[i(0x1b1)],this[i(0x1a3)]=a[i(0x1a3)],this[i(0x196)]=a[i(0x196)],this['successMessage']=a['successMessage']||i(0x199),this['failureMessage']=a[i(0x19c)]||i(0x1b0);}['hasRequiredItem'](a){var j=a49h;if(this['requiredItem'])return a[j(0x194)](this[j(0x1af)]);return![];}[a49h(0x1ae)](a){var k=a49h;return this[k(0x1b1)]===a;}[a49h(0x1a6)](a,b){var l=a49h;if(this[l(0x1a4)])return this[l(0x19a)][l(0x193)](l(0x1a1)),{'success':![],'message':l(0x1a5)};return this['hasRequiredItem'](b)||this['matchesRequiredPhrase'](a)?(this[l(0x1a4)]=!![],this[l(0x19a)][l(0x193)]('Puzzle:\x20Correct\x20solution\x20provided.'),{'success':!![],'message':this[l(0x1a2)]}):(this['logger'][l(0x193)](l(0x198)),{'success':![],'message':this[l(0x19c)]});}}
1
+ var a49i=a49d;function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x153;var f=c[d];return f;},a49d(a,b);}function a49c(){var n=['requiredItem','successMessage','riddle','write','567962JmkZtd','38547OkjpJh','1870833IomIhS','getInstance','696cooThR','failureMessage','33PcKXRe','65UFrYwv','requiredPhrase','53354ReEgYy','toString','You\x20solved\x20the\x20puzzle!','solved','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','Puzzle:\x20Correct\x20solution\x20provided.','300vdxjWK','355219tPPZld','apply','matchesRequiredPhrase','search','94596KkOyCS','logger','4047140DTDQqW','(((.+)+)+)+$'];a49c=function(){return n;};return a49c();}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x161))/0x1+parseInt(f(0x16d))/0x2+parseInt(f(0x153))/0x3+-parseInt(f(0x165))/0x4*(parseInt(f(0x158))/0x5)+-parseInt(f(0x160))/0x6*(-parseInt(f(0x15a))/0x7)+parseInt(f(0x155))/0x8*(parseInt(f(0x16e))/0x9)+parseInt(f(0x167))/0xa*(-parseInt(f(0x157))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x78d69));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x162)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x15b)]()[h(0x164)](h(0x168))['toString']()['constructor'](a49a)[h(0x164)]('(((.+)+)+)+$');});a49a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a49i(0x166)]=Logger[a49i(0x154)]();['solved']=![];['requiredItem'];[a49i(0x159)];['riddle'];['rewardItem'];[a49i(0x16a)];[a49i(0x156)];constructor(a){var j=a49i;super(),this[j(0x169)]=a['requiredItem'],this[j(0x159)]=a[j(0x159)],this[j(0x16b)]=a['riddle'],this['rewardItem']=a['rewardItem'],this[j(0x16a)]=a[j(0x16a)]||j(0x15c),this[j(0x156)]=a[j(0x156)]||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}['hasRequiredItem'](a){var k=a49i;if(this['requiredItem'])return a['hasItem'](this[k(0x169)]);return![];}[a49i(0x163)](a){var l=a49i;return this[l(0x159)]===a;}['solve'](a,b){var m=a49i;if(this[m(0x15d)])return this['logger'][m(0x16c)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this['hasRequiredItem'](b)||this[m(0x163)](a)?(this[m(0x15d)]=!![],this[m(0x166)][m(0x16c)](m(0x15f)),{'success':!![],'message':this['successMessage']}):(this['logger']['write'](m(0x15e)),{'success':![],'message':this['failureMessage']});}}
@@ -1 +1 @@
1
- const a50i=a50d;function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a50d(a,b);}(function(a,b){const f=a50d,c=a();while(!![]){try{const d=-parseInt(f(0x1ea))/0x1*(parseInt(f(0x1f0))/0x2)+parseInt(f(0x1d9))/0x3*(parseInt(f(0x1fd))/0x4)+parseInt(f(0x201))/0x5+-parseInt(f(0x1d4))/0x6*(-parseInt(f(0x1fc))/0x7)+-parseInt(f(0x1e0))/0x8+-parseInt(f(0x1f6))/0x9+parseInt(f(0x1d6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xc6bc7));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x1e7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0x1f8)]()['search'](h(0x1f7))[h(0x1f8)]()[h(0x1c6)](a50a)[h(0x1df)](h(0x1f7));});a50a();function a50c(){const u=['search','11113456eUfylX','\x20is\x20locked.\x20Result:\x20','isExitLocked','Room\x20created:\x20','SOUTH','No\x20locked\x20exit\x20found\x20in\x20direction\x20','attemptUnlock','apply','INSIDE','roomType','3903yaqOwY','exits','EAST','down','The\x20','WEST','456uPzvTt','get','set','west','Fetching\x20exit\x20in\x20direction:\x20','getOppositeDirection','3861405gGvRbD','(((.+)+)+)+$','toString','roomB','roomA','write','26747hoynKK','3955856Hboynw','findExistingDoor','setPuzzle','puzzle','7856230rYETIF','constructor','name','removeItem','north','addItem','Puzzle\x20set\x20for\x20room\x20','logger','Checking\x20if\x20exit\x20in\x20direction\x20','\x20remains\x20locked.','south','speak','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','east','checkIfLocked','1434DhJvws','inventory','487050aipHAh','.\x20Success:\x20','Invalid\x20direction:\x20','3xGgBDB','isStartRoom','getExit','description','say','hasItem'];a50c=function(){return u;};return a50c();}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';export class Room extends AbstractRoom{['logger']=Logger['getInstance']();[a50i(0x1c7)];[a50i(0x1dc)];[a50i(0x1eb)]=new Map();[a50i(0x1e9)];[a50i(0x1da)];[a50i(0x1d5)]=new Inventory();constructor(a){const j=a50i;super(),this[j(0x1c7)]=a[j(0x1c7)],this[j(0x1dc)]=a[j(0x1dc)],this[j(0x1e9)]=a['roomType']||RoomType[j(0x1e8)],a['exits']&&(this[j(0x1eb)]=a[j(0x1eb)]||new Map()),a['inventory']&&(this[j(0x1d5)]=a[j(0x1d5)]),a[j(0x200)]&&(this[j(0x200)]=a[j(0x200)]),this[j(0x1da)]=a[j(0x1da)]||![],this[j(0x1cc)][j(0x1fb)](j(0x1e3)+this[j(0x1c7)]);}[a50i(0x1dd)](a,b){const k=a50i;this['emit'](k(0x1d0),a,b);}['addExit'](a,b,c){const l=a50i;let d=this[l(0x1fe)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits'][l(0x1f2)](a,d),b['exits'][l(0x1f2)](this['getOppositeDirection'](a),d);}['attemptUnlockExit'](a,b){const m=a50i,c=this[m(0x1eb)][m(0x1f1)](a);if(c instanceof Door){const d=c[m(0x1e6)](b);return this[m(0x1cc)]['write']('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+m(0x1d7)+d),d?m(0x1ee)+c[m(0x1c7)]+'\x20unlocked!':m(0x1ee)+c[m(0x1c7)]+m(0x1ce);}return this[m(0x1cc)][m(0x1fb)](m(0x1e5)+a),m(0x1d1);}[a50i(0x1db)](a){const n=a50i;return this['logger'][n(0x1fb)](n(0x1f4)+a),this['exits']['get'](a);}[a50i(0x1e2)](a){const o=a50i,b=this[o(0x1eb)][o(0x1f1)](a),c=b instanceof Door&&b[o(0x1d3)]();return this[o(0x1cc)]['write'](o(0x1cd)+a+o(0x1e1)+c),c;}['addItem'](a){const p=a50i;this[p(0x1d5)][p(0x1ca)](a),this['logger'][p(0x1fb)]('Item\x20added\x20to\x20room\x20'+this[p(0x1c7)]+':\x20'+a[p(0x1c7)]);}[a50i(0x1c8)](a){const q=a50i;this[q(0x1d5)][q(0x1de)](a[q(0x1c7)])?(this[q(0x1d5)][q(0x1c8)](a[q(0x1c7)]),this['logger'][q(0x1fb)]('Item\x20removed\x20from\x20room\x20'+this[q(0x1c7)]+':\x20'+a[q(0x1c7)])):this[q(0x1cc)][q(0x1fb)]('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this[q(0x1c7)]+':\x20'+a['name']);}[a50i(0x1ff)](a){const r=a50i;this[r(0x200)]=a,this['logger'][r(0x1fb)](r(0x1cb)+this['name']+':\x20'+a['riddle']);}[a50i(0x1f5)](a){const s=a50i;switch(a){case s(0x1c9):return Direction[s(0x1e4)];case s(0x1cf):return Direction['NORTH'];case s(0x1d2):return Direction[s(0x1ef)];case s(0x1f3):return Direction[s(0x1ec)];case'up':return Direction['DOWN'];case s(0x1ed):return Direction['UP'];default:throw new Error(s(0x1d8)+a);}}[a50i(0x1fe)](a){const t=a50i;for(const b of this[t(0x1eb)]['values']()){if(b instanceof Door){if(b[t(0x1fa)]===this&&b['roomB']===a||b[t(0x1f9)]===this&&b[t(0x1fa)]===a)return b;}}return undefined;}}
1
+ const a50h=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x1d4))/0x1+-parseInt(f(0x1be))/0x2*(parseInt(f(0x1bc))/0x3)+parseInt(f(0x1cd))/0x4+parseInt(f(0x1c6))/0x5*(-parseInt(f(0x1b5))/0x6)+-parseInt(f(0x1b8))/0x7+-parseInt(f(0x1ba))/0x8+parseInt(f(0x1bb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xe9f99));const a50b=(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;};}()),a50a=a50b(this,function(){const g=a50d;return a50a[g(0x1df)]()[g(0x1ae)](g(0x1c7))[g(0x1df)]()[g(0x1d7)](a50a)[g(0x1ae)](g(0x1c7));});a50a();function a50c(){const t=['exits','roomType','toString','speak','down','emit','addExit','west','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','The\x20','south','addItem','Room\x20created:\x20','search','Fetching\x20exit\x20in\x20direction:\x20','isExitLocked','SOUTH','\x20remains\x20locked.','puzzle','logger','60600pAENzn','NORTH','set','2310630BdppLX','EAST','10358712rnzhbI','6032736DnJzKV','1602Dsvyot','roomA','1108gATZXw','findExistingDoor','description','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','setPuzzle','write','Item\x20added\x20to\x20room\x20','roomB','505bEosQD','(((.+)+)+)+$','inventory','name','riddle','get','getExit','7070560ddoGhi','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','\x20is\x20locked.\x20Result:\x20','values','attemptUnlock','getOppositeDirection','isStartRoom','1461282YZrqIT','getInstance','Checking\x20if\x20exit\x20in\x20direction\x20','constructor','east','.\x20Success:\x20','INSIDE','WEST','No\x20locked\x20exit\x20found\x20in\x20direction\x20'];a50c=function(){return t;};return a50c();}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-0x1a9;let f=c[d];return f;},a50d(a,b);}import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{['logger']=Logger[a50h(0x1d5)]();[a50h(0x1c9)];[a50h(0x1c0)];[a50h(0x1dd)]=new Map();[a50h(0x1de)];[a50h(0x1d3)];[a50h(0x1c8)]=new Inventory();constructor(a){const i=a50h;super(),this[i(0x1c9)]=a[i(0x1c9)],this['description']=a[i(0x1c0)],this[i(0x1de)]=a[i(0x1de)]||RoomType[i(0x1da)],a[i(0x1dd)]&&(this[i(0x1dd)]=a[i(0x1dd)]||new Map()),a[i(0x1c8)]&&(this[i(0x1c8)]=a['inventory']),a[i(0x1b3)]&&(this[i(0x1b3)]=a[i(0x1b3)]),this[i(0x1d3)]=a['isStartRoom']||![],this[i(0x1b4)]['write'](i(0x1ad)+this[i(0x1c9)]);}['say'](a,b){const j=a50h;this[j(0x1e2)](j(0x1e0),a,b);}[a50h(0x1e3)](a,b,c){const k=a50h;let d=this[k(0x1bf)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits'][k(0x1b7)](a,d),b['exits'][k(0x1b7)](this[k(0x1d2)](a),d);}['attemptUnlockExit'](a,b){const l=a50h,c=this[l(0x1dd)][l(0x1cb)](a);if(c instanceof Door){const d=c[l(0x1d1)](b);return this[l(0x1b4)][l(0x1c3)](l(0x1a9)+a+l(0x1d9)+d),d?l(0x1aa)+c[l(0x1c9)]+'\x20unlocked!':'The\x20'+c[l(0x1c9)]+l(0x1b2);}return this[l(0x1b4)][l(0x1c3)](l(0x1dc)+a),l(0x1c1);}[a50h(0x1cc)](a){const m=a50h;return this[m(0x1b4)]['write'](m(0x1af)+a),this[m(0x1dd)][m(0x1cb)](a);}[a50h(0x1b0)](a){const n=a50h,b=this[n(0x1dd)][n(0x1cb)](a),c=b instanceof Door&&b['checkIfLocked']();return this[n(0x1b4)][n(0x1c3)](n(0x1d6)+a+n(0x1cf)+c),c;}[a50h(0x1ac)](a){const o=a50h;this[o(0x1c8)][o(0x1ac)](a),this[o(0x1b4)][o(0x1c3)](o(0x1c4)+this['name']+':\x20'+a[o(0x1c9)]);}['removeItem'](a){const p=a50h;this[p(0x1c8)]['hasItem'](a['name'])?(this[p(0x1c8)]['removeItem'](a[p(0x1c9)]),this[p(0x1b4)][p(0x1c3)]('Item\x20removed\x20from\x20room\x20'+this[p(0x1c9)]+':\x20'+a[p(0x1c9)])):this[p(0x1b4)][p(0x1c3)](p(0x1ce)+this[p(0x1c9)]+':\x20'+a[p(0x1c9)]);}[a50h(0x1c2)](a){const q=a50h;this[q(0x1b3)]=a,this['logger'][q(0x1c3)]('Puzzle\x20set\x20for\x20room\x20'+this[q(0x1c9)]+':\x20'+a[q(0x1ca)]);}[a50h(0x1d2)](a){const r=a50h;switch(a){case'north':return Direction[r(0x1b1)];case r(0x1ab):return Direction[r(0x1b6)];case r(0x1d8):return Direction[r(0x1db)];case r(0x1e4):return Direction[r(0x1b9)];case'up':return Direction['DOWN'];case r(0x1e1):return Direction['UP'];default:throw new Error('Invalid\x20direction:\x20'+a);}}[a50h(0x1bf)](a){const s=a50h;for(const b of this['exits'][s(0x1d0)]()){if(b instanceof Door){if(b[s(0x1bd)]===this&&b[s(0x1c5)]===a||b[s(0x1c5)]===this&&b[s(0x1bd)]===a)return b;}}return undefined;}}
@@ -1 +1 @@
1
- const a51k=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=parseInt(i(0x19e))/0x1+parseInt(i(0x1af))/0x2*(parseInt(i(0x18c))/0x3)+-parseInt(i(0x1ab))/0x4+parseInt(i(0x1b6))/0x5+-parseInt(i(0x1a7))/0x6+parseInt(i(0x1b4))/0x7*(-parseInt(i(0x186))/0x8)+-parseInt(i(0x192))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x4c879));function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x179;let f=c[d];return f;},a51d(a,b);}const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const j=a51d;return a51a['toString']()[j(0x1a3)]('(((.+)+)+)+$')[j(0x1ae)]()['constructor'](a51a)[j(0x1a3)](j(0x179));});a51a();import{Logger}from'../utilities/logger.js';function a51c(){const C=['keyRequired','610710DmQaeh','allActors','addRoom','rooms','length','generateRoomsFromConfig','541323wsGGyb','name','delete','warn','Added\x20puzzle\x20to\x20room\x20','\x20already\x20exists\x20in\x20the\x20scene.','characterLocations','currentLocation','No\x20actor\x20with\x20name\x20','\x20is\x20now\x20in\x20room\x20','Room\x20\x22','roomFactory','311007MSuWos','.\x20Room\x20','connectRooms','Failed\x20to\x20add\x20item\x20','setCharacterLocation','search','\x20not\x20found\x20in\x20scene.','player','has','504774XMVIRM','get','\x22\x20does\x20not\x20exist.','set','2451636icbQRK','\x20to\x20room\x20','getInstance','toString','4BzVpWw','from','determineStartRoom','Added\x20item\x20','\x27s\x20location.\x20Room\x20','245EUhWWj','addItem','1962890cqBzHX','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','keys','getRooms','Actor\x20with\x20name\x20','(((.+)+)+)+$','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','write','addExit','hasOwnProperty','push','Failed\x20to\x20add\x20puzzle.\x20Room\x20','Added\x20room\x20to\x20scene:\x20','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','createExitsFromConfig','actors','Scene\x20initialized\x20with\x20rooms:\x20','initialize','9160YsLYph','getCharacterLocation','roomConfiguration','createRoom','logger'];a51c=function(){return C;};return a51c();}import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a51k(0x18f)];[a51k(0x1a5)];['logger'];['actors'];[a51k(0x198)]=new Map();[a51k(0x19d)];constructor(a){const l=a51k;super(),this[l(0x19d)]=new RoomFactory(),this[l(0x1a5)]=a['player'],this[l(0x18f)]=this[l(0x191)](a[l(0x188)]),this['logger']=Logger[l(0x1ad)](),this[l(0x183)]=new Map(),this[l(0x182)](a[l(0x188)]),this['logger'][l(0x17b)](l(0x184)+Object[l(0x1b8)](this[l(0x18f)])['join'](',\x20'));}[a51k(0x185)](){const m=a51k;this[m(0x1a5)][m(0x199)]=this[m(0x1b1)]();}[a51k(0x191)](a){const n=a51k;if(!this['roomFactory'])throw new Error(n(0x17a));const b={};for(const c of a){const d=this[n(0x19d)][n(0x189)](c);b[c['name']]=d;}return b;}['createExitsFromConfig'](a){const o=a51k;for(const b of a){const c=this[o(0x18f)][b[o(0x193)]];if(b['exits'])for(const d of b['exits']){const e=d['direction']['toUpperCase'](),f=d['targetRoom'],g=d[o(0x18b)],h=this[o(0x18f)][f];h&&c[o(0x17c)](Direction[e],h,g);}}}['addActor'](a){const p=a51k;if(this['actors'][p(0x1a6)](a['name']))throw new Error(p(0x1ba)+a[p(0x193)]+p(0x197));this[p(0x183)][p(0x1aa)](a[p(0x193)],a);}['removeActor'](a){const q=a51k;if(!this[q(0x183)][q(0x1a6)](a))throw new Error(q(0x19a)+a+'\x20found\x20in\x20the\x20scene.');this['actors'][q(0x194)](a);}['getActor'](a){const r=a51k;return this[r(0x183)][r(0x1a8)](a);}get[a51k(0x18d)](){const s=a51k;return Array[s(0x1b0)](this[s(0x183)]['values']());}[a51k(0x18e)](a){const t=a51k;this[t(0x18f)][a[t(0x193)]]=a,this[t(0x18a)][t(0x17b)](t(0x180)+a[t(0x193)]);}['removeRoom'](a){const u=a51k;return this[u(0x18f)][a]?(delete this['rooms'][a],this[u(0x18a)][u(0x17b)]('Removed\x20room\x20from\x20scene:\x20'+a),!![]):(this['logger'][u(0x17b)]('Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20'+a),![]);}['addItemToRoom'](a,b){const v=a51k,c=this[v(0x18f)][b];c?(c[v(0x1b5)](a),this[v(0x18a)]['write'](v(0x1b2)+a[v(0x193)]+v(0x1ac)+c[v(0x193)])):this['logger'][v(0x17b)](v(0x1a1)+a['name']+v(0x19f)+b+v(0x1a4));}['addPuzzleToRoom'](a,b){const w=a51k,c=this[w(0x18f)][b];c?(c['setPuzzle'](a),this[w(0x18a)][w(0x17b)](w(0x196)+c[w(0x193)])):this['logger'][w(0x17b)](w(0x17f)+b+'\x20not\x20found\x20in\x20scene.');}[a51k(0x1a2)](a,b){const x=a51k,c=this[x(0x18f)][b];c?(this[x(0x198)][x(0x1aa)](a[x(0x193)],c),this['logger'][x(0x17b)](a[x(0x193)]+x(0x19b)+c[x(0x193)])):this[x(0x18a)][x(0x17b)]('Failed\x20to\x20set\x20'+a[x(0x193)]+x(0x1b3)+b+x(0x1a4));}[a51k(0x187)](a){const y=a51k;return this[y(0x198)][y(0x1a8)](a['name']);}[a51k(0x1b1)](){const z=a51k,a=[];for(const c in this['rooms']){if(this['rooms'][z(0x17d)](c)){const d=this[z(0x18f)][c];d['isStartRoom']&&a[z(0x17e)](d);}}if(a[z(0x190)]>0x1)throw new Error(z(0x1b7));if(a[z(0x190)]===0x1)return a[0x0];const b=Object[z(0x1b8)](this[z(0x18f)]);if(b['length']===0x0)throw new Error(z(0x181));return console[z(0x195)]('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this[z(0x18f)][b[0x0]];}['getPlayer'](){return this['player'];}[a51k(0x1b9)](){const A=a51k;return this[A(0x18f)];}[a51k(0x1a0)](a,b,c,d){const B=a51k,e=this['rooms'][a],f=this[B(0x18f)][c];if(!e)throw new Error(B(0x19c)+a+B(0x1a9));if(!f)throw new Error('Room\x20\x22'+c+B(0x1a9));e['addExit'](b,f,d);}}
1
+ const a51l=a51d;function a51c(){const E=['search','actors','roomFactory','addExit','\x20to\x20room\x20','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','10tnRYrF','direction','isStartRoom','\x20is\x20now\x20in\x20room\x20','set','createRoom','8054904CgMjPw','delete','keys','No\x20actor\x20with\x20name\x20','(((.+)+)+)+$','keyRequired','addItemToRoom','174208dXubvO','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','11532177jZoHjA','exits','Failed\x20to\x20set\x20','determineStartRoom','targetRoom','has','currentLocation','get','from','write','Room\x20\x22','addActor','apply','\x20found\x20in\x20the\x20scene.','11852048UNmYFt','Scene\x20initialized\x20with\x20rooms:\x20','.\x20Room\x20','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','getPlayer','350182NjXpPr','addItem','connectRooms','allActors','toString','logger','initialize','21BRpbAB','4759810FBFeNN','Added\x20puzzle\x20to\x20room\x20','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','getInstance','rooms','generateRoomsFromConfig','createExitsFromConfig','characterLocations','join','7cBNnLa','getActor','push','name','getCharacterLocation','warn','Actor\x20with\x20name\x20','\x20not\x20found\x20in\x20scene.','47818XDcGuh','roomConfiguration','length','Removed\x20room\x20from\x20scene:\x20','\x20already\x20exists\x20in\x20the\x20scene.','\x27s\x20location.\x20Room\x20','constructor','addPuzzleToRoom','setPuzzle','player','Added\x20room\x20to\x20scene:\x20'];a51c=function(){return E;};return a51c();}(function(a,b){const i=a51d,c=a();while(!![]){try{const d=parseInt(i(0x1c4))/0x1+-parseInt(i(0x1ab))/0x2*(parseInt(i(0x1b2))/0x3)+parseInt(i(0x1e2))/0x4+parseInt(i(0x1b3))/0x5+parseInt(i(0x1db))/0x6+parseInt(i(0x1bc))/0x7*(-parseInt(i(0x1f2))/0x8)+-parseInt(i(0x1e4))/0x9*(-parseInt(i(0x1d5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xea61a));function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a51d(a,b);}const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a51d;if(c){const e=c[j(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const k=a51d;return a51a[k(0x1af)]()[k(0x1cf)](k(0x1df))[k(0x1af)]()[k(0x1ca)](a51a)[k(0x1cf)](k(0x1df));});a51a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{[a51l(0x1b7)];[a51l(0x1cd)];[a51l(0x1b0)];[a51l(0x1d0)];[a51l(0x1ba)]=new Map();[a51l(0x1d1)];constructor(a){const m=a51l;super(),this[m(0x1d1)]=new RoomFactory(),this[m(0x1cd)]=a[m(0x1cd)],this[m(0x1b7)]=this[m(0x1b8)](a[m(0x1c5)]),this[m(0x1b0)]=Logger[m(0x1b6)](),this['actors']=new Map(),this['createExitsFromConfig'](a[m(0x1c5)]),this[m(0x1b0)]['write'](m(0x1f3)+Object[m(0x1dd)](this['rooms'])[m(0x1bb)](',\x20'));}[a51l(0x1b1)](){const n=a51l;this[n(0x1cd)][n(0x1ea)]=this[n(0x1e7)]();}['generateRoomsFromConfig'](a){const o=a51l;if(!this['roomFactory'])throw new Error(o(0x1d4));const b={};for(const c of a){const d=this[o(0x1d1)][o(0x1da)](c);b[c[o(0x1bf)]]=d;}return b;}[a51l(0x1b9)](a){const p=a51l;for(const b of a){const c=this[p(0x1b7)][b[p(0x1bf)]];if(b['exits'])for(const d of b[p(0x1e5)]){const e=d[p(0x1d6)]['toUpperCase'](),f=d[p(0x1e8)],g=d[p(0x1e0)],h=this[p(0x1b7)][f];h&&c[p(0x1d2)](Direction[e],h,g);}}}[a51l(0x1ef)](a){const q=a51l;if(this[q(0x1d0)][q(0x1e9)](a[q(0x1bf)]))throw new Error(q(0x1c2)+a[q(0x1bf)]+q(0x1c8));this['actors']['set'](a['name'],a);}['removeActor'](a){const r=a51l;if(!this[r(0x1d0)]['has'](a))throw new Error(r(0x1de)+a+r(0x1f1));this[r(0x1d0)][r(0x1dc)](a);}[a51l(0x1bd)](a){const s=a51l;return this[s(0x1d0)][s(0x1eb)](a);}get[a51l(0x1ae)](){const t=a51l;return Array[t(0x1ec)](this[t(0x1d0)]['values']());}['addRoom'](a){const u=a51l;this[u(0x1b7)][a['name']]=a,this[u(0x1b0)]['write'](u(0x1ce)+a[u(0x1bf)]);}['removeRoom'](a){const v=a51l;return this[v(0x1b7)][a]?(delete this[v(0x1b7)][a],this['logger'][v(0x1ed)](v(0x1c7)+a),!![]):(this[v(0x1b0)][v(0x1ed)](v(0x1f5)+a),![]);}[a51l(0x1e1)](a,b){const w=a51l,c=this['rooms'][b];c?(c[w(0x1ac)](a),this[w(0x1b0)][w(0x1ed)]('Added\x20item\x20'+a[w(0x1bf)]+w(0x1d3)+c['name'])):this[w(0x1b0)]['write']('Failed\x20to\x20add\x20item\x20'+a[w(0x1bf)]+w(0x1f4)+b+w(0x1c3));}[a51l(0x1cb)](a,b){const x=a51l,c=this[x(0x1b7)][b];c?(c[x(0x1cc)](a),this[x(0x1b0)]['write'](x(0x1b4)+c[x(0x1bf)])):this[x(0x1b0)][x(0x1ed)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+x(0x1c3));}['setCharacterLocation'](a,b){const y=a51l,c=this[y(0x1b7)][b];c?(this[y(0x1ba)][y(0x1d9)](a[y(0x1bf)],c),this[y(0x1b0)][y(0x1ed)](a[y(0x1bf)]+y(0x1d8)+c[y(0x1bf)])):this[y(0x1b0)][y(0x1ed)](y(0x1e6)+a['name']+y(0x1c9)+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0x1c0)](a){const z=a51l;return this['characterLocations'][z(0x1eb)](a[z(0x1bf)]);}[a51l(0x1e7)](){const A=a51l,a=[];for(const c in this[A(0x1b7)]){if(this[A(0x1b7)]['hasOwnProperty'](c)){const d=this[A(0x1b7)][c];d[A(0x1d7)]&&a[A(0x1be)](d);}}if(a[A(0x1c6)]>0x1)throw new Error(A(0x1e3));if(a[A(0x1c6)]===0x1)return a[0x0];const b=Object[A(0x1dd)](this[A(0x1b7)]);if(b[A(0x1c6)]===0x0)throw new Error(A(0x1b5));return console[A(0x1c1)]('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this[A(0x1b7)][b[0x0]];}[a51l(0x1f6)](){const B=a51l;return this[B(0x1cd)];}['getRooms'](){const C=a51l;return this[C(0x1b7)];}[a51l(0x1ad)](a,b,c,d){const D=a51l,e=this[D(0x1b7)][a],f=this['rooms'][c];if(!e)throw new Error('Room\x20\x22'+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(D(0x1ee)+c+'\x22\x20does\x20not\x20exist.');e[D(0x1d2)](b,f,d);}}
@@ -1 +1 @@
1
- var a52j=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x157))/0x1*(-parseInt(f(0x175))/0x2)+-parseInt(f(0x16c))/0x3*(-parseInt(f(0x146))/0x4)+parseInt(f(0x150))/0x5*(-parseInt(f(0x164))/0x6)+-parseInt(f(0x179))/0x7+parseInt(f(0x148))/0x8*(-parseInt(f(0x163))/0x9)+parseInt(f(0x14e))/0xa*(parseInt(f(0x156))/0xb)+parseInt(f(0x178))/0xc*(-parseInt(f(0x145))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xccf29));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x15a)]()[h(0x17b)](h(0x16e))[h(0x15a)]()[h(0x168)](a52a)[h(0x17b)](h(0x16e));});a52a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a52d;super({'name':a,'description':b,'size':Size[i(0x172)],'category':Category['Unknown'],'shape':Shape[i(0x17a)],'color':Color[i(0x169)],'texture':Texture[i(0x170)],'rating':Rating[i(0x15d)],'weight':0x1});}[a52j(0x15c)](){var k=a52j;return this[k(0x14c)];}}export class Sword extends Item{constructor(a,b){var l=a52j;super({'name':a,'description':b,'size':Size[l(0x172)],'category':Category[l(0x166)],'shape':Shape[l(0x161)],'color':Color[l(0x158)],'texture':Texture[l(0x153)],'rating':Rating[l(0x15d)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var m=a52j;super({'name':a,'description':b,'size':Size[m(0x176)],'category':Category[m(0x166)],'shape':Shape[m(0x17c)],'color':Color['Brown'],'texture':Texture['Metallic'],'rating':Rating['Rare'],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var n=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[n(0x159)],'shape':Shape[n(0x14b)],'color':Color['Grey'],'texture':Texture[n(0x153)],'rating':Rating[n(0x15d)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var o=a52j;super({'name':a,'description':b,'size':Size[o(0x176)],'category':Category['BodyArmor'],'shape':Shape[o(0x17a)],'color':Color['Grey'],'texture':Texture[o(0x153)],'rating':Rating[o(0x15d)],'weight':0xa});}}function a52c(){var E=['Short\x20Sword','11ZTPAyK','86120imZhfp','Grey','Helmet','toString','Sniper\x20Rifle','use','Common','publishDate','name','author','Blade','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','243801KXatiT','6QYGEMO','Unknown\x20Author','Weapon','Small','constructor','Yellow','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','339FVBIAO','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','(((.+)+)+)+$','apply','Smooth','ArmArmor','Medium','Key','Brown','38QcmBbN','Large','Legendary','2624988evSyRN','8304499xUwhUy','Rectangle','search','Rifle','Cup','13LwPwXv','55316KKEIsC','pageCount','344ebWHwY','You\x20hold\x20the\x20','Gold','Circle','description','Tiny','2880340lFGNtE','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','387965JJIlXQ','Holy\x20Grail','Gloves','Metallic','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.'];a52c=function(){return E;};return a52c();}export class LegArmor extends Item{constructor(a,b){var p=a52j;super({'name':a,'description':b,'size':Size[p(0x172)],'category':Category['LegArmor'],'shape':Shape['Rectangle'],'color':Color[p(0x158)],'texture':Texture[p(0x153)],'rating':Rating[p(0x15d)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var q=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Boots'],'shape':Shape[q(0x14b)],'color':Color['Brown'],'texture':Texture[q(0x170)],'rating':Rating['Common'],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var r=a52j;super({'name':a,'description':b,'size':Size[r(0x167)],'category':Category[r(0x152)],'shape':Shape[r(0x14b)],'color':Color[r(0x174)],'texture':Texture['Smooth'],'rating':Rating[r(0x15d)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a52j;super({'name':a,'description':b,'size':Size[s(0x172)],'category':Category[s(0x171)],'shape':Shape[s(0x17a)],'color':Color[s(0x158)],'texture':Texture[s(0x153)],'rating':Rating[s(0x15d)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var t=a52j;super({'name':a,'description':b,'size':Size[t(0x14d)],'category':Category[t(0x173)],'shape':Shape[t(0x17a)],'color':Color[t(0x169)],'texture':Texture['Smooth'],'rating':Rating[t(0x15d)],'weight':0x0});}[a52j(0x15c)](){var u=a52j;return u(0x16a);}}export class Weapon extends Item{constructor(a,b){var v=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[v(0x166)],'shape':Shape[v(0x161)],'color':Color['Grey'],'texture':Texture[v(0x153)],'rating':Rating[v(0x15d)],'weight':0x3});}['use'](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x144;var f=c[d];return f;},a52d(a,b);}export class Book extends Item{[a52j(0x160)];[a52j(0x15e)];[a52j(0x147)];constructor(a,b='A\x20mysterious\x20book.',c=a52j(0x165)){var w=a52j;super({'name':a,'description':b,'size':Size[w(0x172)],'category':Category['Book'],'shape':Shape['Rectangle'],'color':Color[w(0x174)],'texture':Texture[w(0x170)],'rating':Rating[w(0x15d)],'weight':0x1}),this['author']=c,this[w(0x15e)]=new Date(),this['pageCount']=0x64;}['use'](){var x=a52j;return x(0x162);}}export class ShortSword extends Item{constructor(){var y=a52j;super({'name':y(0x155),'description':'A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','size':Size[y(0x172)],'category':Category[y(0x166)],'shape':Shape[y(0x161)],'color':Color['Grey'],'texture':Texture[y(0x153)],'rating':Rating[y(0x15d)],'weight':0x3});}['use'](){var z=a52j;return z(0x16b);}}export class SniperRifle extends Item{constructor(){var A=a52j;super({'name':A(0x15b),'description':A(0x154),'size':Size[A(0x176)],'category':Category[A(0x166)],'shape':Shape[A(0x17c)],'color':Color['Brown'],'texture':Texture[A(0x170)],'rating':Rating['Common'],'weight':0x5});}[a52j(0x15c)](){var B=a52j;return B(0x16d);}}export class HolyGrail extends Item{constructor(){var C=a52j;super({'name':C(0x151),'description':C(0x14f),'size':Size[C(0x167)],'category':Category[C(0x144)],'shape':Shape['Circle'],'color':Color[C(0x14a)],'texture':Texture['Metallic'],'rating':Rating[C(0x177)],'weight':0x1});}[a52j(0x15c)](){var D=a52j;return D(0x149)+this[D(0x15f)]+'\x20aloft,\x20feeling\x20its\x20immense\x20power.';}}
1
+ var a52j=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0xa6))/0x1*(parseInt(f(0xc2))/0x2)+parseInt(f(0xbc))/0x3*(-parseInt(f(0xa7))/0x4)+-parseInt(f(0xba))/0x5+parseInt(f(0xa1))/0x6+-parseInt(f(0x99))/0x7*(-parseInt(f(0xaf))/0x8)+-parseInt(f(0xa9))/0x9+parseInt(f(0xbf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xd6926));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a['toString']()[h(0x97)](h(0x8e))['toString']()[h(0xaa)](a52a)[h(0x97)](h(0x8e));});a52a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a52d;super({'name':a,'description':b,'size':Size[i(0x90)],'category':Category['Unknown'],'shape':Shape['Rectangle'],'color':Color[i(0x91)],'texture':Texture[i(0xc0)],'rating':Rating[i(0x8f)],'weight':0x1});}[a52j(0xb5)](){var k=a52j;return this[k(0x95)];}}export class Sword extends Item{constructor(a,b){var l=a52j;super({'name':a,'description':b,'size':Size[l(0x90)],'category':Category['Weapon'],'shape':Shape[l(0x9b)],'color':Color[l(0x9d)],'texture':Texture['Metallic'],'rating':Rating[l(0x8f)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var m=a52j;super({'name':a,'description':b,'size':Size[m(0xa3)],'category':Category[m(0xae)],'shape':Shape[m(0x96)],'color':Color[m(0xa4)],'texture':Texture[m(0xbe)],'rating':Rating[m(0xb1)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var n=a52j;super({'name':a,'description':b,'size':Size[n(0x90)],'category':Category[n(0x98)],'shape':Shape[n(0xb2)],'color':Color[n(0x9d)],'texture':Texture['Metallic'],'rating':Rating[n(0x8f)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var o=a52j;super({'name':a,'description':b,'size':Size[o(0xa3)],'category':Category[o(0xb4)],'shape':Shape[o(0x9e)],'color':Color[o(0x9d)],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var p=a52j;super({'name':a,'description':b,'size':Size[p(0x90)],'category':Category[p(0xbb)],'shape':Shape[p(0x9e)],'color':Color[p(0x9d)],'texture':Texture['Metallic'],'rating':Rating[p(0x8f)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var q=a52j;super({'name':a,'description':b,'size':Size[q(0x90)],'category':Category['Boots'],'shape':Shape[q(0xb2)],'color':Color[q(0xa4)],'texture':Texture[q(0xc0)],'rating':Rating[q(0x8f)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var r=a52j;super({'name':a,'description':b,'size':Size['Small'],'category':Category['Gloves'],'shape':Shape[r(0xb2)],'color':Color['Brown'],'texture':Texture[r(0xc0)],'rating':Rating[r(0x8f)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a52j;super({'name':a,'description':b,'size':Size[s(0x90)],'category':Category['ArmArmor'],'shape':Shape['Rectangle'],'color':Color[s(0x9d)],'texture':Texture[s(0xbe)],'rating':Rating[s(0x8f)],'weight':0x3});}}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x8d;var f=c[d];return f;},a52d(a,b);}export class Key extends Item{constructor(a,b){var t=a52j;super({'name':a,'description':b,'size':Size[t(0xa8)],'category':Category['Key'],'shape':Shape[t(0x9e)],'color':Color[t(0x91)],'texture':Texture[t(0xc0)],'rating':Rating[t(0x8f)],'weight':0x0});}[a52j(0xb5)](){var u=a52j;return u(0xc1);}}function a52c(){var E=['Rifle','search','Helmet','2296KSpLck','Book','Blade','apply','Grey','Rectangle','publishDate','Unknown\x20Author','7680246EZhvLY','pageCount','Large','Brown','Small','39aJZpLW','21676aygQBT','Tiny','12575250lCjZvO','constructor','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Legendary','Holy\x20Grail','Weapon','9344itxrFg','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Rare','Circle','A\x20mysterious\x20book.','BodyArmor','use','name','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Sniper\x20Rifle','271795BfXxQn','LegArmor','327TRhIXa','author','Metallic','12355180QeMmXU','Smooth','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','1154HjiRbQ','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','(((.+)+)+)+$','Common','Medium','Yellow','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.','Gold','description'];a52c=function(){return E;};return a52c();}export class Weapon extends Item{constructor(a,b){var v=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[v(0xae)],'shape':Shape[v(0x9b)],'color':Color[v(0x9d)],'texture':Texture[v(0xbe)],'rating':Rating[v(0x8f)],'weight':0x3});}[a52j(0xb5)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class Book extends Item{[a52j(0xbd)];[a52j(0x9f)];[a52j(0xa2)];constructor(a,b=a52j(0xb3),c=a52j(0xa0)){var w=a52j;super({'name':a,'description':b,'size':Size[w(0x90)],'category':Category[w(0x9a)],'shape':Shape['Rectangle'],'color':Color[w(0xa4)],'texture':Texture[w(0xc0)],'rating':Rating[w(0x8f)],'weight':0x1}),this[w(0xbd)]=c,this[w(0x9f)]=new Date(),this['pageCount']=0x64;}['use'](){var x=a52j;return x(0x92);}}export class ShortSword extends Item{constructor(){var y=a52j;super({'name':'Short\x20Sword','description':y(0x93),'size':Size[y(0x90)],'category':Category[y(0xae)],'shape':Shape['Blade'],'color':Color[y(0x9d)],'texture':Texture[y(0xbe)],'rating':Rating[y(0x8f)],'weight':0x3});}[a52j(0xb5)](){var z=a52j;return z(0xb8);}}export class SniperRifle extends Item{constructor(){var A=a52j;super({'name':A(0xb9),'description':A(0x8d),'size':Size[A(0xa3)],'category':Category[A(0xae)],'shape':Shape[A(0x96)],'color':Color[A(0xa4)],'texture':Texture[A(0xc0)],'rating':Rating['Common'],'weight':0x5});}[a52j(0xb5)](){var B=a52j;return B(0xb0);}}export class HolyGrail extends Item{constructor(){var C=a52j;super({'name':C(0xad),'description':C(0xb7),'size':Size[C(0xa5)],'category':Category['Cup'],'shape':Shape[C(0xb2)],'color':Color[C(0x94)],'texture':Texture[C(0xbe)],'rating':Rating[C(0xac)],'weight':0x1});}['use'](){var D=a52j;return'You\x20hold\x20the\x20'+this[D(0xb6)]+D(0xab);}}