@maka/maka-cli 4.12.13 → 4.12.15

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 (158) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/collection.js +1 -1
  109. package/bundle/obf/src/generators/component.js +1 -1
  110. package/bundle/obf/src/generators/config.js +1 -1
  111. package/bundle/obf/src/generators/dbc.js +1 -1
  112. package/bundle/obf/src/generators/dockerfile.js +1 -1
  113. package/bundle/obf/src/generators/hook.js +1 -1
  114. package/bundle/obf/src/generators/kits/_index.js +1 -1
  115. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  117. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  118. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/kit.js +1 -1
  123. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  127. package/bundle/obf/src/generators/layout.js +1 -1
  128. package/bundle/obf/src/generators/maka.gen.js +1 -1
  129. package/bundle/obf/src/generators/methods.js +1 -1
  130. package/bundle/obf/src/generators/package.js +1 -1
  131. package/bundle/obf/src/generators/page.js +1 -1
  132. package/bundle/obf/src/generators/publish.js +1 -1
  133. package/bundle/obf/src/generators/route.js +1 -1
  134. package/bundle/obf/src/generators/service.js +1 -1
  135. package/bundle/obf/src/generators/services/_index.js +1 -1
  136. package/bundle/obf/src/generators/services/openssl.js +1 -1
  137. package/bundle/obf/src/generators/services/translation.js +1 -1
  138. package/bundle/obf/src/maka.js +1 -1
  139. package/bundle/obf/src/tool.js +1 -1
  140. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  141. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  142. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  143. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  144. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  146. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/https/https.class.js +1 -1
  148. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  149. package/bundle/obf/src/tools/log/log.class.js +1 -1
  150. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/options/options.class.js +1 -1
  152. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  153. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  154. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  156. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  158. package/package.json +1 -1
@@ -1 +1 @@
1
- const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0x1dd))/0x1*(-parseInt(f(0x1c2))/0x2)+-parseInt(f(0x1eb))/0x3*(parseInt(f(0x1cc))/0x4)+-parseInt(f(0x1bd))/0x5+-parseInt(f(0x1c5))/0x6+parseInt(f(0x1d7))/0x7*(-parseInt(f(0x1e7))/0x8)+parseInt(f(0x1e3))/0x9*(parseInt(f(0x1ef))/0xa)+parseInt(f(0x1e6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xcb226));function a38c(){const n=['inspectItem','250oapDFj','write','rooms','2617320vJUYOv','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','currentLocation','You\x27re\x20not\x20in\x20a\x20valid\x20room.','toString','getOtherSide','description','8ibTDfq','exits','Examine\x20your\x20surroundings','\x27\x20in\x20','Executing\x20\x27Look\x27\x20command.','puzzle','lookOutside','Looking\x20at\x20item\x20\x27','actor','\x20inventory.','\x20is\x20looking\x20around\x20the\x20current\x20room.','8192443hByKYK','hasItem','You\x20cannot\x20see\x20','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22',',\x20you\x20see\x20','name','3785bWIDUQ','string','search','logger','Below\x20you,\x20','OUTSIDE','1764ksQDRC','To\x20the\x20','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','56837605HHrqjO','8oDVGre','verb','isValidDirection','(((.+)+)+)+$','2442021yWaJbS','\x20here.','inventory','constructor','30190NRhjuu','error','It\x27s\x20just\x20a\x20regular\x20','6095165BTcesf','look','apply','riddle'];a38c=function(){return n;};return a38c();}const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x1bf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a['toString']()[h(0x1df)](h(0x1ea))[h(0x1c9)]()[h(0x1ee)](a38a)['search'](h(0x1ea));});a38a();import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';import{Command}from'./command.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a38d(a,b);}export class LookCommand extends Command{static [a38i(0x1e8)]=a38i(0x1be);static ['description']=a38i(0x1ce);['execute'](a=[]){const j=a38i;this[j(0x1e0)][j(0x1c3)](j(0x1d0));const b=a['join']('\x20');if(b){if(this['actor']['inventory'][j(0x1d8)](b))return this['logger'][j(0x1c3)](j(0x1d3)+b+j(0x1cf)+this[j(0x1d4)][j(0x1dc)]+j(0x1d5)),this['inspectItem'](b,this['actor'][j(0x1ed)]);else{if(this[j(0x1d4)]['currentLocation']['inventory'][j(0x1d8)](b))return this['logger']['write'](j(0x1d3)+b+'\x27\x20in\x20current\x20room\x20inventory.'),this[j(0x1c1)](b,this[j(0x1d4)][j(0x1c7)][j(0x1ed)]);else return this[j(0x1e9)](b)?(this[j(0x1e0)][j(0x1c3)]('Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27'+b+'\x27.'),this['lookOutside'](b)):j(0x1d9)+b;}}else return this[j(0x1e0)][j(0x1c3)](this[j(0x1d4)]['name']+j(0x1d6)),this[j(0x1be)]();}[a38i(0x1be)](){const k=a38i,a=this[k(0x1d4)][k(0x1c7)];if(!a)return this[k(0x1e0)][k(0x1bb)](this[k(0x1d4)][k(0x1dc)]+k(0x1e5)),'You\x27re\x20not\x20in\x20a\x20valid\x20room.';let b=a[k(0x1cb)];return a[k(0x1d1)]&&(b+='\x0a'+a[k(0x1d1)][k(0x1c0)]),b;}[a38i(0x1d2)](a){const l=a38i,b=this[l(0x1d4)][l(0x1c7)];if(!b)return this[l(0x1e0)][l(0x1bb)](this['actor'][l(0x1dc)]+l(0x1e5)),l(0x1c8);const c=b[l(0x1cd)]['get'](a);if(!c)return l(0x1da)+a+'\x22.';let d;if(c instanceof Door)d=c[l(0x1ca)](b);else{if(typeof c===l(0x1de)){d=this[l(0x1c4)]&&this[l(0x1c4)][c];if(!d)return l(0x1c6)+a+'\x22.';}else return'Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22'+a+'\x22.';}if(d['roomType']===RoomType[l(0x1e2)]){if(a==='up')return'Above\x20you,\x20'+d['description'];else return a==='down'?l(0x1e1)+d[l(0x1cb)]:l(0x1e4)+a+l(0x1db)+d[l(0x1cb)];}else return'You\x20cannot\x20see\x20through';}['inspectItem'](a,b){const m=a38i,c=b['getItem'](a);if(!c)return'You\x20don\x27t\x20see\x20any\x20'+a+m(0x1ec);return c[m(0x1cb)]||m(0x1bc)+a+'.';}}
1
+ const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=parseInt(f(0xdc))/0x1*(parseInt(f(0xbe))/0x2)+-parseInt(f(0xcc))/0x3+-parseInt(f(0xae))/0x4+-parseInt(f(0xbf))/0x5+parseInt(f(0xa9))/0x6*(parseInt(f(0xc1))/0x7)+-parseInt(f(0xcf))/0x8+parseInt(f(0xbd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x6cb72));function a38c(){const n=['53814DAXGmo',',\x20you\x20see\x20','actor','getOtherSide','look','71528TAyzia','apply','You\x20cannot\x20see\x20through','join','OUTSIDE','Below\x20you,\x20','getItem','hasItem','search','write','error','(((.+)+)+)+$','It\x27s\x20just\x20a\x20regular\x20','riddle','currentLocation','24489414ipQkyl','16LfgKlx','3524605ISrJMg','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','7gghttT','Executing\x20\x27Look\x27\x20command.','To\x20the\x20','down','lookOutside','\x27\x20in\x20','Looking\x20at\x20item\x20\x27','inventory','description','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','constructor','2382069ZnwvlY','inspectItem','name','6519320oRZYmC','You\x27re\x20not\x20in\x20a\x20valid\x20room.','verb','\x20inventory.','rooms','execute','Above\x20you,\x20','logger','string','puzzle','toString','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','You\x20cannot\x20see\x20','5878TLcbCx','get','roomType','isValidDirection'];a38c=function(){return n;};return a38c();}function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xa6;let f=c[d];return f;},a38d(a,b);}const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0xd9)]()[h(0xb6)](h(0xb9))[h(0xd9)]()[h(0xcb)](a38a)[h(0xb6)](h(0xb9));});a38a();import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';import{Command}from'./command.js';export class LookCommand extends Command{static [a38i(0xd1)]=a38i(0xad);static [a38i(0xc9)]='Examine\x20your\x20surroundings';[a38i(0xd4)](a=[]){const j=a38i;this[j(0xd6)][j(0xb7)](j(0xc2));const b=a[j(0xb1)]('\x20');if(b){if(this[j(0xab)]['inventory'][j(0xb5)](b))return this[j(0xd6)]['write'](j(0xc7)+b+j(0xc6)+this[j(0xab)]['name']+j(0xd2)),this[j(0xcd)](b,this[j(0xab)]['inventory']);else{if(this[j(0xab)][j(0xbc)][j(0xc8)][j(0xb5)](b))return this[j(0xd6)]['write']('Looking\x20at\x20item\x20\x27'+b+'\x27\x20in\x20current\x20room\x20inventory.'),this['inspectItem'](b,this[j(0xab)]['currentLocation'][j(0xc8)]);else return this[j(0xa8)](b)?(this[j(0xd6)][j(0xb7)]('Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27'+b+'\x27.'),this[j(0xc5)](b)):j(0xdb)+b;}}else return this[j(0xd6)][j(0xb7)](this['actor'][j(0xce)]+'\x20is\x20looking\x20around\x20the\x20current\x20room.'),this[j(0xad)]();}[a38i(0xad)](){const k=a38i,a=this[k(0xab)][k(0xbc)];if(!a)return this[k(0xd6)][k(0xb8)](this[k(0xab)]['name']+k(0xda)),'You\x27re\x20not\x20in\x20a\x20valid\x20room.';let b=a[k(0xc9)];return a[k(0xd8)]&&(b+='\x0a'+a[k(0xd8)][k(0xbb)]),b;}[a38i(0xc5)](a){const l=a38i,b=this[l(0xab)]['currentLocation'];if(!b)return this[l(0xd6)][l(0xb8)](this['actor']['name']+l(0xda)),l(0xd0);const c=b['exits'][l(0xa6)](a);if(!c)return l(0xca)+a+'\x22.';let d;if(c instanceof Door)d=c[l(0xac)](b);else{if(typeof c===l(0xd7)){d=this[l(0xd3)]&&this[l(0xd3)][c];if(!d)return l(0xc0)+a+'\x22.';}else return'Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22'+a+'\x22.';}if(d[l(0xa7)]===RoomType[l(0xb2)]){if(a==='up')return l(0xd5)+d[l(0xc9)];else return a===l(0xc4)?l(0xb3)+d[l(0xc9)]:l(0xc3)+a+l(0xaa)+d['description'];}else return l(0xb0);}[a38i(0xcd)](a,b){const m=a38i,c=b[m(0xb4)](a);if(!c)return'You\x20don\x27t\x20see\x20any\x20'+a+'\x20here.';return c['description']||m(0xba)+a+'.';}}
@@ -1 +1 @@
1
- const a39j=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=parseInt(g(0x92))/0x1*(parseInt(g(0x88))/0x2)+-parseInt(g(0x84))/0x3*(-parseInt(g(0x94))/0x4)+parseInt(g(0x97))/0x5+-parseInt(g(0x87))/0x6+parseInt(g(0x8f))/0x7*(parseInt(g(0x9b))/0x8)+parseInt(g(0x91))/0x9+-parseInt(g(0x93))/0xa*(parseInt(g(0x90))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x47ee8));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a39d;if(c){const e=c[h(0x89)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const i=a39d;return a39a[i(0x9a)]()[i(0x9e)](i(0x85))[i(0x9a)]()['constructor'](a39a)[i(0x9e)]('(((.+)+)+)+$');});a39a();function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x81;let f=c[d];return f;},a39d(a,b);}function a39c(){const m=['logger','join','actor','name','allActors','1141881kBZpkI','(((.+)+)+)+$','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','394962WRgWdz','93136bfeDWe','apply','description','say','Scene\x20is\x20missing\x20from\x20context.','verb','execute','595KZEerJ','3180397fZaarZ','3353616LTYzNI','7ArXxvX','40meqrQm','4zdTHyU','log','context','565625fFGrgx',':\x20\x22','An\x20error\x20occurred.','toString','30552OREgae','scene','currentLocation','search'];a39c=function(){return m;};return a39c();}import{Command}from'./command.js';export class SayCommand extends Command{static [a39j(0x8d)]=a39j(0x8b);static [a39j(0x8a)]=a39j(0x86);[a39j(0x96)];constructor(a){const k=a39j;super(a),this[k(0x96)]=a;}[a39j(0x8e)](a){const l=a39j;if(a['length']===0x0)return'What\x20do\x20you\x20want\x20to\x20say?';const b=a[l(0xa0)]('\x20'),c=this[l(0x81)],d=this['context'][l(0x9c)];if(!d)return this[l(0x9f)][l(0x95)](l(0x8c)),l(0x99);const e=d[l(0x83)]['filter'](f=>f['currentLocation']===c[l(0x9d)]);for(const f of e){this['logger'][l(0x95)](c['name']+'\x20says\x20to\x20'+f[l(0x82)]+l(0x98)+b+'\x22'),this[l(0x81)]['currentLocation']['say'](f,b);}return'You\x20say:\x20\x22'+b+'\x22';}}
1
+ const a39j=a39d;function a39c(){const l=['7624098GzTeLJ','17661titnOf','21651IZPJwM','join','currentLocation','search','3757732syUjnN','context','7826070eRBmKN','244xeMROM','apply','name','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','77544IyElIg','Scene\x20is\x20missing\x20from\x20context.','5624gmxHKQ','filter','8940CdcfHv',':\x20\x22','constructor','length','You\x20say:\x20\x22','703097mUVutj','scene','log','toString','What\x20do\x20you\x20want\x20to\x20say?','verb','(((.+)+)+)+$','description','say','actor'];a39c=function(){return l;};return a39c();}(function(a,b){const g=a39d,c=a();while(!![]){try{const d=-parseInt(g(0xce))/0x1+-parseInt(g(0xde))/0x2+-parseInt(g(0xda))/0x3*(-parseInt(g(0xe1))/0x4)+-parseInt(g(0xe0))/0x5+-parseInt(g(0xd8))/0x6+parseInt(g(0xd9))/0x7*(-parseInt(g(0xc7))/0x8)+parseInt(g(0xc5))/0x9*(parseInt(g(0xc9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xe8474));function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xc2;let f=c[d];return f;},a39d(a,b);}const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a39d;if(c){const e=c[h(0xc2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const i=a39d;return a39a[i(0xd1)]()[i(0xdd)](i(0xd4))[i(0xd1)]()[i(0xcb)](a39a)[i(0xdd)](i(0xd4));});a39a();import{Command}from'./command.js';export class SayCommand extends Command{static [a39j(0xd3)]=a39j(0xd6);static [a39j(0xd5)]=a39j(0xc4);['context'];constructor(a){super(a),this['context']=a;}['execute'](a){const k=a39j;if(a[k(0xcc)]===0x0)return k(0xd2);const b=a[k(0xdb)]('\x20'),c=this[k(0xd7)],d=this[k(0xdf)][k(0xcf)];if(!d)return this['logger'][k(0xd0)](k(0xc6)),'An\x20error\x20occurred.';const e=d['allActors'][k(0xc8)](f=>f['currentLocation']===c['currentLocation']);for(const f of e){this['logger']['log'](c[k(0xc3)]+'\x20says\x20to\x20'+f[k(0xc3)]+k(0xca)+b+'\x22'),this[k(0xd7)][k(0xdc)][k(0xd6)](f,b);}return k(0xcd)+b+'\x22';}}
@@ -1 +1 @@
1
- const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x1f8))/0x1*(parseInt(f(0x204))/0x2)+parseInt(f(0x1e5))/0x3*(parseInt(f(0x1f9))/0x4)+-parseInt(f(0x1f2))/0x5*(-parseInt(f(0x200))/0x6)+-parseInt(f(0x1e6))/0x7+-parseInt(f(0x1f0))/0x8+parseInt(f(0x201))/0x9*(-parseInt(f(0x1fe))/0xa)+-parseInt(f(0x1fa))/0xb*(-parseInt(f(0x1fb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xef3da));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x1ea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x1f5)]()[h(0x1fc)]('(((.+)+)+)+$')['toString']()[h(0x1f1)](a40a)[h(0x1fc)](h(0x1ef));});function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x1e5;let f=c[d];return f;},a40d(a,b);}a40a();import{Command}from'./command.js';export class SearchCommand extends Command{static [a40i(0x202)]='search';static [a40i(0x1ee)]='Search\x20for\x20items\x20in\x20your\x20area';[a40i(0x1ed)](){const j=a40i,a=this[j(0x1e7)][j(0x1f3)][j(0x1f4)][j(0x1fd)]();if(a[j(0x1e9)]===0x0)return this[j(0x203)][j(0x1f7)]('SearchCommand:\x20'+this['actor']['name']+j(0x1e8)),'You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.';const b=a[j(0x1f6)](',\x20');return this[j(0x203)][j(0x1f7)](j(0x1ff)+this[j(0x1e7)][j(0x1ec)]+'\x20found\x20the\x20following\x20items:\x20'+b),j(0x1eb)+b;}}function a40c(){const k=['search','listItems','145510nENrrQ','SearchCommand:\x20','12BmzPSm','18INcfmo','verb','logger','10kJLgLZ','3sNUTDX','4001011nzBehm','actor','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','length','apply','You\x20search\x20the\x20area\x20and\x20find:\x20','name','execute','description','(((.+)+)+)+$','7508776qPRKXX','constructor','42115AUkeIE','currentLocation','inventory','toString','join','write','243106AIUkzJ','7348492TWHirl','6896131HdvZJc','36yMICQb'];a40c=function(){return k;};return a40c();}
1
+ const a40i=a40d;function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a40d(a,b);}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x1b9))/0x1*(-parseInt(f(0x1a7))/0x2)+-parseInt(f(0x1ad))/0x3+parseInt(f(0x1ae))/0x4+-parseInt(f(0x1ab))/0x5*(parseInt(f(0x1a9))/0x6)+parseInt(f(0x1bc))/0x7+parseInt(f(0x1b0))/0x8+parseInt(f(0x1b3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xb34e0));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x1a8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x1aa)]()[h(0x1b5)](h(0x1a6))['toString']()['constructor'](a40a)[h(0x1b5)](h(0x1a6));});a40a();import{Command}from'./command.js';export class SearchCommand extends Command{static [a40i(0x1a3)]=a40i(0x1b5);static [a40i(0x1bd)]=a40i(0x1b4);['execute'](){const j=a40i,a=this[j(0x1a5)]['currentLocation'][j(0x1b2)]['listItems']();if(a[j(0x1b7)]===0x0)return this[j(0x1b8)][j(0x1b1)](j(0x1a4)+this['actor'][j(0x1af)]+j(0x1bb)),j(0x1b6);const b=a[j(0x1ba)](',\x20');return this[j(0x1b8)][j(0x1b1)](j(0x1a4)+this[j(0x1a5)][j(0x1af)]+j(0x1ac)+b),'You\x20search\x20the\x20area\x20and\x20find:\x20'+b;}}function a40c(){const k=['actor','(((.+)+)+)+$','2TBiGjd','apply','2724NEylyH','toString','11810KyvMdG','\x20found\x20the\x20following\x20items:\x20','3776574PBUvFv','1264888ngkaoM','name','1229560TBXcsR','write','inventory','15110865pHyvFz','Search\x20for\x20items\x20in\x20your\x20area','search','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','length','logger','190051NtcDXy','join','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','7747509zetIWf','description','verb','SearchCommand:\x20'];a40c=function(){return k;};return a40c();}
@@ -1 +1 @@
1
- const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x1c2))/0x1*(-parseInt(f(0x1bf))/0x2)+-parseInt(f(0x1c5))/0x3*(-parseInt(f(0x1c3))/0x4)+parseInt(f(0x1c4))/0x5+-parseInt(f(0x1ce))/0x6*(parseInt(f(0x1bc))/0x7)+parseInt(f(0x1b6))/0x8+-parseInt(f(0x1cb))/0x9+parseInt(f(0x1be))/0xa*(-parseInt(f(0x1c9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xc6ef8));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x1d2)]()[h(0x1b9)](h(0x1c7))[h(0x1d2)]()[h(0x1c1)](a41a)['search']('(((.+)+)+)+$');});function a41c(){const k=['puzzle','logger','verb','inventory','965776VjRBgr','Attempt\x20to\x20solve\x20a\x20puzzle.','success','search','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','join','4731426XINSqh','actor','670fREkgR','4hZypBb','apply','constructor','357923VeCuWi','20SxLOSx','5927800GHryrc','409845cneeIY','toLowerCase','(((.+)+)+)+$','execute','5335CDXCsF','rewardItem','10637550qGFaQn','solve','write','6FssAAa','currentLocation','description','SolveCommand:\x20','toString','message','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.'];a41c=function(){return k;};return a41c();}function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1b3;let f=c[d];return f;},a41d(a,b);}a41a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a41i(0x1b4)]='solve';static [a41i(0x1d0)]=a41i(0x1b7);[a41i(0x1c8)](a){const j=a41i,b=a[j(0x1bb)]('\x20')[j(0x1c6)](),c=this[j(0x1bd)][j(0x1cf)];if(!c||!c[j(0x1d5)])return this[j(0x1b3)][j(0x1cd)](j(0x1d4)),j(0x1ba);const d=c['puzzle'][j(0x1cc)](b,this[j(0x1bd)]['inventory']);return d[j(0x1b8)]&&c[j(0x1d5)][j(0x1ca)]&&this[j(0x1bd)][j(0x1b5)]['addItem'](c[j(0x1d5)][j(0x1ca)]),this[j(0x1b3)][j(0x1cd)](j(0x1d1)+d[j(0x1d3)]),d[j(0x1d3)];}}
1
+ const a41i=a41d;function a41c(){const k=['inventory','puzzle','apply','(((.+)+)+)+$','description','1565968CSjHdn','186895zzeCqk','search','481176IpTfLy','constructor','message','5OPKmho','2XnUuvX','logger','toLowerCase','Attempt\x20to\x20solve\x20a\x20puzzle.','solve','rewardItem','success','currentLocation','1356460qVCvLx','SolveCommand:\x20','join','actor','execute','160290mOTjjK','3150558buYkCy','1657737VOZSiL','verb','write'];a41c=function(){return k;};return a41c();}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x1c4))/0x1*(-parseInt(f(0x1ca))/0x2)+-parseInt(f(0x1bb))/0x3+parseInt(f(0x1c6))/0x4+parseInt(f(0x1c9))/0x5*(parseInt(f(0x1ba))/0x6)+parseInt(f(0x1b4))/0x7+-parseInt(f(0x1c3))/0x8+parseInt(f(0x1b9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x4827b));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a['toString']()[h(0x1c5)](h(0x1c1))['toString']()[h(0x1c7)](a41a)['search'](h(0x1c1));});a41a();import{Command}from'./command.js';function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a41d(a,b);}export class SolveCommand extends Command{static [a41i(0x1bc)]=a41i(0x1ce);static [a41i(0x1c2)]=a41i(0x1cd);[a41i(0x1b8)](a){const j=a41i,b=a[j(0x1b6)]('\x20')[j(0x1cc)](),c=this[j(0x1b7)][j(0x1b3)];if(!c||!c[j(0x1bf)])return this[j(0x1cb)]['write']('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(0x1ce)](b,this['actor'][j(0x1be)]);return d[j(0x1b2)]&&c[j(0x1bf)][j(0x1cf)]&&this[j(0x1b7)][j(0x1be)]['addItem'](c[j(0x1bf)][j(0x1cf)]),this[j(0x1cb)][j(0x1bd)](j(0x1b5)+d[j(0x1c8)]),d['message'];}}
@@ -1 +1 @@
1
- const a42i=a42d;function a42c(){const l=['2543910PlyUVn','actor','\x22\x20not\x20found\x20in\x20','name','toString','There\x20is\x20no\x20item\x20\x22','description','Error\x20during\x20\x27Take\x27\x20command:\x20','(((.+)+)+)+$','\x22\x20not\x20retrieved\x20from\x20','verb','Successfully\x20removed\x20\x22','825214hEsUVk','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','take','3688324NcNroQ','Item\x20\x22','search','3TtwLsT','You\x20have\x20taken\x20the\x20','978050bHRtkY','\x22\x20to\x20','apply','\x22\x20in\x20this\x20room.','execute','constructor','addInventory','hasItem','\x22\x20from\x20','removeItem','logger','246708vMcHyr','join','Successfully\x20added\x20\x22','1658382FFMbLK','write','\x20during\x20\x27Take\x27\x20command.','inventory','getItem','13485520NocOeA'];a42c=function(){return l;};return a42c();}(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0x1d9))/0x1+parseInt(f(0x1c7))/0x2+-parseInt(f(0x1df))/0x3*(parseInt(f(0x1dc))/0x4)+parseInt(f(0x1e1))/0x5+-parseInt(f(0x1cd))/0x6+parseInt(f(0x1ec))/0x7+parseInt(f(0x1cc))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x8c3f7));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x1e3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a['toString']()[h(0x1de)](h(0x1d5))[h(0x1d1)]()[h(0x1e6)](a42a)['search'](h(0x1d5));});function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a42d(a,b);}a42a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a42i(0x1d7)]=a42i(0x1db);static [a42i(0x1d3)]='Pick\x20up\x20an\x20item.';[a42i(0x1e5)](a){const j=a42i;return this[j(0x1eb)][j(0x1c8)](j(0x1da)+a[j(0x1c5)]('\x20')),this['take'](a);}[a42i(0x1db)](a){const k=a42i,b=a[k(0x1c5)]('\x20')['toLowerCase'](),c=this[k(0x1ce)]['currentLocation'];if(!c[k(0x1ca)][k(0x1e8)](b))return this['logger'][k(0x1c8)](k(0x1dd)+b+k(0x1cf)+c[k(0x1d0)]+k(0x1c9)),k(0x1d2)+b+k(0x1e4);const d=c[k(0x1ca)][k(0x1cb)](b);if(!d)return this[k(0x1eb)][k(0x1c8)](k(0x1dd)+b+k(0x1d6)+c[k(0x1d0)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),'There\x20is\x20no\x20item\x20\x22'+b+k(0x1e4);try{return this[k(0x1ce)][k(0x1e7)](d),this[k(0x1eb)][k(0x1c8)](k(0x1c6)+b+k(0x1e2)+this['actor'][k(0x1d0)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[k(0x1ca)][k(0x1ea)](b),this[k(0x1eb)][k(0x1c8)](k(0x1d8)+b+k(0x1e9)+c['name']+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x1e0)+b+'.';}catch(e){return this[k(0x1eb)][k(0x1c8)](k(0x1d4)+e['message']),'The\x20item\x20\x22'+b+'\x22\x20is\x20too\x20heavy\x20to\x20carry.';}}}
1
+ const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0x1d6))/0x1+parseInt(f(0x1cb))/0x2+-parseInt(f(0x1d0))/0x3+-parseInt(f(0x1d8))/0x4*(parseInt(f(0x1bc))/0x5)+parseInt(f(0x1d5))/0x6*(-parseInt(f(0x1d7))/0x7)+parseInt(f(0x1bf))/0x8+parseInt(f(0x1c8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x61f71));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x1dd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0x1c9)]()['search'](h(0x1c7))[h(0x1c9)]()[h(0x1c1)](a42a)[h(0x1e3)](h(0x1c7));});a42a();function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a42d(a,b);}import{Command}from'./command.js';export class TakeCommand extends Command{static [a42i(0x1be)]=a42i(0x1d9);static ['description']=a42i(0x1c5);[a42i(0x1bd)](a){const j=a42i;return this[j(0x1c3)]['write'](j(0x1df)+a[j(0x1d2)]('\x20')),this[j(0x1d9)](a);}[a42i(0x1d9)](a){const k=a42i,b=a[k(0x1d2)]('\x20')['toLowerCase'](),c=this[k(0x1dc)][k(0x1e2)];if(!c[k(0x1d4)][k(0x1e1)](b))return this[k(0x1c3)]['write']('Item\x20\x22'+b+k(0x1cf)+c[k(0x1e4)]+k(0x1c6)),'There\x20is\x20no\x20item\x20\x22'+b+k(0x1cc);const d=c['inventory'][k(0x1ce)](b);if(!d)return this[k(0x1c3)]['write'](k(0x1db)+b+k(0x1c2)+c[k(0x1e4)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),'There\x20is\x20no\x20item\x20\x22'+b+k(0x1cc);try{return this[k(0x1dc)]['addInventory'](d),this['logger'][k(0x1d1)](k(0x1ca)+b+k(0x1d3)+this['actor'][k(0x1e4)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c['inventory'][k(0x1de)](b),this[k(0x1c3)][k(0x1d1)]('Successfully\x20removed\x20\x22'+b+'\x22\x20from\x20'+c['name']+k(0x1cd)),k(0x1e0)+b+'.';}catch(e){return this[k(0x1c3)][k(0x1d1)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[k(0x1c4)]),k(0x1da)+b+k(0x1c0);}}}function a42c(){const l=['hasItem','currentLocation','search','name','1655495zBWOEI','execute','verb','2808136NmMHHt','\x22\x20is\x20too\x20heavy\x20to\x20carry.','constructor','\x22\x20not\x20retrieved\x20from\x20','logger','message','Pick\x20up\x20an\x20item.','\x20during\x20\x27Take\x27\x20command.','(((.+)+)+)+$','15457689ZWdqMP','toString','Successfully\x20added\x20\x22','921256BwXPOJ','\x22\x20in\x20this\x20room.','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','getItem','\x22\x20not\x20found\x20in\x20','2022231taOGci','write','join','\x22\x20to\x20','inventory','4392594szdlxh','390626JEHfAY','7lfrWsv','4dwYmqd','take','The\x20item\x20\x22','Item\x20\x22','actor','apply','removeItem','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','You\x20have\x20taken\x20the\x20'];a42c=function(){return l;};return a42c();}
@@ -1 +1 @@
1
- const a43h=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x182))/0x1*(parseInt(f(0x17d))/0x2)+-parseInt(f(0x18e))/0x3*(parseInt(f(0x189))/0x4)+parseInt(f(0x18d))/0x5*(parseInt(f(0x191))/0x6)+parseInt(f(0x17f))/0x7+parseInt(f(0x18f))/0x8*(-parseInt(f(0x190))/0x9)+-parseInt(f(0x192))/0xa*(parseInt(f(0x17e))/0xb)+-parseInt(f(0x18b))/0xc*(-parseInt(f(0x178))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xa4c4b));const a43b=(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;};}()),a43a=a43b(this,function(){const g=a43d;return a43a[g(0x17c)]()['search'](g(0x17b))['toString']()[g(0x181)](a43a)[g(0x18c)]('(((.+)+)+)+$');});a43a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a43h(0x179)]='unqeuip';static [a43h(0x180)]=a43h(0x18a);[a43h(0x187)](a){const i=a43h,b=a[i(0x183)]('\x20')['toLowerCase'](),c=this[i(0x17a)][i(0x188)](b);return this[i(0x185)]['write']('UnequipCommand:\x20'+this['actor'][i(0x186)]+i(0x184)+c),c;}}function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x178;let f=c[d];return f;},a43d(a,b);}function a43c(){const j=['join','\x20unqeuiped\x20','logger','name','execute','unequip','308uFuoNk','Unequip\x20an\x20item.','12zbCeFZ','search','5305sXtIAw','13347qSZkaN','280pMMuLC','58473jLQgJT','6282DeQpPn','10CYQKWu','22226737aAWinF','verb','actor','(((.+)+)+)+$','toString','2pVtrlk','14345243tWeEfA','6399659xzlrcP','description','constructor','1185881ZKDltt'];a43c=function(){return j;};return a43c();}
1
+ function a43c(){const k=['11KkPYrz','join','constructor','4DPpNlF','verb','toString','unequip','name','606327ewOLPU','2637290HeJpwb','toLowerCase','UnequipCommand:\x20','142DYjBYa','6496944poApQO','24240FRMmqr','Unequip\x20an\x20item.','128696BPCwAe','unqeuip','(((.+)+)+)+$','execute','apply','actor','630XeewMh','logger','search','9324252UTRclW','\x20unqeuiped\x20','5268315NsMnVg','description','write'];a43c=function(){return k;};return a43c();}const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x1ac))/0x1+-parseInt(f(0x1b0))/0x2*(-parseInt(f(0x1b2))/0x3)+parseInt(f(0x1c5))/0x4*(parseInt(f(0x1bf))/0x5)+-parseInt(f(0x1b1))/0x6+-parseInt(f(0x1bd))/0x7+parseInt(f(0x1b4))/0x8*(parseInt(f(0x1ba))/0x9)+parseInt(f(0x1ad))/0xa*(-parseInt(f(0x1c2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xa64d3));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x1a9)]()['search'](h(0x1b6))[h(0x1a9)]()[h(0x1c4)](a43a)[h(0x1bc)](h(0x1b6));});a43a();function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a43d(a,b);}import{Command}from'./command.js';export class UnequipCommand extends Command{static [a43i(0x1c6)]=a43i(0x1b5);static [a43i(0x1c0)]=a43i(0x1b3);[a43i(0x1b7)](a){const j=a43i,b=a[j(0x1c3)]('\x20')[j(0x1ae)](),c=this[j(0x1b9)][j(0x1aa)](b);return this[j(0x1bb)][j(0x1c1)](j(0x1af)+this[j(0x1b9)][j(0x1ab)]+j(0x1be)+c),c;}}
@@ -1 +1 @@
1
- const a44k=a44d;function a44c(){const n=['constructor','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','245112miYWCI','Unlock\x20a\x20door.','4TvvMoz','(((.+)+)+)+$','search','\x22\x20here.','61616wktpTt','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','unlockItemOrSolution','631983fkBlON','description','get','exits','has','2491251NNjKJr','actor','logger','15180rHHbeL','getItem','name','execute','UnlockCommand:\x20No\x20target\x20specified.','130iIFqlU','write','There\x27s\x20no\x20door\x20named\x20\x22','length','toLowerCase','UnlockCommand:\x20','unlock','isValidDirection','6VkRAFM','772533hXfDbT','apply','234oVmMkV','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','.\x20Result:\x20','inventory','currentLocation','toString','hasItem','134828lDMwJb'];a44c=function(){return n;};return a44c();}function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xed;let f=c[d];return f;},a44d(a,b);}(function(a,b){const h=a44d,c=a();while(!![]){try{const d=parseInt(h(0x10b))/0x1+parseInt(h(0x10e))/0x2+-parseInt(h(0x102))/0x3*(parseInt(h(0x110))/0x4)+parseInt(h(0xf4))/0x5*(parseInt(h(0x101))/0x6)+-parseInt(h(0xf1))/0x7+-parseInt(h(0x114))/0x8*(parseInt(h(0x104))/0x9)+parseInt(h(0xf9))/0xa*(parseInt(h(0x117))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x2f475));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x103)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a[j(0x109)]()[j(0x112)](j(0x111))['toString']()[j(0x10c)](a44a)['search'](j(0x111));});a44a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static ['verb']=a44k(0xff);static [a44k(0xed)]=a44k(0x10f);[a44k(0xf7)](a){const l=a44k;return this[l(0xff)](a);}[a44k(0xff)](a){const m=a44k;if(a[m(0xfc)]===0x0)return this[m(0xf3)]['error'](m(0xf8)),m(0x10d);const b=a[0x0]['toLowerCase'](),c=this[m(0xf2)][m(0x108)];if(this[m(0x100)](b)&&c['exits'][m(0xf0)](b)){const d=c[m(0xef)][m(0xee)](b);if(d instanceof Door){const e=d[m(0x116)]?.[m(0xfd)]();if(e&&this[m(0xf2)][m(0x107)][m(0x10a)](e)){const f=this[m(0xf2)][m(0x107)][m(0xf5)](e);if(f){const g=c['attemptUnlockExit'](b,f[m(0xf6)]);return this['logger'][m(0xfa)]('UnlockCommand:\x20'+this[m(0xf2)][m(0xf6)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+m(0x106)+g),g;}}return this[m(0xf3)][m(0xfa)]('UnlockCommand:\x20'+this[m(0xf2)]['name']+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),m(0x115);}else return this[m(0xf3)][m(0xfa)](m(0xfe)+b+m(0x105)+c[m(0xf6)]+'.'),m(0xfb)+b+m(0x113);}else return this['logger'][m(0xfa)](m(0xfe)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[m(0xf6)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+m(0x113);}}
1
+ function a44c(){const m=['actor','5gNiMaX','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','verb','exits','There\x27s\x20no\x20door\x20named\x20\x22','2456912XrVpBw','toString','name','9416133EbveUL','hasItem','attemptUnlockExit','logger','17805172UaJInq','UnlockCommand:\x20','6CzXzzS','\x22\x20here.','8QSeTtx','length','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','unlock','697047FdTIWu','isValidDirection','error','get','(((.+)+)+)+$','execute','write','\x20is\x20attempted\x20to\x20unlock\x20','description','search','14441ODFjTX','toLowerCase','11987280ibHJRQ','currentLocation','apply','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','constructor','116098ZZTVxR','2802MTOBcP','.\x20Result:\x20'];a44c=function(){return m;};return a44c();}const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=parseInt(h(0x182))/0x1+-parseInt(h(0x193))/0x2*(parseInt(h(0x1a5))/0x3)+-parseInt(h(0x19c))/0x4*(parseInt(h(0x197))/0x5)+-parseInt(h(0x194))/0x6*(parseInt(h(0x18c))/0x7)+-parseInt(h(0x17e))/0x8*(parseInt(h(0x19f))/0x9)+parseInt(h(0x18e))/0xa+parseInt(h(0x1a3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xbd12b));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a[j(0x19d)]()[j(0x18b)]('(((.+)+)+)+$')[j(0x19d)]()[j(0x192)](a44a)['search'](j(0x186));});a44a();function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x17d;let f=c[d];return f;},a44d(a,b);}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a44k(0x199)]=a44k(0x181);static [a44k(0x18a)]='Unlock\x20a\x20door.';[a44k(0x187)](a){return this['unlock'](a);}[a44k(0x181)](a){const l=a44k;if(a[l(0x17f)]===0x0)return this[l(0x1a2)][l(0x184)]('UnlockCommand:\x20No\x20target\x20specified.'),l(0x180);const b=a[0x0][l(0x18d)](),c=this[l(0x196)][l(0x18f)];if(this[l(0x183)](b)&&c[l(0x19a)]['has'](b)){const d=c[l(0x19a)][l(0x185)](b);if(d instanceof Door){const e=d['unlockItemOrSolution']?.[l(0x18d)]();if(e&&this[l(0x196)]['inventory'][l(0x1a0)](e)){const f=this[l(0x196)]['inventory']['getItem'](e);if(f){const g=c[l(0x1a1)](b,f[l(0x19e)]);return this[l(0x1a2)][l(0x188)](l(0x1a4)+this[l(0x196)]['name']+l(0x189)+b+l(0x195)+g),g;}}return this['logger']['write']('UnlockCommand:\x20'+this['actor'][l(0x19e)]+l(0x191)+b+'.'),'You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.';}else return this[l(0x1a2)][l(0x188)](l(0x1a4)+b+l(0x198)+c[l(0x19e)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+l(0x17d);}else return this['logger']['write'](l(0x1a4)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c['name']+'.'),l(0x19b)+b+l(0x17d);}}
@@ -1 +1 @@
1
- function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a45d(a,b);}const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0x1ec))/0x1+parseInt(f(0x1e3))/0x2*(-parseInt(f(0x1e5))/0x3)+-parseInt(f(0x1f3))/0x4+-parseInt(f(0x1ed))/0x5*(-parseInt(f(0x1ea))/0x6)+-parseInt(f(0x1fd))/0x7+parseInt(f(0x202))/0x8*(parseInt(f(0x1ef))/0x9)+parseInt(f(0x207))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x5b390));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x1e2)]()['search'](h(0x1e9))[h(0x1e2)]()[h(0x1fa)](a45a)[h(0x1f5)](h(0x1e9));});a45a();import{Command}from'./command.js';export class UseCommand extends Command{static ['verb']=a45i(0x206);static [a45i(0x1e7)]=a45i(0x203);[a45i(0x1f9)](a){return this['use'](a);}[a45i(0x206)](a){const j=a45i,b=a[j(0x201)]('\x20')[j(0x1eb)]();if(!this[j(0x1fb)][j(0x205)][j(0x1ff)](b))return this[j(0x1fe)][j(0x1e4)](j(0x200)+this['actor']['name']+j(0x1ee)+b+j(0x1e6)),j(0x1fc)+b+j(0x1f8);const c=this['actor']['inventory'][j(0x1f6)](b);if(!c)return this[j(0x1fe)][j(0x1e4)](j(0x200)+b+j(0x1f0)+this[j(0x1fb)][j(0x1f4)]+j(0x204)),j(0x1fc)+b+'\x20to\x20use.';if(typeof c[j(0x206)]===j(0x208)){const d=c[j(0x206)]();return this[j(0x1fe)]['write'](j(0x200)+this[j(0x1fb)][j(0x1f4)]+j(0x1f2)+b+'.'),d;}else return this[j(0x1fe)][j(0x1e4)]('UseCommand:\x20'+b+j(0x1f1)),j(0x1f7)+b+'\x20in\x20this\x20way.';}}function a45c(){const k=['535405OBrABs','5FlJCtF','\x20attempted\x20to\x20use\x20','81QngYfD','\x20not\x20retrieved\x20from\x20','\x20doesn\x27t\x20have\x20a\x20use\x20method.','\x20used\x20','2212920EibTsn','name','search','getItem','You\x20can\x27t\x20use\x20the\x20','\x20to\x20use.','execute','constructor','actor','You\x20don\x27t\x20have\x20the\x20','75901sIDIMQ','logger','hasItem','UseCommand:\x20','join','608376gECzMh','Use\x20an\x20item.','\x27s\x20inventory.','inventory','use','1964720BlaFzX','function','toString','1482802SnVeKm','write','3xVQCZs',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','description','apply','(((.+)+)+)+$','1576932keraXn','toLowerCase'];a45c=function(){return k;};return a45c();}
1
+ const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0xc1))/0x1+-parseInt(f(0xb7))/0x2+parseInt(f(0xc7))/0x3+-parseInt(f(0xc3))/0x4+parseInt(f(0xb0))/0x5+-parseInt(f(0xcc))/0x6+-parseInt(f(0xb4))/0x7*(-parseInt(f(0xbc))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xdf74c));function a45c(){const l=['\x20to\x20use.','toString','(((.+)+)+)+$','2682786UKcsmT',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','\x20used\x20','You\x20can\x27t\x20use\x20the\x20','name','9328230prZnVQ','apply','actor','logger','getItem','use','\x27s\x20inventory.','6420810mtqzKE','\x20not\x20retrieved\x20from\x20','constructor','verb','16079DvoclX','execute','You\x20don\x27t\x20have\x20the\x20','2726998mbkrim','search','write','inventory','UseCommand:\x20','4728JqAIRr','toLowerCase','\x20attempted\x20to\x20use\x20','Use\x20an\x20item.','description','904553uJKPdv','hasItem','2428096gBUGRR'];a45c=function(){return l;};return a45c();}function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xad;let f=c[d];return f;},a45d(a,b);}const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0xc5)]()[h(0xb8)]('(((.+)+)+)+$')[h(0xc5)]()[h(0xb2)](a45a)[h(0xb8)](h(0xc6));});a45a();import{Command}from'./command.js';export class UseCommand extends Command{static [a45i(0xb3)]=a45i(0xae);static [a45i(0xc0)]=a45i(0xbf);[a45i(0xb5)](a){const j=a45i;return this[j(0xae)](a);}[a45i(0xae)](a){const k=a45i,b=a['join']('\x20')[k(0xbd)]();if(!this[k(0xce)][k(0xba)][k(0xc2)](b))return this[k(0xcf)][k(0xb9)](k(0xbb)+this[k(0xce)][k(0xcb)]+k(0xbe)+b+k(0xc8)),k(0xb6)+b+k(0xc4);const c=this[k(0xce)][k(0xba)][k(0xad)](b);if(!c)return this[k(0xcf)][k(0xb9)](k(0xbb)+b+k(0xb1)+this[k(0xce)]['name']+k(0xaf)),k(0xb6)+b+k(0xc4);if(typeof c['use']==='function'){const d=c['use']();return this[k(0xcf)]['write'](k(0xbb)+this['actor'][k(0xcb)]+k(0xc9)+b+'.'),d;}else return this[k(0xcf)]['write'](k(0xbb)+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),k(0xca)+b+'\x20in\x20this\x20way.';}}
@@ -1 +1 @@
1
- const a46i=a46d;function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0x12c;let f=c[d];return f;},a46d(a,b);}(function(a,b){const f=a46d,c=a();while(!![]){try{const d=parseInt(f(0x12d))/0x1*(parseInt(f(0x134))/0x2)+-parseInt(f(0x137))/0x3*(-parseInt(f(0x131))/0x4)+parseInt(f(0x12e))/0x5*(parseInt(f(0x13b))/0x6)+parseInt(f(0x13c))/0x7+-parseInt(f(0x132))/0x8*(parseInt(f(0x13d))/0x9)+parseInt(f(0x138))/0xa+-parseInt(f(0x12c))/0xb*(parseInt(f(0x139))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xa3981));const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a[h(0x13a)]()[h(0x135)](h(0x13f))['toString']()[h(0x136)](a46a)[h(0x135)]('(((.+)+)+)+$');});a46a();export class CommandFactory{static ['commandMap']={};static[a46i(0x133)](a,b){const j=a46i;this[j(0x13e)][a]=b;}static[a46i(0x130)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){const k=a46i;return this[k(0x13e)];}}function a46c(){const l=['18048ORJLbX','registerCommand','506378sRIfyu','search','constructor','15636XuffjP','598600wtTUag','24bKgMPP','toString','222QLElnb','5432231jQcfJO','828DNcQuc','commandMap','(((.+)+)+)+$','12735239ncPZXC','2yvwPRF','136720jFWBtR','apply','createCommand','644wPTWHs'];a46c=function(){return l;};return a46c();}
1
+ const a46i=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d=-parseInt(f(0xb3))/0x1+parseInt(f(0xad))/0x2*(parseInt(f(0xb5))/0x3)+parseInt(f(0xbc))/0x4*(-parseInt(f(0xb7))/0x5)+parseInt(f(0xb2))/0x6+parseInt(f(0xb6))/0x7+parseInt(f(0xb1))/0x8*(-parseInt(f(0xae))/0x9)+-parseInt(f(0xb9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x49365));function a46c(){const l=['getAllRegisteredCommands','search','4IMZqPR','commandMap','200bJdbux','3879peigOQ','constructor','apply','6616oJITxO','2808786gjvNMd','90237JxHOHE','toString','4314UGSRzC','3846605xzVPAH','422935MczRiF','createCommand','3303080eZLhTR'];a46c=function(){return l;};return a46c();}function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0xad;let f=c[d];return f;},a46d(a,b);}const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a[h(0xb4)]()[h(0xbb)]('(((.+)+)+)+$')['toString']()[h(0xaf)](a46a)[h(0xbb)]('(((.+)+)+)+$');});a46a();export class CommandFactory{static [a46i(0xbd)]={};static['registerCommand'](a,b){const j=a46i;this[j(0xbd)][a]=b;}static[a46i(0xb8)](a,b){const c=this['commandMap'][a];if(c)return new c(b);return null;}static[a46i(0xba)](){const k=a46i;return this[k(0xbd)];}}
@@ -1 +1 @@
1
- const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x16b))/0x1+parseInt(f(0x159))/0x2+parseInt(f(0x16c))/0x3*(parseInt(f(0x16a))/0x4)+parseInt(f(0x165))/0x5*(-parseInt(f(0x156))/0x6)+parseInt(f(0x171))/0x7+-parseInt(f(0x173))/0x8+-parseInt(f(0x175))/0x9*(-parseInt(f(0x168))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xe8141));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a['toString']()[h(0x15a)]('(((.+)+)+)+$')[h(0x170)]()['constructor'](a47a)[h(0x15a)](h(0x15f));});function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x154;let f=c[d];return f;},a47d(a,b);}a47a();import{Room,Puzzle,Inventory}from'../models/_index.js';function a47c(){const o=['apply','1546008yJUFxG','items','INSIDE','1929644gamGHL','search','setPuzzle','addItem','gauntlets','createItem','(((.+)+)+)+$','roomType','puzzle','rewardItem','name','helmet','35HaKynz','description','toUpperCase','2350VYxYLU','createRoom','3565496RnVoex','539113vNRkCn','3mYGRYx','convertToRoomConfig','rifle','legarmor','toString','3768128xJuLUt','content','10105312ZIONgF','key','41508sIJyhu','boots','forEach','gloves','inventory'];a47c=function(){return o;};return a47c();}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{[a47i(0x169)](a){const j=a47i,b=this[j(0x16d)](a),c=new Room(b);if(a['items']){const d=new Inventory();a[j(0x157)][j(0x177)](e=>{const k=j;d[k(0x15c)](this[k(0x15e)](e));}),c[j(0x154)]=d;}return a['puzzle']&&c[j(0x15b)](this['createPuzzle'](a[j(0x161)])),c;}['createItem'](a){const l=a47i;switch(a['type']){case l(0x174):return new Key(a[l(0x163)],a['description']);case'book':return new Book(a[l(0x163)],a[l(0x166)],a[l(0x172)]);case'sword':return new Sword(a['name'],a[l(0x166)]);case l(0x16e):return new Rifle(a[l(0x163)],a[l(0x166)]);case l(0x164):return new Helmet(a['name'],a[l(0x166)]);case'bodyarmor':return new BodyArmor(a[l(0x163)],a[l(0x166)]);case l(0x16f):return new LegArmor(a[l(0x163)],a[l(0x166)]);case l(0x176):return new Boots(a[l(0x163)],a['description']);case l(0x178):return new Gloves(a[l(0x163)],a['description']);case l(0x15d):return new Gauntlets(a[l(0x163)],a[l(0x166)]);default:return new BasicItem(a['name'],a['description']);}}['createPuzzle'](a){const m=a47i,b=this[m(0x15e)](a[m(0x162)]);return new Puzzle({...a,'rewardItem':b});}[a47i(0x16d)](a){const n=a47i,b=a[n(0x160)]&&RoomType[a[n(0x160)][n(0x167)]()]?RoomType[a[n(0x160)][n(0x167)]()]:RoomType[n(0x158)];return{'name':a[n(0x163)],'description':a[n(0x166)],'isStartRoom':a['isStartRoom'],'roomType':b};}}
1
+ const a47h=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0xbe))/0x1*(-parseInt(f(0xbc))/0x2)+parseInt(f(0xce))/0x3+parseInt(f(0xd6))/0x4+-parseInt(f(0xba))/0x5*(parseInt(f(0xbb))/0x6)+-parseInt(f(0xd7))/0x7*(parseInt(f(0xc3))/0x8)+parseInt(f(0xc7))/0x9+-parseInt(f(0xcf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x8ab5e));const a47b=(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;};}()),a47a=a47b(this,function(){const g=a47d;return a47a[g(0xdc)]()['search'](g(0xc6))['toString']()[g(0xcc)](a47a)[g(0xc4)]('(((.+)+)+)+$');});a47a();import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0xba;let f=c[d];return f;},a47d(a,b);}function a47c(){const m=['10lTPBra','gauntlets','97085PVCPTd','rifle','sword','INSIDE','description','24wCGVpX','search','content','(((.+)+)+)+$','2445003BozhPy','isStartRoom','book','setPuzzle','helmet','constructor','bodyarmor','2404575feJcRf','10476800Hxmnwo','inventory','roomType','convertToRoomConfig','addItem','puzzle','name','3771100ZlIMpO','1502830BCosih','createItem','createRoom','legarmor','createPuzzle','toString','toUpperCase','items','8270drTsUh','876snWMKl'];a47c=function(){return m;};return a47c();}export class RoomFactory{[a47h(0xd9)](a){const i=a47h,b=this[i(0xd2)](a),c=new Room(b);if(a['items']){const d=new Inventory();a[i(0xde)]['forEach'](e=>{const j=i;d[j(0xd3)](this[j(0xd8)](e));}),c[i(0xd0)]=d;}return a[i(0xd4)]&&c[i(0xca)](this[i(0xdb)](a[i(0xd4)])),c;}['createItem'](a){const k=a47h;switch(a['type']){case'key':return new Key(a[k(0xd5)],a[k(0xc2)]);case k(0xc9):return new Book(a['name'],a['description'],a[k(0xc5)]);case k(0xc0):return new Sword(a[k(0xd5)],a['description']);case k(0xbf):return new Rifle(a[k(0xd5)],a['description']);case k(0xcb):return new Helmet(a[k(0xd5)],a['description']);case k(0xcd):return new BodyArmor(a[k(0xd5)],a[k(0xc2)]);case k(0xda):return new LegArmor(a[k(0xd5)],a['description']);case'boots':return new Boots(a[k(0xd5)],a[k(0xc2)]);case'gloves':return new Gloves(a[k(0xd5)],a[k(0xc2)]);case k(0xbd):return new Gauntlets(a[k(0xd5)],a[k(0xc2)]);default:return new BasicItem(a[k(0xd5)],a[k(0xc2)]);}}[a47h(0xdb)](a){const b=this['createItem'](a['rewardItem']);return new Puzzle({...a,'rewardItem':b});}['convertToRoomConfig'](a){const l=a47h,b=a['roomType']&&RoomType[a[l(0xd1)][l(0xdd)]()]?RoomType[a['roomType'][l(0xdd)]()]:RoomType[l(0xc1)];return{'name':a[l(0xd5)],'description':a['description'],'isStartRoom':a[l(0xc8)],'roomType':b};}}
@@ -1 +1 @@
1
- const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=-parseInt(h(0x157))/0x1+-parseInt(h(0x15f))/0x2+parseInt(h(0x164))/0x3+parseInt(h(0x152))/0x4+parseInt(h(0x179))/0x5+parseInt(h(0x166))/0x6+-parseInt(h(0x16e))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xd0386));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a[j(0x168)]()[j(0x177)](j(0x15a))[j(0x168)]()[j(0x153)](a48a)[j(0x177)]('(((.+)+)+)+$');});a48a();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 a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x14f;let f=c[d];return f;},a48d(a,b);}import{UseCommand}from'./commands/use.js';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';function a48c(){const s=['clear','unequip','244072UeeyyH','initialize','unlock','(((.+)+)+)+$','execute','rooms','solve','instance','104856TbOXUb','use','name','quit','toLowerCase','3413067CeMOod','slice','8790714rzqjhO','-\x20clear:\x20Clear\x20the\x20screen.\x0a','toString','getDescription','lock','trim','getHelpMessage','currentLocation','25524121MRftcu','take','apply','look','help','determineStartRoom','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','registerCommand','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','search','currentRoom','4649780uFjScM','hasOwnProperty','scene','player','5051636UKklOa','constructor','createCommand'];a48c=function(){return s;};return a48c();}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 ['instance'];[a48k(0x150)];[a48k(0x151)];[a48k(0x178)];[a48k(0x15c)];constructor(a,b){const l=a48k;this[l(0x151)]=a,this[l(0x150)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x150)][l(0x158)](),this['player'][l(0x16d)]=this['determineStartRoom'](),this['registerCommands']();}['registerCommands'](){const m=a48k;CommandFactory[m(0x175)](m(0x171),LookCommand),CommandFactory[m(0x175)]('go',GoCommand),CommandFactory[m(0x175)](m(0x16f),TakeCommand),CommandFactory[m(0x175)](m(0x160),UseCommand),CommandFactory[m(0x175)]('equip',EquipCommand),CommandFactory[m(0x175)](m(0x156),UnequipCommand),CommandFactory[m(0x175)](m(0x15d),SolveCommand),CommandFactory[m(0x175)]('drop',DropCommand),CommandFactory[m(0x175)](m(0x159),UnlockCommand),CommandFactory[m(0x175)](m(0x16a),LockCommand),CommandFactory[m(0x175)](m(0x177),SearchCommand),CommandFactory[m(0x175)]('say',SayCommand);}[a48k(0x173)](){const n=a48k;return this['scene'][n(0x173)]();}['getWelcomeMessage'](){const o=a48k;return'Welcome,\x20'+this[o(0x151)][o(0x161)];}static['getInstance'](a,b){const p=a48k;return!Game['instance']&&(Game[p(0x15e)]=new Game(a,b)),Game[p(0x15e)];}['handleInput'](a){const q=a48k,b=a[q(0x16b)]()['split']('\x20'),c=b[0x0][q(0x163)](),d=b[q(0x165)](0x1);if(c===q(0x162))return null;if(c==='maka')return q(0x176);if(c===q(0x172))return this[q(0x16c)]();if(c===q(0x155))return'';const e={'actor':this[q(0x151)],'rooms':this[q(0x150)]['getRooms'](),'scene':this[q(0x150)]},f=CommandFactory[q(0x154)](c,e);if(f){const g=f[q(0x15b)](d);return g;}return q(0x174)+c+'\x22.';}[a48k(0x16c)](){const r=a48k,a=CommandFactory['getAllRegisteredCommands']();let b='Available\x20Commands:\x0a';for(const c in a){if(a[r(0x14f)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x169)]()+'\x0a';}}return b+=r(0x167),b+='-\x20quit:\x20Exit\x20the\x20game.\x0a',b;}}
1
+ const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=-parseInt(h(0x16d))/0x1*(parseInt(h(0x167))/0x2)+parseInt(h(0x157))/0x3*(parseInt(h(0x15d))/0x4)+parseInt(h(0x13f))/0x5*(parseInt(h(0x155))/0x6)+-parseInt(h(0x145))/0x7*(-parseInt(h(0x168))/0x8)+parseInt(h(0x152))/0x9+-parseInt(h(0x153))/0xa+-parseInt(h(0x14a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xc05ce));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x169)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a['toString']()[j(0x161)](j(0x16c))['toString']()[j(0x144)](a48a)[j(0x161)]('(((.+)+)+)+$');});function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x13f;let f=c[d];return f;},a48d(a,b);}a48a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';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';function a48c(){const s=['apply','getHelpMessage','Available\x20Commands:\x0a','(((.+)+)+)+$','2eisIgl','15VjpGOY','createCommand','drop','player','handleInput','constructor','7MfxqhG','-\x20quit:\x20Exit\x20the\x20game.\x0a','-\x20clear:\x20Clear\x20the\x20screen.\x0a','registerCommand','Welcome,\x20','34213652kZrDBy','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','instance','unlock','currentLocation','lock','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','split','12752181JOOUuz','3641710azNOkW','look','2457534OKzcmD','solve','631662bWdFpO','scene','slice','hasOwnProperty','help','registerCommands','24XeGQtT','name','execute','trim','search','determineStartRoom','take','quit','getWelcomeMessage','getDescription','504302LjPUgG','6861784XuTeZk'];a48c=function(){return s;};return a48c();}export default class Game{static [a48k(0x14c)];[a48k(0x158)];['player'];['currentRoom'];['rooms'];constructor(a,b){const l=a48k;this[l(0x142)]=a,this[l(0x158)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x158)]['initialize'](),this[l(0x142)][l(0x14e)]=this[l(0x162)](),this[l(0x15c)]();}['registerCommands'](){const m=a48k;CommandFactory[m(0x148)](m(0x154),LookCommand),CommandFactory[m(0x148)]('go',GoCommand),CommandFactory[m(0x148)](m(0x163),TakeCommand),CommandFactory[m(0x148)]('use',UseCommand),CommandFactory[m(0x148)]('equip',EquipCommand),CommandFactory[m(0x148)]('unequip',UnequipCommand),CommandFactory[m(0x148)](m(0x156),SolveCommand),CommandFactory[m(0x148)](m(0x141),DropCommand),CommandFactory[m(0x148)](m(0x14d),UnlockCommand),CommandFactory[m(0x148)](m(0x14f),LockCommand),CommandFactory['registerCommand'](m(0x161),SearchCommand),CommandFactory[m(0x148)]('say',SayCommand);}[a48k(0x162)](){const n=a48k;return this[n(0x158)]['determineStartRoom']();}[a48k(0x165)](){const o=a48k;return o(0x149)+this[o(0x142)][o(0x15e)];}static['getInstance'](a,b){const p=a48k;return!Game[p(0x14c)]&&(Game[p(0x14c)]=new Game(a,b)),Game[p(0x14c)];}[a48k(0x143)](a){const q=a48k,b=a[q(0x160)]()[q(0x151)]('\x20'),c=b[0x0]['toLowerCase'](),d=b[q(0x159)](0x1);if(c===q(0x164))return null;if(c==='maka')return q(0x14b);if(c===q(0x15b))return this[q(0x16a)]();if(c==='clear')return'';const e={'actor':this['player'],'rooms':this[q(0x158)]['getRooms'](),'scene':this[q(0x158)]},f=CommandFactory[q(0x140)](c,e);if(f){const g=f[q(0x15f)](d);return g;}return q(0x150)+c+'\x22.';}[a48k(0x16a)](){const r=a48k,a=CommandFactory['getAllRegisteredCommands']();let b=r(0x16b);for(const c in a){if(a[r(0x15a)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x166)]()+'\x0a';}}return b+=r(0x147),b+=r(0x146),b;}}
@@ -1 +1 @@
1
- (function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0xc0))/0x1*(parseInt(f(0xc9))/0x2)+parseInt(f(0xc2))/0x3*(-parseInt(f(0xcc))/0x4)+parseInt(f(0xcd))/0x5+-parseInt(f(0xc6))/0x6+parseInt(f(0xbf))/0x7+parseInt(f(0xc4))/0x8*(parseInt(f(0xc8))/0x9)+-parseInt(f(0xca))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x5ddf5));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0xc5)]()[h(0xc1)](h(0xc3))['toString']()[h(0xc7)](a49a)[h(0xc1)](h(0xc3));});a49a();export*from'./door.js';function a49c(){var i=['19TCgxXA','search','459PqQxWI','(((.+)+)+)+$','16wCMPUK','toString','1260846CrIPjP','constructor','1622421QfbruZ','27910opkxYF','5713460FzldTH','apply','7164ifKQie','3406220LfCZtd','4643618HsVPWF'];a49c=function(){return i;};return a49c();}export*from'./inventory.js';export*from'./item.js';export*from'./npc.js';export*from'./player.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xbf;var f=c[d];return f;},a49d(a,b);}export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
1
+ (function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x1d8))/0x1*(-parseInt(f(0x1db))/0x2)+-parseInt(f(0x1df))/0x3+-parseInt(f(0x1da))/0x4+-parseInt(f(0x1d4))/0x5+-parseInt(f(0x1d7))/0x6+-parseInt(f(0x1dd))/0x7+parseInt(f(0x1de))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x3282f));function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1d4;var f=c[d];return f;},a49d(a,b);}var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x1dc)]()[h(0x1d9)](h(0x1d5))['toString']()[h(0x1d6)](a49a)[h(0x1d9)](h(0x1d5));});a49a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';function a49c(){var i=['(((.+)+)+)+$','constructor','1056270bDMPip','60405lNhmDK','search','1386020SwrGas','2wYIBer','toString','930538GDLjUZ','12190912Ycmxvx','587619GHMiUc','apply','2026035tzlkmI'];a49c=function(){return i;};return a49c();}export*from'./npc.js';export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
@@ -1 +1 @@
1
- var a50h=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=parseInt(f(0x177))/0x1+parseInt(f(0x17f))/0x2*(parseInt(f(0x185))/0x3)+parseInt(f(0x17a))/0x4*(parseInt(f(0x178))/0x5)+-parseInt(f(0x17c))/0x6+parseInt(f(0x17d))/0x7*(parseInt(f(0x179))/0x8)+parseInt(f(0x18b))/0x9+-parseInt(f(0x18f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xb96bb));var a50b=(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;};}()),a50a=a50b(this,function(){var g=a50d;return a50a[g(0x176)]()[g(0x18a)](g(0x186))[g(0x176)]()[g(0x189)](a50a)['search'](g(0x186));});a50a();function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x174;var f=c[d];return f;},a50d(a,b);}import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a50c(){var m=['unlockItemOrSolution','2bDdvTP','roomA','Failed\x20to\x20unlock\x20door:\x20','checkIfLocked','.\x20Used:\x20','.\x20Is\x20Locked:\x20','3048906BGTRfr','(((.+)+)+)+$','attemptUnlock','To\x20','constructor','search','10403118oMvpdw','isLockable','write','roomB','39516720UikxeY','isLocked','Door\x20created\x20between\x20','Door\x20unlocked:\x20','getOtherSide','name','toString','980845ZrZJBz','5rdBzbY','1288264gVbvih','5602628fMxuxb','logger','3886296OlPgZn','35hYTdem'];a50c=function(){return m;};return a50c();}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a50h(0x180)];[a50h(0x18e)];[a50h(0x190)];[a50h(0x17e)];[a50h(0x175)];[a50h(0x17b)];[a50h(0x18c)];constructor(a){var i=a50h;super(),this[i(0x180)]=a[i(0x180)],this[i(0x18e)]=a[i(0x18e)],this[i(0x190)]=a[i(0x190)]||![],this['unlockItemOrSolution']=a['unlockItemOrSolution'],this['name']=a[i(0x175)]?capitalCase(a[i(0x175)]):i(0x188)+a['roomB']['name'],this[i(0x17b)]=Logger['getInstance'](),this[i(0x18c)]=!!a[i(0x17e)],this['logger']['write'](i(0x191)+this['roomA']['name']+'\x20and\x20'+this['roomB'][i(0x175)]+i(0x184)+this[i(0x190)]);}[a50h(0x174)](a){var j=a50h;return this['roomA']===a?this[j(0x18e)]:this['roomA'];}[a50h(0x187)](a){var k=a50h;if(this[k(0x190)]&&this[k(0x17e)]&&this['unlockItemOrSolution']===a)return this[k(0x190)]=![],this['logger'][k(0x18d)](k(0x192)+this['name']+k(0x183)+a),!![];return this['logger'][k(0x18d)](k(0x181)+this['name']+k(0x183)+a),![];}[a50h(0x182)](){var l=a50h;return this[l(0x190)];}['checkIfLockable'](){return this['isLockable'];}}
1
+ var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=-parseInt(f(0x1cb))/0x1+parseInt(f(0x1c9))/0x2*(parseInt(f(0x1ca))/0x3)+parseInt(f(0x1e5))/0x4*(-parseInt(f(0x1d4))/0x5)+parseInt(f(0x1d8))/0x6*(-parseInt(f(0x1d6))/0x7)+parseInt(f(0x1d1))/0x8*(-parseInt(f(0x1d9))/0x9)+parseInt(f(0x1db))/0xa+parseInt(f(0x1df))/0xb*(parseInt(f(0x1d3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x3d83c));var a50b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a50d;if(c){var e=c[g(0x1cd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){var h=a50d;return a50a[h(0x1d5)]()['search'](h(0x1d7))[h(0x1d5)]()['constructor'](a50a)['search'](h(0x1d7));});a50a();function a50c(){var o=['isLocked','870750hZQFAw','name','Failed\x20to\x20unlock\x20door:\x20','getInstance','11qbAFdh','write','.\x20Used:\x20','unlockItemOrSolution','isLockable','To\x20','468868ejjxfn','logger','checkIfLocked','10JvYZzO','146595ivJJQs','270519sMUsUR','Door\x20created\x20between\x20','apply','roomB','Door\x20unlocked:\x20','attemptUnlock','57704Ikjgwr','roomA','11798964KZGPpp','10BiugbZ','toString','7lqiXHp','(((.+)+)+)+$','2610654HoTkbW','153suDRRT'];a50c=function(){return o;};return a50c();}import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x1c7;var f=c[d];return f;},a50d(a,b);}export class Door extends AbstractDoor{[a50i(0x1d2)];[a50i(0x1ce)];[a50i(0x1da)];['unlockItemOrSolution'];[a50i(0x1dc)];[a50i(0x1c7)];[a50i(0x1e3)];constructor(a){var j=a50i;super(),this[j(0x1d2)]=a[j(0x1d2)],this[j(0x1ce)]=a['roomB'],this[j(0x1da)]=a[j(0x1da)]||![],this[j(0x1e2)]=a['unlockItemOrSolution'],this[j(0x1dc)]=a[j(0x1dc)]?capitalCase(a[j(0x1dc)]):j(0x1e4)+a[j(0x1ce)][j(0x1dc)],this[j(0x1c7)]=Logger[j(0x1de)](),this['isLockable']=!!a[j(0x1e2)],this[j(0x1c7)][j(0x1e0)](j(0x1cc)+this[j(0x1d2)]['name']+'\x20and\x20'+this[j(0x1ce)][j(0x1dc)]+'.\x20Is\x20Locked:\x20'+this[j(0x1da)]);}['getOtherSide'](a){var k=a50i;return this['roomA']===a?this[k(0x1ce)]:this[k(0x1d2)];}[a50i(0x1d0)](a){var l=a50i;if(this[l(0x1da)]&&this[l(0x1e2)]&&this['unlockItemOrSolution']===a)return this[l(0x1da)]=![],this[l(0x1c7)][l(0x1e0)](l(0x1cf)+this[l(0x1dc)]+l(0x1e1)+a),!![];return this[l(0x1c7)]['write'](l(0x1dd)+this['name']+'.\x20Used:\x20'+a),![];}[a50i(0x1c8)](){var m=a50i;return this[m(0x1da)];}['checkIfLockable'](){var n=a50i;return this[n(0x1e3)];}}
@@ -1 +1 @@
1
- const a51i=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0xc7))/0x1*(parseInt(f(0xb4))/0x2)+parseInt(f(0xc1))/0x3+-parseInt(f(0xcf))/0x4+-parseInt(f(0xc5))/0x5+parseInt(f(0xbe))/0x6*(parseInt(f(0xc2))/0x7)+-parseInt(f(0xbf))/0x8*(parseInt(f(0xbb))/0x9)+parseInt(f(0xd0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x4eede));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0xb7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0xb2)]()[h(0xae)](h(0xd3))[h(0xb2)]()[h(0xb0)](a51a)[h(0xae)](h(0xd3));});function a51c(){const r=['Added\x20item:\x20','hasItem','\x20in\x20','items','getAllItems','Retrieved\x20details\x20for\x20item:\x20','search','name','constructor','join','toString','Failed\x20to\x20remove\x20item:\x20','16GxjfLX','write','Removed\x20item:\x20','apply','getWeight','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','removeItem','121608hsDhwr','logger','getItem','3764016LgFBDM','120vtaUkF','.\x20Item\x20not\x20found.','1893186OQLXHz','7nWyJUJ','Listed\x20items\x20in\x20inventory:\x20','keys','1475935VtMNGW','Checked\x20for\x20item:\x20','52436qEcEza','map','has','delete','get','getInstance','weight','set','2544300oqiDRd','6183260NTdDeF','toLowerCase','\x20from\x20inventory.','(((.+)+)+)+$','values','addItem'];a51c=function(){return r;};return a51c();}a51a();function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0xac;let f=c[d];return f;},a51d(a,b);}import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a51i(0xd9)];[a51i(0xbc)];constructor(){const j=a51i;super(),this[j(0xd9)]=new Map(),this[j(0xbc)]=Logger[j(0xcc)]();}[a51i(0xd5)](a){const k=a51i;this['items'][k(0xce)](a[k(0xaf)]['toLowerCase'](),a),this['logger'][k(0xb5)](k(0xd6)+a[k(0xaf)]+'\x20to\x20inventory.');}[a51i(0xba)](a){const l=a51i,b=this[l(0xbd)](a);if(b)return this[l(0xd9)][l(0xca)](a[l(0xd1)]()),this[l(0xbc)][l(0xb5)](l(0xb6)+a+l(0xd2)),b;return this[l(0xbc)]['write'](l(0xb3)+a+l(0xc0)),null;}[a51i(0xd7)](a){const m=a51i,b=this[m(0xd9)][m(0xc9)](a[m(0xd1)]()),c=[...this[m(0xd9)][m(0xc4)]()];return this[m(0xbc)][m(0xb5)](m(0xc6)+a+m(0xd8)+c[m(0xb1)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}[a51i(0xbd)](a){const n=a51i,b=this[n(0xd9)][n(0xcb)](a['toLowerCase']())||null;return b?this[n(0xbc)]['write'](n(0xad)+a+'.'):this[n(0xbc)][n(0xb5)](n(0xb9)+a+n(0xc0)),b;}['listItems'](){const o=a51i,a=[...this[o(0xd9)][o(0xc4)]()],b=a[o(0xc8)](c=>capitalCase(c));return this[o(0xbc)][o(0xb5)](o(0xc3)+b[o(0xb1)](',\x20')+'.'),a;}[a51i(0xb8)](){const p=a51i;let a=0x0;for(const b of this[p(0xd9)]['values']()){a+=b[p(0xcd)];}return a;}[a51i(0xac)](){const q=a51i;return[...this[q(0xd9)][q(0xd4)]()];}}
1
+ const a51k=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x14c))/0x1*(parseInt(f(0x130))/0x2)+-parseInt(f(0x153))/0x3+parseInt(f(0x14a))/0x4+-parseInt(f(0x12f))/0x5*(-parseInt(f(0x154))/0x6)+-parseInt(f(0x14d))/0x7*(-parseInt(f(0x13c))/0x8)+parseInt(f(0x14f))/0x9*(parseInt(f(0x13d))/0xa)+-parseInt(f(0x152))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x7ef6d));function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x12d;let f=c[d];return f;},a51d(a,b);}const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a51d;if(c){const e=c[g(0x131)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0x149)]()[h(0x141)]('(((.+)+)+)+$')[h(0x149)]()['constructor'](a51a)[h(0x141)]('(((.+)+)+)+$');});function a51c(){const q=['set','getWeight','934450fELjlV','1945116BDhASN','78kjuVbE','Checked\x20for\x20item:\x20','Retrieved\x20details\x20for\x20item:\x20','348675tEEhDM','814onVJXO','apply','Listed\x20items\x20in\x20inventory:\x20','\x20to\x20inventory.','removeItem','\x20from\x20inventory.','write','items','getItem','logger','has','listItems','20504XwyiMh','514570ywVaUt','getInstance','name','join','search','\x20in\x20','hasItem','toLowerCase','map','.\x20Item\x20not\x20found.','Removed\x20item:\x20','get','toString','84260czEqkb','keys','1829NrzmTi','1939YDxXPr','values','63LSVidj'];a51c=function(){return q;};return a51c();}a51a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{['items'];['logger'];constructor(){const i=a51d;super(),this['items']=new Map(),this[i(0x139)]=Logger[i(0x13e)]();}['addItem'](a){const j=a51d;this[j(0x137)][j(0x150)](a[j(0x13f)]['toLowerCase'](),a),this[j(0x139)]['write']('Added\x20item:\x20'+a[j(0x13f)]+j(0x133));}[a51k(0x134)](a){const l=a51k,b=this['getItem'](a);if(b)return this[l(0x137)]['delete'](a[l(0x144)]()),this[l(0x139)][l(0x136)](l(0x147)+a+l(0x135)),b;return this['logger'][l(0x136)]('Failed\x20to\x20remove\x20item:\x20'+a+l(0x146)),null;}[a51k(0x143)](a){const m=a51k,b=this[m(0x137)][m(0x13a)](a['toLowerCase']()),c=[...this['items']['keys']()];return this[m(0x139)][m(0x136)](m(0x12d)+a+m(0x142)+c[m(0x140)](',\x20')+'.\x20Exists:\x20'+b+'.'),b;}[a51k(0x138)](a){const n=a51k,b=this[n(0x137)][n(0x148)](a[n(0x144)]())||null;return b?this[n(0x139)][n(0x136)](n(0x12e)+a+'.'):this['logger']['write']('Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'+a+n(0x146)),b;}[a51k(0x13b)](){const o=a51k,a=[...this[o(0x137)][o(0x14b)]()],b=a[o(0x145)](c=>capitalCase(c));return this[o(0x139)][o(0x136)](o(0x132)+b[o(0x140)](',\x20')+'.'),a;}[a51k(0x151)](){let a=0x0;for(const b of this['items']['values']()){a+=b['weight'];}return a;}['getAllItems'](){const p=a51k;return[...this[p(0x137)][p(0x14e)]()];}}
@@ -1 +1 @@
1
- var a52i=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x208))/0x1*(-parseInt(f(0x20c))/0x2)+-parseInt(f(0x1f6))/0x3*(-parseInt(f(0x205))/0x4)+parseInt(f(0x20b))/0x5*(-parseInt(f(0x1fa))/0x6)+parseInt(f(0x1f3))/0x7*(-parseInt(f(0x1f7))/0x8)+parseInt(f(0x1fc))/0x9+-parseInt(f(0x1f9))/0xa*(-parseInt(f(0x204))/0xb)+-parseInt(f(0x1ff))/0xc*(parseInt(f(0x20a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xf2b80));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x206)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x200)]()[h(0x1fd)](h(0x20d))[h(0x200)]()[h(0x209)](a52a)[h(0x1fd)](h(0x20d));});a52a();function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x1f2;var f=c[d];return f;},a52d(a,b);}import{v4 as a52e}from'uuid';function a52c(){var l=['11445102OpTVyp','search','shape','141048llPdXq','toString','weight','.\x20Nothing\x20special\x20happens.','description','6513991tOIpIg','293884TJaoyV','apply','size','125MLHYay','constructor','767ugSeGb','3714715JMmcHp','18278JTNfVD','(((.+)+)+)+$','name','color','texture','205198HOQSqW','rating','use','3yuiBgY','136ZJSRUS','category','20xdyMHB','12RImwKN','uuid'];a52c=function(){return l;};return a52c();}import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a52i(0x1fb)];[a52i(0x20e)];[a52i(0x203)];[a52i(0x207)];[a52i(0x1f8)];['shape'];[a52i(0x20f)];['texture'];[a52i(0x1f4)];['weight'];constructor(a){var j=a52i;super(),this['name']=a['name'],this[j(0x203)]=a[j(0x203)],this['size']=a[j(0x207)],this[j(0x1f8)]=a[j(0x1f8)],this[j(0x1fe)]=a['shape'],this[j(0x20f)]=a[j(0x20f)],this[j(0x1f2)]=a[j(0x1f2)],this[j(0x1f4)]=a[j(0x1f4)],this[j(0x201)]=a[j(0x201)],this[j(0x1fb)]=a52e();}[a52i(0x1f5)](){var k=a52i;return'You\x20use\x20the\x20'+this[k(0x20e)]+k(0x202);}}
1
+ var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x1b4))/0x1+parseInt(f(0x1a9))/0x2*(parseInt(f(0x1b5))/0x3)+parseInt(f(0x1ae))/0x4*(parseInt(f(0x1a1))/0x5)+parseInt(f(0x1a5))/0x6+-parseInt(f(0x1a3))/0x7*(-parseInt(f(0x1b1))/0x8)+-parseInt(f(0x1ac))/0x9+-parseInt(f(0x1aa))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x668bf));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(0x1b6)]()[g(0x1a6)]('(((.+)+)+)+$')[g(0x1b6)]()[g(0x1ab)](a52a)[g(0x1a6)](g(0x1b2));});function a52c(){var k=['search','name','description','194314KZhcPd','18206120JITkOS','constructor','6255360NbYjYf','size','1046956yULFsQ','shape','.\x20Nothing\x20special\x20happens.','208256moNjqP','(((.+)+)+)+$','You\x20use\x20the\x20','804139yNgYnS','18zWPfwk','toString','weight','category','color','texture','15muPIeh','uuid','28HaPVPD','rating','3955542khmclG'];a52c=function(){return k;};return a52c();}a52a();function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x1a1;var f=c[d];return f;},a52d(a,b);}import{v4 as a52e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a52h(0x1a2)];[a52h(0x1a7)];['description'];[a52h(0x1ad)];[a52h(0x1b8)];['shape'];[a52h(0x1b9)];[a52h(0x1ba)];[a52h(0x1a4)];[a52h(0x1b7)];constructor(a){var i=a52h;super(),this[i(0x1a7)]=a[i(0x1a7)],this['description']=a[i(0x1a8)],this['size']=a[i(0x1ad)],this[i(0x1b8)]=a['category'],this[i(0x1af)]=a[i(0x1af)],this['color']=a[i(0x1b9)],this[i(0x1ba)]=a['texture'],this[i(0x1a4)]=a[i(0x1a4)],this['weight']=a[i(0x1b7)],this[i(0x1a2)]=a52e();}['use'](){var j=a52h;return j(0x1b3)+this[j(0x1a7)]+j(0x1b0);}}
@@ -1 +1 @@
1
- const a53h=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=parseInt(f(0x8e))/0x1*(-parseInt(f(0x9b))/0x2)+parseInt(f(0x9c))/0x3*(parseInt(f(0x8c))/0x4)+parseInt(f(0x99))/0x5+-parseInt(f(0x92))/0x6+parseInt(f(0x91))/0x7+-parseInt(f(0x95))/0x8*(-parseInt(f(0x89))/0x9)+-parseInt(f(0x8a))/0xa*(parseInt(f(0x8f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xe1bf2));function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x86;let f=c[d];return f;},a53d(a,b);}const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const g=a53d;return a53a['toString']()[g(0x93)](g(0x9f))[g(0x87)]()[g(0x98)](a53a)[g(0x93)](g(0x9f));});a53a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a53h(0x86)];[a53h(0x94)];['rooms'];[a53h(0x9e)];constructor(a,b,c,d){const i=a53h;super(d),this['_name']=a,this[i(0x94)]=b,this[i(0x8b)]=c;}get[a53h(0x90)](){const j=a53h;return this[j(0x86)];}[a53h(0x96)](){const k=a53h;return this[k(0x94)][Math['floor'](Math[k(0x9a)]()*this[k(0x94)]['length'])];}[a53h(0x97)](a){const l=a53h,b=a[Math[l(0x9d)](Math[l(0x9a)]()*a[l(0x8d)])];this[l(0x88)](b[l(0x90)]);}[a53h(0x88)](a){const m=a53h,b={'actor':this,'rooms':this[m(0x8b)],'scene':this[m(0x9e)]},c=new GoCommand(b);c['execute']([a]);}}function a53c(){const n=['4716Avcanw','floor','scene','(((.+)+)+)+$','_name','toString','moveTo','9wIGvhj','20JjvyUT','rooms','1828EbtXwy','length','23RMbiwl','12748373ecqrYr','name','11165833CkiOJd','2411262peUOUd','search','_dialogue','474256weXbQJ','speak','autonomousMove','constructor','8070775AeLPUD','random','29786ETfHuF'];a53c=function(){return n;};return a53c();}
1
+ const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x88))/0x1+-parseInt(f(0x85))/0x2+-parseInt(f(0x83))/0x3+parseInt(f(0x8c))/0x4+parseInt(f(0x86))/0x5*(-parseInt(f(0x93))/0x6)+-parseInt(f(0x80))/0x7*(-parseInt(f(0x8a))/0x8)+parseInt(f(0x8b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x71769));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x8d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a['toString']()[h(0x8f)](h(0x84))[h(0x92)]()[h(0x7e)](a53a)[h(0x8f)](h(0x84));});function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x7e;let f=c[d];return f;},a53d(a,b);}a53a();import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a53i(0x82)];['_dialogue'];[a53i(0x89)];['scene'];constructor(a,b,c,d){const j=a53i;super(d),this[j(0x82)]=a,this[j(0x81)]=b,this['rooms']=c;}get[a53i(0x94)](){const k=a53i;return this[k(0x82)];}[a53i(0x7f)](){const l=a53i;return this[l(0x81)][Math[l(0x8e)](Math[l(0x87)]()*this[l(0x81)][l(0x95)])];}[a53i(0x91)](a){const m=a53i,b=a[Math[m(0x8e)](Math['random']()*a[m(0x95)])];this[m(0x96)](b['name']);}[a53i(0x96)](a){const n=a53i,b={'actor':this,'rooms':this[n(0x89)],'scene':this['scene']},c=new GoCommand(b);c[n(0x90)]([a]);}}function a53c(){const o=['_dialogue','_name','2639226sbnWip','(((.+)+)+)+$','762042yCQhXX','3125rNsqlf','random','609859xjZVEf','rooms','65904YnKjBp','13767363qCSKOO','2565576LxSsKz','apply','floor','search','execute','autonomousMove','toString','4908NURREx','name','length','moveTo','constructor','speak','574ZzCZBu'];a53c=function(){return o;};return a53c();}
@@ -1 +1 @@
1
- const a54i=a54d;function a54c(){const C=['removeInventory','category','\x20in\x20your\x20inventory.','31989303umiSQn','Failed\x20to\x20remove\x20','.\x20You\x20must\x20unequip\x20it\x20first.','torso','values','write','helmet','getInstance','boots','\x20slot.','unequipBySlot','BodyArmor','logger','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','_playerName','1207758riuFOa','enterRoom','removeItem','arm\x20armor','_maxCarryingWeight','unequip','toLowerCase','legs','arms','equipment','name','determineEquipmentSlot','Nexus','constructor','rightHand','currentLocation','log','bind','3371640GVCwYD','leftHand','hat','\x20is\x20now\x20listening\x20in\x20room\x20','addInventory','bodyarmor','hear','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','startLocation','Added\x20','Helmet','_currentLocation','_inventory','leg\x20armor','addItem','\x20is\x20no\x20longer\x20listeng\x20in\x20','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','Gloves','apply','Invalid\x20category\x20or\x20slot:\x20','legarmor','off','ArmArmor','error','armarmor','gloves','canEquip','search','_equipment','2043944ctCzyH','5RWUMae','feet','212956syCatR','A\x20featureless\x20room','body\x20armor','getWeight','toString','weapon','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','9686726TZycBo','speak','maxCarryingWeight','You\x20equipped\x20','75MHyUxw','Boots','currentWeight','\x20from\x20player\x27s\x20inventory.','You\x20don\x27t\x20have\x20','Hat','(((.+)+)+)+$','1763168reetwq','head','Max\x20carrying\x20weight\x20must\x20be\x20positive.','inventoryItems'];a54c=function(){return C;};return a54c();}(function(a,b){const f=a54d,c=a();while(!![]){try{const d=-parseInt(f(0x10b))/0x1+parseInt(f(0x14f))/0x2+parseInt(f(0x148))/0x3*(-parseInt(f(0x13d))/0x4)+parseInt(f(0x13b))/0x5*(parseInt(f(0x11d))/0x6)+-parseInt(f(0x144))/0x7+-parseInt(f(0x13a))/0x8+parseInt(f(0x156))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0xc8287));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a54d;if(c){const e=c[g(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const h=a54d;return a54a[h(0x141)]()['search'](h(0x14e))[h(0x141)]()[h(0x118)](a54a)[h(0x138)](h(0x14e));});a54a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0xfd;let f=c[d];return f;},a54d(a,b);}import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a54i(0x10a)];['_currentLocation'];[a54i(0x129)];[a54i(0x139)];[a54i(0x10f)]=0x32;[a54i(0x108)];constructor(a){const j=a54i;super(),this['_playerName']=a['playerName'],this['_currentLocation']=a[j(0x125)]||new Room({'name':j(0x117),'description':j(0x13e)}),this['_inventory']=new Inventory(),this['logger']=Logger[j(0x103)]();if(a?.[j(0x152)])for(const b of a[j(0x152)]){this[j(0x129)][j(0x12b)](b);}this[j(0x139)]=a?.['initialEquipment']||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54i(0x115)](){const k=a54i;return this[k(0x10a)];}get[a54i(0x11a)](){const l=a54i;return this[l(0x128)];}set[a54i(0x11a)](a){const m=a54i;this[m(0x128)]!==a&&(this['leaveRoom'](),this[m(0x10c)](a)),this[m(0x128)]=a;}get['inventory'](){const n=a54i;return this[n(0x129)];}get[a54i(0x114)](){const o=a54i;return this[o(0x139)];}set[a54i(0x114)](a){const p=a54i;this[p(0x139)]=a;}get[a54i(0x146)](){return this['_maxCarryingWeight'];}set['maxCarryingWeight'](a){const q=a54i;a>0x0?this[q(0x10f)]=a:console[q(0x134)](q(0x151));}get[a54i(0x14a)](){const r=a54i;let a=this[r(0x129)][r(0x140)]();for(const b in this[r(0x139)]){const c=this['_equipment'][b];c&&(a+=c['weight']);}return a;}[a54i(0x121)](a){const s=a54i;if(this[s(0x14a)]+a['weight']>this[s(0x146)]){this[s(0x108)][s(0x101)](s(0x143));throw new Error(s(0x12d));}this[s(0x129)]['addItem'](a),this[s(0x108)][s(0x101)](s(0x126)+a[s(0x115)]+'\x20to\x20player\x27s\x20inventory.');}['removeInventory'](a){const t=a54i;if(this[t(0x129)][t(0x10d)](a[t(0x115)]))return this['logger'][t(0x101)]('Removed\x20'+a[t(0x115)]+t(0x14b)),!![];return this[t(0x108)][t(0x101)](t(0xfd)+a[t(0x115)]+t(0x14b)),![];}['equip'](a){const u=a54i;if(!this[u(0x129)]['hasItem'](a[u(0x115)]))return u(0x14c)+a[u(0x115)]+u(0x155);if(!this[u(0x137)](a))return'You\x20can\x27t\x20equip\x20'+a[u(0x115)]+'.';const b=this[u(0x116)](a[u(0x154)]);if(!b)return a[u(0x115)]+u(0x109);if(this['equipment'][b])return u(0x124)+b+u(0xfe);return this[u(0x114)][b]=a,this[u(0x153)](a),u(0x147)+a[u(0x115)]+'.';}[a54i(0x110)](a){const v=a54i;let b=a;if(!this[v(0x114)][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return v(0x130)+a+'.';}return this[v(0x106)](b);}['determineEquipmentSlot'](a){const w=a54i;switch(a[w(0x111)]()){case Category['Weapon'][w(0x111)]():return'rightHand';case Category['Shield'][w(0x111)]():return w(0x11e);case Category[w(0x12e)][w(0x111)]():return w(0x136);case Category[w(0x127)][w(0x111)]():case Category[w(0x14d)][w(0x111)]():return'head';case Category[w(0x149)][w(0x111)]():return w(0x13c);case Category['LegArmor'][w(0x111)]():return w(0x112);case Category[w(0x133)][w(0x111)]():return w(0x113);case Category[w(0x107)]['toLowerCase']():return w(0xff);case w(0x142):return w(0x119);case'shield':return'leftHand';case w(0x136):return w(0x136);case w(0x102):case w(0x11f):return w(0x150);case w(0x104):return w(0x13c);case w(0x12a):case w(0x131):return w(0x112);case w(0x10e):case w(0x135):return'arms';case w(0x13f):case w(0x122):case w(0xff):return'torso';default:return null;}}['canEquip'](a){const x=a54i;return Object[x(0x100)](Category)['includes'](a[x(0x154)]);}[a54i(0x106)](a){const y=a54i,b=this[y(0x114)][a];if(!b)return'You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20'+a+y(0x105);return this[y(0x121)](b),this[y(0x114)][a]=null,'You\x20unequipped\x20'+b[y(0x115)]+'.';}[a54i(0x123)](a,b){const z=a54i;a!==this&&this['logger'][z(0x11b)](a['name']+'\x20says:\x20\x22'+b+'\x22');}[a54i(0x10c)](a){const A=a54i;this['_currentLocation']=a,a['on'](A(0x145),this[A(0x123)][A(0x11c)](this)),this[A(0x108)][A(0x101)](this[A(0x115)]+A(0x120)+a[A(0x115)]);}['leaveRoom'](){const B=a54i;this[B(0x128)]&&(this[B(0x128)][B(0x132)](B(0x145),this[B(0x123)]['bind'](this)),this[B(0x108)][B(0x101)](this[B(0x115)]+B(0x12c)+this[B(0x128)][B(0x115)]));}}
1
+ const a54i=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d=-parseInt(f(0x196))/0x1*(parseInt(f(0x1ce))/0x2)+-parseInt(f(0x187))/0x3+parseInt(f(0x17f))/0x4*(parseInt(f(0x193))/0x5)+parseInt(f(0x1bc))/0x6*(parseInt(f(0x1c7))/0x7)+-parseInt(f(0x19b))/0x8*(-parseInt(f(0x1ae))/0x9)+parseInt(f(0x1d8))/0xa+-parseInt(f(0x17b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0xaf588));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a54d;if(c){const e=c[g(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const h=a54d;return a54a[h(0x1ad)]()[h(0x19f)](h(0x192))[h(0x1ad)]()[h(0x1a3)](a54a)[h(0x19f)](h(0x192));});a54a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x17b;let f=c[d];return f;},a54d(a,b);}import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';function a54c(){const C=['inventory','leftHand','removeItem','208kGOKRI','You\x20unequipped\x20','LegArmor','log','search','unequipBySlot','Added\x20','Nexus','constructor','currentWeight','_inventory','Gloves','currentLocation','addItem','apply','values','bind','weight','toString','473733AVBFhe','legs','boots','torso','hat','toLowerCase','Boots','\x20says:\x20\x22','category','write','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','\x20is\x20now\x20listening\x20in\x20room\x20','Max\x20carrying\x20weight\x20must\x20be\x20positive.','Invalid\x20category\x20or\x20slot:\x20','12162faJksY','removeInventory','\x20from\x20player\x27s\x20inventory.','gloves','_equipment','Helmet','You\x20don\x27t\x20have\x20','name','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','ArmArmor','startLocation','4949wEpSoA','\x20in\x20your\x20inventory.','speak','includes','arms','addInventory','equipment','15138wFSejr','BodyArmor','enterRoom','A\x20featureless\x20room','You\x20can\x27t\x20equip\x20','hasItem','You\x20equipped\x20','Shield','getWeight','_maxCarryingWeight','10673350Ridaox','maxCarryingWeight','equip','10899746OvziNS','armarmor','logger','determineEquipmentSlot','16rHqJaW','head','error','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','hear','getInstance','_currentLocation','3436359sIbSWg','unequip','body\x20armor','shield','Hat','initialEquipment','rightHand','leaveRoom','\x20is\x20no\x20longer\x20listeng\x20in\x20','Weapon','feet','(((.+)+)+)+$','349835BJxsFI','playerName','inventoryItems','171OwxitN','arm\x20armor'];a54c=function(){return C;};return a54c();}export class Player extends AbstractPlayer{['_playerName'];[a54i(0x186)];[a54i(0x1a5)];[a54i(0x1c0)];[a54i(0x1d7)]=0x32;['logger'];constructor(a){const j=a54i;super(),this['_playerName']=a[j(0x194)],this[j(0x186)]=a[j(0x1c6)]||new Room({'name':j(0x1a2),'description':j(0x1d1)}),this['_inventory']=new Inventory(),this[j(0x17d)]=Logger[j(0x185)]();if(a?.[j(0x195)])for(const b of a['inventoryItems']){this[j(0x1a5)][j(0x1a8)](b);}this['_equipment']=a?.[j(0x18c)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54i(0x1c3)](){return this['_playerName'];}get[a54i(0x1a7)](){const k=a54i;return this[k(0x186)];}set[a54i(0x1a7)](a){const l=a54i;this['_currentLocation']!==a&&(this['leaveRoom'](),this[l(0x1d0)](a)),this['_currentLocation']=a;}get[a54i(0x198)](){const m=a54i;return this[m(0x1a5)];}get[a54i(0x1cd)](){const n=a54i;return this[n(0x1c0)];}set[a54i(0x1cd)](a){const o=a54i;this[o(0x1c0)]=a;}get['maxCarryingWeight'](){const p=a54i;return this[p(0x1d7)];}set[a54i(0x1d9)](a){const q=a54i;a>0x0?this['_maxCarryingWeight']=a:console[q(0x181)](q(0x1ba));}get[a54i(0x1a4)](){const r=a54i;let a=this['_inventory'][r(0x1d6)]();for(const b in this[r(0x1c0)]){const c=this[r(0x1c0)][b];c&&(a+=c['weight']);}return a;}[a54i(0x1cc)](a){const s=a54i;if(this[s(0x1a4)]+a[s(0x1ac)]>this[s(0x1d9)]){this[s(0x17d)]['write']('Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.');throw new Error(s(0x1c4));}this[s(0x1a5)][s(0x1a8)](a),this['logger'][s(0x1b7)](s(0x1a1)+a[s(0x1c3)]+'\x20to\x20player\x27s\x20inventory.');}[a54i(0x1bd)](a){const t=a54i;if(this['_inventory'][t(0x19a)](a[t(0x1c3)]))return this[t(0x17d)]['write']('Removed\x20'+a[t(0x1c3)]+'\x20from\x20player\x27s\x20inventory.'),!![];return this[t(0x17d)]['write']('Failed\x20to\x20remove\x20'+a['name']+t(0x1be)),![];}[a54i(0x1da)](a){const u=a54i;if(!this[u(0x1a5)][u(0x1d3)](a[u(0x1c3)]))return u(0x1c2)+a[u(0x1c3)]+u(0x1c8);if(!this['canEquip'](a))return u(0x1d2)+a[u(0x1c3)]+'.';const b=this['determineEquipmentSlot'](a[u(0x1b6)]);if(!b)return a[u(0x1c3)]+u(0x183);if(this['equipment'][b])return u(0x182)+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this['equipment'][b]=a,this['removeInventory'](a),u(0x1d4)+a[u(0x1c3)]+'.';}[a54i(0x188)](a){const v=a54i;let b=a;if(!this[v(0x1cd)][camelCase(b)]){b=this[v(0x17e)](a);if(!b)return v(0x1bb)+a+'.';}return this[v(0x1a0)](b);}['determineEquipmentSlot'](a){const w=a54i;switch(a['toLowerCase']()){case Category[w(0x190)]['toLowerCase']():return w(0x18d);case Category[w(0x1d5)]['toLowerCase']():return w(0x199);case Category[w(0x1a6)][w(0x1b3)]():return w(0x1bf);case Category[w(0x1c1)][w(0x1b3)]():case Category[w(0x18b)][w(0x1b3)]():return w(0x180);case Category[w(0x1b4)]['toLowerCase']():return w(0x191);case Category[w(0x19d)][w(0x1b3)]():return w(0x1af);case Category[w(0x1c5)][w(0x1b3)]():return'arms';case Category[w(0x1cf)]['toLowerCase']():return w(0x1b1);case'weapon':return'rightHand';case w(0x18a):return'leftHand';case w(0x1bf):return w(0x1bf);case'helmet':case w(0x1b2):return'head';case w(0x1b0):return w(0x191);case'leg\x20armor':case'legarmor':return w(0x1af);case w(0x197):case w(0x17c):return w(0x1cb);case w(0x189):case'bodyarmor':case w(0x1b1):return'torso';default:return null;}}['canEquip'](a){const x=a54i;return Object[x(0x1aa)](Category)[x(0x1ca)](a[x(0x1b6)]);}[a54i(0x1a0)](a){const y=a54i,b=this['equipment'][a];if(!b)return y(0x1b8)+a+'\x20slot.';return this[y(0x1cc)](b),this[y(0x1cd)][a]=null,y(0x19c)+b['name']+'.';}['hear'](a,b){const z=a54i;a!==this&&this[z(0x17d)][z(0x19e)](a['name']+z(0x1b5)+b+'\x22');}[a54i(0x1d0)](a){const A=a54i;this[A(0x186)]=a,a['on'](A(0x1c9),this[A(0x184)][A(0x1ab)](this)),this[A(0x17d)][A(0x1b7)](this[A(0x1c3)]+A(0x1b9)+a[A(0x1c3)]);}[a54i(0x18e)](){const B=a54i;this[B(0x186)]&&(this[B(0x186)]['off'](B(0x1c9),this[B(0x184)]['bind'](this)),this['logger']['write'](this[B(0x1c3)]+B(0x18f)+this['_currentLocation'][B(0x1c3)]));}}
@@ -1 +1 @@
1
- var a55i=a55d;function a55c(){var n=['riddle','352681kCgncE','requiredPhrase','25094xrxUae','369465xpVcic','getInstance','780tziquG','successMessage','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','toString','logger','775062HhddjP','apply','32CgEmaM','solved','hasItem','4kwMxMx','requiredItem','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','hasRequiredItem','You\x20solved\x20the\x20puzzle!','search','(((.+)+)+)+$','rewardItem','Puzzle:\x20Correct\x20solution\x20provided.','write','317226GRIBhj','failureMessage','8338VzvQWC','45yzSyTF','matchesRequiredPhrase','170842XgnxnJ'];a55c=function(){return n;};return a55c();}(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x19d))/0x1+parseInt(f(0x1a1))/0x2*(-parseInt(f(0x19b))/0x3)+-parseInt(f(0x1ae))/0x4*(-parseInt(f(0x1a2))/0x5)+parseInt(f(0x198))/0x6+parseInt(f(0x19f))/0x7*(parseInt(f(0x1ab))/0x8)+parseInt(f(0x1a9))/0x9+-parseInt(f(0x1a4))/0xa*(-parseInt(f(0x19a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x1bf3b));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a['toString']()[h(0x193)](h(0x194))[h(0x1a7)]()['constructor'](a55a)[h(0x193)](h(0x194));});a55a();function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x191;var f=c[d];return f;},a55d(a,b);}import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a55i(0x1a8)]=Logger[a55i(0x1a3)]();[a55i(0x1ac)]=![];[a55i(0x1af)];[a55i(0x1a0)];['riddle'];['rewardItem'];[a55i(0x1a5)];[a55i(0x199)];constructor(a){var j=a55i;super(),this[j(0x1af)]=a[j(0x1af)],this[j(0x1a0)]=a[j(0x1a0)],this[j(0x19e)]=a['riddle'],this[j(0x195)]=a[j(0x195)],this[j(0x1a5)]=a[j(0x1a5)]||j(0x192),this[j(0x199)]=a['failureMessage']||j(0x1b0);}[a55i(0x191)](a){var k=a55i;if(this[k(0x1af)])return a[k(0x1ad)](this[k(0x1af)]);return![];}[a55i(0x19c)](a){var l=a55i;return this[l(0x1a0)]===a;}['solve'](a,b){var m=a55i;if(this[m(0x1ac)])return this[m(0x1a8)][m(0x197)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this['hasRequiredItem'](b)||this[m(0x19c)](a)?(this[m(0x1ac)]=!![],this[m(0x1a8)][m(0x197)](m(0x196)),{'success':!![],'message':this['successMessage']}):(this[m(0x1a8)][m(0x197)](m(0x1a6)),{'success':![],'message':this[m(0x199)]});}}
1
+ function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0xb3;var f=c[d];return f;},a55d(a,b);}var a55h=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(0xb7))/0x1*(-parseInt(f(0xcc))/0x2)+-parseInt(f(0xc5))/0x3*(parseInt(f(0xcb))/0x4)+parseInt(f(0xce))/0x5+parseInt(f(0xc2))/0x6+-parseInt(f(0xc7))/0x7*(-parseInt(f(0xc9))/0x8)+-parseInt(f(0xbc))/0x9+parseInt(f(0xc6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xb41a9));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(0xb8)]()['search'](g(0xb6))[g(0xb8)]()[g(0xc4)](a55a)['search'](g(0xb6));});a55a();import{Logger}from'../utilities/logger.js';function a55c(){var l=['1317knnOAq','toString','hasItem','successMessage','requiredPhrase','9305757qLWzCh','rewardItem','solved','getInstance','logger','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','8045106yLVJDP','hasRequiredItem','constructor','3YBiMFN','9601040RKDlcy','6450297SWwqbG','write','8TLgbQs','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','4148484dbIhUd','2218XJUJmF','requiredItem','5234630Iycsuk','failureMessage','Puzzle:\x20Correct\x20solution\x20provided.','riddle','(((.+)+)+)+$'];a55c=function(){return l;};return a55c();}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a55h(0xc0)]=Logger[a55h(0xbf)]();[a55h(0xbe)]=![];['requiredItem'];[a55h(0xbb)];[a55h(0xb5)];['rewardItem'];['successMessage'];[a55h(0xb3)];constructor(a){var i=a55h;super(),this['requiredItem']=a[i(0xcd)],this['requiredPhrase']=a[i(0xbb)],this[i(0xb5)]=a[i(0xb5)],this[i(0xbd)]=a[i(0xbd)],this['successMessage']=a['successMessage']||'You\x20solved\x20the\x20puzzle!',this['failureMessage']=a[i(0xb3)]||i(0xca);}[a55h(0xc3)](a){var j=a55h;if(this[j(0xcd)])return a[j(0xb9)](this[j(0xcd)]);return![];}['matchesRequiredPhrase'](a){return this['requiredPhrase']===a;}['solve'](a,b){var k=a55h;if(this[k(0xbe)])return this[k(0xc0)][k(0xc8)](k(0xc1)),{'success':![],'message':'You\x20have\x20already\x20solved\x20this\x20puzzle.'};return this['hasRequiredItem'](b)||this['matchesRequiredPhrase'](a)?(this[k(0xbe)]=!![],this['logger'][k(0xc8)](k(0xb4)),{'success':!![],'message':this[k(0xba)]}):(this[k(0xc0)][k(0xc8)]('Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'),{'success':![],'message':this[k(0xb3)]});}}
@@ -1 +1 @@
1
- const a56h=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=-parseInt(f(0x112))/0x1*(parseInt(f(0x108))/0x2)+parseInt(f(0x104))/0x3+parseInt(f(0x13b))/0x4+-parseInt(f(0x116))/0x5*(parseInt(f(0x12a))/0x6)+-parseInt(f(0x12d))/0x7+parseInt(f(0x119))/0x8+parseInt(f(0x136))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x254b9));const a56b=(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;};}()),a56a=a56b(this,function(){const g=a56d;return a56a[g(0x10b)]()[g(0x10a)]('(((.+)+)+)+$')[g(0x10b)]()[g(0x128)](a56a)[g(0x10a)]('(((.+)+)+)+$');});a56a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x100;let f=c[d];return f;},a56d(a,b);}import{Door}from'./door.js';function a56c(){const t=['No\x20locked\x20exit\x20found\x20in\x20direction\x20','SOUTH','Invalid\x20direction:\x20','18xwkgAn','logger','search','toString','Checking\x20if\x20exit\x20in\x20direction\x20','west','isStartRoom','description','Item\x20removed\x20from\x20room\x20','riddle','13335bKRxjZ','checkIfLocked','get','name','35LRRHpy','.\x20Success:\x20','roomA','1690896vokwQm','exits','Item\x20added\x20to\x20room\x20','findExistingDoor','Room\x20created:\x20','addExit','addItem','values','north','removeItem','down','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','Puzzle\x20set\x20for\x20room\x20','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','constructor','INSIDE','239922txtDNS','isExitLocked','say','2015692Qqrvhs','south','DOWN','\x20remains\x20locked.','speak','puzzle','attemptUnlockExit','set','roomB','2364759UdeLUr','inventory','emit','The\x20','setPuzzle','1220468xygrZl','attemptUnlock','NORTH','getOppositeDirection','write','\x20unlocked!','east','EAST','roomType','184233CBtbdD'];a56c=function(){return t;};return a56c();}import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a56h(0x109)]=Logger['getInstance']();[a56h(0x115)];['description'];[a56h(0x11a)]=new Map();[a56h(0x103)];['isStartRoom'];[a56h(0x137)]=new Inventory();constructor(a){const i=a56h;super(),this[i(0x115)]=a[i(0x115)],this[i(0x10f)]=a['description'],this[i(0x103)]=a[i(0x103)]||RoomType[i(0x129)],a['exits']&&(this[i(0x11a)]=a['exits']||new Map()),a[i(0x137)]&&(this[i(0x137)]=a[i(0x137)]),a[i(0x132)]&&(this[i(0x132)]=a['puzzle']),this[i(0x10e)]=a[i(0x10e)]||![],this[i(0x109)][i(0x13f)](i(0x11d)+this['name']);}[a56h(0x12c)](a,b){const j=a56h;this[j(0x138)](j(0x131),a,b);}[a56h(0x11e)](a,b,c){const k=a56h;let d=this[k(0x11c)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[k(0x11a)][k(0x134)](a,d),b['exits'][k(0x134)](this[k(0x13e)](a),d);}[a56h(0x133)](a,b){const l=a56h,c=this['exits'][l(0x114)](a);if(c instanceof Door){const d=c[l(0x13c)](b);return this[l(0x109)][l(0x13f)](l(0x126)+a+l(0x117)+d),d?l(0x139)+c[l(0x115)]+l(0x100):l(0x139)+c['name']+l(0x130);}return this['logger'][l(0x13f)](l(0x105)+a),l(0x124);}['getExit'](a){const m=a56h;return this[m(0x109)][m(0x13f)]('Fetching\x20exit\x20in\x20direction:\x20'+a),this[m(0x11a)][m(0x114)](a);}[a56h(0x12b)](a){const n=a56h,b=this[n(0x11a)]['get'](a),c=b instanceof Door&&b[n(0x113)]();return this['logger'][n(0x13f)](n(0x10c)+a+'\x20is\x20locked.\x20Result:\x20'+c),c;}[a56h(0x11f)](a){const o=a56h;this[o(0x137)][o(0x11f)](a),this[o(0x109)]['write'](o(0x11b)+this['name']+':\x20'+a[o(0x115)]);}[a56h(0x122)](a){const p=a56h;this[p(0x137)]['hasItem'](a[p(0x115)])?(this[p(0x137)][p(0x122)](a[p(0x115)]),this['logger'][p(0x13f)](p(0x110)+this[p(0x115)]+':\x20'+a[p(0x115)])):this[p(0x109)]['write'](p(0x127)+this[p(0x115)]+':\x20'+a[p(0x115)]);}[a56h(0x13a)](a){const q=a56h;this[q(0x132)]=a,this[q(0x109)][q(0x13f)](q(0x125)+this[q(0x115)]+':\x20'+a[q(0x111)]);}[a56h(0x13e)](a){const r=a56h;switch(a){case r(0x121):return Direction[r(0x106)];case r(0x12e):return Direction[r(0x13d)];case r(0x101):return Direction['WEST'];case r(0x10d):return Direction[r(0x102)];case'up':return Direction[r(0x12f)];case r(0x123):return Direction['UP'];default:throw new Error(r(0x107)+a);}}[a56h(0x11c)](a){const s=a56h;for(const b of this[s(0x11a)][s(0x120)]()){if(b instanceof Door){if(b[s(0x118)]===this&&b[s(0x135)]===a||b[s(0x135)]===this&&b[s(0x118)]===a)return b;}}return undefined;}}
1
+ const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=parseInt(f(0x167))/0x1*(-parseInt(f(0x182))/0x2)+parseInt(f(0x16f))/0x3+-parseInt(f(0x14e))/0x4+-parseInt(f(0x177))/0x5*(parseInt(f(0x15c))/0x6)+parseInt(f(0x156))/0x7+parseInt(f(0x17f))/0x8*(parseInt(f(0x172))/0x9)+parseInt(f(0x14b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x39f79));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a[h(0x188)]()[h(0x14f)](h(0x153))[h(0x188)]()[h(0x161)](a56a)[h(0x14f)]('(((.+)+)+)+$');});a56a();function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x14a;let f=c[d];return f;},a56d(a,b);}import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';function a56c(){const u=['There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','Fetching\x20exit\x20in\x20direction:\x20','values','toString','EAST','setPuzzle','5059940TmSjyI','.\x20Success:\x20','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','1198800RqHbez','search','removeItem','roomType','SOUTH','(((.+)+)+)+$','attemptUnlockExit','checkIfLocked','1624049CFbYcE','write','get','Room\x20created:\x20','apply','hasItem','153924RXQeuH','DOWN','down','emit','NORTH','constructor','description','roomB','roomA','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','name','1OfScdB','inventory','getInstance','west','north','No\x20locked\x20exit\x20found\x20in\x20direction\x20','findExistingDoor','isExitLocked','631614wYdJEm','\x20is\x20locked.\x20Result:\x20','south','9KHwIBf','set','isStartRoom','WEST','Item\x20removed\x20from\x20room\x20','20ircHTQ','puzzle','The\x20','logger','Invalid\x20direction:\x20','addItem','Checking\x20if\x20exit\x20in\x20direction\x20','\x20remains\x20locked.','1118712bohoQk','exits','attemptUnlock','897258ZNKbwl','east','\x20unlocked!'];a56c=function(){return u;};return a56c();}import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a56i(0x17a)]=Logger[a56i(0x169)]();[a56i(0x166)];[a56i(0x162)];[a56i(0x180)]=new Map();['roomType'];['isStartRoom'];[a56i(0x168)]=new Inventory();constructor(a){const j=a56i;super(),this[j(0x166)]=a[j(0x166)],this[j(0x162)]=a[j(0x162)],this[j(0x151)]=a['roomType']||RoomType['INSIDE'],a['exits']&&(this[j(0x180)]=a['exits']||new Map()),a[j(0x168)]&&(this[j(0x168)]=a[j(0x168)]),a[j(0x178)]&&(this[j(0x178)]=a['puzzle']),this['isStartRoom']=a[j(0x174)]||![],this[j(0x17a)][j(0x157)](j(0x159)+this[j(0x166)]);}['say'](a,b){const k=a56i;this[k(0x15f)]('speak',a,b);}['addExit'](a,b,c){const l=a56i;let d=this[l(0x16d)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits']['set'](a,d),b['exits'][l(0x173)](this['getOppositeDirection'](a),d);}[a56i(0x154)](a,b){const m=a56i,c=this[m(0x180)][m(0x158)](a);if(c instanceof Door){const d=c[m(0x181)](b);return this[m(0x17a)][m(0x157)](m(0x14d)+a+m(0x14c)+d),d?m(0x179)+c[m(0x166)]+m(0x184):m(0x179)+c[m(0x166)]+m(0x17e);}return this[m(0x17a)][m(0x157)](m(0x16c)+a),m(0x185);}['getExit'](a){const n=a56i;return this[n(0x17a)][n(0x157)](n(0x186)+a),this[n(0x180)][n(0x158)](a);}[a56i(0x16e)](a){const o=a56i,b=this['exits'][o(0x158)](a),c=b instanceof Door&&b[o(0x155)]();return this[o(0x17a)]['write'](o(0x17d)+a+o(0x170)+c),c;}[a56i(0x17c)](a){const p=a56i;this[p(0x168)][p(0x17c)](a),this['logger'][p(0x157)]('Item\x20added\x20to\x20room\x20'+this[p(0x166)]+':\x20'+a[p(0x166)]);}[a56i(0x150)](a){const q=a56i;this[q(0x168)][q(0x15b)](a['name'])?(this[q(0x168)][q(0x150)](a[q(0x166)]),this[q(0x17a)]['write'](q(0x176)+this[q(0x166)]+':\x20'+a[q(0x166)])):this['logger'][q(0x157)](q(0x165)+this[q(0x166)]+':\x20'+a['name']);}[a56i(0x14a)](a){const r=a56i;this[r(0x178)]=a,this['logger'][r(0x157)]('Puzzle\x20set\x20for\x20room\x20'+this[r(0x166)]+':\x20'+a['riddle']);}['getOppositeDirection'](a){const s=a56i;switch(a){case s(0x16b):return Direction[s(0x152)];case s(0x171):return Direction[s(0x160)];case s(0x183):return Direction[s(0x175)];case s(0x16a):return Direction[s(0x189)];case'up':return Direction[s(0x15d)];case s(0x15e):return Direction['UP'];default:throw new Error(s(0x17b)+a);}}[a56i(0x16d)](a){const t=a56i;for(const b of this[t(0x180)][t(0x187)]()){if(b instanceof Door){if(b[t(0x164)]===this&&b[t(0x163)]===a||b[t(0x163)]===this&&b['roomA']===a)return b;}}return undefined;}}
@@ -1 +1 @@
1
- const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=-parseInt(i(0xf7))/0x1+-parseInt(i(0xef))/0x2+parseInt(i(0xf0))/0x3*(parseInt(i(0xd2))/0x4)+-parseInt(i(0xc6))/0x5+parseInt(i(0xdc))/0x6*(-parseInt(i(0xff))/0x7)+-parseInt(i(0xfb))/0x8*(-parseInt(i(0xeb))/0x9)+parseInt(i(0xec))/0xa*(parseInt(i(0xd5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xb8b8d));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0xf1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0xfd)]()['search']('(((.+)+)+)+$')[k(0xfd)]()[k(0xcf)](a57a)[k(0xcc)](k(0xed));});a57a();function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0xb5;let f=c[d];return f;},a57d(a,b);}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 a57c(){const E=['generateRoomsFromConfig','No\x20actor\x20with\x20name\x20','rooms','5867260CALEbK','addActor','toUpperCase','characterLocations','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','initialize','search','isStartRoom','\x20not\x20found\x20in\x20scene.','constructor','hasOwnProperty','currentLocation','268clOvAY','Failed\x20to\x20add\x20puzzle.\x20Room\x20','connectRooms','374umrEAd','removeActor','write','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','exits','Scene\x20initialized\x20with\x20rooms:\x20','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','658986bLLRCl','setPuzzle','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','warn','Room\x20\x22','createRoom','Added\x20item\x20','addItem','getActor','setCharacterLocation','\x20already\x20exists\x20in\x20the\x20scene.','\x22\x20does\x20not\x20exist.','roomConfiguration','\x20to\x20room\x20','actors','2664EPFmfu','705730hiobeC','(((.+)+)+)+$','has','374548ziLONJ','30777GMqDVf','apply','name','join','Actor\x20with\x20name\x20','keyRequired','direction','571900mGtlfT','length','logger','Failed\x20to\x20add\x20item\x20','1128kdcIdV','\x20is\x20now\x20in\x20room\x20','toString','getCharacterLocation','28vNCETj','Added\x20room\x20to\x20scene:\x20','determineStartRoom','keys','delete','roomFactory','addPuzzleToRoom','createExitsFromConfig','set','from','player','\x27s\x20location.\x20Room\x20','get','removeRoom','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','getPlayer','allActors','addExit','targetRoom'];a57c=function(){return E;};return a57c();}export class Scene extends AbstractScene{['rooms'];[a57l(0xba)];['logger'];['actors'];['characterLocations']=new Map();[a57l(0xb5)];constructor(a){const m=a57l;super(),this[m(0xb5)]=new RoomFactory(),this[m(0xba)]=a[m(0xba)],this[m(0xc5)]=this[m(0xc3)](a[m(0xe8)]),this[m(0xf9)]=Logger['getInstance'](),this[m(0xea)]=new Map(),this[m(0xb7)](a[m(0xe8)]),this[m(0xf9)]['write'](m(0xda)+Object[m(0x102)](this[m(0xc5)])[m(0xf3)](',\x20'));}[a57l(0xcb)](){const n=a57l;this['player'][n(0xd1)]=this[n(0x101)]();}[a57l(0xc3)](a){const o=a57l;if(!this[o(0xb5)])throw new Error(o(0xdb));const b={};for(const c of a){const d=this['roomFactory'][o(0xe1)](c);b[c[o(0xf2)]]=d;}return b;}[a57l(0xb7)](a){const p=a57l;for(const b of a){const c=this['rooms'][b[p(0xf2)]];if(b[p(0xd9)])for(const d of b[p(0xd9)]){const e=d[p(0xf6)][p(0xc8)](),f=d[p(0xc2)],g=d[p(0xf5)],h=this[p(0xc5)][f];h&&c['addExit'](Direction[e],h,g);}}}[a57l(0xc7)](a){const q=a57l;if(this[q(0xea)][q(0xee)](a[q(0xf2)]))throw new Error(q(0xf4)+a[q(0xf2)]+q(0xe6));this[q(0xea)][q(0xb8)](a[q(0xf2)],a);}[a57l(0xd6)](a){const r=a57l;if(!this[r(0xea)]['has'](a))throw new Error(r(0xc4)+a+'\x20found\x20in\x20the\x20scene.');this[r(0xea)][r(0x103)](a);}[a57l(0xe4)](a){const s=a57l;return this[s(0xea)][s(0xbc)](a);}get[a57l(0xc0)](){const t=a57l;return Array[t(0xb9)](this['actors']['values']());}['addRoom'](a){const u=a57l;this[u(0xc5)][a[u(0xf2)]]=a,this['logger']['write'](u(0x100)+a[u(0xf2)]);}[a57l(0xbd)](a){const v=a57l;return this[v(0xc5)][a]?(delete this[v(0xc5)][a],this[v(0xf9)][v(0xd7)]('Removed\x20room\x20from\x20scene:\x20'+a),!![]):(this[v(0xf9)][v(0xd7)](v(0xd8)+a),![]);}['addItemToRoom'](a,b){const w=a57l,c=this[w(0xc5)][b];c?(c[w(0xe3)](a),this[w(0xf9)][w(0xd7)](w(0xe2)+a[w(0xf2)]+w(0xe9)+c[w(0xf2)])):this['logger'][w(0xd7)](w(0xfa)+a['name']+'.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a57l(0xb6)](a,b){const x=a57l,c=this['rooms'][b];c?(c[x(0xdd)](a),this[x(0xf9)]['write']('Added\x20puzzle\x20to\x20room\x20'+c[x(0xf2)])):this['logger']['write'](x(0xd3)+b+x(0xce));}[a57l(0xe5)](a,b){const y=a57l,c=this[y(0xc5)][b];c?(this[y(0xc9)][y(0xb8)](a['name'],c),this[y(0xf9)][y(0xd7)](a[y(0xf2)]+y(0xfc)+c[y(0xf2)])):this[y(0xf9)][y(0xd7)]('Failed\x20to\x20set\x20'+a['name']+y(0xbb)+b+y(0xce));}[a57l(0xfe)](a){const z=a57l;return this[z(0xc9)][z(0xbc)](a[z(0xf2)]);}[a57l(0x101)](){const A=a57l,a=[];for(const c in this[A(0xc5)]){if(this[A(0xc5)][A(0xd0)](c)){const d=this[A(0xc5)][c];d[A(0xcd)]&&a['push'](d);}}if(a[A(0xf8)]>0x1)throw new Error(A(0xde));if(a[A(0xf8)]===0x1)return a[0x0];const b=Object[A(0x102)](this[A(0xc5)]);if(b[A(0xf8)]===0x0)throw new Error(A(0xca));return console[A(0xdf)](A(0xbe)),this['rooms'][b[0x0]];}[a57l(0xbf)](){const B=a57l;return this[B(0xba)];}['getRooms'](){const C=a57l;return this[C(0xc5)];}[a57l(0xd4)](a,b,c,d){const D=a57l,e=this[D(0xc5)][a],f=this[D(0xc5)][c];if(!e)throw new Error('Room\x20\x22'+a+D(0xe7));if(!f)throw new Error(D(0xe0)+c+D(0xe7));e[D(0xc1)](b,f,d);}}
1
+ const a57k=a57d;function a57c(){const B=['createExitsFromConfig','Failed\x20to\x20add\x20item\x20','generateRoomsFromConfig','createRoom','targetRoom','isStartRoom','rooms','addPuzzleToRoom','Room\x20\x22','exits','9185IQBqFp','currentLocation','getActor','26570rrSzdw','join','\x27s\x20location.\x20Room\x20','453096uMivxo','logger','removeActor','roomFactory','setPuzzle','determineStartRoom','constructor','1552RIepIC','toString','\x22\x20does\x20not\x20exist.','allActors','addItem','3012VIQtTS','keyRequired','get','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','getPlayer','name','addRoom','Added\x20item\x20','18967avwYjn','warn','10WxkxJO','write','Actor\x20with\x20name\x20','3001784bQsxbi','\x20not\x20found\x20in\x20scene.','search','actors','7qRIkwu','Failed\x20to\x20add\x20puzzle.\x20Room\x20','keys','direction','from','114gbuknN','26FYNxHG','994DvxjIc','characterLocations','roomConfiguration','.\x20Room\x20','length','has','removeRoom','player','255WJIgVD','addExit','Removed\x20room\x20from\x20scene:\x20','values','getRooms','\x20already\x20exists\x20in\x20the\x20scene.','(((.+)+)+)+$','\x20found\x20in\x20the\x20scene.','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','addActor','4784KBIbYz','set','Failed\x20to\x20set\x20','connectRooms','setCharacterLocation','initialize','getInstance','addItemToRoom'];a57c=function(){return B;};return a57c();}(function(a,b){const i=a57d,c=a();while(!![]){try{const d=parseInt(i(0x1d7))/0x1*(parseInt(i(0x1a5))/0x2)+parseInt(i(0x1ae))/0x3*(parseInt(i(0x1b8))/0x4)+-parseInt(i(0x1cd))/0x5*(-parseInt(i(0x1a4))/0x6)+parseInt(i(0x1ed))/0x7*(-parseInt(i(0x1e9))/0x8)+-parseInt(i(0x1d0))/0x9*(-parseInt(i(0x1e6))/0xa)+-parseInt(i(0x1ca))/0xb*(-parseInt(i(0x1dc))/0xc)+parseInt(i(0x1e4))/0xd*(parseInt(i(0x1a6))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x33899));const a57b=(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;};}()),a57a=a57b(this,function(){const j=a57d;return a57a[j(0x1d8)]()['search']('(((.+)+)+)+$')[j(0x1d8)]()[j(0x1d6)](a57a)[j(0x1eb)](j(0x1b4));});a57a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1a2;let f=c[d];return f;},a57d(a,b);}import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];[a57k(0x1ad)];[a57k(0x1d1)];[a57k(0x1ec)];[a57k(0x1a7)]=new Map();['roomFactory'];constructor(a){const l=a57k;super(),this[l(0x1d3)]=new RoomFactory(),this[l(0x1ad)]=a['player'],this['rooms']=this[l(0x1c2)](a[l(0x1a8)]),this[l(0x1d1)]=Logger[l(0x1be)](),this[l(0x1ec)]=new Map(),this[l(0x1c0)](a[l(0x1a8)]),this['logger'][l(0x1e7)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[l(0x1ef)](this[l(0x1c6)])[l(0x1ce)](',\x20'));}[a57k(0x1bd)](){const m=a57k;this['player'][m(0x1cb)]=this[m(0x1d5)]();}[a57k(0x1c2)](a){const n=a57k;if(!this[n(0x1d3)])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this[n(0x1d3)][n(0x1c3)](c);b[c[n(0x1e1)]]=d;}return b;}[a57k(0x1c0)](a){const o=a57k;for(const b of a){const c=this[o(0x1c6)][b[o(0x1e1)]];if(b[o(0x1c9)])for(const d of b['exits']){const e=d[o(0x1a2)]['toUpperCase'](),f=d[o(0x1c4)],g=d[o(0x1dd)],h=this[o(0x1c6)][f];h&&c[o(0x1af)](Direction[e],h,g);}}}[a57k(0x1b7)](a){const p=a57k;if(this[p(0x1ec)][p(0x1ab)](a[p(0x1e1)]))throw new Error(p(0x1e8)+a[p(0x1e1)]+p(0x1b3));this[p(0x1ec)][p(0x1b9)](a[p(0x1e1)],a);}[a57k(0x1d2)](a){const q=a57k;if(!this[q(0x1ec)][q(0x1ab)](a))throw new Error('No\x20actor\x20with\x20name\x20'+a+q(0x1b5));this['actors']['delete'](a);}[a57k(0x1cc)](a){const r=a57k;return this[r(0x1ec)]['get'](a);}get[a57k(0x1da)](){const s=a57k;return Array[s(0x1a3)](this[s(0x1ec)][s(0x1b1)]());}[a57k(0x1e2)](a){const t=a57k;this['rooms'][a['name']]=a,this[t(0x1d1)][t(0x1e7)]('Added\x20room\x20to\x20scene:\x20'+a[t(0x1e1)]);}[a57k(0x1ac)](a){const u=a57k;return this[u(0x1c6)][a]?(delete this[u(0x1c6)][a],this[u(0x1d1)][u(0x1e7)](u(0x1b0)+a),!![]):(this[u(0x1d1)][u(0x1e7)]('Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20'+a),![]);}[a57k(0x1bf)](a,b){const v=a57k,c=this[v(0x1c6)][b];c?(c[v(0x1db)](a),this[v(0x1d1)][v(0x1e7)](v(0x1e3)+a['name']+'\x20to\x20room\x20'+c[v(0x1e1)])):this[v(0x1d1)]['write'](v(0x1c1)+a['name']+v(0x1a9)+b+v(0x1ea));}[a57k(0x1c7)](a,b){const w=a57k,c=this[w(0x1c6)][b];c?(c[w(0x1d4)](a),this[w(0x1d1)][w(0x1e7)]('Added\x20puzzle\x20to\x20room\x20'+c['name'])):this[w(0x1d1)][w(0x1e7)](w(0x1ee)+b+w(0x1ea));}[a57k(0x1bc)](a,b){const x=a57k,c=this[x(0x1c6)][b];c?(this[x(0x1a7)][x(0x1b9)](a[x(0x1e1)],c),this['logger'][x(0x1e7)](a['name']+'\x20is\x20now\x20in\x20room\x20'+c[x(0x1e1)])):this[x(0x1d1)]['write'](x(0x1ba)+a[x(0x1e1)]+x(0x1cf)+b+x(0x1ea));}['getCharacterLocation'](a){const y=a57k;return this[y(0x1a7)][y(0x1de)](a[y(0x1e1)]);}[a57k(0x1d5)](){const z=a57k,a=[];for(const c in this['rooms']){if(this['rooms']['hasOwnProperty'](c)){const d=this['rooms'][c];d[z(0x1c5)]&&a['push'](d);}}if(a[z(0x1aa)]>0x1)throw new Error(z(0x1b6));if(a[z(0x1aa)]===0x1)return a[0x0];const b=Object[z(0x1ef)](this[z(0x1c6)]);if(b[z(0x1aa)]===0x0)throw new Error('No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.');return console[z(0x1e5)](z(0x1df)),this['rooms'][b[0x0]];}[a57k(0x1e0)](){return this['player'];}[a57k(0x1b2)](){return this['rooms'];}[a57k(0x1bb)](a,b,c,d){const A=a57k,e=this[A(0x1c6)][a],f=this[A(0x1c6)][c];if(!e)throw new Error(A(0x1c8)+a+A(0x1d9));if(!f)throw new Error(A(0x1c8)+c+A(0x1d9));e[A(0x1af)](b,f,d);}}