@maka/maka-cli 4.6.22 → 4.6.23

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 (143) hide show
  1. package/bundle/obf/package.json +2 -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/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/proxy.js +1 -1
  84. package/bundle/obf/src/commands/reconfig.js +1 -1
  85. package/bundle/obf/src/commands/run/_index.js +1 -1
  86. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/run/run.command.js +1 -1
  88. package/bundle/obf/src/commands/set/_index.js +1 -1
  89. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  90. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  91. package/bundle/obf/src/commands/set/set.command.js +1 -1
  92. package/bundle/obf/src/commands/ssh.js +1 -1
  93. package/bundle/obf/src/commands/ssl.js +1 -1
  94. package/bundle/obf/src/commands/test.js +1 -1
  95. package/bundle/obf/src/commands/version.js +1 -1
  96. package/bundle/obf/src/error.js +1 -1
  97. package/bundle/obf/src/exec.js +1 -1
  98. package/bundle/obf/src/generator.js +1 -1
  99. package/bundle/obf/src/generators/_index.js +1 -1
  100. package/bundle/obf/src/generators/api.js +1 -1
  101. package/bundle/obf/src/generators/collection.js +1 -1
  102. package/bundle/obf/src/generators/component.js +1 -1
  103. package/bundle/obf/src/generators/config.js +1 -1
  104. package/bundle/obf/src/generators/dbc.js +1 -1
  105. package/bundle/obf/src/generators/dockerfile.js +1 -1
  106. package/bundle/obf/src/generators/hook.js +1 -1
  107. package/bundle/obf/src/generators/kits/_index.js +1 -1
  108. package/bundle/obf/src/generators/kits/kit.js +1 -1
  109. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  110. package/bundle/obf/src/generators/kits/mui/layout.mui.gen.js +1 -1
  111. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  112. package/bundle/obf/src/generators/layout.js +1 -1
  113. package/bundle/obf/src/generators/maka.gen.js +1 -1
  114. package/bundle/obf/src/generators/methods.js +1 -1
  115. package/bundle/obf/src/generators/package.js +1 -1
  116. package/bundle/obf/src/generators/page.js +1 -1
  117. package/bundle/obf/src/generators/publish.js +1 -1
  118. package/bundle/obf/src/generators/route.js +1 -1
  119. package/bundle/obf/src/generators/service.js +1 -1
  120. package/bundle/obf/src/generators/services/_index.js +1 -1
  121. package/bundle/obf/src/generators/services/openssl.js +1 -1
  122. package/bundle/obf/src/generators/services/translation.js +1 -1
  123. package/bundle/obf/src/maka.js +1 -1
  124. package/bundle/obf/src/tool.js +1 -1
  125. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  126. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  127. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  129. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  131. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/https/https.class.js +1 -1
  133. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  134. package/bundle/obf/src/tools/log/log.class.js +1 -1
  135. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  136. package/bundle/obf/src/tools/options/options.class.js +1 -1
  137. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  138. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  139. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  140. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  141. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  142. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  143. package/package.json +2 -1
@@ -1 +1 @@
1
- const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=-parseInt(f(0xc7))/0x1*(parseInt(f(0xd3))/0x2)+-parseInt(f(0xe3))/0x3+-parseInt(f(0xca))/0x4+parseInt(f(0xe0))/0x5*(parseInt(f(0xcc))/0x6)+parseInt(f(0xd2))/0x7*(-parseInt(f(0xcb))/0x8)+parseInt(f(0xc8))/0x9*(-parseInt(f(0xcf))/0xa)+-parseInt(f(0xd4))/0xb*(-parseInt(f(0xc5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x4148c));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0xc9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0xdd)]()[h(0xda)]('(((.+)+)+)+$')['toString']()[h(0xd6)](a37a)[h(0xda)]('(((.+)+)+)+$');});a37a();function a37c(){const k=['You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','constructor','You\x20search\x20the\x20area\x20and\x20find:\x20','listItems','logger','search','description','actor','toString','\x20found\x20the\x20following\x20items:\x20','Search\x20for\x20items\x20in\x20your\x20area','5ZXaQOz','currentLocation','inventory','955467auHPHH','2419788QereKY','write','13QOGThY','174411AIsdim','apply','1733628XhYPcq','103544LqOrMo','2665950nCYofh','name','execute','70jHmFIT','length','SearchCommand:\x20','35RlnvZf','66854EHsjUc','66VVyGRT'];a37c=function(){return k;};return a37c();}import{Command}from'./command.js';function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0xc5;let f=c[d];return f;},a37d(a,b);}export class SearchCommand extends Command{static ['verb']=a37i(0xda);static [a37i(0xdb)]=a37i(0xdf);[a37i(0xce)](){const j=a37i,a=this[j(0xdc)][j(0xe1)][j(0xe2)][j(0xd8)]();if(a[j(0xd0)]===0x0)return this[j(0xd9)][j(0xc6)](j(0xd1)+this[j(0xdc)][j(0xcd)]+'\x20searched\x20the\x20room\x20but\x20found\x20nothing.'),j(0xd5);const b=a['join'](',\x20');return this[j(0xd9)][j(0xc6)](j(0xd1)+this[j(0xdc)][j(0xcd)]+j(0xde)+b),j(0xd7)+b;}}
1
+ function a37c(){const k=['3236100jLijSb','153GzbIrU','SearchCommand:\x20','12153HRSlXf','404qdAvLx','join','You\x20search\x20the\x20area\x20and\x20find:\x20','length','write','apply','63640iUowxC','5835918DOZRtG','(((.+)+)+)+$','inventory','\x20found\x20the\x20following\x20items:\x20','listItems','logger','350266oVUigg','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','description','search','30zqCWEQ','70PDRrcD','2406360EfVIDj','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','actor','31351TDKNct','toString','name','Search\x20for\x20items\x20in\x20your\x20area'];a37c=function(){return k;};return a37c();}const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0x7d))/0x1*(parseInt(f(0x79))/0x2)+parseInt(f(0x84))/0x3*(-parseInt(f(0x85))/0x4)+parseInt(f(0x81))/0x5+parseInt(f(0x78))/0x6*(-parseInt(f(0x74))/0x7)+-parseInt(f(0x8b))/0x8*(parseInt(f(0x82))/0x9)+parseInt(f(0x7a))/0xa+-parseInt(f(0x8c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xa123b));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0x8a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0x7e)]()[h(0x77)]('(((.+)+)+)+$')[h(0x7e)]()['constructor'](a37a)[h(0x77)](h(0x8d));});a37a();import{Command}from'./command.js';function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0x74;let f=c[d];return f;},a37d(a,b);}export class SearchCommand extends Command{static ['verb']=a37i(0x77);static [a37i(0x76)]=a37i(0x80);['execute'](){const j=a37i,a=this[j(0x7c)]['currentLocation'][j(0x8e)][j(0x90)]();if(a[j(0x88)]===0x0)return this[j(0x91)]['write'](j(0x83)+this[j(0x7c)][j(0x7f)]+j(0x7b)),j(0x75);const b=a[j(0x86)](',\x20');return this[j(0x91)][j(0x89)](j(0x83)+this[j(0x7c)][j(0x7f)]+j(0x8f)+b),j(0x87)+b;}}
@@ -1 +1 @@
1
- const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0x196))/0x1+parseInt(f(0x197))/0x2*(parseInt(f(0x19f))/0x3)+parseInt(f(0x18e))/0x4*(-parseInt(f(0x1a7))/0x5)+parseInt(f(0x1a6))/0x6*(-parseInt(f(0x1a2))/0x7)+-parseInt(f(0x1a5))/0x8*(-parseInt(f(0x1aa))/0x9)+parseInt(f(0x1a3))/0xa+-parseInt(f(0x191))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x1d015));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x19c)]()['search']('(((.+)+)+)+$')[h(0x19c)]()[h(0x195)](a38a)['search']('(((.+)+)+)+$');});function a38c(){const k=['3732399CmhXYn','message','puzzle','currentLocation','constructor','215377aurMkJ','2MYcSZP','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','solve','toLowerCase','SolveCommand:\x20','toString','actor','addItem','671472KQojNx','execute','rewardItem','42gufTtq','1840880hhXTTF','join','20464KWQjzP','15726eJzMYr','154565LqVFSg','Attempt\x20to\x20solve\x20a\x20puzzle.','apply','18epwBXO','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','20jkHQwv','logger','description'];a38c=function(){return k;};return a38c();}function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x18d;let f=c[d];return f;},a38d(a,b);}a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static ['verb']=a38i(0x199);static [a38i(0x190)]=a38i(0x1a8);[a38i(0x1a0)](a){const j=a38i,b=a[j(0x1a4)]('\x20')[j(0x19a)](),c=this[j(0x19d)][j(0x194)];if(!c||!c[j(0x193)])return this[j(0x18f)]['write'](j(0x18d)),j(0x198);const d=c[j(0x193)][j(0x199)](b,this[j(0x19d)]['inventory']);return d['success']&&c[j(0x193)][j(0x1a1)]&&this[j(0x19d)]['inventory'][j(0x19e)](c['puzzle'][j(0x1a1)]),this[j(0x18f)]['write'](j(0x19b)+d[j(0x192)]),d[j(0x192)];}}
1
+ const a38i=a38d;function a38c(){const k=['addItem','237512Iwhyep','puzzle','currentLocation','execute','4458483CuvGAH','343ysjmUW','search','actor','(((.+)+)+)+$','solve','write','inventory','5229852LeKQdk','message','2296572lVWfha','5443804NkKyVb','rewardItem','description','apply','verb','5536335yCwkbH','toString','155855meqFiW','logger','join'];a38c=function(){return k;};return a38c();}(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0x13a))/0x1+-parseInt(f(0x132))/0x2+parseInt(f(0x128))/0x3+-parseInt(f(0x133))/0x4+parseInt(f(0x138))/0x5+-parseInt(f(0x130))/0x6+-parseInt(f(0x129))/0x7*(-parseInt(f(0x124))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xc8f7d));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x139)]()['search'](h(0x12c))['toString']()['constructor'](a38a)[h(0x12a)](h(0x12c));});function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x122;let f=c[d];return f;},a38d(a,b);}a38a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a38i(0x137)]='solve';static [a38i(0x135)]='Attempt\x20to\x20solve\x20a\x20puzzle.';[a38i(0x127)](a){const j=a38i,b=a[j(0x122)]('\x20')['toLowerCase'](),c=this[j(0x12b)][j(0x126)];if(!c||!c['puzzle'])return this[j(0x13b)][j(0x12e)]('SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.'),'There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.';const d=c['puzzle'][j(0x12d)](b,this[j(0x12b)][j(0x12f)]);return d['success']&&c[j(0x125)][j(0x134)]&&this[j(0x12b)]['inventory'][j(0x123)](c[j(0x125)][j(0x134)]),this['logger'][j(0x12e)]('SolveCommand:\x20'+d['message']),d[j(0x131)];}}
@@ -1 +1 @@
1
- const a39i=a39d;function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x18a;let f=c[d];return f;},a39d(a,b);}(function(a,b){const f=a39d,c=a();while(!![]){try{const d=-parseInt(f(0x1a3))/0x1+parseInt(f(0x191))/0x2*(parseInt(f(0x1a8))/0x3)+parseInt(f(0x190))/0x4+parseInt(f(0x18a))/0x5+-parseInt(f(0x19c))/0x6+-parseInt(f(0x192))/0x7+-parseInt(f(0x199))/0x8*(-parseInt(f(0x1a0))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xe8c16));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x19a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x19e)]()[h(0x1a1)]('(((.+)+)+)+$')[h(0x19e)]()['constructor'](a39a)['search'](h(0x18e));});a39a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a39i(0x198)]=a39i(0x197);static [a39i(0x195)]='Pick\x20up\x20an\x20item.';['execute'](a){const j=a39i;return this['logger'][j(0x1ac)](j(0x193)+a['join']('\x20')),this[j(0x197)](a);}[a39i(0x197)](a){const k=a39i,b=a[k(0x194)]('\x20')['toLowerCase'](),c=this[k(0x1ad)][k(0x1ae)];if(!c[k(0x1a6)][k(0x18b)](b))return this[k(0x1ab)][k(0x1ac)](k(0x19d)+b+k(0x1aa)+c[k(0x1a9)]+k(0x18c)),k(0x1a2)+b+'\x22\x20in\x20this\x20room.';const d=c['inventory'][k(0x1a5)](b);if(!d)return this['logger'][k(0x1ac)](k(0x19d)+b+'\x22\x20not\x20retrieved\x20from\x20'+c[k(0x1a9)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x1a2)+b+k(0x18d);try{return this['actor']['addInventory'](d),this[k(0x1ab)][k(0x1ac)](k(0x1a7)+b+k(0x1af)+this['actor'][k(0x1a9)]+k(0x1a4)),c[k(0x1a6)]['removeItem'](b),this[k(0x1ab)][k(0x1ac)]('Successfully\x20removed\x20\x22'+b+k(0x18f)+c['name']+k(0x196)),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this[k(0x1ab)][k(0x1ac)](k(0x19b)+e[k(0x19f)]),k(0x1b0)+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}function a39c(){const l=['5235480gwuhRo','apply','Error\x20during\x20\x27Take\x27\x20command:\x20','29328YOcrAq','Item\x20\x22','toString','message','9VJwCUL','search','There\x20is\x20no\x20item\x20\x22','658481WQcDnl','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','getItem','inventory','Successfully\x20added\x20\x22','3LUTPJb','name','\x22\x20not\x20found\x20in\x20','logger','write','actor','currentLocation','\x22\x20to\x20','The\x20item\x20\x22','5002220yCYYQL','hasItem','\x20during\x20\x27Take\x27\x20command.','\x22\x20in\x20this\x20room.','(((.+)+)+)+$','\x22\x20from\x20','5899632ksXwsd','569440jHMoTE','12584404pNAdBG','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','join','description','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','take','verb'];a39c=function(){return l;};return a39c();}
1
+ function a39c(){const k=['write','\x22\x20is\x20too\x20heavy\x20to\x20carry.','toLowerCase','9491076hTqksn','join','7GexmEO','Pick\x20up\x20an\x20item.','There\x20is\x20no\x20item\x20\x22','hasItem','toString','10LfDKCG','message','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','name','Item\x20\x22','The\x20item\x20\x22','\x22\x20not\x20found\x20in\x20','Successfully\x20added\x20\x22','description','\x22\x20not\x20retrieved\x20from\x20','removeItem','324cmNqxA','420040RgtmzF','5374808GMlYQw','search','addInventory','2289056AHZddc','inventory','3273WPJixN','logger','Successfully\x20removed\x20\x22','actor','6233430ZITjFz','(((.+)+)+)+$','constructor','916573KculvQ','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','getItem','\x22\x20in\x20this\x20room.','take'];a39c=function(){return k;};return a39c();}const a39h=a39d;function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x90;let f=c[d];return f;},a39d(a,b);}(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x93))/0x1+parseInt(f(0xad))/0x2*(-parseInt(f(0xb4))/0x3)+parseInt(f(0xb2))/0x4+-parseInt(f(0xae))/0x5+parseInt(f(0x90))/0x6*(-parseInt(f(0x9d))/0x7)+-parseInt(f(0xaf))/0x8+-parseInt(f(0x9b))/0x9*(-parseInt(f(0xa2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x8b9f7));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const g=a39d;return a39a[g(0xa1)]()[g(0xb0)](g(0x91))[g(0xa1)]()[g(0x92)](a39a)['search'](g(0x91));});a39a();import{Command}from'./command.js';export class TakeCommand extends Command{static ['verb']='take';static [a39h(0xaa)]=a39h(0x9e);['execute'](a){const i=a39h;return this[i(0xb5)]['write'](i(0xa4)+a[i(0x9c)]('\x20')),this[i(0x97)](a);}[a39h(0x97)](a){const j=a39h,b=a[j(0x9c)]('\x20')[j(0x9a)](),c=this[j(0xb7)]['currentLocation'];if(!c[j(0xb3)][j(0xa0)](b))return this[j(0xb5)]['write']('Item\x20\x22'+b+j(0xa8)+c['name']+'\x20during\x20\x27Take\x27\x20command.'),j(0x9f)+b+j(0x96);const d=c[j(0xb3)][j(0x95)](b);if(!d)return this[j(0xb5)]['write'](j(0xa6)+b+j(0xab)+c[j(0xa5)]+j(0x94)),j(0x9f)+b+j(0x96);try{return this['actor'][j(0xb1)](d),this[j(0xb5)][j(0x98)](j(0xa9)+b+'\x22\x20to\x20'+this['actor']['name']+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c['inventory'][j(0xac)](b),this[j(0xb5)][j(0x98)](j(0xb6)+b+'\x22\x20from\x20'+c[j(0xa5)]+j(0x94)),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this[j(0xb5)][j(0x98)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[j(0xa3)]),j(0xa7)+b+j(0x99);}}}
@@ -1 +1 @@
1
- function a40c(){const k=['toString','description','UnequipCommand:\x20','206380rbZlMK','constructor','11xSUSUp','183798EECkRv','287bZoqQc','1VXHyVq','verb','search','2300127apUjvR','450585lMnSRq','unqeuip','write','toLowerCase','apply','14064610ckfAxE','24nHvEiq','(((.+)+)+)+$','1730635uRxEhZ','execute','join','actor','name','2236922KyDOVB'];a40c=function(){return k;};return a40c();}const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x139))/0x1*(parseInt(f(0x130))/0x2)+-parseInt(f(0x13c))/0x3+parseInt(f(0x134))/0x4+parseInt(f(0x12b))/0x5+-parseInt(f(0x137))/0x6*(-parseInt(f(0x138))/0x7)+-parseInt(f(0x129))/0x8*(-parseInt(f(0x13d))/0x9)+-parseInt(f(0x128))/0xa*(parseInt(f(0x136))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xb6e69));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x131)]()['search'](h(0x12a))['toString']()[h(0x135)](a40a)[h(0x13b)]('(((.+)+)+)+$');});a40a();import{Command}from'./command.js';function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x126;let f=c[d];return f;},a40d(a,b);}export class UnequipCommand extends Command{static [a40i(0x13a)]=a40i(0x13e);static [a40i(0x132)]='Unequip\x20an\x20item.';[a40i(0x12c)](a){const j=a40i,b=a[j(0x12d)]('\x20')[j(0x126)](),c=this[j(0x12e)]['unequip'](b);return this['logger'][j(0x13f)](j(0x133)+this['actor'][j(0x12f)]+'\x20unqeuiped\x20'+c),c;}}
1
+ const a40i=a40d;function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x131;let f=c[d];return f;},a40d(a,b);}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x137))/0x1*(parseInt(f(0x136))/0x2)+-parseInt(f(0x146))/0x3*(-parseInt(f(0x14a))/0x4)+parseInt(f(0x138))/0x5+-parseInt(f(0x13a))/0x6+parseInt(f(0x149))/0x7*(parseInt(f(0x13d))/0x8)+-parseInt(f(0x132))/0x9+parseInt(f(0x141))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x39043));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x142)]()[h(0x145)](h(0x143))[h(0x142)]()['constructor'](a40a)[h(0x145)](h(0x143));});a40a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a40i(0x140)]=a40i(0x148);static ['description']=a40i(0x13e);[a40i(0x13f)](a){const j=a40i,b=a[j(0x13c)]('\x20')[j(0x135)](),c=this['actor']['unequip'](b);return this[j(0x139)][j(0x144)](j(0x131)+this[j(0x133)][j(0x13b)]+j(0x147)+c),c;}}function a40c(){const k=['actor','apply','toLowerCase','411952TkNirz','2zeoyDa','668360PfaviJ','logger','2291118snVHjH','name','join','2792lSYyKc','Unequip\x20an\x20item.','execute','verb','9987520zbJCRW','toString','(((.+)+)+)+$','write','search','24117zcbKow','\x20unqeuiped\x20','unqeuip','3507jpnhAG','40pSsOfx','UnequipCommand:\x20','3242871yhixLz'];a40c=function(){return k;};return a40c();}
@@ -1 +1 @@
1
- const a41k=a41d;function a41c(){const n=['verb','actor','search','.\x20Result:\x20','1650825JSLeET','execute','inventory','isValidDirection','toLowerCase','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','get','description','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','exits','There\x27s\x20no\x20door\x20named\x20\x22','length','unlockItemOrSolution','UnlockCommand:\x20No\x20target\x20specified.','unlock','UnlockCommand:\x20','getItem','1275697DKalBx','Unlock\x20a\x20door.','(((.+)+)+)+$','currentLocation','2990742nyJOtl','has','hasItem','logger','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','apply','write','118672XNmjvl','3033MslBiK','2nuPKfm','name','669948RHRVqf','5540000QUWYlt','\x20is\x20attempted\x20to\x20unlock\x20','5343205DeXqVp','error','\x22\x20here.'];a41c=function(){return n;};return a41c();}(function(a,b){const h=a41d,c=a();while(!![]){try{const d=-parseInt(h(0xab))/0x1*(parseInt(h(0x8e))/0x2)+-parseInt(h(0xaf))/0x3+-parseInt(h(0x91))/0x4+parseInt(h(0x9a))/0x5+-parseInt(h(0x90))/0x6+-parseInt(h(0x93))/0x7+-parseInt(h(0x8c))/0x8*(-parseInt(h(0x8d))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xc27df));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a41d;if(c){const e=c[i(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const j=a41d;return a41a['toString']()[j(0x98)](j(0xad))['toString']()['constructor'](a41a)[j(0x98)](j(0xad));});a41a();function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x8b;let f=c[d];return f;},a41d(a,b);}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a41k(0x96)]=a41k(0xa8);static [a41k(0xa1)]=a41k(0xac);[a41k(0x9b)](a){const l=a41k;return this[l(0xa8)](a);}['unlock'](a){const m=a41k;if(a[m(0xa5)]===0x0)return this[m(0xb2)][m(0x94)](m(0xa7)),'Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.';const b=a[0x0][m(0x9e)](),c=this[m(0x97)][m(0xae)];if(this[m(0x9d)](b)&&c[m(0xa3)][m(0xb0)](b)){const d=c['exits'][m(0xa0)](b);if(d instanceof Door){const e=d[m(0xa6)]?.['toLowerCase']();if(e&&this['actor'][m(0x9c)][m(0xb1)](e)){const f=this['actor']['inventory'][m(0xaa)](e);if(f){const g=c['attemptUnlockExit'](b,f['name']);return this[m(0xb2)][m(0x8b)](m(0xa9)+this[m(0x97)]['name']+m(0x92)+b+m(0x99)+g),g;}}return this[m(0xb2)][m(0x8b)]('UnlockCommand:\x20'+this['actor'][m(0x8f)]+m(0xa2)+b+'.'),m(0xb3);}else return this[m(0xb2)][m(0x8b)](m(0xa9)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[m(0x8f)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+m(0x95);}else return this['logger'][m(0x8b)](m(0xa9)+b+m(0x9f)+c[m(0x8f)]+'.'),m(0xa4)+b+'\x22\x20here.';}}
1
+ const a41j=a41d;(function(a,b){const h=a41d,c=a();while(!![]){try{const d=parseInt(h(0x1ae))/0x1*(parseInt(h(0x1cf))/0x2)+parseInt(h(0x1af))/0x3+-parseInt(h(0x1ca))/0x4*(parseInt(h(0x1b3))/0x5)+parseInt(h(0x1a9))/0x6*(-parseInt(h(0x1b1))/0x7)+-parseInt(h(0x1c4))/0x8+parseInt(h(0x1cd))/0x9*(-parseInt(h(0x1c3))/0xa)+parseInt(h(0x1bf))/0xb*(parseInt(h(0x1b8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x93d77));function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a41d(a,b);}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 i=a41d;return a41a[i(0x1ac)]()[i(0x1ba)](i(0x1bb))[i(0x1ac)]()['constructor'](a41a)['search'](i(0x1bb));});a41a();import{Door}from'../models/door.js';import{Command}from'./command.js';function a41c(){const m=['getItem','name','toString','\x22\x20here.','989OBlYid','1187361gFvISE','unlock','35714GAfvDm','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','390zdbrYa','toLowerCase','inventory','hasItem','There\x27s\x20no\x20door\x20named\x20\x22','15924Sqcdtp','.\x20Result:\x20','search','(((.+)+)+)+$','description','actor','verb','23947BjSGhW','length','Unlock\x20a\x20door.','get','9090FkHdYu','8724008VlNGXF','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','execute','exits','logger','write','48548JZHHXC','UnlockCommand:\x20','isValidDirection','5193eBviCC','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','1630ihgShH','1086PPfkCi'];a41c=function(){return m;};return a41c();}export class UnlockCommand extends Command{static [a41j(0x1be)]=a41j(0x1b0);static [a41j(0x1bc)]=a41j(0x1c1);[a41j(0x1c6)](a){const k=a41j;return this[k(0x1b0)](a);}[a41j(0x1b0)](a){const l=a41j;if(a[l(0x1c0)]===0x0)return this[l(0x1c8)]['error']('UnlockCommand:\x20No\x20target\x20specified.'),l(0x1ce);const b=a[0x0]['toLowerCase'](),c=this[l(0x1bd)]['currentLocation'];if(this[l(0x1cc)](b)&&c[l(0x1c7)]['has'](b)){const d=c[l(0x1c7)][l(0x1c2)](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.[l(0x1b4)]();if(e&&this[l(0x1bd)][l(0x1b5)][l(0x1b6)](e)){const f=this[l(0x1bd)][l(0x1b5)][l(0x1aa)](e);if(f){const g=c['attemptUnlockExit'](b,f[l(0x1ab)]);return this[l(0x1c8)][l(0x1c9)]('UnlockCommand:\x20'+this[l(0x1bd)][l(0x1ab)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+l(0x1b9)+g),g;}}return this['logger'][l(0x1c9)]('UnlockCommand:\x20'+this['actor'][l(0x1ab)]+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),l(0x1c5);}else return this[l(0x1c8)]['write'](l(0x1cb)+b+l(0x1b2)+c[l(0x1ab)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+l(0x1ad);}else return this[l(0x1c8)]['write'](l(0x1cb)+b+l(0x1b2)+c[l(0x1ab)]+'.'),l(0x1b7)+b+l(0x1ad);}}
@@ -1 +1 @@
1
- const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x1ef))/0x1*(-parseInt(f(0x1f4))/0x2)+parseInt(f(0x1e7))/0x3*(-parseInt(f(0x1ea))/0x4)+-parseInt(f(0x1ee))/0x5*(parseInt(f(0x1dc))/0x6)+-parseInt(f(0x1d6))/0x7+parseInt(f(0x1e9))/0x8+-parseInt(f(0x1d7))/0x9+parseInt(f(0x1e1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xd5ee4));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x1d2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x1d3)]()[h(0x1d1)]('(((.+)+)+)+$')[h(0x1d3)]()[h(0x1d0)](a42a)[h(0x1d1)](h(0x1cf));});function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1cf;let f=c[d];return f;},a42d(a,b);}a42a();import{Command}from'./command.js';function a42c(){const k=['inventory','verb','actor','write','624462sjTLxA','join','You\x20can\x27t\x20use\x20the\x20','function','\x20in\x20this\x20way.','41900580nrbQCj','You\x20don\x27t\x20have\x20the\x20','\x20used\x20','\x20not\x20retrieved\x20from\x20','execute','description','729093CelGkM',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','1156560oHGZTh','8qBSTHk','toLowerCase','UseCommand:\x20','name','20CpPmhj','1CuDBbV','\x27s\x20inventory.','use','logger','getItem','1377560zPBHTI','(((.+)+)+)+$','constructor','search','apply','toString','\x20doesn\x27t\x20have\x20a\x20use\x20method.','hasItem','6259764YOfkDp','8756694NrdXuL'];a42c=function(){return k;};return a42c();}export class UseCommand extends Command{static [a42i(0x1d9)]='use';static [a42i(0x1e6)]='Use\x20an\x20item.';[a42i(0x1e5)](a){return this['use'](a);}[a42i(0x1f1)](a){const j=a42i,b=a[j(0x1dd)]('\x20')[j(0x1eb)]();if(!this[j(0x1da)][j(0x1d8)][j(0x1d5)](b))return this['logger'][j(0x1db)](j(0x1ec)+this[j(0x1da)][j(0x1ed)]+'\x20attempted\x20to\x20use\x20'+b+j(0x1e8)),j(0x1e2)+b+'\x20to\x20use.';const c=this['actor'][j(0x1d8)][j(0x1f3)](b);if(!c)return this[j(0x1f2)][j(0x1db)](j(0x1ec)+b+j(0x1e4)+this[j(0x1da)]['name']+j(0x1f0)),'You\x20don\x27t\x20have\x20the\x20'+b+'\x20to\x20use.';if(typeof c['use']===j(0x1df)){const d=c[j(0x1f1)]();return this['logger'][j(0x1db)]('UseCommand:\x20'+this['actor']['name']+j(0x1e3)+b+'.'),d;}else return this[j(0x1f2)][j(0x1db)](j(0x1ec)+b+j(0x1d4)),j(0x1de)+b+j(0x1e0);}}
1
+ function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1ed;let f=c[d];return f;},a42d(a,b);}const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0x20a))/0x1+-parseInt(f(0x1fc))/0x2+-parseInt(f(0x1f5))/0x3+parseInt(f(0x200))/0x4+parseInt(f(0x1f8))/0x5+parseInt(f(0x204))/0x6*(-parseInt(f(0x1f1))/0x7)+parseInt(f(0x20b))/0x8*(parseInt(f(0x1f0))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x76604));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x1ee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a['toString']()['search'](h(0x1f6))['toString']()[h(0x208)](a42a)[h(0x1f4)]('(((.+)+)+)+$');});a42a();import{Command}from'./command.js';export class UseCommand extends Command{static ['verb']=a42i(0x1fd);static [a42i(0x206)]=a42i(0x20d);[a42i(0x1f9)](a){const j=a42i;return this[j(0x1fd)](a);}[a42i(0x1fd)](a){const k=a42i,b=a[k(0x1fb)]('\x20')[k(0x203)]();if(!this[k(0x209)][k(0x1ed)]['hasItem'](b))return this['logger'][k(0x1fa)]('UseCommand:\x20'+this[k(0x209)][k(0x1f3)]+k(0x207)+b+',\x20which\x20is\x20not\x20in\x20their\x20inventory.'),k(0x20f)+b+k(0x1fe);const c=this[k(0x209)][k(0x1ed)][k(0x20e)](b);if(!c)return this[k(0x20c)][k(0x1fa)](k(0x201)+b+k(0x202)+this[k(0x209)][k(0x1f3)]+k(0x205)),k(0x20f)+b+k(0x1fe);if(typeof c[k(0x1fd)]==='function'){const d=c[k(0x1fd)]();return this[k(0x20c)][k(0x1fa)](k(0x201)+this[k(0x209)][k(0x1f3)]+k(0x1f7)+b+'.'),d;}else return this[k(0x20c)][k(0x1fa)](k(0x201)+b+k(0x1f2)),k(0x1ef)+b+k(0x1ff);}}function a42c(){const l=['actor','373165HUOojn','8RujQbA','logger','Use\x20an\x20item.','getItem','You\x20don\x27t\x20have\x20the\x20','inventory','apply','You\x20can\x27t\x20use\x20the\x20','13454667lOupDj','4230989PkwBHq','\x20doesn\x27t\x20have\x20a\x20use\x20method.','name','search','2043957PKBrwY','(((.+)+)+)+$','\x20used\x20','3372300dkQuOS','execute','write','join','1689146mpmlRI','use','\x20to\x20use.','\x20in\x20this\x20way.','290396gzhaIt','UseCommand:\x20','\x20not\x20retrieved\x20from\x20','toLowerCase','6RgFkOx','\x27s\x20inventory.','description','\x20attempted\x20to\x20use\x20','constructor'];a42c=function(){return l;};return a42c();}
@@ -1 +1 @@
1
- function a43c(){const m=['1090290TurXeH','301326zPmbYO','commandMap','2274222SczMZZ','12JksZGV','search','constructor','980768GaFDpH','toString','(((.+)+)+)+$','apply','5fOFrkh','33ZPufWX','getAllRegisteredCommands','10rMWPyx','79746qfuwNH','2970912xaSWzr','395472qOWQwh','9dWzXcK'];a43c=function(){return m;};return a43c();}const a43k=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x15e))/0x1*(-parseInt(f(0x15d))/0x2)+-parseInt(f(0x163))/0x3*(parseInt(f(0x166))/0x4)+-parseInt(f(0x15a))/0x5*(-parseInt(f(0x165))/0x6)+-parseInt(f(0x15f))/0x7+-parseInt(f(0x156))/0x8*(parseInt(f(0x161))/0x9)+-parseInt(f(0x162))/0xa*(-parseInt(f(0x15b))/0xb)+-parseInt(f(0x160))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x36948));function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x154;let f=c[d];return f;},a43d(a,b);}const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x157)]()[h(0x154)](h(0x158))['toString']()[h(0x155)](a43a)['search'](h(0x158));});a43a();export class CommandFactory{static ['commandMap']={};static['registerCommand'](a,b){const i=a43d;this[i(0x164)][a]=b;}static['createCommand'](a,b){const j=a43d,c=this[j(0x164)][a];if(c)return new c(b);return null;}static[a43k(0x15c)](){const l=a43k;return this[l(0x164)];}}
1
+ function a43c(){const k=['1560016RUoLYI','2230vuwkih','15aLlPfZ','485244IpUdaO','2629JVZaIE','7311NQqiAi','registerCommand','5kPlcja','apply','toString','createCommand','9iZVyxm','(((.+)+)+)+$','1315916LefBsq','search','737472iQpBFY','constructor','21578qfpFQC','commandMap','getAllRegisteredCommands'];a43c=function(){return k;};return a43c();}const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x1a6))/0x1+parseInt(f(0x19e))/0x2*(parseInt(f(0x1a3))/0x3)+-parseInt(f(0x1a4))/0x4*(-parseInt(f(0x194))/0x5)+-parseInt(f(0x19c))/0x6+-parseInt(f(0x19a))/0x7+parseInt(f(0x1a1))/0x8*(parseInt(f(0x198))/0x9)+-parseInt(f(0x1a2))/0xa*(-parseInt(f(0x1a5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x19b80));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x195)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x196)]()['search'](h(0x199))['toString']()[h(0x19d)](a43a)[h(0x19b)](h(0x199));});function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x194;let f=c[d];return f;},a43d(a,b);}a43a();export class CommandFactory{static [a43i(0x19f)]={};static[a43i(0x1a7)](a,b){const j=a43i;this[j(0x19f)][a]=b;}static[a43i(0x197)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static[a43i(0x1a0)](){return this['commandMap'];}}
@@ -1 +1 @@
1
- const a44j=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=parseInt(f(0x8b))/0x1+parseInt(f(0x8a))/0x2+parseInt(f(0x9b))/0x3+parseInt(f(0x9c))/0x4+parseInt(f(0xa1))/0x5*(-parseInt(f(0x93))/0x6)+-parseInt(f(0x96))/0x7+-parseInt(f(0xa5))/0x8*(parseInt(f(0x8c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x73ef4));const a44b=(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;};}()),a44a=a44b(this,function(){const g=a44d;return a44a[g(0xab)]()[g(0x89)](g(0xa7))[g(0xab)]()[g(0x9a)](a44a)[g(0x89)](g(0xa7));});a44a();import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{['createRoom'](a){const h=a44d,b=this[h(0x8f)](a),c=new Room(b);if(a['items']){const d=new Inventory();a[h(0x9e)][h(0x94)](e=>{const i=h;d[i(0x9f)](this['createItem'](e));}),c[h(0xa9)]=d;}return a[h(0x95)]&&c['setPuzzle'](this[h(0xa0)](a[h(0x95)])),c;}[a44j(0x9d)](a){const k=a44j;switch(a['type']){case'key':return new Key(a[k(0x97)],a[k(0xa6)]);case'book':return new Book(a['name'],a[k(0xa6)],a[k(0xa3)]);case'sword':return new Sword(a[k(0x97)],a[k(0xa6)]);case k(0xaa):return new Rifle(a[k(0x97)],a[k(0xa6)]);case k(0x92):return new Helmet(a[k(0x97)],a[k(0xa6)]);case k(0xa4):return new BodyArmor(a[k(0x97)],a[k(0xa6)]);case k(0xac):return new LegArmor(a[k(0x97)],a[k(0xa6)]);case k(0x91):return new Boots(a[k(0x97)],a[k(0xa6)]);case k(0x98):return new Gloves(a['name'],a[k(0xa6)]);case k(0x90):return new Gauntlets(a[k(0x97)],a[k(0xa6)]);default:return new BasicItem(a[k(0x97)],a['description']);}}['createPuzzle'](a){const l=a44j,b=this[l(0x9d)](a[l(0xa8)]);return new Puzzle({...a,'rewardItem':b});}[a44j(0x8f)](a){const m=a44j,b=a[m(0x8d)]&&RoomType[a[m(0x8d)]['toUpperCase']()]?RoomType[a['roomType'][m(0xa2)]()]:RoomType[m(0x8e)];return{'name':a[m(0x97)],'description':a['description'],'isStartRoom':a[m(0x99)],'roomType':b};}}function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x89;let f=c[d];return f;},a44d(a,b);}function a44c(){const n=['1061456mqKXNL','465362eESxeb','10199853TNXMBs','roomType','INSIDE','convertToRoomConfig','gauntlets','boots','helmet','4638486qZTHdJ','forEach','puzzle','221795jqeoHf','name','gloves','isStartRoom','constructor','2134416ixTQaO','2821556unGSIB','createItem','items','addItem','createPuzzle','5sWclIq','toUpperCase','content','bodyarmor','8aPPDCN','description','(((.+)+)+)+$','rewardItem','inventory','rifle','toString','legarmor','search'];a44c=function(){return n;};return a44c();}
1
+ const a44h=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=parseInt(f(0x1b8))/0x1*(-parseInt(f(0x1a1))/0x2)+parseInt(f(0x1a2))/0x3*(-parseInt(f(0x1ba))/0x4)+-parseInt(f(0x1b0))/0x5+parseInt(f(0x1b3))/0x6*(parseInt(f(0x1ad))/0x7)+-parseInt(f(0x1c0))/0x8+-parseInt(f(0x1ac))/0x9*(-parseInt(f(0x1ae))/0xa)+parseInt(f(0x19c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x88bed));const a44b=(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;};}()),a44a=a44b(this,function(){const g=a44d;return a44a[g(0x1a6)]()[g(0x1aa)](g(0x1bb))['toString']()['constructor'](a44a)[g(0x1aa)](g(0x1bb));});a44a();import{Room,Puzzle,Inventory}from'../models/_index.js';function a44c(){const n=['inventory','1078785aTXCIW','315973BZXQKT','40BsinBn','convertToRoomConfig','2773315AbChtK','createPuzzle','items','78aMmtra','sword','boots','rewardItem','bodyarmor','47OqttZZ','roomType','72IrSTya','(((.+)+)+)+$','forEach','legarmor','key','name','7857400DUFOll','puzzle','isStartRoom','21784136JhPxxc','gloves','gauntlets','description','createRoom','10240DgXZQa','118176IhUora','content','toUpperCase','createItem','toString','type','setPuzzle','INSIDE','search'];a44c=function(){return n;};return a44c();}import{RoomType}from'../types/enums.js';function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x19c;let f=c[d];return f;},a44d(a,b);}import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{[a44h(0x1a0)](a){const i=a44h,b=this['convertToRoomConfig'](a),c=new Room(b);if(a['items']){const d=new Inventory();a[i(0x1b2)][i(0x1bc)](e=>{const j=i;d['addItem'](this[j(0x1a5)](e));}),c[i(0x1ab)]=d;}return a[i(0x1c1)]&&c[i(0x1a8)](this[i(0x1b1)](a[i(0x1c1)])),c;}[a44h(0x1a5)](a){const k=a44h;switch(a[k(0x1a7)]){case k(0x1be):return new Key(a['name'],a['description']);case'book':return new Book(a[k(0x1bf)],a[k(0x19f)],a[k(0x1a3)]);case k(0x1b4):return new Sword(a[k(0x1bf)],a[k(0x19f)]);case'rifle':return new Rifle(a[k(0x1bf)],a[k(0x19f)]);case'helmet':return new Helmet(a[k(0x1bf)],a[k(0x19f)]);case k(0x1b7):return new BodyArmor(a[k(0x1bf)],a[k(0x19f)]);case k(0x1bd):return new LegArmor(a['name'],a[k(0x19f)]);case k(0x1b5):return new Boots(a[k(0x1bf)],a[k(0x19f)]);case k(0x19d):return new Gloves(a[k(0x1bf)],a[k(0x19f)]);case k(0x19e):return new Gauntlets(a[k(0x1bf)],a[k(0x19f)]);default:return new BasicItem(a[k(0x1bf)],a[k(0x19f)]);}}[a44h(0x1b1)](a){const l=a44h,b=this[l(0x1a5)](a[l(0x1b6)]);return new Puzzle({...a,'rewardItem':b});}[a44h(0x1af)](a){const m=a44h,b=a[m(0x1b9)]&&RoomType[a[m(0x1b9)][m(0x1a4)]()]?RoomType[a[m(0x1b9)][m(0x1a4)]()]:RoomType[m(0x1a9)];return{'name':a[m(0x1bf)],'description':a[m(0x19f)],'isStartRoom':a[m(0x1c2)],'roomType':b};}}
@@ -1 +1 @@
1
- const a45j=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=-parseInt(h(0xb0))/0x1+-parseInt(h(0xcc))/0x2*(-parseInt(h(0xcd))/0x3)+parseInt(h(0xda))/0x4*(parseInt(h(0xc5))/0x5)+parseInt(h(0xaf))/0x6+parseInt(h(0xb6))/0x7*(parseInt(h(0xb3))/0x8)+-parseInt(h(0xd5))/0x9+-parseInt(h(0xbb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x88636));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const i=a45d;return a45a[i(0xc8)]()[i(0xbd)](i(0xc4))[i(0xc8)]()['constructor'](a45a)[i(0xbd)]('(((.+)+)+)+$');});a45a();import{Scene}from'./models/scene.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xae;let f=c[d];return f;},a45d(a,b);}import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';function a45c(){const r=['equip','search','getDescription','take','Welcome,\x20','initialize','clear','drop','(((.+)+)+)+$','5820onqHoZ','determineStartRoom','maka','toString','player','slice','registerCommand','49736CmEGCD','75FFJUEN','getInstance','scene','getWelcomeMessage','say','unlock','trim','handleInput','728604pBMUjW','solve','rooms','instance','name','1784iOJSwF','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','toLowerCase','Available\x20Commands:\x0a','use','getAllRegisteredCommands','currentRoom','3386022MLpxHK','818492qzuWAL','getHelpMessage','currentLocation','198608JVLfXi','-\x20quit:\x20Exit\x20the\x20game.\x0a','getRooms','259RWyphH','lock','registerCommands','hasOwnProperty','-\x20clear:\x20Clear\x20the\x20screen.\x0a','11656490eRrNnl'];a45c=function(){return r;};return a45c();}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 [a45j(0xd8)];['scene'];[a45j(0xc9)];[a45j(0xae)];[a45j(0xd7)];constructor(a,b){const k=a45j;this[k(0xc9)]=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this['scene'][k(0xc1)](),this[k(0xc9)][k(0xb2)]=this[k(0xc6)](),this[k(0xb8)]();}[a45j(0xb8)](){const l=a45j;CommandFactory[l(0xcb)]('look',LookCommand),CommandFactory['registerCommand']('go',GoCommand),CommandFactory[l(0xcb)](l(0xbf),TakeCommand),CommandFactory[l(0xcb)](l(0xde),UseCommand),CommandFactory[l(0xcb)](l(0xbc),EquipCommand),CommandFactory[l(0xcb)]('unequip',UnequipCommand),CommandFactory[l(0xcb)](l(0xd6),SolveCommand),CommandFactory[l(0xcb)](l(0xc3),DropCommand),CommandFactory[l(0xcb)](l(0xd2),UnlockCommand),CommandFactory[l(0xcb)](l(0xb7),LockCommand),CommandFactory[l(0xcb)]('search',SearchCommand),CommandFactory[l(0xcb)](l(0xd1),SayCommand);}[a45j(0xc6)](){const m=a45j;return this['scene'][m(0xc6)]();}[a45j(0xd0)](){const n=a45j;return n(0xc0)+this['player'][n(0xd9)];}static[a45j(0xce)](a,b){const o=a45j;return!Game['instance']&&(Game[o(0xd8)]=new Game(a,b)),Game[o(0xd8)];}[a45j(0xd4)](a){const p=a45j,b=a[p(0xd3)]()['split']('\x20'),c=b[0x0][p(0xdc)](),d=b[p(0xca)](0x1);if(c==='quit')return null;if(c===p(0xc7))return p(0xdb);if(c==='help')return this[p(0xb1)]();if(c===p(0xc2))return'';const e={'actor':this[p(0xc9)],'rooms':this[p(0xcf)][p(0xb5)](),'scene':this[p(0xcf)]},f=CommandFactory['createCommand'](c,e);if(f){const g=f['execute'](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}[a45j(0xb1)](){const q=a45j,a=CommandFactory[q(0xdf)]();let b=q(0xdd);for(const c in a){if(a[q(0xb9)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[q(0xbe)]()+'\x0a';}}return b+=q(0xba),b+=q(0xb4),b;}}
1
+ const a45j=a45d;(function(a,b){const h=a45d,c=a();while(!![]){try{const d=parseInt(h(0xfc))/0x1*(parseInt(h(0x112))/0x2)+-parseInt(h(0xf9))/0x3+parseInt(h(0xed))/0x4*(-parseInt(h(0xf6))/0x5)+-parseInt(h(0x10a))/0x6*(-parseInt(h(0xfd))/0x7)+parseInt(h(0xf2))/0x8+-parseInt(h(0xe8))/0x9+parseInt(h(0xea))/0xa*(parseInt(h(0x115))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xf091f));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const i=a45d;return a45a[i(0xf0)]()[i(0x102)](i(0x104))[i(0xf0)]()[i(0xf1)](a45a)['search'](i(0x104));});a45a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';function a45c(){const r=['1907241xuvvkK','getWelcomeMessage','registerCommand','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','split','search','trim','(((.+)+)+)+$','say','slice','currentLocation','Available\x20Commands:\x0a','getAllRegisteredCommands','6PJkiZs','hasOwnProperty','scene','-\x20quit:\x20Exit\x20the\x20game.\x0a','drop','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','handleInput','instance','2VaHUes','unequip','unlock','25817dxBLFS','execute','take','registerCommands','85473yaqhGR','getRooms','5990kIcRKL','clear','name','1916188vzhgNs','player','currentRoom','toString','constructor','7527648scnZTc','equip','lock','initialize','15JjpkKh','quit','determineStartRoom','2497104fNjGIQ','Welcome,\x20','getHelpMessage','645109oqYXQJ'];a45c=function(){return r;};return a45c();}import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xe8;let f=c[d];return f;},a45d(a,b);}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 [a45j(0x111)];[a45j(0x10c)];[a45j(0xee)];[a45j(0xef)];['rooms'];constructor(a,b){const k=a45j;this[k(0xee)]=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this[k(0x10c)][k(0xf5)](),this[k(0xee)][k(0x107)]=this[k(0xf8)](),this['registerCommands']();}[a45j(0x118)](){const l=a45j;CommandFactory[l(0xff)]('look',LookCommand),CommandFactory[l(0xff)]('go',GoCommand),CommandFactory['registerCommand'](l(0x117),TakeCommand),CommandFactory[l(0xff)]('use',UseCommand),CommandFactory[l(0xff)](l(0xf3),EquipCommand),CommandFactory[l(0xff)](l(0x113),UnequipCommand),CommandFactory['registerCommand']('solve',SolveCommand),CommandFactory[l(0xff)](l(0x10e),DropCommand),CommandFactory[l(0xff)](l(0x114),UnlockCommand),CommandFactory[l(0xff)](l(0xf4),LockCommand),CommandFactory['registerCommand'](l(0x102),SearchCommand),CommandFactory['registerCommand'](l(0x105),SayCommand);}[a45j(0xf8)](){const m=a45j;return this[m(0x10c)][m(0xf8)]();}[a45j(0xfe)](){const n=a45j;return n(0xfa)+this[n(0xee)][n(0xec)];}static['getInstance'](a,b){const o=a45j;return!Game[o(0x111)]&&(Game[o(0x111)]=new Game(a,b)),Game[o(0x111)];}[a45j(0x110)](a){const p=a45j,b=a[p(0x103)]()[p(0x101)]('\x20'),c=b[0x0]['toLowerCase'](),d=b[p(0x106)](0x1);if(c===p(0xf7))return null;if(c==='maka')return p(0x10f);if(c==='help')return this[p(0xfb)]();if(c===p(0xeb))return'';const e={'actor':this[p(0xee)],'rooms':this['scene'][p(0xe9)](),'scene':this[p(0x10c)]},f=CommandFactory['createCommand'](c,e);if(f){const g=f[p(0x116)](d);return g;}return p(0x100)+c+'\x22.';}[a45j(0xfb)](){const q=a45j,a=CommandFactory[q(0x109)]();let b=q(0x108);for(const c in a){if(a[q(0x10b)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d['getDescription']()+'\x0a';}}return b+='-\x20clear:\x20Clear\x20the\x20screen.\x0a',b+=q(0x10d),b;}}
@@ -1 +1 @@
1
- (function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0x1aa))/0x1+parseInt(f(0x1b2))/0x2+-parseInt(f(0x1b4))/0x3+parseInt(f(0x1b0))/0x4*(-parseInt(f(0x1b6))/0x5)+parseInt(f(0x1b5))/0x6*(-parseInt(f(0x1b3))/0x7)+-parseInt(f(0x1a9))/0x8*(parseInt(f(0x1b1))/0x9)+parseInt(f(0x1af))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x551cb));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x1ab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0x1ad)]()['search']('(((.+)+)+)+$')[h(0x1ad)]()[h(0x1ac)](a46a)['search'](h(0x1ae));});a46a();function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x1a9;var f=c[d];return f;},a46d(a,b);}export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';function a46c(){var i=['1634946NZyzyg','55NAguWa','48080flEJBW','678470CPtMtZ','apply','constructor','toString','(((.+)+)+)+$','17027320RTFgfl','146180KeWhNy','765rssTxu','1288492hpRPHQ','7rGOylV','403659gyOEJX'];a46c=function(){return i;};return a46c();}export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
1
+ (function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0x148))/0x1*(-parseInt(f(0x149))/0x2)+parseInt(f(0x151))/0x3+parseInt(f(0x150))/0x4*(-parseInt(f(0x14f))/0x5)+parseInt(f(0x14c))/0x6+parseInt(f(0x154))/0x7+-parseInt(f(0x155))/0x8*(-parseInt(f(0x14e))/0x9)+parseInt(f(0x14a))/0xa*(-parseInt(f(0x14b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xb33c8));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var g=a46d;return a46a[g(0x152)]()[g(0x14d)](g(0x147))[g(0x152)]()[g(0x153)](a46a)[g(0x14d)]('(((.+)+)+)+$');});a46a();function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x147;var f=c[d];return f;},a46d(a,b);}function a46c(){var h=['5652486zjpgmn','16YHnIej','(((.+)+)+)+$','231087TzDldb','12cDzyTP','3042530mZLpcA','22zfUGyi','4640754LsLwzA','search','1802826CbdtDp','1780lCHZbG','6284wLJECj','3920613BnRBwJ','toString','constructor'];a46c=function(){return h;};return a46c();}export*from'./door.js';export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
@@ -1 +1 @@
1
- var a47i=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=parseInt(f(0x201))/0x1+parseInt(f(0x206))/0x2+-parseInt(f(0x1f1))/0x3+parseInt(f(0x20d))/0x4*(parseInt(f(0x1f6))/0x5)+parseInt(f(0x208))/0x6*(parseInt(f(0x205))/0x7)+parseInt(f(0x1fc))/0x8+-parseInt(f(0x210))/0x9*(parseInt(f(0x20b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x51faf));var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a47d;if(c){var e=c[g(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var h=a47d;return a47a[h(0x1fd)]()[h(0x1f7)](h(0x1fa))[h(0x1fd)]()[h(0x1f3)](a47a)[h(0x1f7)](h(0x1fa));});a47a();import{Logger}from'../utilities/logger.js';function a47c(){var o=['Failed\x20to\x20unlock\x20door:\x20','checkIfLockable','7190900uIDbRh','\x20and\x20','19004pVzqGn','To\x20','logger','18NCqAlB','Door\x20created\x20between\x20','951006yUAbUv','apply','constructor','attemptUnlock','write','565FGhYuf','search','isLocked','isLockable','(((.+)+)+)+$','name','3169712ciJLqJ','toString','roomA','getOtherSide','roomB','406109ASjVMk','.\x20Is\x20Locked:\x20','checkIfLocked','unlockItemOrSolution','1069369WjMjjh','1198040rJmCCl','Door\x20unlocked:\x20','6ilAVCy'];a47c=function(){return o;};return a47c();}function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x1f1;var f=c[d];return f;},a47d(a,b);}import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];[a47i(0x200)];[a47i(0x1f8)];['unlockItemOrSolution'];['name'];[a47i(0x20f)];[a47i(0x1f9)];constructor(a){var j=a47i;super(),this[j(0x1fe)]=a[j(0x1fe)],this[j(0x200)]=a['roomB'],this[j(0x1f8)]=a[j(0x1f8)]||![],this[j(0x204)]=a['unlockItemOrSolution'],this[j(0x1fb)]=a[j(0x1fb)]?capitalCase(a['name']):j(0x20e)+a[j(0x200)][j(0x1fb)],this['logger']=Logger['getInstance'](),this[j(0x1f9)]=!!a[j(0x204)],this[j(0x20f)][j(0x1f5)](j(0x211)+this[j(0x1fe)][j(0x1fb)]+j(0x20c)+this[j(0x200)]['name']+j(0x202)+this[j(0x1f8)]);}[a47i(0x1ff)](a){var k=a47i;return this[k(0x1fe)]===a?this[k(0x200)]:this['roomA'];}[a47i(0x1f4)](a){var l=a47i;if(this['isLocked']&&this[l(0x204)]&&this[l(0x204)]===a)return this['isLocked']=![],this[l(0x20f)]['write'](l(0x207)+this[l(0x1fb)]+'.\x20Used:\x20'+a),!![];return this['logger']['write'](l(0x209)+this['name']+'.\x20Used:\x20'+a),![];}[a47i(0x203)](){var m=a47i;return this[m(0x1f8)];}[a47i(0x20a)](){var n=a47i;return this[n(0x1f9)];}}
1
+ var a47i=a47d;(function(a,b){var f=a47d,c=a();while(!![]){try{var d=parseInt(f(0x10e))/0x1+parseInt(f(0x11c))/0x2+-parseInt(f(0x122))/0x3+-parseInt(f(0x111))/0x4+-parseInt(f(0x113))/0x5*(-parseInt(f(0x124))/0x6)+parseInt(f(0x123))/0x7*(-parseInt(f(0x121))/0x8)+parseInt(f(0x110))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xd995b));var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a47d;if(c){var e=c[g(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var h=a47d;return a47a[h(0x11d)]()['search']('(((.+)+)+)+$')[h(0x11d)]()[h(0x11e)](a47a)['search'](h(0x112));});a47a();import{Logger}from'../utilities/logger.js';function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x109;var f=c[d];return f;},a47d(a,b);}import{capitalCase}from'change-case';function a47c(){var o=['7818984mZdoKL','301184FmDHIK','(((.+)+)+)+$','2705hJHsoA','Door\x20unlocked:\x20','checkIfLocked','logger','Failed\x20to\x20unlock\x20door:\x20','write','roomB','.\x20Used:\x20','getInstance','3172204VGZAuO','toString','constructor','\x20and\x20','roomA','8knMmVz','3968985LITQzy','4552450kwIfHw','4962weikiR','.\x20Is\x20Locked:\x20','isLocked','unlockItemOrSolution','Door\x20created\x20between\x20','apply','To\x20','isLockable','attemptUnlock','name','37583WGzSrd','getOtherSide'];a47c=function(){return o;};return a47c();}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a47i(0x120)];['roomB'];['isLocked'];[a47i(0x127)];['name'];[a47i(0x116)];[a47i(0x10b)];constructor(a){var j=a47i;super(),this[j(0x120)]=a[j(0x120)],this['roomB']=a[j(0x119)],this[j(0x126)]=a[j(0x126)]||![],this[j(0x127)]=a[j(0x127)],this[j(0x10d)]=a[j(0x10d)]?capitalCase(a['name']):j(0x10a)+a[j(0x119)]['name'],this[j(0x116)]=Logger[j(0x11b)](),this['isLockable']=!!a[j(0x127)],this['logger'][j(0x118)](j(0x128)+this[j(0x120)][j(0x10d)]+j(0x11f)+this['roomB'][j(0x10d)]+j(0x125)+this[j(0x126)]);}[a47i(0x10f)](a){var k=a47i;return this[k(0x120)]===a?this['roomB']:this[k(0x120)];}[a47i(0x10c)](a){var l=a47i;if(this[l(0x126)]&&this[l(0x127)]&&this[l(0x127)]===a)return this['isLocked']=![],this[l(0x116)][l(0x118)](l(0x114)+this[l(0x10d)]+l(0x11a)+a),!![];return this['logger'][l(0x118)](l(0x117)+this[l(0x10d)]+'.\x20Used:\x20'+a),![];}[a47i(0x115)](){var m=a47i;return this[m(0x126)];}['checkIfLockable'](){var n=a47i;return this[n(0x10b)];}}
@@ -1 +1 @@
1
- const a48i=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0x158))/0x1*(parseInt(f(0x157))/0x2)+parseInt(f(0x166))/0x3+parseInt(f(0x15e))/0x4+-parseInt(f(0x168))/0x5+parseInt(f(0x17b))/0x6+-parseInt(f(0x16d))/0x7+parseInt(f(0x161))/0x8*(-parseInt(f(0x15d))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x66936));function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x153;let f=c[d];return f;},a48d(a,b);}const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a[h(0x156)]()[h(0x164)]('(((.+)+)+)+$')[h(0x156)]()[h(0x169)](a48a)[h(0x164)](h(0x159));});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';function a48c(){const r=['toLowerCase','Failed\x20to\x20remove\x20item:\x20','4533564aMzzHm','removeItem','values','.\x20Item\x20not\x20found.','toString','182imYiCO','3521LBpBhK','(((.+)+)+)+$','Removed\x20item:\x20','logger','getInstance','1233npggWf','2011428eCduPF','delete','Listed\x20items\x20in\x20inventory:\x20','14896srsHHe','getItem','Retrieved\x20details\x20for\x20item:\x20','search','items','1328148agDMqN','\x20to\x20inventory.','2818725OLZbFW','constructor','addItem','Added\x20item:\x20','set','5478123pGrNrF','apply','getWeight','get','write','name','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','\x20from\x20inventory.','.\x20Exists:\x20','keys','listItems','getAllItems'];a48c=function(){return r;};return a48c();}export class Inventory extends AbstractInventory{[a48i(0x165)];[a48i(0x15b)];constructor(){const j=a48i;super(),this[j(0x165)]=new Map(),this[j(0x15b)]=Logger[j(0x15c)]();}[a48i(0x16a)](a){const k=a48i;this[k(0x165)][k(0x16c)](a['name'][k(0x179)](),a),this[k(0x15b)][k(0x171)](k(0x16b)+a[k(0x172)]+k(0x167));}[a48i(0x153)](a){const l=a48i,b=this[l(0x162)](a);if(b)return this[l(0x165)][l(0x15f)](a['toLowerCase']()),this[l(0x15b)][l(0x171)](l(0x15a)+a+l(0x174)),b;return this['logger'][l(0x171)](l(0x17a)+a+'.\x20Item\x20not\x20found.'),null;}['hasItem'](a){const m=a48i,b=this['items']['has'](a[m(0x179)]()),c=[...this[m(0x165)][m(0x176)]()];return this[m(0x15b)][m(0x171)]('Checked\x20for\x20item:\x20'+a+'\x20in\x20'+c['join'](',\x20')+m(0x175)+b+'.'),b;}[a48i(0x162)](a){const n=a48i,b=this['items'][n(0x170)](a[n(0x179)]())||null;return b?this[n(0x15b)]['write'](n(0x163)+a+'.'):this[n(0x15b)][n(0x171)](n(0x173)+a+n(0x155)),b;}[a48i(0x177)](){const o=a48i,a=[...this[o(0x165)][o(0x176)]()],b=a['map'](c=>capitalCase(c));return this['logger'][o(0x171)](o(0x160)+b['join'](',\x20')+'.'),a;}[a48i(0x16f)](){const p=a48i;let a=0x0;for(const b of this[p(0x165)][p(0x154)]()){a+=b['weight'];}return a;}[a48i(0x178)](){const q=a48i;return[...this['items'][q(0x154)]()];}}
1
+ const a48i=a48d;function a48c(){const r=['.\x20Item\x20not\x20found.','146475EDMrmD','Added\x20item:\x20','toString','getAllItems','333748eqUUiy','5rjSGiu','\x20to\x20inventory.','addItem','637OstTnn','search','Removed\x20item:\x20','2626833RuGBws','listItems','items','apply','Failed\x20to\x20remove\x20item:\x20','1310538VobHWC','values','10026AQpayp','toLowerCase','52NtksiM','getItem','8560uDkmuI','weight','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','\x20from\x20inventory.','logger','Retrieved\x20details\x20for\x20item:\x20','Listed\x20items\x20in\x20inventory:\x20','64kRehDJ','set','.\x20Exists:\x20','map','name','getInstance','2MkKSbA','(((.+)+)+)+$','join','write','keys','Checked\x20for\x20item:\x20','201804jUyGXm','10vkFiEo'];a48c=function(){return r;};return a48c();}function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x151;let f=c[d];return f;},a48d(a,b);}(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x163))/0x1*(-parseInt(f(0x170))/0x2)+-parseInt(f(0x152))/0x3*(-parseInt(f(0x15d))/0x4)+-parseInt(f(0x171))/0x5*(-parseInt(f(0x17c))/0x6)+-parseInt(f(0x174))/0x7*(parseInt(f(0x156))/0x8)+parseInt(f(0x16c))/0x9+-parseInt(f(0x16a))/0xa*(parseInt(f(0x177))/0xb)+parseInt(f(0x169))/0xc*(-parseInt(f(0x154))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x3556d));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a48d;if(c){const e=c[g(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const h=a48d;return a48a['toString']()[h(0x175)](h(0x164))[h(0x16e)]()['constructor'](a48a)[h(0x175)](h(0x164));});a48a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a48i(0x179)];[a48i(0x15a)];constructor(){const j=a48i;super(),this[j(0x179)]=new Map(),this['logger']=Logger[j(0x162)]();}[a48i(0x173)](a){const k=a48i;this[k(0x179)][k(0x15e)](a[k(0x161)]['toLowerCase'](),a),this[k(0x15a)]['write'](k(0x16d)+a[k(0x161)]+k(0x172));}['removeItem'](a){const l=a48i,b=this[l(0x155)](a);if(b)return this[l(0x179)]['delete'](a[l(0x153)]()),this[l(0x15a)][l(0x166)](l(0x176)+a+l(0x159)),b;return this[l(0x15a)][l(0x166)](l(0x17b)+a+l(0x16b)),null;}['hasItem'](a){const m=a48i,b=this['items']['has'](a[m(0x153)]()),c=[...this[m(0x179)][m(0x167)]()];return this[m(0x15a)]['write'](m(0x168)+a+'\x20in\x20'+c['join'](',\x20')+m(0x15f)+b+'.'),b;}[a48i(0x155)](a){const n=a48i,b=this[n(0x179)]['get'](a[n(0x153)]())||null;return b?this['logger'][n(0x166)](n(0x15b)+a+'.'):this[n(0x15a)]['write'](n(0x158)+a+n(0x16b)),b;}[a48i(0x178)](){const o=a48i,a=[...this['items']['keys']()],b=a[o(0x160)](c=>capitalCase(c));return this[o(0x15a)][o(0x166)](o(0x15c)+b[o(0x165)](',\x20')+'.'),a;}['getWeight'](){const p=a48i;let a=0x0;for(const b of this[p(0x179)][p(0x151)]()){a+=b[p(0x157)];}return a;}[a48i(0x16f)](){const q=a48i;return[...this['items'][q(0x151)]()];}}
@@ -1 +1 @@
1
- var a49i=a49d;function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x11c;var f=c[d];return f;},a49d(a,b);}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x134))/0x1*(-parseInt(f(0x128))/0x2)+-parseInt(f(0x126))/0x3+-parseInt(f(0x129))/0x4*(-parseInt(f(0x127))/0x5)+parseInt(f(0x11e))/0x6*(-parseInt(f(0x137))/0x7)+parseInt(f(0x11f))/0x8*(parseInt(f(0x131))/0x9)+-parseInt(f(0x138))/0xa+parseInt(f(0x120))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xa2d51));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x125)]()['search'](h(0x123))[h(0x125)]()[h(0x12c)](a49a)[h(0x124)](h(0x123));});function a49c(){var l=['texture','description','2056338NXphTf','You\x20use\x20the\x20','uuid','32GbtexK','use','shape','3263001hppTDe','13112730uLokQE','size','name','6NBDsZV','32PPdzpm','12984664FgyybF','.\x20Nothing\x20special\x20happens.','apply','(((.+)+)+)+$','search','toString','3806481sNziCR','303930pMAKKd','32794lxbqsA','72gXUsfT','color','rating','constructor','category','weight'];a49c=function(){return l;};return a49c();}a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a49i(0x133)];['name'];[a49i(0x130)];[a49i(0x11c)];[a49i(0x12d)];[a49i(0x136)];[a49i(0x12a)];[a49i(0x12f)];['rating'];[a49i(0x12e)];constructor(a){var j=a49i;super(),this[j(0x11d)]=a[j(0x11d)],this[j(0x130)]=a[j(0x130)],this['size']=a[j(0x11c)],this[j(0x12d)]=a[j(0x12d)],this[j(0x136)]=a[j(0x136)],this[j(0x12a)]=a['color'],this['texture']=a[j(0x12f)],this[j(0x12b)]=a[j(0x12b)],this[j(0x12e)]=a[j(0x12e)],this[j(0x133)]=a49e();}[a49i(0x135)](){var k=a49i;return k(0x132)+this[k(0x11d)]+k(0x121);}}
1
+ var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0xe4))/0x1+-parseInt(f(0xec))/0x2+-parseInt(f(0xe6))/0x3+-parseInt(f(0xe8))/0x4+-parseInt(f(0xe5))/0x5+-parseInt(f(0xeb))/0x6+parseInt(f(0xef))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x2ae8b));function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xdf;var f=c[d];return f;},a49d(a,b);}function a49c(){var k=['2703260hKyAOc','name','color','description','toString','use','uuid','size','weight','shape','289321ZescfG','776185LysARu','177714JlGoFW','texture','467204RaIMoQ','apply','category','245070LUoinO','255250kTkHzm','rating','(((.+)+)+)+$'];a49c=function(){return k;};return a49c();}var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0xf3)]()['search']('(((.+)+)+)+$')[h(0xf3)]()['constructor'](a49a)['search'](h(0xee));});a49a();import{v4 as a49e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{['uuid'];['name'];[a49i(0xf2)];[a49i(0xe1)];[a49i(0xea)];[a49i(0xe3)];['color'];[a49i(0xe7)];['rating'];[a49i(0xe2)];constructor(a){var j=a49i;super(),this['name']=a[j(0xf0)],this[j(0xf2)]=a[j(0xf2)],this[j(0xe1)]=a[j(0xe1)],this[j(0xea)]=a[j(0xea)],this[j(0xe3)]=a['shape'],this[j(0xf1)]=a[j(0xf1)],this[j(0xe7)]=a[j(0xe7)],this[j(0xed)]=a[j(0xed)],this['weight']=a[j(0xe2)],this[j(0xe0)]=a49e();}[a49i(0xdf)](){return'You\x20use\x20the\x20'+this['name']+'.\x20Nothing\x20special\x20happens.';}}
@@ -1 +1 @@
1
- function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x9e;let f=c[d];return f;},a50d(a,b);}function a50c(){const n=['75694UshLMs','floor','1836945BcCTqq','execute','search','constructor','6TKkPUc','12519027BZiThp','149720laSAcN','moveTo','rooms','(((.+)+)+)+$','8AgjFev','_name','name','scene','autonomousMove','1821756GmKUlC','_dialogue','toString','random','7484988jNqJme','length','2413074Wxwuxf'];a50c=function(){return n;};return a50c();}const a50h=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0xa6))/0x1+-parseInt(f(0x9f))/0x2+parseInt(f(0xa5))/0x3+parseInt(f(0xae))/0x4+-parseInt(f(0xa8))/0x5*(-parseInt(f(0xac))/0x6)+-parseInt(f(0xa3))/0x7+-parseInt(f(0xb2))/0x8*(-parseInt(f(0xad))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xa9da0));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(0xa1)]()['search'](g(0xb1))[g(0xa1)]()[g(0xab)](a50a)[g(0xaa)]('(((.+)+)+)+$');});a50a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a50h(0xb3)];['_dialogue'];[a50h(0xb0)];['scene'];constructor(a,b,c,d){const i=a50h;super(d),this[i(0xb3)]=a,this[i(0xa0)]=b,this['rooms']=c;}get[a50h(0xb4)](){const j=a50h;return this[j(0xb3)];}['speak'](){const k=a50h;return this[k(0xa0)][Math[k(0xa7)](Math[k(0xa2)]()*this[k(0xa0)]['length'])];}[a50h(0x9e)](a){const l=a50h,b=a[Math['floor'](Math[l(0xa2)]()*a[l(0xa4)])];this[l(0xaf)](b['name']);}['moveTo'](a){const m=a50h,b={'actor':this,'rooms':this[m(0xb0)],'scene':this[m(0xb5)]},c=new GoCommand(b);c[m(0xa9)]([a]);}}
1
+ const a50h=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=-parseInt(f(0x193))/0x1*(parseInt(f(0x196))/0x2)+-parseInt(f(0x1a4))/0x3+-parseInt(f(0x1a5))/0x4+-parseInt(f(0x1a0))/0x5*(parseInt(f(0x19b))/0x6)+parseInt(f(0x1a8))/0x7*(-parseInt(f(0x194))/0x8)+parseInt(f(0x1a6))/0x9+parseInt(f(0x1a7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x693bf));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(0x1a9)]()[g(0x19e)](g(0x1a1))[g(0x1a9)]()[g(0x19f)](a50a)['search']('(((.+)+)+)+$');});a50a();import{Player}from'./player.js';function a50c(){const n=['_name','speak','search','constructor','4780XzvJfT','(((.+)+)+)+$','random','rooms','310284HbLBUA','1322004EAJfvv','7205868dtDRhI','18115280CxgHJR','7FCxQAM','toString','name','_dialogue','1KDxtVI','6635384ehvRSX','autonomousMove','1676882WVakAW','length','moveTo','scene','floor','498wnnYuA'];a50c=function(){return n;};return a50c();}import{GoCommand}from'../commands/go.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x193;let f=c[d];return f;},a50d(a,b);}export class NPC extends Player{[a50h(0x19c)];[a50h(0x1ab)];[a50h(0x1a3)];[a50h(0x199)];constructor(a,b,c,d){const i=a50h;super(d),this[i(0x19c)]=a,this[i(0x1ab)]=b,this['rooms']=c;}get[a50h(0x1aa)](){const j=a50h;return this[j(0x19c)];}[a50h(0x19d)](){const k=a50h;return this[k(0x1ab)][Math[k(0x19a)](Math[k(0x1a2)]()*this['_dialogue'][k(0x197)])];}[a50h(0x195)](a){const l=a50h,b=a[Math[l(0x19a)](Math[l(0x1a2)]()*a[l(0x197)])];this[l(0x198)](b['name']);}[a50h(0x198)](a){const m=a50h,b={'actor':this,'rooms':this[m(0x1a3)],'scene':this[m(0x199)]},c=new GoCommand(b);c['execute']([a]);}}
@@ -1 +1 @@
1
- const a51i=a51d;function a51c(){const B=['name','currentWeight','canEquip','toString','values','unequipBySlot','weapon','inventory','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','13404064buPQFz','off','(((.+)+)+)+$','enterRoom','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','toLowerCase','\x20from\x20player\x27s\x20inventory.','You\x20equipped\x20','equip','torso','LegArmor','1651360KWtBft','legarmor','inventoryItems','You\x20unequipped\x20','includes','startLocation','29018xaBzbG','_maxCarryingWeight','You\x20can\x27t\x20equip\x20','unequip','log','determineEquipmentSlot','speak','bind','addInventory','\x20to\x20player\x27s\x20inventory.','maxCarryingWeight','BodyArmor','Hat','\x20in\x20your\x20inventory.','50094972gcvKHA','category','shield','.\x20You\x20must\x20unequip\x20it\x20first.','24uvAYxG','_currentLocation','3138975yskKYe','Weapon','Invalid\x20category\x20or\x20slot:\x20','logger','write','search','Failed\x20to\x20remove\x20','legs','_inventory','arm\x20armor','getWeight','feet','4160352xDflHX','equipment','rightHand','error','Boots','constructor','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','gloves','Added\x20','You\x20don\x27t\x20have\x20','hear','leaveRoom','\x20says:\x20\x22','arms','getInstance','_equipment','body\x20armor','_playerName','794858jjaTiy','removeInventory','Shield','\x20is\x20no\x20longer\x20listeng\x20in\x20','initialEquipment','Nexus','addItem','leftHand','30GxxYjT','weight','apply'];a51c=function(){return B;};return a51c();}(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0xb1))/0x1+parseInt(f(0xd6))/0x2*(parseInt(f(0xe8))/0x3)+-parseInt(f(0xf6))/0x4+parseInt(f(0xd0))/0x5*(-parseInt(f(0xb9))/0x6)+parseInt(f(0xea))/0x7+-parseInt(f(0xc5))/0x8+parseInt(f(0xe4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xec857));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0xbf)]()[h(0xef)](h(0xc7))[h(0xbf)]()[h(0xa4)](a51a)[h(0xef)]('(((.+)+)+)+$');});a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0xa3;let f=c[d];return f;},a51d(a,b);}import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{['_playerName'];[a51i(0xe9)];['_inventory'];[a51i(0xae)];['_maxCarryingWeight']=0x32;['logger'];constructor(a){const j=a51i;super(),this[j(0xb0)]=a['playerName'],this[j(0xe9)]=a[j(0xd5)]||new Room({'name':j(0xb6),'description':'A\x20featureless\x20room'}),this[j(0xf2)]=new Inventory(),this[j(0xed)]=Logger[j(0xad)]();if(a?.[j(0xd2)])for(const b of a[j(0xd2)]){this[j(0xf2)][j(0xb7)](b);}this[j(0xae)]=a?.[j(0xb5)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51i(0xbc)](){const k=a51i;return this[k(0xb0)];}get['currentLocation'](){return this['_currentLocation'];}set['currentLocation'](a){const l=a51i;this['_currentLocation']!==a&&(this[l(0xaa)](),this['enterRoom'](a)),this[l(0xe9)]=a;}get[a51i(0xc3)](){const m=a51i;return this[m(0xf2)];}get[a51i(0xf7)](){const n=a51i;return this[n(0xae)];}set[a51i(0xf7)](a){this['_equipment']=a;}get[a51i(0xe0)](){const o=a51i;return this[o(0xd7)];}set['maxCarryingWeight'](a){const p=a51i;a>0x0?this[p(0xd7)]=a:console[p(0xf9)]('Max\x20carrying\x20weight\x20must\x20be\x20positive.');}get['currentWeight'](){const q=a51i;let a=this['_inventory'][q(0xf4)]();for(const b in this[q(0xae)]){const c=this[q(0xae)][b];c&&(a+=c[q(0xba)]);}return a;}[a51i(0xde)](a){const r=a51i;if(this[r(0xbd)]+a['weight']>this[r(0xe0)]){this[r(0xed)][r(0xee)](r(0xc9));throw new Error('The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.');}this[r(0xf2)]['addItem'](a),this[r(0xed)][r(0xee)](r(0xa7)+a['name']+r(0xdf));}[a51i(0xb2)](a){const s=a51i;if(this[s(0xf2)]['removeItem'](a[s(0xbc)]))return this['logger']['write']('Removed\x20'+a['name']+s(0xcb)),!![];return this[s(0xed)][s(0xee)](s(0xf0)+a['name']+s(0xcb)),![];}[a51i(0xcd)](a){const t=a51i;if(!this[t(0xf2)]['hasItem'](a['name']))return t(0xa8)+a['name']+t(0xe3);if(!this['canEquip'](a))return t(0xd8)+a[t(0xbc)]+'.';const b=this[t(0xdb)](a[t(0xe5)]);if(!b)return a[t(0xbc)]+t(0xa5);if(this[t(0xf7)][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+t(0xe7);return this[t(0xf7)][b]=a,this[t(0xb2)](a),t(0xcc)+a[t(0xbc)]+'.';}[a51i(0xd9)](a){const u=a51i;let b=a;if(!this[u(0xf7)][camelCase(b)]){b=this[u(0xdb)](a);if(!b)return u(0xec)+a+'.';}return this['unequipBySlot'](b);}['determineEquipmentSlot'](a){const v=a51i;switch(a['toLowerCase']()){case Category[v(0xeb)][v(0xca)]():return v(0xf8);case Category[v(0xb3)][v(0xca)]():return v(0xb8);case Category['Gloves']['toLowerCase']():return v(0xa6);case Category['Helmet'][v(0xca)]():case Category[v(0xe2)]['toLowerCase']():return'head';case Category[v(0xa3)][v(0xca)]():return v(0xf5);case Category[v(0xcf)]['toLowerCase']():return v(0xf1);case Category['ArmArmor'][v(0xca)]():return v(0xac);case Category[v(0xe1)]['toLowerCase']():return v(0xce);case v(0xc2):return'rightHand';case v(0xe6):return'leftHand';case v(0xa6):return v(0xa6);case'helmet':case'hat':return'head';case'boots':return v(0xf5);case'leg\x20armor':case v(0xd1):return v(0xf1);case v(0xf3):case'armarmor':return v(0xac);case v(0xaf):case'bodyarmor':case v(0xce):return'torso';default:return null;}}[a51i(0xbe)](a){const w=a51i;return Object[w(0xc0)](Category)[w(0xd4)](a[w(0xe5)]);}[a51i(0xc1)](a){const x=a51i,b=this[x(0xf7)][a];if(!b)return x(0xc4)+a+'\x20slot.';return this[x(0xde)](b),this['equipment'][a]=null,x(0xd3)+b[x(0xbc)]+'.';}[a51i(0xa9)](a,b){const y=a51i;a!==this&&this['logger'][y(0xda)](a[y(0xbc)]+y(0xab)+b+'\x22');}[a51i(0xc8)](a){const z=a51i;this[z(0xe9)]=a,a['on'](z(0xdc),this[z(0xa9)][z(0xdd)](this)),this['logger'][z(0xee)](this['name']+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[z(0xbc)]);}['leaveRoom'](){const A=a51i;this[A(0xe9)]&&(this[A(0xe9)][A(0xc6)](A(0xdc),this[A(0xa9)]['bind'](this)),this['logger'][A(0xee)](this[A(0xbc)]+A(0xb4)+this['_currentLocation'][A(0xbc)]));}}
1
+ const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0x11a))/0x1*(-parseInt(f(0x137))/0x2)+parseInt(f(0x161))/0x3*(parseInt(f(0x16d))/0x4)+-parseInt(f(0x122))/0x5+-parseInt(f(0x11c))/0x6+parseInt(f(0x14f))/0x7+-parseInt(f(0x11d))/0x8*(parseInt(f(0x138))/0x9)+parseInt(f(0x16b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xc607b));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x129)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0x150)]()[h(0x152)](h(0x167))[h(0x150)]()[h(0x136)](a51a)[h(0x152)](h(0x167));});a51a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x116;let f=c[d];return f;},a51d(a,b);}import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';function a51c(){const C=['addInventory','Helmet','1265565UkGAmY','\x20from\x20player\x27s\x20inventory.','weight','You\x20equipped\x20','gloves','startLocation','_equipment','apply','helmet','equip','name','arms','speak','Max\x20carrying\x20weight\x20must\x20be\x20positive.','BodyArmor','feet','armarmor','getInstance','_currentLocation','removeItem','constructor','64104igRZzt','63vLmFLx','Invalid\x20category\x20or\x20slot:\x20','enterRoom','You\x20don\x27t\x20have\x20','Removed\x20','off','category','.\x20You\x20must\x20unequip\x20it\x20first.','A\x20featureless\x20room','shield','unequipBySlot','addItem','hear','log','\x20in\x20your\x20inventory.','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','Shield','includes','LegArmor','boots','toLowerCase','\x20is\x20no\x20longer\x20listeng\x20in\x20','legarmor','4392171JIGFTD','toString','error','search','removeInventory','\x20to\x20player\x27s\x20inventory.','Hat','inventory','_playerName','getWeight','write','leg\x20armor','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','inventoryItems','You\x20can\x27t\x20equip\x20','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','equipment','bind','21UrlEjN','_inventory','ArmArmor','arm\x20armor','weapon','playerName','(((.+)+)+)+$','currentLocation','maxCarryingWeight','head','9427800ffMSsr','\x20says:\x20\x22','76828mrjTHH','currentWeight','logger','Failed\x20to\x20remove\x20','canEquip','rightHand','_maxCarryingWeight','Added\x20','determineEquipmentSlot','\x20slot.','You\x20unequipped\x20','legs','torso','bodyarmor','7dIZrSc','unequip','1916802DCBCOg','110408pNAstm','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','Nexus'];a51c=function(){return C;};return a51c();}import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a51i(0x157)];[a51i(0x134)];[a51i(0x162)];[a51i(0x128)];[a51i(0x173)]=0x32;[a51i(0x16f)];constructor(a){const j=a51i;super(),this[j(0x157)]=a[j(0x166)],this['_currentLocation']=a[j(0x127)]||new Room({'name':j(0x11f),'description':j(0x140)}),this[j(0x162)]=new Inventory(),this[j(0x16f)]=Logger[j(0x133)]();if(a?.[j(0x15c)])for(const b of a['inventoryItems']){this['_inventory'][j(0x143)](b);}this[j(0x128)]=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a51i(0x12c)](){const k=a51i;return this[k(0x157)];}get['currentLocation'](){const l=a51i;return this[l(0x134)];}set[a51i(0x168)](a){const m=a51i;this[m(0x134)]!==a&&(this['leaveRoom'](),this[m(0x13a)](a)),this[m(0x134)]=a;}get[a51i(0x156)](){return this['_inventory'];}get['equipment'](){const n=a51i;return this[n(0x128)];}set['equipment'](a){const o=a51i;this[o(0x128)]=a;}get[a51i(0x169)](){const p=a51i;return this[p(0x173)];}set[a51i(0x169)](a){const q=a51i;a>0x0?this['_maxCarryingWeight']=a:console[q(0x151)](q(0x12f));}get[a51i(0x16e)](){const r=a51i;let a=this[r(0x162)][r(0x158)]();for(const b in this[r(0x128)]){const c=this[r(0x128)][b];c&&(a+=c[r(0x124)]);}return a;}[a51i(0x120)](a){const s=a51i;if(this[s(0x16e)]+a[s(0x124)]>this[s(0x169)]){this[s(0x16f)]['write'](s(0x15e));throw new Error(s(0x15b));}this[s(0x162)][s(0x143)](a),this[s(0x16f)][s(0x159)](s(0x174)+a['name']+s(0x154));}[a51i(0x153)](a){const t=a51i;if(this[t(0x162)][t(0x135)](a[t(0x12c)]))return this[t(0x16f)]['write'](t(0x13c)+a['name']+t(0x123)),!![];return this[t(0x16f)][t(0x159)](t(0x170)+a[t(0x12c)]+t(0x123)),![];}[a51i(0x12b)](a){const u=a51i;if(!this[u(0x162)]['hasItem'](a[u(0x12c)]))return u(0x13b)+a[u(0x12c)]+u(0x146);if(!this[u(0x171)](a))return u(0x15d)+a[u(0x12c)]+'.';const b=this[u(0x175)](a[u(0x13e)]);if(!b)return a['name']+'\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.';if(this[u(0x15f)][b])return u(0x11e)+b+u(0x13f);return this[u(0x15f)][b]=a,this[u(0x153)](a),u(0x125)+a[u(0x12c)]+'.';}[a51i(0x11b)](a){const v=a51i;let b=a;if(!this[v(0x15f)][camelCase(b)]){b=this[v(0x175)](a);if(!b)return v(0x139)+a+'.';}return this['unequipBySlot'](b);}['determineEquipmentSlot'](a){const w=a51i;switch(a[w(0x14c)]()){case Category['Weapon'][w(0x14c)]():return w(0x172);case Category[w(0x148)][w(0x14c)]():return'leftHand';case Category['Gloves'][w(0x14c)]():return w(0x126);case Category[w(0x121)][w(0x14c)]():case Category[w(0x155)][w(0x14c)]():return w(0x16a);case Category['Boots'][w(0x14c)]():return'feet';case Category[w(0x14a)][w(0x14c)]():return'legs';case Category[w(0x163)][w(0x14c)]():return'arms';case Category[w(0x130)][w(0x14c)]():return w(0x118);case w(0x165):return'rightHand';case w(0x141):return'leftHand';case'gloves':return'gloves';case w(0x12a):case'hat':return w(0x16a);case w(0x14b):return w(0x131);case w(0x15a):case w(0x14e):return w(0x117);case w(0x164):case w(0x132):return w(0x12d);case'body\x20armor':case w(0x119):case w(0x118):return w(0x118);default:return null;}}[a51i(0x171)](a){const x=a51i;return Object['values'](Category)[x(0x149)](a[x(0x13e)]);}[a51i(0x142)](a){const y=a51i,b=this['equipment'][a];if(!b)return y(0x147)+a+y(0x176);return this['addInventory'](b),this['equipment'][a]=null,y(0x116)+b[y(0x12c)]+'.';}[a51i(0x144)](a,b){const z=a51i;a!==this&&this[z(0x16f)][z(0x145)](a[z(0x12c)]+z(0x16c)+b+'\x22');}[a51i(0x13a)](a){const A=a51i;this[A(0x134)]=a,a['on'](A(0x12e),this[A(0x144)][A(0x160)](this)),this[A(0x16f)]['write'](this[A(0x12c)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a[A(0x12c)]);}['leaveRoom'](){const B=a51i;this['_currentLocation']&&(this[B(0x134)][B(0x13d)](B(0x12e),this[B(0x144)][B(0x160)](this)),this['logger'][B(0x159)](this[B(0x12c)]+B(0x14d)+this[B(0x134)][B(0x12c)]));}}
@@ -1 +1 @@
1
- var a52i=a52d;function a52c(){var m=['requiredItem','Puzzle:\x20Correct\x20solution\x20provided.','successMessage','14OiIceZ','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','write','solved','219184gaDYDg','4PlxgWF','325490xCnDpS','291243gWtTjs','(((.+)+)+)+$','logger','155aNjkhU','2ucACIk','riddle','search','rewardItem','You\x20solved\x20the\x20puzzle!','28758UBPLEU','solve','3136212psmcoq','hasRequiredItem','toString','requiredPhrase','matchesRequiredPhrase','12408341qpUeVT','failureMessage','apply','constructor','hasItem','You\x20have\x20already\x20solved\x20this\x20puzzle.','231300ikHvWq'];a52c=function(){return m;};return a52c();}(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x73))/0x1*(-parseInt(f(0x77))/0x2)+-parseInt(f(0x89))/0x3*(parseInt(f(0x71))/0x4)+parseInt(f(0x76))/0x5*(-parseInt(f(0x7c))/0x6)+-parseInt(f(0x8d))/0x7*(parseInt(f(0x70))/0x8)+-parseInt(f(0x7e))/0x9+-parseInt(f(0x72))/0xa+parseInt(f(0x83))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x2acbc));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x85)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x80)]()[h(0x79)](h(0x74))[h(0x80)]()[h(0x86)](a52a)[h(0x79)](h(0x74));});a52a();import{Logger}from'../utilities/logger.js';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x6d;var f=c[d];return f;},a52d(a,b);}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger['getInstance']();[a52i(0x6f)]=![];['requiredItem'];[a52i(0x81)];[a52i(0x78)];[a52i(0x7a)];[a52i(0x8c)];['failureMessage'];constructor(a){var j=a52i;super(),this[j(0x8a)]=a['requiredItem'],this[j(0x81)]=a[j(0x81)],this[j(0x78)]=a['riddle'],this[j(0x7a)]=a[j(0x7a)],this[j(0x8c)]=a[j(0x8c)]||j(0x7b),this[j(0x84)]=a[j(0x84)]||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}[a52i(0x7f)](a){var k=a52i;if(this[k(0x8a)])return a[k(0x87)](this[k(0x8a)]);return![];}['matchesRequiredPhrase'](a){return this['requiredPhrase']===a;}[a52i(0x7d)](a,b){var l=a52i;if(this[l(0x6f)])return this['logger'][l(0x6e)](l(0x6d)),{'success':![],'message':l(0x88)};return this[l(0x7f)](b)||this[l(0x82)](a)?(this['solved']=!![],this[l(0x75)][l(0x6e)](l(0x8b)),{'success':!![],'message':this[l(0x8c)]}):(this[l(0x75)]['write']('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[l(0x84)]});}}
1
+ var a52h=a52d;function a52c(){var l=['write','constructor','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','1606188QpkOll','5ytKThw','solved','63YrGDAU','search','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','1873864dBVxJS','requiredItem','1063548uWtmKA','(((.+)+)+)+$','matchesRequiredPhrase','successMessage','Puzzle:\x20Correct\x20solution\x20provided.','failureMessage','518704dvckgh','56iywjSz','1387470DezDwx','103569uDsEiP','logger','toString','hasRequiredItem','2896644QzKQOS','rewardItem','riddle'];a52c=function(){return l;};return a52c();}(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0xff))/0x1+-parseInt(f(0x111))/0x2+parseInt(f(0x109))/0x3+-parseInt(f(0x10f))/0x4*(-parseInt(f(0x10a))/0x5)+-parseInt(f(0x103))/0x6+-parseInt(f(0x118))/0x7*(parseInt(f(0x117))/0x8)+-parseInt(f(0x10c))/0x9*(-parseInt(f(0xfe))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x5295e));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var g=a52d;return a52a[g(0x101)]()[g(0x10d)](g(0x112))[g(0x101)]()[g(0x107)](a52a)['search']('(((.+)+)+)+$');});a52a();function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xfe;var f=c[d];return f;},a52d(a,b);}import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a52h(0x100)]=Logger['getInstance']();[a52h(0x10b)]=![];[a52h(0x110)];['requiredPhrase'];[a52h(0x105)];[a52h(0x104)];[a52h(0x114)];['failureMessage'];constructor(a){var i=a52h;super(),this[i(0x110)]=a['requiredItem'],this['requiredPhrase']=a['requiredPhrase'],this[i(0x105)]=a[i(0x105)],this[i(0x104)]=a[i(0x104)],this['successMessage']=a[i(0x114)]||'You\x20solved\x20the\x20puzzle!',this['failureMessage']=a[i(0x116)]||i(0x10e);}[a52h(0x102)](a){var j=a52h;if(this[j(0x110)])return a['hasItem'](this[j(0x110)]);return![];}['matchesRequiredPhrase'](a){return this['requiredPhrase']===a;}['solve'](a,b){var k=a52h;if(this[k(0x10b)])return this['logger'][k(0x106)](k(0x108)),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this[k(0x102)](b)||this[k(0x113)](a)?(this[k(0x10b)]=!![],this[k(0x100)][k(0x106)](k(0x115)),{'success':!![],'message':this[k(0x114)]}):(this['logger']['write']('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[k(0x116)]});}}
@@ -1 +1 @@
1
- function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xfa;let f=c[d];return f;},a53d(a,b);}const a53h=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x11e))/0x1*(-parseInt(f(0x116))/0x2)+-parseInt(f(0x10b))/0x3+parseInt(f(0x134))/0x4*(-parseInt(f(0x12c))/0x5)+-parseInt(f(0x136))/0x6+parseInt(f(0x127))/0x7+-parseInt(f(0x12d))/0x8*(parseInt(f(0xfe))/0x9)+-parseInt(f(0xfd))/0xa*(-parseInt(f(0x137))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x3385e));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const g=a53d;return a53a[g(0x109)]()[g(0xfc)]('(((.+)+)+)+$')[g(0x109)]()[g(0x10d)](a53a)['search'](g(0x12e));});function a53c(){const t=['down','507090rCRLWn','3531cihAUj','addExit','Invalid\x20direction:\x20','values','search','23070sePsVX','11331EUanuc','roomType','getInstance','roomA','removeItem','attemptUnlockExit','attemptUnlock','\x20is\x20locked.\x20Result:\x20','Puzzle\x20set\x20for\x20room\x20','inventory','setPuzzle','toString','north','1001358XdSWSl','WEST','constructor','getExit','\x20remains\x20locked.','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','\x20unlocked!','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','addItem','set','say','34iZNQxa','No\x20locked\x20exit\x20found\x20in\x20direction\x20','logger','puzzle','INSIDE','roomB','emit','exits','13709dBYWtd','name','The\x20','isStartRoom','EAST','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','findExistingDoor','checkIfLocked','getOppositeDirection','1706607ElGPFy','write','Item\x20removed\x20from\x20room\x20','speak','get','5JbRaND','1704QQtIie','(((.+)+)+)+$','Checking\x20if\x20exit\x20in\x20direction\x20','Room\x20created:\x20','hasItem','west','description','1279580ArxQPh'];a53c=function(){return t;};return a53c();}a53a();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{[a53h(0x118)]=Logger[a53h(0x100)]();[a53h(0x11f)];[a53h(0x133)];[a53h(0x11d)]=new Map();[a53h(0xff)];[a53h(0x121)];[a53h(0x107)]=new Inventory();constructor(a){const i=a53h;super(),this[i(0x11f)]=a[i(0x11f)],this[i(0x133)]=a['description'],this[i(0xff)]=a['roomType']||RoomType[i(0x11a)],a[i(0x11d)]&&(this[i(0x11d)]=a['exits']||new Map()),a['inventory']&&(this[i(0x107)]=a[i(0x107)]),a[i(0x119)]&&(this[i(0x119)]=a[i(0x119)]),this[i(0x121)]=a[i(0x121)]||![],this[i(0x118)][i(0x128)](i(0x130)+this[i(0x11f)]);}[a53h(0x115)](a,b){const j=a53h;this[j(0x11c)](j(0x12a),a,b);}[a53h(0x138)](a,b,c){const k=a53h;let d=this[k(0x124)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[k(0x11d)][k(0x114)](a,d),b[k(0x11d)]['set'](this[k(0x126)](a),d);}[a53h(0x103)](a,b){const l=a53h,c=this[l(0x11d)][l(0x12b)](a);if(c instanceof Door){const d=c[l(0x104)](b);return this[l(0x118)][l(0x128)](l(0x110)+a+'.\x20Success:\x20'+d),d?l(0x120)+c[l(0x11f)]+l(0x111):l(0x120)+c[l(0x11f)]+l(0x10f);}return this[l(0x118)][l(0x128)](l(0x117)+a),l(0x123);}[a53h(0x10e)](a){const m=a53h;return this[m(0x118)][m(0x128)]('Fetching\x20exit\x20in\x20direction:\x20'+a),this[m(0x11d)][m(0x12b)](a);}['isExitLocked'](a){const n=a53h,b=this[n(0x11d)][n(0x12b)](a),c=b instanceof Door&&b[n(0x125)]();return this[n(0x118)]['write'](n(0x12f)+a+n(0x105)+c),c;}[a53h(0x113)](a){const o=a53h;this['inventory'][o(0x113)](a),this[o(0x118)][o(0x128)]('Item\x20added\x20to\x20room\x20'+this[o(0x11f)]+':\x20'+a['name']);}[a53h(0x102)](a){const p=a53h;this[p(0x107)][p(0x131)](a[p(0x11f)])?(this[p(0x107)][p(0x102)](a[p(0x11f)]),this[p(0x118)][p(0x128)](p(0x129)+this[p(0x11f)]+':\x20'+a[p(0x11f)])):this[p(0x118)]['write'](p(0x112)+this['name']+':\x20'+a[p(0x11f)]);}[a53h(0x108)](a){const q=a53h;this[q(0x119)]=a,this[q(0x118)][q(0x128)](q(0x106)+this[q(0x11f)]+':\x20'+a['riddle']);}[a53h(0x126)](a){const r=a53h;switch(a){case r(0x10a):return Direction['SOUTH'];case'south':return Direction['NORTH'];case'east':return Direction[r(0x10c)];case r(0x132):return Direction[r(0x122)];case'up':return Direction['DOWN'];case r(0x135):return Direction['UP'];default:throw new Error(r(0xfa)+a);}}['findExistingDoor'](a){const s=a53h;for(const b of this[s(0x11d)][s(0xfb)]()){if(b instanceof Door){if(b['roomA']===this&&b['roomB']===a||b[s(0x11b)]===this&&b[s(0x101)]===a)return b;}}return undefined;}}
1
+ function a53c(){const u=['DOWN','4959619DyTDSP','419565wiPioC','EAST','getOppositeDirection','down','Checking\x20if\x20exit\x20in\x20direction\x20','No\x20locked\x20exit\x20found\x20in\x20direction\x20','Invalid\x20direction:\x20','inventory','riddle','WEST','The\x20','4187742AGrJeh','(((.+)+)+)+$','isExitLocked','east','description','get','2744724iHHxwI','\x20is\x20locked.\x20Result:\x20','135420SSKAGJ','search','getExit','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','emit','13691160OBVoFS','roomB','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','logger','apply','removeItem','SOUTH','name','Item\x20added\x20to\x20room\x20','puzzle','findExistingDoor','toString','write','hasItem','isStartRoom','addItem','attemptUnlockExit','constructor','say','NORTH','33924WgGqla','\x20unlocked!','exits','44PSHpjT','Item\x20removed\x20from\x20room\x20','speak','8tBpVOm','checkIfLocked','west','Puzzle\x20set\x20for\x20room\x20','Fetching\x20exit\x20in\x20direction:\x20','roomType','\x20remains\x20locked.','north'];a53c=function(){return u;};return a53c();}const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0xc7))/0x1+parseInt(f(0xa7))/0x2*(-parseInt(f(0xa4))/0x3)+parseInt(f(0xc5))/0x4+-parseInt(f(0xb4))/0x5+parseInt(f(0xbf))/0x6+parseInt(f(0xb3))/0x7*(parseInt(f(0xaa))/0x8)+-parseInt(f(0xcc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x5b582));function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x9f;let f=c[d];return f;},a53d(a,b);}const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0xd7)]()[h(0xc8)](h(0xc0))[h(0xd7)]()[h(0xa1)](a53a)[h(0xc8)](h(0xc0));});a53a();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{[a53i(0xcf)]=Logger['getInstance']();['name'];[a53i(0xc3)];[a53i(0xa6)]=new Map();['roomType'];[a53i(0xda)];[a53i(0xbb)]=new Inventory();constructor(a){const j=a53i;super(),this[j(0xd3)]=a[j(0xd3)],this['description']=a['description'],this[j(0xaf)]=a[j(0xaf)]||RoomType['INSIDE'],a[j(0xa6)]&&(this['exits']=a[j(0xa6)]||new Map()),a[j(0xbb)]&&(this[j(0xbb)]=a[j(0xbb)]),a[j(0xd5)]&&(this[j(0xd5)]=a['puzzle']),this[j(0xda)]=a['isStartRoom']||![],this['logger'][j(0xd8)]('Room\x20created:\x20'+this[j(0xd3)]);}[a53i(0xa2)](a,b){const k=a53i;this[k(0xcb)](k(0xa9),a,b);}['addExit'](a,b,c){const l=a53i;let d=this[l(0xd6)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0xa6)]['set'](a,d),b[l(0xa6)]['set'](this[l(0xb6)](a),d);}[a53i(0xa0)](a,b){const m=a53i,c=this[m(0xa6)]['get'](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this['logger']['write'](m(0xca)+a+'.\x20Success:\x20'+d),d?m(0xbe)+c[m(0xd3)]+m(0xa5):m(0xbe)+c['name']+m(0xb0);}return this[m(0xcf)][m(0xd8)](m(0xb9)+a),'There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.';}[a53i(0xc9)](a){const n=a53i;return this[n(0xcf)][n(0xd8)](n(0xae)+a),this[n(0xa6)][n(0xc4)](a);}[a53i(0xc1)](a){const o=a53i,b=this['exits'][o(0xc4)](a),c=b instanceof Door&&b[o(0xab)]();return this[o(0xcf)]['write'](o(0xb8)+a+o(0xc6)+c),c;}[a53i(0x9f)](a){const p=a53i;this['inventory'][p(0x9f)](a),this['logger'][p(0xd8)](p(0xd4)+this['name']+':\x20'+a[p(0xd3)]);}[a53i(0xd1)](a){const q=a53i;this['inventory'][q(0xd9)](a['name'])?(this['inventory']['removeItem'](a[q(0xd3)]),this[q(0xcf)][q(0xd8)](q(0xa8)+this[q(0xd3)]+':\x20'+a[q(0xd3)])):this[q(0xcf)][q(0xd8)](q(0xce)+this[q(0xd3)]+':\x20'+a[q(0xd3)]);}['setPuzzle'](a){const r=a53i;this[r(0xd5)]=a,this[r(0xcf)][r(0xd8)](r(0xad)+this['name']+':\x20'+a[r(0xbc)]);}[a53i(0xb6)](a){const s=a53i;switch(a){case s(0xb1):return Direction[s(0xd2)];case'south':return Direction[s(0xa3)];case s(0xc2):return Direction[s(0xbd)];case s(0xac):return Direction[s(0xb5)];case'up':return Direction[s(0xb2)];case s(0xb7):return Direction['UP'];default:throw new Error(s(0xba)+a);}}[a53i(0xd6)](a){const t=a53i;for(const b of this[t(0xa6)]['values']()){if(b instanceof Door){if(b['roomA']===this&&b[t(0xcd)]===a||b[t(0xcd)]===this&&b['roomA']===a)return b;}}return undefined;}}
@@ -1 +1 @@
1
- function a54c(){const D=['4119288dplFDG','getPlayer','logger','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','2xVLjQb','3532reXwiP','Added\x20room\x20to\x20scene:\x20','player','from','get','createRoom','removeActor','roomConfiguration','11qRLVhq','determineStartRoom','exits','\x20to\x20room\x20','setCharacterLocation','rooms','\x20not\x20found\x20in\x20scene.','length','generateRoomsFromConfig','addExit','search','16350108eAfDkx','roomFactory','getCharacterLocation','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','1323rtzKCK','warn','name','has','1089955VTFWRY','3114UHIyDH','Removed\x20room\x20from\x20scene:\x20','delete','connectRooms','addRoom','\x22\x20does\x20not\x20exist.','6GJBClm','direction','\x20found\x20in\x20the\x20scene.','set','Room\x20\x22','removeRoom','\x20is\x20now\x20in\x20room\x20','Added\x20puzzle\x20to\x20room\x20','249292UQEOVZ','join','write','Failed\x20to\x20add\x20puzzle.\x20Room\x20','getInstance','currentLocation','keys','createExitsFromConfig','actors','\x20already\x20exists\x20in\x20the\x20scene.','(((.+)+)+)+$','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','\x27s\x20location.\x20Room\x20','keyRequired','addActor','getRooms','characterLocations','initialize','targetRoom','setPuzzle','Added\x20item\x20','toString','isStartRoom','No\x20actor\x20with\x20name\x20','Failed\x20to\x20set\x20','1837801OCEsEX','10140twQmak','getActor'];a54c=function(){return D;};return a54c();}const a54k=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d=parseInt(i(0xf9))/0x1*(-parseInt(i(0x119))/0x2)+parseInt(i(0x131))/0x3*(-parseInt(i(0x11a))/0x4)+parseInt(i(0x135))/0x5+-parseInt(i(0x13c))/0x6*(-parseInt(i(0x112))/0x7)+-parseInt(i(0x115))/0x8+parseInt(i(0x136))/0x9*(-parseInt(i(0x113))/0xa)+-parseInt(i(0x122))/0xb*(-parseInt(i(0x12d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x52aa1));const a54b=(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;};}()),a54a=a54b(this,function(){const j=a54d;return a54a[j(0x10e)]()[j(0x12c)](j(0x103))[j(0x10e)]()['constructor'](a54a)[j(0x12c)]('(((.+)+)+)+$');});a54a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0xf2;let f=c[d];return f;},a54d(a,b);}export class Scene extends AbstractScene{[a54k(0x127)];[a54k(0x11c)];[a54k(0x117)];[a54k(0x101)];[a54k(0x109)]=new Map();[a54k(0x12e)];constructor(a){const l=a54k;super(),this['roomFactory']=new RoomFactory(),this['player']=a[l(0x11c)],this['rooms']=this[l(0x12a)](a[l(0x121)]),this[l(0x117)]=Logger[l(0xfd)](),this['actors']=new Map(),this['createExitsFromConfig'](a[l(0x121)]),this[l(0x117)][l(0xfb)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[l(0xff)](this[l(0x127)])[l(0xfa)](',\x20'));}[a54k(0x10a)](){const m=a54k;this['player'][m(0xfe)]=this['determineStartRoom']();}[a54k(0x12a)](a){const n=a54k;if(!this[n(0x12e)])throw new Error(n(0x104));const b={};for(const c of a){const d=this[n(0x12e)][n(0x11f)](c);b[c[n(0x133)]]=d;}return b;}[a54k(0x100)](a){const o=a54k;for(const b of a){const c=this[o(0x127)][b['name']];if(b[o(0x124)])for(const d of b[o(0x124)]){const e=d[o(0xf2)]['toUpperCase'](),f=d[o(0x10b)],g=d[o(0x106)],h=this[o(0x127)][f];h&&c[o(0x12b)](Direction[e],h,g);}}}[a54k(0x107)](a){const p=a54k;if(this[p(0x101)][p(0x134)](a[p(0x133)]))throw new Error('Actor\x20with\x20name\x20'+a[p(0x133)]+p(0x102));this[p(0x101)][p(0xf4)](a[p(0x133)],a);}[a54k(0x120)](a){const q=a54k;if(!this[q(0x101)]['has'](a))throw new Error(q(0x110)+a+q(0xf3));this[q(0x101)][q(0x138)](a);}[a54k(0x114)](a){const r=a54k;return this['actors'][r(0x11e)](a);}get['allActors'](){const s=a54k;return Array[s(0x11d)](this['actors']['values']());}[a54k(0x13a)](a){const t=a54k;this[t(0x127)][a[t(0x133)]]=a,this[t(0x117)]['write'](t(0x11b)+a[t(0x133)]);}[a54k(0xf6)](a){const u=a54k;return this[u(0x127)][a]?(delete this[u(0x127)][a],this[u(0x117)][u(0xfb)](u(0x137)+a),!![]):(this[u(0x117)]['write']('Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20'+a),![]);}['addItemToRoom'](a,b){const v=a54k,c=this[v(0x127)][b];c?(c['addItem'](a),this[v(0x117)][v(0xfb)](v(0x10d)+a[v(0x133)]+v(0x125)+c[v(0x133)])):this[v(0x117)]['write']('Failed\x20to\x20add\x20item\x20'+a[v(0x133)]+'.\x20Room\x20'+b+v(0x128));}['addPuzzleToRoom'](a,b){const w=a54k,c=this[w(0x127)][b];c?(c[w(0x10c)](a),this[w(0x117)][w(0xfb)](w(0xf8)+c['name'])):this[w(0x117)][w(0xfb)](w(0xfc)+b+w(0x128));}[a54k(0x126)](a,b){const x=a54k,c=this[x(0x127)][b];c?(this[x(0x109)][x(0xf4)](a[x(0x133)],c),this['logger'][x(0xfb)](a[x(0x133)]+x(0xf7)+c[x(0x133)])):this[x(0x117)][x(0xfb)](x(0x111)+a[x(0x133)]+x(0x105)+b+x(0x128));}[a54k(0x12f)](a){const y=a54k;return this['characterLocations'][y(0x11e)](a[y(0x133)]);}[a54k(0x123)](){const z=a54k,a=[];for(const c in this[z(0x127)]){if(this[z(0x127)]['hasOwnProperty'](c)){const d=this[z(0x127)][c];d[z(0x10f)]&&a['push'](d);}}if(a['length']>0x1)throw new Error('Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.');if(a['length']===0x1)return a[0x0];const b=Object[z(0xff)](this[z(0x127)]);if(b[z(0x129)]===0x0)throw new Error(z(0x130));return console[z(0x132)](z(0x118)),this[z(0x127)][b[0x0]];}[a54k(0x116)](){const A=a54k;return this[A(0x11c)];}[a54k(0x108)](){const B=a54k;return this[B(0x127)];}[a54k(0x139)](a,b,c,d){const C=a54k,e=this[C(0x127)][a],f=this[C(0x127)][c];if(!e)throw new Error('Room\x20\x22'+a+C(0x13b));if(!f)throw new Error(C(0xf5)+c+C(0x13b));e[C(0x12b)](b,f,d);}}
1
+ function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x13b;let f=c[d];return f;},a54d(a,b);}const a54k=a54d;(function(a,b){const i=a54d,c=a();while(!![]){try{const d=parseInt(i(0x170))/0x1*(-parseInt(i(0x161))/0x2)+-parseInt(i(0x181))/0x3+-parseInt(i(0x14a))/0x4*(parseInt(i(0x175))/0x5)+parseInt(i(0x15c))/0x6+-parseInt(i(0x155))/0x7+parseInt(i(0x164))/0x8*(parseInt(i(0x18a))/0x9)+parseInt(i(0x17e))/0xa*(parseInt(i(0x188))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x88b47));const a54b=(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;};}()),a54a=a54b(this,function(){const j=a54d;return a54a[j(0x16d)]()['search'](j(0x17d))['toString']()[j(0x158)](a54a)[j(0x15d)](j(0x17d));});a54a();function a54c(){const C=['isStartRoom','setPuzzle','getPlayer','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','5183724AgmAYT','name','warn','constructor','.\x20Room\x20','targetRoom','\x27s\x20location.\x20Room\x20','6014550XjVDRW','search','write','has','delete','6eHtptN','Added\x20room\x20to\x20scene:\x20','get','5816qKTQoY','set','generateRoomsFromConfig','from','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','initialize','Actor\x20with\x20name\x20','\x20is\x20now\x20in\x20room\x20','toString','length','Removed\x20room\x20from\x20scene:\x20','292665TSjGCi','exits','\x20already\x20exists\x20in\x20the\x20scene.','characterLocations','roomFactory','25hNIfWi','addItem','connectRooms','setCharacterLocation','push','No\x20actor\x20with\x20name\x20','\x20to\x20room\x20','rooms','(((.+)+)+)+$','3720030MzYzte','createRoom','keyRequired','1921482QtMncu','logger','createExitsFromConfig','addRoom','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','\x20not\x20found\x20in\x20scene.','direction','77HmgejE','addExit','2601QHPfWJ','addItemToRoom','keys','getActor','Room\x20\x22','hasOwnProperty','removeRoom','player','Failed\x20to\x20set\x20','values','roomConfiguration','Added\x20puzzle\x20to\x20room\x20','actors','addPuzzleToRoom','toUpperCase','join','798068pEnEWe','\x20found\x20in\x20the\x20scene.','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','getCharacterLocation','Added\x20item\x20','determineStartRoom','currentLocation'];a54c=function(){return C;};return a54c();}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{[a54k(0x17c)];[a54k(0x141)];['logger'];['actors'];[a54k(0x173)]=new Map();[a54k(0x174)];constructor(a){const l=a54k;super(),this[l(0x174)]=new RoomFactory(),this[l(0x141)]=a['player'],this[l(0x17c)]=this[l(0x166)](a[l(0x144)]),this[l(0x182)]=Logger['getInstance'](),this[l(0x146)]=new Map(),this[l(0x183)](a['roomConfiguration']),this[l(0x182)][l(0x15e)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[l(0x13c)](this[l(0x17c)])[l(0x149)](',\x20'));}[a54k(0x16a)](){const m=a54k;this[m(0x141)][m(0x150)]=this[m(0x14f)]();}[a54k(0x166)](a){const n=a54k;if(!this[n(0x174)])throw new Error(n(0x14c));const b={};for(const c of a){const d=this[n(0x174)][n(0x17f)](c);b[c[n(0x156)]]=d;}return b;}[a54k(0x183)](a){const o=a54k;for(const b of a){const c=this[o(0x17c)][b[o(0x156)]];if(b[o(0x171)])for(const d of b[o(0x171)]){const e=d[o(0x187)][o(0x148)](),f=d[o(0x15a)],g=d[o(0x180)],h=this[o(0x17c)][f];h&&c['addExit'](Direction[e],h,g);}}}['addActor'](a){const p=a54k;if(this[p(0x146)][p(0x15f)](a['name']))throw new Error(p(0x16b)+a[p(0x156)]+p(0x172));this['actors'][p(0x165)](a[p(0x156)],a);}['removeActor'](a){const q=a54k;if(!this[q(0x146)][q(0x15f)](a))throw new Error(q(0x17a)+a+q(0x14b));this[q(0x146)][q(0x160)](a);}[a54k(0x13d)](a){const r=a54k;return this[r(0x146)][r(0x163)](a);}get['allActors'](){const s=a54k;return Array[s(0x167)](this['actors'][s(0x143)]());}[a54k(0x184)](a){const t=a54k;this[t(0x17c)][a['name']]=a,this[t(0x182)][t(0x15e)](t(0x162)+a['name']);}[a54k(0x140)](a){const u=a54k;return this[u(0x17c)][a]?(delete this[u(0x17c)][a],this['logger'][u(0x15e)](u(0x16f)+a),!![]):(this['logger'][u(0x15e)](u(0x168)+a),![]);}[a54k(0x13b)](a,b){const v=a54k,c=this[v(0x17c)][b];c?(c[v(0x176)](a),this[v(0x182)][v(0x15e)](v(0x14e)+a[v(0x156)]+v(0x17b)+c[v(0x156)])):this['logger']['write']('Failed\x20to\x20add\x20item\x20'+a[v(0x156)]+v(0x159)+b+v(0x186));}[a54k(0x147)](a,b){const w=a54k,c=this[w(0x17c)][b];c?(c[w(0x152)](a),this[w(0x182)][w(0x15e)](w(0x145)+c[w(0x156)])):this[w(0x182)]['write']('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+w(0x186));}[a54k(0x178)](a,b){const x=a54k,c=this[x(0x17c)][b];c?(this['characterLocations'][x(0x165)](a[x(0x156)],c),this[x(0x182)]['write'](a[x(0x156)]+x(0x16c)+c[x(0x156)])):this[x(0x182)][x(0x15e)](x(0x142)+a[x(0x156)]+x(0x15b)+b+x(0x186));}[a54k(0x14d)](a){const y=a54k;return this[y(0x173)]['get'](a[y(0x156)]);}['determineStartRoom'](){const z=a54k,a=[];for(const c in this[z(0x17c)]){if(this[z(0x17c)][z(0x13f)](c)){const d=this[z(0x17c)][c];d[z(0x151)]&&a[z(0x179)](d);}}if(a[z(0x16e)]>0x1)throw new Error(z(0x169));if(a['length']===0x1)return a[0x0];const b=Object[z(0x13c)](this[z(0x17c)]);if(b[z(0x16e)]===0x0)throw new Error(z(0x154));return console[z(0x157)](z(0x185)),this['rooms'][b[0x0]];}[a54k(0x153)](){const A=a54k;return this[A(0x141)];}['getRooms'](){return this['rooms'];}[a54k(0x177)](a,b,c,d){const B=a54k,e=this[B(0x17c)][a],f=this[B(0x17c)][c];if(!e)throw new Error(B(0x13e)+a+'\x22\x20does\x20not\x20exist.');if(!f)throw new Error(B(0x13e)+c+'\x22\x20does\x20not\x20exist.');e[B(0x189)](b,f,d);}}
@@ -1 +1 @@
1
- var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(0x137))/0x1+-parseInt(f(0x121))/0x2+-parseInt(f(0x14a))/0x3*(parseInt(f(0x136))/0x4)+-parseInt(f(0x12a))/0x5+-parseInt(f(0x133))/0x6+parseInt(f(0x152))/0x7*(-parseInt(f(0x140))/0x8)+parseInt(f(0x14d))/0x9*(parseInt(f(0x14e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xaa77b));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var g=a55d;return a55a[g(0x142)]()[g(0x151)](g(0x12d))['toString']()['constructor'](a55a)['search'](g(0x12d));});a55a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';function a55c(){var D=['Small','Circle','use','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Holy\x20Grail','3565080gOjnfy','Yellow','Medium','(((.+)+)+)+$','Smooth','Metallic','ArmArmor','Tiny','Key','6805962jWGsEc','Legendary','name','4XtPird','295340bJPRzx','BodyArmor','description','Brown','A\x20mysterious\x20book.','Common','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Rifle','Unknown\x20Author','2480wErfZY','Blade','toString','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Helmet','\x20aloft,\x20feeling\x20its\x20immense\x20power.','author','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','2192331IrMcKo','Large','Gold','99jVyFCE','4588660RucrQG','Unknown','You\x20hold\x20the\x20','search','25445OlrUsp','Gloves','publishDate','Weapon','pageCount','Grey','1879322eCOVPg','Rare','Short\x20Sword','Rectangle'];a55c=function(){return D;};return a55c();}export class BasicItem extends Item{constructor(a,b){var h=a55d;super({'name':a,'description':b,'size':Size[h(0x12c)],'category':Category[h(0x14f)],'shape':Shape['Rectangle'],'color':Color[h(0x12b)],'texture':Texture[h(0x12e)],'rating':Rating[h(0x13c)],'weight':0x1});}[a55i(0x127)](){var j=a55i;return this[j(0x139)];}}export class Sword extends Item{constructor(a,b){var k=a55i;super({'name':a,'description':b,'size':Size[k(0x12c)],'category':Category[k(0x155)],'shape':Shape[k(0x141)],'color':Color['Grey'],'texture':Texture[k(0x12f)],'rating':Rating[k(0x13c)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a55i;super({'name':a,'description':b,'size':Size[l(0x14b)],'category':Category[l(0x155)],'shape':Shape[l(0x13e)],'color':Color[l(0x13a)],'texture':Texture['Metallic'],'rating':Rating[l(0x122)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[m(0x146)],'shape':Shape[m(0x126)],'color':Color[m(0x120)],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a55i;super({'name':a,'description':b,'size':Size[n(0x14b)],'category':Category[n(0x138)],'shape':Shape[n(0x124)],'color':Color[n(0x120)],'texture':Texture['Metallic'],'rating':Rating[n(0x13c)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['LegArmor'],'shape':Shape[o(0x124)],'color':Color[o(0x120)],'texture':Texture[o(0x12f)],'rating':Rating[o(0x13c)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Boots'],'shape':Shape[p(0x126)],'color':Color[p(0x13a)],'texture':Texture[p(0x12e)],'rating':Rating[p(0x13c)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a55i;super({'name':a,'description':b,'size':Size[q(0x125)],'category':Category[q(0x153)],'shape':Shape[q(0x126)],'color':Color[q(0x13a)],'texture':Texture[q(0x12e)],'rating':Rating[q(0x13c)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a55i;super({'name':a,'description':b,'size':Size[r(0x12c)],'category':Category[r(0x130)],'shape':Shape[r(0x124)],'color':Color[r(0x120)],'texture':Texture['Metallic'],'rating':Rating[r(0x13c)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a55i;super({'name':a,'description':b,'size':Size[s(0x131)],'category':Category[s(0x132)],'shape':Shape[s(0x124)],'color':Color[s(0x12b)],'texture':Texture[s(0x12e)],'rating':Rating[s(0x13c)],'weight':0x0});}[a55i(0x127)](){var t=a55i;return t(0x128);}}function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x11f;var f=c[d];return f;},a55d(a,b);}export class Weapon extends Item{constructor(a,b){var u=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[u(0x155)],'shape':Shape[u(0x141)],'color':Color[u(0x120)],'texture':Texture['Metallic'],'rating':Rating[u(0x13c)],'weight':0x3});}[a55i(0x127)](){var v=a55i;return v(0x145);}}export class Book extends Item{['author'];[a55i(0x154)];[a55i(0x11f)];constructor(a,b=a55i(0x13b),c=a55i(0x13f)){var w=a55i;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Book'],'shape':Shape[w(0x124)],'color':Color[w(0x13a)],'texture':Texture[w(0x12e)],'rating':Rating[w(0x13c)],'weight':0x1}),this[w(0x148)]=c,this['publishDate']=new Date(),this[w(0x11f)]=0x64;}[a55i(0x127)](){var x=a55i;return x(0x149);}}export class ShortSword extends Item{constructor(){var y=a55i;super({'name':y(0x123),'description':y(0x13d),'size':Size[y(0x12c)],'category':Category[y(0x155)],'shape':Shape[y(0x141)],'color':Color['Grey'],'texture':Texture[y(0x12f)],'rating':Rating[y(0x13c)],'weight':0x3});}['use'](){var z=a55i;return z(0x145);}}export class SniperRifle extends Item{constructor(){var A=a55i;super({'name':'Sniper\x20Rifle','description':A(0x144),'size':Size[A(0x14b)],'category':Category[A(0x155)],'shape':Shape[A(0x13e)],'color':Color['Brown'],'texture':Texture[A(0x12e)],'rating':Rating[A(0x13c)],'weight':0x5});}[a55i(0x127)](){return'You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22';}}export class HolyGrail extends Item{constructor(){var B=a55i;super({'name':B(0x129),'description':B(0x143),'size':Size[B(0x125)],'category':Category['Cup'],'shape':Shape['Circle'],'color':Color[B(0x14c)],'texture':Texture[B(0x12f)],'rating':Rating[B(0x134)],'weight':0x1});}[a55i(0x127)](){var C=a55i;return C(0x150)+this[C(0x135)]+C(0x147);}}
1
+ var a55v=a55d;function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x151;var f=c[d];return f;},a55d(a,b);}(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x155))/0x1+-parseInt(f(0x168))/0x2*(parseInt(f(0x169))/0x3)+parseInt(f(0x151))/0x4+parseInt(f(0x161))/0x5+parseInt(f(0x160))/0x6+-parseInt(f(0x15e))/0x7+-parseInt(f(0x165))/0x8*(-parseInt(f(0x180))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xec99c));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x162)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x16d)]()[h(0x152)]('(((.+)+)+)+$')[h(0x16d)]()[h(0x158)](a55a)[h(0x152)](h(0x157));});a55a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a55d;super({'name':a,'description':b,'size':Size[i(0x159)],'category':Category[i(0x163)],'shape':Shape[i(0x17b)],'color':Color[i(0x176)],'texture':Texture['Smooth'],'rating':Rating[i(0x164)],'weight':0x1});}['use'](){var j=a55d;return this[j(0x15a)];}}function a55c(){var D=['Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Key','Yellow','Large','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Grey','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Rectangle','Book','A\x20mysterious\x20book.','Cup','Tiny','204705rJGliJ','Smooth','Brown','Unknown\x20Author','LegArmor','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','Small','BodyArmor','4778704TNKxjQ','search','Circle','Metallic','374127zAuqRG','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','(((.+)+)+)+$','constructor','Medium','description','Legendary','name','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','11465244hrYBDZ','Gloves','1415538mCXcQn','9278110dGYtcZ','apply','Unknown','Common','440XakwsX','You\x20hold\x20the\x20','author','102GsLUfV','91533BYIEzt','Weapon','Boots','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','toString','ArmArmor','Helmet','pageCount','Blade','publishDate','use'];a55c=function(){return D;};return a55c();}export class Sword extends Item{constructor(a,b){var k=a55d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[k(0x16a)],'shape':Shape['Blade'],'color':Color[k(0x179)],'texture':Texture[k(0x154)],'rating':Rating[k(0x164)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a55d;super({'name':a,'description':b,'size':Size['Large'],'category':Category[l(0x16a)],'shape':Shape['Rifle'],'color':Color[l(0x182)],'texture':Texture[l(0x154)],'rating':Rating['Rare'],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a55d;super({'name':a,'description':b,'size':Size[m(0x159)],'category':Category[m(0x16f)],'shape':Shape['Circle'],'color':Color[m(0x179)],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a55d;super({'name':a,'description':b,'size':Size[n(0x177)],'category':Category[n(0x187)],'shape':Shape[n(0x17b)],'color':Color[n(0x179)],'texture':Texture[n(0x154)],'rating':Rating[n(0x164)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a55d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[o(0x184)],'shape':Shape[o(0x17b)],'color':Color['Grey'],'texture':Texture[o(0x154)],'rating':Rating[o(0x164)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a55d;super({'name':a,'description':b,'size':Size[p(0x159)],'category':Category[p(0x16b)],'shape':Shape[p(0x153)],'color':Color[p(0x182)],'texture':Texture[p(0x181)],'rating':Rating[p(0x164)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a55d;super({'name':a,'description':b,'size':Size[q(0x186)],'category':Category[q(0x15f)],'shape':Shape[q(0x153)],'color':Color[q(0x182)],'texture':Texture[q(0x181)],'rating':Rating[q(0x164)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a55d;super({'name':a,'description':b,'size':Size[r(0x159)],'category':Category[r(0x16e)],'shape':Shape[r(0x17b)],'color':Color[r(0x179)],'texture':Texture[r(0x154)],'rating':Rating[r(0x164)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a55d;super({'name':a,'description':b,'size':Size[s(0x17f)],'category':Category[s(0x175)],'shape':Shape['Rectangle'],'color':Color['Yellow'],'texture':Texture[s(0x181)],'rating':Rating[s(0x164)],'weight':0x0});}['use'](){var t=a55d;return t(0x15d);}}export class Weapon extends Item{constructor(a,b){var u=a55d;super({'name':a,'description':b,'size':Size[u(0x159)],'category':Category[u(0x16a)],'shape':Shape[u(0x171)],'color':Color[u(0x179)],'texture':Texture[u(0x154)],'rating':Rating[u(0x164)],'weight':0x3});}[a55v(0x173)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class Book extends Item{['author'];[a55v(0x172)];[a55v(0x170)];constructor(a,b=a55v(0x17d),c=a55v(0x183)){var w=a55v;super({'name':a,'description':b,'size':Size[w(0x159)],'category':Category[w(0x17c)],'shape':Shape[w(0x17b)],'color':Color[w(0x182)],'texture':Texture['Smooth'],'rating':Rating[w(0x164)],'weight':0x1}),this[w(0x167)]=c,this[w(0x172)]=new Date(),this[w(0x170)]=0x64;}[a55v(0x173)](){return'There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22';}}export class ShortSword extends Item{constructor(){var x=a55v;super({'name':'Short\x20Sword','description':x(0x178),'size':Size['Medium'],'category':Category[x(0x16a)],'shape':Shape[x(0x171)],'color':Color[x(0x179)],'texture':Texture[x(0x154)],'rating':Rating['Common'],'weight':0x3});}['use'](){var y=a55v;return y(0x174);}}export class SniperRifle extends Item{constructor(){var z=a55v;super({'name':'Sniper\x20Rifle','description':z(0x185),'size':Size[z(0x177)],'category':Category[z(0x16a)],'shape':Shape['Rifle'],'color':Color['Brown'],'texture':Texture[z(0x181)],'rating':Rating[z(0x164)],'weight':0x5});}[a55v(0x173)](){var A=a55v;return A(0x156);}}export class HolyGrail extends Item{constructor(){var B=a55v;super({'name':'Holy\x20Grail','description':B(0x16c),'size':Size['Small'],'category':Category[B(0x17e)],'shape':Shape['Circle'],'color':Color['Gold'],'texture':Texture[B(0x154)],'rating':Rating[B(0x15b)],'weight':0x1});}[a55v(0x173)](){var C=a55v;return C(0x166)+this[C(0x15c)]+C(0x17a);}}