@maka/maka-cli 5.0.10 → 5.0.11

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 (163) 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/aws/_index.js +1 -1
  109. package/bundle/obf/src/generators/aws/aws.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  112. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  113. package/bundle/obf/src/generators/collection.js +1 -1
  114. package/bundle/obf/src/generators/component.js +1 -1
  115. package/bundle/obf/src/generators/config.js +1 -1
  116. package/bundle/obf/src/generators/dbc.js +1 -1
  117. package/bundle/obf/src/generators/dockerfile.js +1 -1
  118. package/bundle/obf/src/generators/hook.js +1 -1
  119. package/bundle/obf/src/generators/kits/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  126. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  127. package/bundle/obf/src/generators/kits/kit.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  131. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  132. package/bundle/obf/src/generators/layout.js +1 -1
  133. package/bundle/obf/src/generators/maka.gen.js +1 -1
  134. package/bundle/obf/src/generators/methods.js +1 -1
  135. package/bundle/obf/src/generators/package.js +1 -1
  136. package/bundle/obf/src/generators/page.js +1 -1
  137. package/bundle/obf/src/generators/publish.js +1 -1
  138. package/bundle/obf/src/generators/route.js +1 -1
  139. package/bundle/obf/src/generators/service.js +1 -1
  140. package/bundle/obf/src/generators/services/_index.js +1 -1
  141. package/bundle/obf/src/generators/services/openssl.js +1 -1
  142. package/bundle/obf/src/generators/services/translation.js +1 -1
  143. package/bundle/obf/src/maka.js +1 -1
  144. package/bundle/obf/src/tool.js +1 -1
  145. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  146. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  147. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  148. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  149. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  150. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  151. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/https/https.class.js +1 -1
  153. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  154. package/bundle/obf/src/tools/log/log.class.js +1 -1
  155. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/options/options.class.js +1 -1
  157. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  158. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  159. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  160. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  161. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  162. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  163. package/package.json +1 -1
@@ -1 +1 @@
1
- function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x153;let f=c[d];return f;},a38d(a,b);}const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x186))/0x1+-parseInt(f(0x174))/0x2*(-parseInt(f(0x16a))/0x3)+parseInt(f(0x166))/0x4*(-parseInt(f(0x175))/0x5)+parseInt(f(0x157))/0x6+-parseInt(f(0x16d))/0x7+-parseInt(f(0x16f))/0x8+parseInt(f(0x15e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x584ca));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x17f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x163)]()[h(0x15c)]('(((.+)+)+)+$')[h(0x163)]()[h(0x161)](a38a)['search'](h(0x17c));});a38a();function a38c(){const n=['join','You\x20cannot\x20see\x20through','error','isValidDirection','riddle','379496ULueqY','verb','inventory','inspectItem','get','actor','4229898dGvyME','down','logger','\x20inventory.',',\x20you\x20see\x20','search','\x20is\x20looking\x20around\x20the\x20current\x20room.','9902034xqYndd','execute','description','constructor','Above\x20you,\x20','toString','currentLocation','write','8gUdnlU','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22','OUTSIDE','2148qpXfmt','rooms','string','4507475wkTFXd','You\x20cannot\x20see\x20','2202848QRFBTV','\x27\x20in\x20current\x20room\x20inventory.','You\x27re\x20not\x20in\x20a\x20valid\x20room.','\x20here.','puzzle','1506eZfznG','1709765RsUyNb','look','Looking\x20at\x20item\x20\x27','To\x20the\x20','It\x27s\x20just\x20a\x20regular\x20','Executing\x20\x27Look\x27\x20command.','hasItem','(((.+)+)+)+$','name','Examine\x20your\x20surroundings','apply','getOtherSide'];a38c=function(){return n;};return a38c();}import{Door}from'../models/door.js';import{RoomType}from'../types/enums.js';import{Command}from'./command.js';export class LookCommand extends Command{static [a38i(0x187)]=a38i(0x176);static [a38i(0x160)]=a38i(0x17e);[a38i(0x15f)](a=[]){const j=a38i;this['logger'][j(0x165)](j(0x17a));const b=a[j(0x181)]('\x20');if(b){if(this[j(0x156)][j(0x153)][j(0x17b)](b))return this['logger'][j(0x165)](j(0x177)+b+'\x27\x20in\x20'+this[j(0x156)][j(0x17d)]+j(0x15a)),this['inspectItem'](b,this[j(0x156)][j(0x153)]);else{if(this[j(0x156)][j(0x164)][j(0x153)][j(0x17b)](b))return this[j(0x159)][j(0x165)]('Looking\x20at\x20item\x20\x27'+b+j(0x170)),this['inspectItem'](b,this[j(0x156)][j(0x164)][j(0x153)]);else return this[j(0x184)](b)?(this[j(0x159)][j(0x165)]('Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27'+b+'\x27.'),this['lookOutside'](b)):j(0x16e)+b;}}else return this[j(0x159)][j(0x165)](this[j(0x156)][j(0x17d)]+j(0x15d)),this['look']();}[a38i(0x176)](){const k=a38i,a=this[k(0x156)][k(0x164)];if(!a)return this[k(0x159)]['error'](this['actor']['name']+'\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.'),'You\x27re\x20not\x20in\x20a\x20valid\x20room.';let b=a['description'];return a[k(0x173)]&&(b+='\x0a'+a['puzzle'][k(0x185)]),b;}['lookOutside'](a){const l=a38i,b=this[l(0x156)][l(0x164)];if(!b)return this[l(0x159)][l(0x183)](this[l(0x156)][l(0x17d)]+'\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.'),l(0x171);const c=b['exits'][l(0x155)](a);if(!c)return l(0x168)+a+'\x22.';let d;if(c instanceof Door)d=c[l(0x180)](b);else{if(typeof c===l(0x16c)){d=this['rooms']&&this[l(0x16b)][c];if(!d)return l(0x167)+a+'\x22.';}else return'Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22'+a+'\x22.';}if(d['roomType']===RoomType[l(0x169)]){if(a==='up')return l(0x162)+d[l(0x160)];else return a===l(0x158)?'Below\x20you,\x20'+d['description']:l(0x178)+a+l(0x15b)+d[l(0x160)];}else return l(0x182);}[a38i(0x154)](a,b){const m=a38i,c=b['getItem'](a);if(!c)return'You\x20don\x27t\x20see\x20any\x20'+a+m(0x172);return c[m(0x160)]||m(0x179)+a+'.';}}
1
+ const a38i=a38d;(function(a,b){const f=a38d,c=a();while(!![]){try{const d=-parseInt(f(0x12f))/0x1*(parseInt(f(0x126))/0x2)+-parseInt(f(0x102))/0x3+-parseInt(f(0x118))/0x4+parseInt(f(0x120))/0x5*(parseInt(f(0x106))/0x6)+-parseInt(f(0x110))/0x7+parseInt(f(0x112))/0x8+-parseInt(f(0xfa))/0x9*(parseInt(f(0x12a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xe3d38));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a38d;if(c){const e=c[g(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const h=a38d;return a38a[h(0x11c)]()[h(0x10a)](h(0x115))[h(0x11c)]()[h(0x10e)](a38a)[h(0x10a)]('(((.+)+)+)+$');});a38a();import{Door}from'../models/door.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xfa;let f=c[d];return f;},a38d(a,b);}import{RoomType}from'../types/enums.js';function a38c(){const n=['verb','rooms','constructor','down','1118705TAnoHX','OUTSIDE','12331920qfDUbd','currentLocation','inspectItem','(((.+)+)+)+$','\x20is\x20looking\x20around\x20the\x20current\x20room.','Examine\x20your\x20surroundings','638860hLwxeS','puzzle','getOtherSide','lookOutside','toString','\x20inventory.','Looking\x20at\x20item\x20\x27','error','445605OpDQCg','name','logger','roomType','actor','hasItem','2243134hSuMKI','\x20here.','apply','getItem','10QXPeTl','Unexpected\x20error\x20occurred\x20while\x20looking\x20at\x20the\x20room\x20in\x20the\x20direction\x20\x22','To\x20the\x20','Attempting\x20to\x20look\x20outside\x20in\x20direction\x20\x27','string','1VhpsVj','There\x27s\x20an\x20error\x20with\x20the\x20room\x20in\x20the\x20direction\x20\x22','You\x27re\x20not\x20in\x20a\x20valid\x20room.','2944539oYLoUw','You\x20cannot\x20see\x20through','It\x27s\x20just\x20a\x20regular\x20','write','Above\x20you,\x20','inventory','Executing\x20\x27Look\x27\x20command.','exits','797946zFsvVy','look','\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.','Below\x20you,\x20','96ZLNSfB',',\x20you\x20see\x20','execute','isValidDirection','search','description'];a38c=function(){return n;};return a38c();}import{Command}from'./command.js';export class LookCommand extends Command{static [a38i(0x10c)]='look';static [a38i(0x10b)]=a38i(0x117);[a38i(0x108)](a=[]){const j=a38i;this[j(0x122)]['write'](j(0x100));const b=a['join']('\x20');if(b){if(this[j(0x124)]['inventory'][j(0x125)](b))return this[j(0x122)][j(0xfd)]('Looking\x20at\x20item\x20\x27'+b+'\x27\x20in\x20'+this['actor']['name']+j(0x11d)),this[j(0x114)](b,this['actor'][j(0xff)]);else{if(this[j(0x124)][j(0x113)]['inventory'][j(0x125)](b))return this[j(0x122)][j(0xfd)](j(0x11e)+b+'\x27\x20in\x20current\x20room\x20inventory.'),this[j(0x114)](b,this[j(0x124)][j(0x113)]['inventory']);else return this[j(0x109)](b)?(this[j(0x122)][j(0xfd)](j(0x12d)+b+'\x27.'),this[j(0x11b)](b)):'You\x20cannot\x20see\x20'+b;}}else return this[j(0x122)]['write'](this[j(0x124)][j(0x121)]+j(0x116)),this[j(0x103)]();}[a38i(0x103)](){const k=a38i,a=this[k(0x124)][k(0x113)];if(!a)return this[k(0x122)][k(0x11f)](this[k(0x124)][k(0x121)]+'\x20is\x20not\x20in\x20a\x20valid\x20room\x20during\x20\x27Look\x27\x20command\x20execution.'),k(0x131);let b=a[k(0x10b)];return a[k(0x119)]&&(b+='\x0a'+a[k(0x119)]['riddle']),b;}[a38i(0x11b)](a){const l=a38i,b=this[l(0x124)][l(0x113)];if(!b)return this[l(0x122)][l(0x11f)](this[l(0x124)]['name']+l(0x104)),l(0x131);const c=b[l(0x101)]['get'](a);if(!c)return'There\x27s\x20no\x20exit\x20in\x20the\x20direction\x20\x22'+a+'\x22.';let d;if(c instanceof Door)d=c[l(0x11a)](b);else{if(typeof c===l(0x12e)){d=this[l(0x10d)]&&this['rooms'][c];if(!d)return l(0x130)+a+'\x22.';}else return l(0x12b)+a+'\x22.';}if(d[l(0x123)]===RoomType[l(0x111)]){if(a==='up')return l(0xfe)+d[l(0x10b)];else return a===l(0x10f)?l(0x105)+d['description']:l(0x12c)+a+l(0x107)+d[l(0x10b)];}else return l(0xfb);}[a38i(0x114)](a,b){const m=a38i,c=b[m(0x129)](a);if(!c)return'You\x20don\x27t\x20see\x20any\x20'+a+m(0x127);return c['description']||m(0xfc)+a+'.';}}
@@ -1 +1 @@
1
- const a39j=a39d;function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x9b;let f=c[d];return f;},a39d(a,b);}(function(a,b){const g=a39d,c=a();while(!![]){try{const d=-parseInt(g(0xb9))/0x1+-parseInt(g(0xae))/0x2*(parseInt(g(0xa2))/0x3)+parseInt(g(0xb0))/0x4*(parseInt(g(0xa5))/0x5)+-parseInt(g(0x9d))/0x6*(-parseInt(g(0xb5))/0x7)+parseInt(g(0xaf))/0x8+-parseInt(g(0xb2))/0x9*(parseInt(g(0xa9))/0xa)+parseInt(g(0xb6))/0xb*(-parseInt(g(0xb8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x8e198));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a39d;if(c){const e=c[h(0xba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const i=a39d;return a39a['toString']()[i(0xb7)](i(0xbb))[i(0xad)]()['constructor'](a39a)['search']('(((.+)+)+)+$');});function a39c(){const l=['log','39ENFFhA','You\x20say:\x20\x22','\x20says\x20to\x20','5700XNePYB',':\x20\x22','An\x20error\x20occurred.','logger','10mvEjQR','currentLocation','description','say','toString','153358xpfJnU','8319328hZOMDS','2628KDtKng','context','5461713SUTrsE','join','actor','791SDJnyC','30756oceyrT','search','2388gurqoN','26365LFWCwI','apply','(((.+)+)+)+$','execute','What\x20do\x20you\x20want\x20to\x20say?','Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.','length','52014IukKZO','name','scene','verb'];a39c=function(){return l;};return a39c();}a39a();import{Command}from'./command.js';export class SayCommand extends Command{static [a39j(0xa0)]=a39j(0xac);static [a39j(0xab)]=a39j(0x9b);[a39j(0xb1)];constructor(a){super(a),this['context']=a;}[a39j(0xbc)](a){const k=a39j;if(a[k(0x9c)]===0x0)return k(0xbd);const b=a[k(0xb3)]('\x20'),c=this[k(0xb4)],d=this[k(0xb1)][k(0x9f)];if(!d)return this['logger']['log']('Scene\x20is\x20missing\x20from\x20context.'),k(0xa7);const e=d['allActors']['filter'](f=>f[k(0xaa)]===c[k(0xaa)]);for(const f of e){this[k(0xa8)][k(0xa1)](c[k(0x9e)]+k(0xa4)+f['name']+k(0xa6)+b+'\x22'),this[k(0xb4)]['currentLocation'][k(0xac)](f,b);}return k(0xa3)+b+'\x22';}}
1
+ const a39j=a39d;function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a39d(a,b);}(function(a,b){const g=a39d,c=a();while(!![]){try{const d=-parseInt(g(0x1c7))/0x1+parseInt(g(0x1d3))/0x2*(parseInt(g(0x1ca))/0x3)+-parseInt(g(0x1d8))/0x4+parseInt(g(0x1dc))/0x5+parseInt(g(0x1e0))/0x6+-parseInt(g(0x1c3))/0x7+-parseInt(g(0x1d4))/0x8*(parseInt(g(0x1cf))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xecf5c));function a39c(){const m=['64778mtyUqb','join','toString','logger','166358JaWerr','execute','verb','9nOQDnE','actor','search','filter',':\x20\x22','18SBjxAj','(((.+)+)+)+$','constructor','say','69662kaRpsn','336712wfCtHT','currentLocation','log','context','5494572NmGjmP','\x20says\x20to\x20','description','apply','9705815bQAXTi','name','What\x20do\x20you\x20want\x20to\x20say?','You\x20say:\x20\x22','3350190uDFkHM'];a39c=function(){return m;};return a39c();}const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a39d;if(c){const e=c[h(0x1db)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const i=a39d;return a39a['toString']()[i(0x1cc)]('(((.+)+)+)+$')[i(0x1c5)]()[i(0x1d1)](a39a)[i(0x1cc)](i(0x1d0));});a39a();import{Command}from'./command.js';export class SayCommand extends Command{static [a39j(0x1c9)]=a39j(0x1d2);static [a39j(0x1da)]='Broadcast\x20a\x20message\x20to\x20everyone\x20in\x20the\x20current\x20room.';[a39j(0x1d7)];constructor(a){const k=a39j;super(a),this[k(0x1d7)]=a;}[a39j(0x1c8)](a){const l=a39j;if(a['length']===0x0)return l(0x1de);const b=a[l(0x1c4)]('\x20'),c=this[l(0x1cb)],d=this[l(0x1d7)]['scene'];if(!d)return this['logger'][l(0x1d6)]('Scene\x20is\x20missing\x20from\x20context.'),'An\x20error\x20occurred.';const e=d['allActors'][l(0x1cd)](f=>f[l(0x1d5)]===c[l(0x1d5)]);for(const f of e){this[l(0x1c6)][l(0x1d6)](c['name']+l(0x1d9)+f[l(0x1dd)]+l(0x1ce)+b+'\x22'),this['actor']['currentLocation'][l(0x1d2)](f,b);}return l(0x1df)+b+'\x22';}}
@@ -1 +1 @@
1
- const a40i=a40d;function a40c(){const k=['You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','toString','149HxLyid','write','verb','inventory','(((.+)+)+)+$','314019aXFUmI','execute','SearchCommand:\x20','18918097uDQprA','currentLocation','actor','join','You\x20search\x20the\x20area\x20and\x20find:\x20','listItems','23774cbRLmh','description','114335FyWSnm','170FRiIiV','logger','133HzylkK','search','196NnFHKS','length','\x20found\x20the\x20following\x20items:\x20','2068800AgIFAs','495896qvrHqY','Search\x20for\x20items\x20in\x20your\x20area','5093394jmYLsm','apply'];a40c=function(){return k;};return a40c();}(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x1d1))/0x1*(parseInt(f(0x1bf))/0x2)+parseInt(f(0x1c9))/0x3+-parseInt(f(0x1c6))/0x4*(parseInt(f(0x1c1))/0x5)+parseInt(f(0x1cc))/0x6+-parseInt(f(0x1c4))/0x7*(-parseInt(f(0x1ca))/0x8)+parseInt(f(0x1d6))/0x9*(-parseInt(f(0x1c2))/0xa)+parseInt(f(0x1d9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xe83f6));function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a40d(a,b);}const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x1cd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x1d0)]()[h(0x1c5)](h(0x1d5))[h(0x1d0)]()['constructor'](a40a)[h(0x1c5)](h(0x1d5));});a40a();import{Command}from'./command.js';export class SearchCommand extends Command{static [a40i(0x1d3)]=a40i(0x1c5);static [a40i(0x1c0)]=a40i(0x1cb);[a40i(0x1d7)](){const j=a40i,a=this['actor'][j(0x1da)][j(0x1d4)][j(0x1be)]();if(a[j(0x1c7)]===0x0)return this[j(0x1c3)][j(0x1d2)]('SearchCommand:\x20'+this[j(0x1bb)]['name']+j(0x1cf)),j(0x1ce);const b=a[j(0x1bc)](',\x20');return this[j(0x1c3)][j(0x1d2)](j(0x1d8)+this[j(0x1bb)]['name']+j(0x1c8)+b),j(0x1bd)+b;}}
1
+ const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=-parseInt(f(0x104))/0x1+parseInt(f(0xfb))/0x2+parseInt(f(0xfc))/0x3*(-parseInt(f(0xf5))/0x4)+-parseInt(f(0x109))/0x5+-parseInt(f(0x108))/0x6+parseInt(f(0x10d))/0x7*(parseInt(f(0x10a))/0x8)+parseInt(f(0x105))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x3a7dd));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0x10b)]()[h(0xf8)](h(0x100))[h(0x10b)]()[h(0xf6)](a40a)[h(0xf8)]('(((.+)+)+)+$');});a40a();import{Command}from'./command.js';function a40c(){const k=['description','457192XbujtK','236091gRKmBI','verb','actor','length','(((.+)+)+)+$','apply','logger','SearchCommand:\x20','348773dlcFYI','9380196qrnbKL','inventory','listItems','2566170TcAlfT','1339980mLbMzC','16UamtmV','toString','\x20searched\x20the\x20room\x20but\x20found\x20nothing.','872536uCtIHB','You\x20search\x20the\x20area\x20and\x20find:\x20','write','12saVtvn','constructor','You\x20search\x20the\x20area\x20thoroughly,\x20but\x20don\x27t\x20find\x20anything\x20of\x20interest.','search','name'];a40c=function(){return k;};return a40c();}function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0xf4;let f=c[d];return f;},a40d(a,b);}export class SearchCommand extends Command{static [a40i(0xfd)]=a40i(0xf8);static [a40i(0xfa)]='Search\x20for\x20items\x20in\x20your\x20area';['execute'](){const j=a40i,a=this[j(0xfe)]['currentLocation'][j(0x106)][j(0x107)]();if(a[j(0xff)]===0x0)return this['logger'][j(0xf4)](j(0x103)+this[j(0xfe)][j(0xf9)]+j(0x10c)),j(0xf7);const b=a['join'](',\x20');return this[j(0x102)][j(0xf4)](j(0x103)+this[j(0xfe)]['name']+'\x20found\x20the\x20following\x20items:\x20'+b),j(0x10e)+b;}}
@@ -1 +1 @@
1
- const a41i=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0xc4;let f=c[d];return f;},a41d(a,b);}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=parseInt(f(0xcf))/0x1+-parseInt(f(0xe2))/0x2*(-parseInt(f(0xcb))/0x3)+-parseInt(f(0xc7))/0x4*(parseInt(f(0xda))/0x5)+parseInt(f(0xc5))/0x6*(parseInt(f(0xd5))/0x7)+-parseInt(f(0xd1))/0x8*(parseInt(f(0xc9))/0x9)+-parseInt(f(0xe5))/0xa*(-parseInt(f(0xde))/0xb)+parseInt(f(0xc4))/0xc*(-parseInt(f(0xd9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x752d3));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0xdd)]()[h(0xe4)](h(0xd4))['toString']()['constructor'](a41a)['search'](h(0xd4));});a41a();function a41c(){const k=['apply','1875328sHtiOu','rewardItem','actor','(((.+)+)+)+$','3328556DEDcNi','addItem','verb','message','96590ZcEgyg','5YljfCQ','write','solve','toString','8503jaOEbE','description','inventory','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','2440iXHeSz','SolveCommand:\x20','search','1370PASdoA','puzzle','276VzkYmu','6XuDgqN','toLowerCase','275708YkKbwh','success','36oxEMTl','logger','1362ijYpZG','currentLocation','execute','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','522147adCWFr'];a41c=function(){return k;};return a41c();}import{Command}from'./command.js';export class SolveCommand extends Command{static [a41i(0xd7)]='solve';static [a41i(0xdf)]='Attempt\x20to\x20solve\x20a\x20puzzle.';[a41i(0xcd)](a){const j=a41i,b=a['join']('\x20')[j(0xc6)](),c=this['actor'][j(0xcc)];if(!c||!c[j(0xe6)])return this[j(0xca)]['write'](j(0xe1)),j(0xce);const d=c[j(0xe6)][j(0xdc)](b,this[j(0xd3)][j(0xe0)]);return d[j(0xc8)]&&c[j(0xe6)][j(0xd2)]&&this[j(0xd3)][j(0xe0)][j(0xd6)](c[j(0xe6)][j(0xd2)]),this[j(0xca)][j(0xdb)](j(0xe3)+d[j(0xd8)]),d[j(0xd8)];}}
1
+ function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x154;let f=c[d];return f;},a41d(a,b);}const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x161))/0x1+parseInt(f(0x172))/0x2+-parseInt(f(0x15a))/0x3*(parseInt(f(0x16a))/0x4)+parseInt(f(0x15d))/0x5*(parseInt(f(0x160))/0x6)+parseInt(f(0x169))/0x7+parseInt(f(0x16f))/0x8+-parseInt(f(0x156))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xcf6c1));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x171)]()['search']('(((.+)+)+)+$')[h(0x171)]()[h(0x16d)](a41a)[h(0x155)](h(0x167));});function a41c(){const k=['description','execute','solve','(((.+)+)+)+$','success','11339475bECEFj','888424NIrbcW','There\x20doesn\x27t\x20seem\x20to\x20be\x20a\x20riddle\x20here\x20to\x20solve.','inventory','constructor','logger','1064832sbQHva','Attempt\x20to\x20solve\x20a\x20puzzle.','toString','2924986fzRuiN','toLowerCase','search','28048320ninmYE','actor','verb','apply','6AzzywB','currentLocation','puzzle','10sKxfLM','write','SolveCommand:\x20${this.actor.name}\x20attempt\x20to\x20solve\x20a\x20riddle\x20in\x20a\x20room\x20with\x20no\x20puzzle.','4699902ZuwpRU','371863KwAjBG','SolveCommand:\x20','addItem'];a41c=function(){return k;};return a41c();}a41a();import{Command}from'./command.js';export class SolveCommand extends Command{static [a41i(0x158)]=a41i(0x166);static [a41i(0x164)]=a41i(0x170);[a41i(0x165)](a){const j=a41i,b=a['join']('\x20')[j(0x154)](),c=this['actor'][j(0x15b)];if(!c||!c[j(0x15c)])return this[j(0x16e)][j(0x15e)](j(0x15f)),j(0x16b);const d=c['puzzle'][j(0x166)](b,this[j(0x157)]['inventory']);return d[j(0x168)]&&c[j(0x15c)]['rewardItem']&&this[j(0x157)][j(0x16c)][j(0x163)](c['puzzle']['rewardItem']),this['logger'][j(0x15e)](j(0x162)+d['message']),d['message'];}}
@@ -1 +1 @@
1
- function a42c(){const k=['constructor','verb','\x20during\x20\x27Take\x27\x20command.','\x22\x20from\x20','317185XdpkUR','230562TRDEBY','write','\x22\x20to\x20','\x22\x20not\x20retrieved\x20from\x20','Successfully\x20added\x20\x22','2106387bUTxbZ','3057950ZTYgMQ','actor','message','join','Error\x20during\x20\x27Take\x27\x20command:\x20','name','execute','\x22\x20is\x20too\x20heavy\x20to\x20carry.','4728479VnCxjX','take','search','\x22\x20in\x20this\x20room.','toLowerCase','Pick\x20up\x20an\x20item.','toString','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','\x22\x20not\x20found\x20in\x20','There\x20is\x20no\x20item\x20\x22','You\x20have\x20taken\x20the\x20','30735yVJlTU','72dxooNM','logger','inventory','113968hACCDZ','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','(((.+)+)+)+$','6NcXxzs','4YYnrfM','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','The\x20item\x20\x22','getItem','Successfully\x20removed\x20\x22','1nVoYug','description','Item\x20\x22','9AFNPZb','removeItem'];a42c=function(){return k;};return a42c();}const a42h=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0x16f))/0x1*(parseInt(f(0x149))/0x2)+-parseInt(f(0x14e))/0x3*(-parseInt(f(0x16a))/0x4)+parseInt(f(0x162))/0x5+-parseInt(f(0x169))/0x6*(parseInt(f(0x157))/0x7)+parseInt(f(0x166))/0x8*(-parseInt(f(0x172))/0x9)+parseInt(f(0x14f))/0xa+-parseInt(f(0x178))/0xb*(-parseInt(f(0x163))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x5d469));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const g=a42d;return a42a[g(0x15d)]()[g(0x159)](g(0x168))[g(0x15d)]()[g(0x174)](a42a)[g(0x159)](g(0x168));});a42a();import{Command}from'./command.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x149;let f=c[d];return f;},a42d(a,b);}export class TakeCommand extends Command{static [a42h(0x175)]=a42h(0x158);static [a42h(0x170)]=a42h(0x15c);[a42h(0x155)](a){const i=a42h;return this[i(0x164)][i(0x14a)](i(0x15e)+a[i(0x152)]('\x20')),this[i(0x158)](a);}[a42h(0x158)](a){const j=a42h,b=a[j(0x152)]('\x20')[j(0x15b)](),c=this[j(0x150)]['currentLocation'];if(!c[j(0x165)]['hasItem'](b))return this[j(0x164)][j(0x14a)](j(0x171)+b+j(0x15f)+c[j(0x154)]+j(0x176)),j(0x160)+b+j(0x15a);const d=c[j(0x165)][j(0x16d)](b);if(!d)return this[j(0x164)]['write']('Item\x20\x22'+b+j(0x14c)+c[j(0x154)]+j(0x167)),j(0x160)+b+j(0x15a);try{return this[j(0x150)]['addInventory'](d),this['logger']['write'](j(0x14d)+b+j(0x14b)+this[j(0x150)]['name']+j(0x16b)),c['inventory'][j(0x173)](b),this[j(0x164)][j(0x14a)](j(0x16e)+b+j(0x177)+c[j(0x154)]+j(0x167)),j(0x161)+b+'.';}catch(e){return this[j(0x164)][j(0x14a)](j(0x153)+e[j(0x151)]),j(0x16c)+b+j(0x156);}}}
1
+ const a42h=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=-parseInt(f(0x1de))/0x1*(-parseInt(f(0x1db))/0x2)+-parseInt(f(0x1e2))/0x3+-parseInt(f(0x1df))/0x4+parseInt(f(0x1f4))/0x5*(-parseInt(f(0x1fe))/0x6)+parseInt(f(0x1fd))/0x7+-parseInt(f(0x1ea))/0x8*(-parseInt(f(0x1e9))/0x9)+-parseInt(f(0x1fb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x4cd80));function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a42d(a,b);}const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const g=a42d;return a42a[g(0x1e0)]()[g(0x1ec)]('(((.+)+)+)+$')[g(0x1e0)]()[g(0x1e5)](a42a)['search'](g(0x1f2));});a42a();import{Command}from'./command.js';function a42c(){const k=['join','actor','removeItem','name','(((.+)+)+)+$','write','5iTihre','currentLocation','logger','\x22\x20not\x20found\x20in\x20','\x22\x20is\x20too\x20heavy\x20to\x20carry.','Error\x20during\x20\x27Take\x27\x20command:\x20','Pick\x20up\x20an\x20item.','1490480WlzTDw','message','4085536XEjPSY','1962678AHxRNr','\x22\x20to\x20','\x22\x20from\x20','addInventory','\x22\x20not\x20retrieved\x20from\x20','Successfully\x20removed\x20\x22','366Itoxcs','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','verb','1905kxXdkv','717484ImbMOw','toString','Item\x20\x22','636519yudiBf','The\x20item\x20\x22','\x22\x20in\x20this\x20room.','constructor','toLowerCase','You\x20have\x20taken\x20the\x20','inventory','9DLgoPa','2001552NDAIhY','getItem','search','take'];a42c=function(){return k;};return a42c();}export class TakeCommand extends Command{static [a42h(0x1dd)]=a42h(0x1ed);static ['description']=a42h(0x1fa);['execute'](a){const i=a42h;return this['logger'][i(0x1f3)]('Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20'+a[i(0x1ee)]('\x20')),this[i(0x1ed)](a);}['take'](a){const j=a42h,b=a['join']('\x20')[j(0x1e6)](),c=this[j(0x1ef)][j(0x1f5)];if(!c[j(0x1e8)]['hasItem'](b))return this['logger'][j(0x1f3)](j(0x1e1)+b+j(0x1f7)+c['name']+'\x20during\x20\x27Take\x27\x20command.'),'There\x20is\x20no\x20item\x20\x22'+b+j(0x1e4);const d=c['inventory'][j(0x1eb)](b);if(!d)return this[j(0x1f6)]['write'](j(0x1e1)+b+j(0x1d9)+c[j(0x1f1)]+j(0x1dc)),'There\x20is\x20no\x20item\x20\x22'+b+j(0x1e4);try{return this[j(0x1ef)][j(0x1d8)](d),this[j(0x1f6)][j(0x1f3)]('Successfully\x20added\x20\x22'+b+j(0x1d6)+this[j(0x1ef)][j(0x1f1)]+'\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),c[j(0x1e8)][j(0x1f0)](b),this['logger'][j(0x1f3)](j(0x1da)+b+j(0x1d7)+c[j(0x1f1)]+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),j(0x1e7)+b+'.';}catch(e){return this[j(0x1f6)][j(0x1f3)](j(0x1f9)+e[j(0x1fc)]),j(0x1e3)+b+j(0x1f8);}}}
@@ -1 +1 @@
1
- const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x18a))/0x1+parseInt(f(0x198))/0x2+-parseInt(f(0x18b))/0x3*(-parseInt(f(0x186))/0x4)+parseInt(f(0x199))/0x5*(-parseInt(f(0x18f))/0x6)+-parseInt(f(0x19d))/0x7+parseInt(f(0x185))/0x8*(-parseInt(f(0x187))/0x9)+parseInt(f(0x19a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xe0665));function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x185;let f=c[d];return f;},a43d(a,b);}const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x193)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x19e)]()[h(0x19b)](h(0x192))['toString']()[h(0x189)](a43a)[h(0x19b)]('(((.+)+)+)+$');});a43a();import{Command}from'./command.js';function a43c(){const k=['toLowerCase','10893522cQNIsB','unequip','actor','(((.+)+)+)+$','apply','write','verb','logger','name','253602JTaVwv','5QdVPvM','68092300wYKnGJ','search','\x20unqeuiped\x20','10276826Tbysjz','toString','4072kIsqpm','580aHalJE','30627fgQTZe','Unequip\x20an\x20item.','constructor','1352248zseeyS','7266KeryPG','description','join'];a43c=function(){return k;};return a43c();}export class UnequipCommand extends Command{static [a43i(0x195)]='unqeuip';static [a43i(0x18c)]=a43i(0x188);['execute'](a){const j=a43i,b=a[j(0x18d)]('\x20')[j(0x18e)](),c=this[j(0x191)][j(0x190)](b);return this[j(0x196)][j(0x194)]('UnequipCommand:\x20'+this[j(0x191)][j(0x197)]+j(0x19c)+c),c;}}
1
+ const a43i=a43d;function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x197;let f=c[d];return f;},a43d(a,b);}function a43c(){const k=['UnequipCommand:\x20','unqeuip','159syPkPC','verb','2112200BADERu','name','toString','toLowerCase','logger','execute','8rPGPAI','apply','(((.+)+)+)+$','join','1016790nSIhej','Unequip\x20an\x20item.','write','search','90736cWvloc','10822023HXkXOT','6UzGYnd','actor','unequip','12096868EeEStq','23576530WxDdSy','317390TlUxFU'];a43c=function(){return k;};return a43c();}(function(a,b){const f=a43d,c=a();while(!![]){try{const d=parseInt(f(0x1a2))/0x1+parseInt(f(0x1a7))/0x2+-parseInt(f(0x1a5))/0x3*(-parseInt(f(0x19b))/0x4)+parseInt(f(0x197))/0x5*(parseInt(f(0x19d))/0x6)+-parseInt(f(0x1a0))/0x7*(-parseInt(f(0x1ad))/0x8)+-parseInt(f(0x19c))/0x9+-parseInt(f(0x1a1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xe73b4));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x1a9)]()[h(0x19a)](h(0x1af))['toString']()['constructor'](a43a)[h(0x19a)](h(0x1af));});a43a();import{Command}from'./command.js';export class UnequipCommand extends Command{static [a43i(0x1a6)]=a43i(0x1a4);static ['description']=a43i(0x198);[a43i(0x1ac)](a){const j=a43i,b=a[j(0x1b0)]('\x20')[j(0x1aa)](),c=this['actor'][j(0x19f)](b);return this[j(0x1ab)][j(0x199)](j(0x1a3)+this[j(0x19e)][j(0x1a8)]+'\x20unqeuiped\x20'+c),c;}}
@@ -1 +1 @@
1
- const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=parseInt(h(0x114))/0x1+-parseInt(h(0x115))/0x2*(parseInt(h(0x112))/0x3)+-parseInt(h(0x110))/0x4*(-parseInt(h(0x10f))/0x5)+parseInt(h(0xfb))/0x6*(-parseInt(h(0x118))/0x7)+parseInt(h(0x100))/0x8+-parseInt(h(0x101))/0x9+parseInt(h(0x10a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x678b0));function a44c(){const m=['Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','actor','2829728MZWtLK','4653216jShTyr','inventory','exits','toLowerCase','toString','search','(((.+)+)+)+$','apply','length','1871100UwLDQZ','There\x27s\x20no\x20door\x20named\x20\x22','logger','\x22\x20here.','attemptUnlockExit','1025OvHnmo','14692JvxOHY','verb','3nBfWcU','unlock','307154LOORoz','459434mIwOeP','UnlockCommand:\x20','write','1003548DwwIhQ','name','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','unlockItemOrSolution','getItem','constructor','has','description','18WatAGL','get','.\x20Result:\x20'];a44c=function(){return m;};return a44c();}const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x108)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a[j(0x105)]()[j(0x106)](j(0x107))['toString']()[j(0xf8)](a44a)['search'](j(0x107));});a44a();import{Door}from'../models/door.js';import{Command}from'./command.js';function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xf6;let f=c[d];return f;},a44d(a,b);}export class UnlockCommand extends Command{static [a44k(0x111)]='unlock';static [a44k(0xfa)]='Unlock\x20a\x20door.';['execute'](a){return this['unlock'](a);}[a44k(0x113)](a){const l=a44k;if(a[l(0x109)]===0x0)return this[l(0x10c)]['error']('UnlockCommand:\x20No\x20target\x20specified.'),l(0xfe);const b=a[0x0][l(0x104)](),c=this[l(0xff)]['currentLocation'];if(this['isValidDirection'](b)&&c[l(0x103)][l(0xf9)](b)){const d=c[l(0x103)][l(0xfc)](b);if(d instanceof Door){const e=d[l(0xf6)]?.[l(0x104)]();if(e&&this[l(0xff)]['inventory']['hasItem'](e)){const f=this[l(0xff)][l(0x102)][l(0xf7)](e);if(f){const g=c[l(0x10e)](b,f[l(0x119)]);return this[l(0x10c)]['write'](l(0x116)+this[l(0xff)][l(0x119)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+l(0xfd)+g),g;}}return this[l(0x10c)]['write'](l(0x116)+this[l(0xff)][l(0x119)]+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),l(0x11a);}else return this[l(0x10c)][l(0x117)](l(0x116)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[l(0x119)]+'.'),l(0x10b)+b+'\x22\x20here.';}else return this[l(0x10c)]['write'](l(0x116)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c['name']+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+l(0x10d);}}
1
+ const a44k=a44d;(function(a,b){const h=a44d,c=a();while(!![]){try{const d=parseInt(h(0x96))/0x1+parseInt(h(0x8b))/0x2+-parseInt(h(0x8a))/0x3*(parseInt(h(0x8c))/0x4)+parseInt(h(0x88))/0x5*(parseInt(h(0x92))/0x6)+parseInt(h(0x90))/0x7+parseInt(h(0x94))/0x8+parseInt(h(0x80))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x635dc));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a44d;if(c){const e=c[i(0x97)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const j=a44d;return a44a[j(0x7f)]()[j(0x81)](j(0x9f))[j(0x7f)]()[j(0x89)](a44a)[j(0x81)]('(((.+)+)+)+$');});function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x7d;let f=c[d];return f;},a44d(a,b);}a44a();import{Door}from'../models/door.js';function a44c(){const m=['UnlockCommand:\x20','371476dIdJOZ','exits','6GcLHNh','There\x27s\x20no\x20door\x20named\x20\x22','1958928doANZu','write','519534VuwBIB','apply','.\x20Result:\x20','logger','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','length','actor','inventory','(((.+)+)+)+$','verb','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','toLowerCase','currentLocation','unlockItemOrSolution','toString','409158iSeqhg','search','name','unlock','error','hasItem','description','\x22\x20here.','1178565fVMZNo','constructor','3jRjvdk','186186uoBHME','3138928QDkbtp','getItem','UnlockCommand:\x20No\x20target\x20specified.'];a44c=function(){return m;};return a44c();}import{Command}from'./command.js';export class UnlockCommand extends Command{static [a44k(0xa0)]=a44k(0x83);static [a44k(0x86)]='Unlock\x20a\x20door.';['execute'](a){return this['unlock'](a);}[a44k(0x83)](a){const l=a44k;if(a[l(0x9c)]===0x0)return this[l(0x99)][l(0x84)](l(0x8e)),l(0x9b);const b=a[0x0][l(0xa2)](),c=this[l(0x9d)][l(0x7d)];if(this['isValidDirection'](b)&&c[l(0x91)]['has'](b)){const d=c['exits']['get'](b);if(d instanceof Door){const e=d[l(0x7e)]?.[l(0xa2)]();if(e&&this['actor'][l(0x9e)][l(0x85)](e)){const f=this[l(0x9d)][l(0x9e)][l(0x8d)](e);if(f){const g=c['attemptUnlockExit'](b,f[l(0x82)]);return this[l(0x99)]['write'](l(0x8f)+this['actor'][l(0x82)]+'\x20is\x20attempted\x20to\x20unlock\x20'+b+l(0x98)+g),g;}}return this['logger'][l(0x95)](l(0x8f)+this['actor']['name']+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),l(0x9a);}else return this[l(0x99)][l(0x95)](l(0x8f)+b+'\x20is\x20not\x20a\x20valid\x20exit\x20in\x20'+c[l(0x82)]+'.'),l(0x93)+b+'\x22\x20here.';}else return this[l(0x99)][l(0x95)](l(0x8f)+b+l(0xa1)+c[l(0x82)]+'.'),'There\x27s\x20no\x20door\x20named\x20\x22'+b+l(0x87);}}
@@ -1 +1 @@
1
- function a45c(){const l=['\x20attempted\x20to\x20use\x20','logger','(((.+)+)+)+$','\x20doesn\x27t\x20have\x20a\x20use\x20method.','execute','toLowerCase','9loeXjW','Use\x20an\x20item.','\x20in\x20this\x20way.','name','55086XVTkVs','\x20to\x20use.','write','1844232RJgEvW','16fFKBVw','verb','\x20used\x20','3426730ExuoJX',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','use','UseCommand:\x20','3022590dhlcRm','\x27s\x20inventory.','7iQYHpa','toString','hasItem','2306684EjjVbm','inventory','1737930nugjub','getItem','1876458bJFLTy','join','apply','You\x20don\x27t\x20have\x20the\x20','actor'];a45c=function(){return l;};return a45c();}const a45i=a45d;function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x92;let f=c[d];return f;},a45d(a,b);}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0xac))/0x1*(-parseInt(f(0xb0))/0x2)+-parseInt(f(0x9d))/0x3+parseInt(f(0x99))/0x4+parseInt(f(0x94))/0x5+parseInt(f(0x9b))/0x6*(-parseInt(f(0x96))/0x7)+parseInt(f(0xaf))/0x8+parseInt(f(0xa8))/0x9*(parseInt(f(0xb3))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x614e2));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a['toString']()['search'](h(0xa4))[h(0x97)]()['constructor'](a45a)['search']('(((.+)+)+)+$');});a45a();import{Command}from'./command.js';export class UseCommand extends Command{static [a45i(0xb1)]=a45i(0x92);static ['description']=a45i(0xa9);[a45i(0xa6)](a){const j=a45i;return this[j(0x92)](a);}['use'](a){const k=a45i,b=a[k(0x9e)]('\x20')[k(0xa7)]();if(!this['actor']['inventory'][k(0x98)](b))return this[k(0xa3)][k(0xae)](k(0x93)+this[k(0xa1)][k(0xab)]+k(0xa2)+b+k(0xb4)),k(0xa0)+b+k(0xad);const c=this[k(0xa1)][k(0x9a)][k(0x9c)](b);if(!c)return this[k(0xa3)][k(0xae)](k(0x93)+b+'\x20not\x20retrieved\x20from\x20'+this[k(0xa1)][k(0xab)]+k(0x95)),k(0xa0)+b+k(0xad);if(typeof c[k(0x92)]==='function'){const d=c['use']();return this[k(0xa3)][k(0xae)](k(0x93)+this[k(0xa1)][k(0xab)]+k(0xb2)+b+'.'),d;}else return this[k(0xa3)][k(0xae)](k(0x93)+b+k(0xa5)),'You\x20can\x27t\x20use\x20the\x20'+b+k(0xaa);}}
1
+ const a45h=a45d;function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x121;let f=c[d];return f;},a45d(a,b);}(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0x13e))/0x1*(parseInt(f(0x12b))/0x2)+parseInt(f(0x12d))/0x3*(-parseInt(f(0x13b))/0x4)+parseInt(f(0x12e))/0x5+parseInt(f(0x143))/0x6+parseInt(f(0x141))/0x7+-parseInt(f(0x124))/0x8*(parseInt(f(0x128))/0x9)+-parseInt(f(0x130))/0xa*(parseInt(f(0x135))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xef18d));function a45c(){const k=['You\x20can\x27t\x20use\x20the\x20','use','\x20doesn\x27t\x20have\x20a\x20use\x20method.','8MGYEnW','toString','logger','1562646CEGvli','toLowerCase','UseCommand:\x20','5150173zXDNeM','You\x20don\x27t\x20have\x20the\x20','11025774macYQW','execute','constructor','(((.+)+)+)+$','name',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','join','2435464WIDeUd','search','\x20used\x20','Use\x20an\x20item.','9UFwYcw','\x20to\x20use.','\x20in\x20this\x20way.','2TxbBxT','write','1199241AmXTPf','6625200nBtYCA','actor','5060qJSKiy','\x27s\x20inventory.','verb','inventory','\x20not\x20retrieved\x20from\x20','5489BijMHE','function','hasItem'];a45c=function(){return k;};return a45c();}const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const g=a45d;return a45a['toString']()[g(0x125)](g(0x146))[g(0x13c)]()[g(0x145)](a45a)[g(0x125)](g(0x146));});a45a();import{Command}from'./command.js';export class UseCommand extends Command{static [a45h(0x132)]=a45h(0x139);static ['description']=a45h(0x127);[a45h(0x144)](a){const i=a45h;return this[i(0x139)](a);}[a45h(0x139)](a){const j=a45h,b=a[j(0x123)]('\x20')[j(0x13f)]();if(!this[j(0x12f)][j(0x133)][j(0x137)](b))return this['logger'][j(0x12c)](j(0x140)+this['actor'][j(0x121)]+'\x20attempted\x20to\x20use\x20'+b+j(0x122)),j(0x142)+b+j(0x129);const c=this[j(0x12f)][j(0x133)]['getItem'](b);if(!c)return this[j(0x13d)][j(0x12c)](j(0x140)+b+j(0x134)+this['actor']['name']+j(0x131)),'You\x20don\x27t\x20have\x20the\x20'+b+j(0x129);if(typeof c[j(0x139)]===j(0x136)){const d=c[j(0x139)]();return this[j(0x13d)][j(0x12c)](j(0x140)+this['actor'][j(0x121)]+j(0x126)+b+'.'),d;}else return this['logger'][j(0x12c)](j(0x140)+b+j(0x13a)),j(0x138)+b+j(0x12a);}}
@@ -1 +1 @@
1
- function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0x15a;let f=c[d];return f;},a46d(a,b);}const a46i=a46d;function a46c(){const l=['50axkgYE','toString','registerCommand','16782joySDz','18254GWuSnW','2854OFrFDT','createCommand','1857456CQJnji','apply','2065SxHjQX','(((.+)+)+)+$','getAllRegisteredCommands','commandMap','6642200bjGTlx','constructor','369184QmvzQu','660jieKVi','search','32441570IOzSgQ'];a46c=function(){return l;};return a46c();}(function(a,b){const f=a46d,c=a();while(!![]){try{const d=parseInt(f(0x164))/0x1+-parseInt(f(0x165))/0x2*(parseInt(f(0x15d))/0x3)+parseInt(f(0x15c))/0x4*(-parseInt(f(0x160))/0x5)+-parseInt(f(0x163))/0x6*(parseInt(f(0x169))/0x7)+-parseInt(f(0x15a))/0x8+parseInt(f(0x167))/0x9+parseInt(f(0x15f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x8cbf9));const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a[h(0x161)]()['search']('(((.+)+)+)+$')['toString']()[h(0x15b)](a46a)[h(0x15e)](h(0x16a));});a46a();export class CommandFactory{static ['commandMap']={};static[a46i(0x162)](a,b){const j=a46i;this[j(0x16c)][a]=b;}static[a46i(0x166)](a,b){const k=a46i,c=this[k(0x16c)][a];if(c)return new c(b);return null;}static[a46i(0x16b)](){return this['commandMap'];}}
1
+ const a46i=a46d;(function(a,b){const f=a46d,c=a();while(!![]){try{const d=-parseInt(f(0x19a))/0x1+parseInt(f(0x1a3))/0x2*(parseInt(f(0x1a5))/0x3)+parseInt(f(0x19e))/0x4*(parseInt(f(0x1aa))/0x5)+parseInt(f(0x1a4))/0x6*(parseInt(f(0x1a1))/0x7)+-parseInt(f(0x19c))/0x8+parseInt(f(0x1a8))/0x9+-parseInt(f(0x1a2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x6c016));const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a46d;if(c){const e=c[g(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const h=a46d;return a46a[h(0x1a0)]()[h(0x1a7)]('(((.+)+)+)+$')[h(0x1a0)]()[h(0x1a6)](a46a)[h(0x1a7)](h(0x19b));});a46a();function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0x19a;let f=c[d];return f;},a46d(a,b);}export class CommandFactory{static [a46i(0x19d)]={};static[a46i(0x19f)](a,b){this['commandMap'][a]=b;}static['createCommand'](a,b){const j=a46i,c=this[j(0x19d)][a];if(c)return new c(b);return null;}static['getAllRegisteredCommands'](){const k=a46i;return this[k(0x19d)];}}function a46c(){const l=['23610ruSpmq','6mJzmMK','90UKYHXq','constructor','search','7102260SApEOj','apply','83185KwlPxG','533010mZKEPV','(((.+)+)+)+$','6643440VTAJsu','commandMap','136fzPjgU','registerCommand','toString','1596014pKuQtF','1311200pvtdqB'];a46c=function(){return l;};return a46c();}
@@ -1 +1 @@
1
- const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0x1c7))/0x1*(parseInt(f(0x1d2))/0x2)+parseInt(f(0x1cb))/0x3+-parseInt(f(0x1ce))/0x4*(-parseInt(f(0x1b2))/0x5)+-parseInt(f(0x1cf))/0x6+-parseInt(f(0x1b0))/0x7*(-parseInt(f(0x1b7))/0x8)+-parseInt(f(0x1cc))/0x9+parseInt(f(0x1d7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x20285));function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x1af;let f=c[d];return f;},a47d(a,b);}function a47c(){const o=['book','797699lzHapX','addItem','1675RoisRF','setPuzzle','bodyarmor','items','toUpperCase','8RfAPOn','helmet','createRoom','apply','name','createPuzzle','puzzle','description','convertToRoomConfig','key','sword','(((.+)+)+)+$','INSIDE','gauntlets','createItem','toString','3482XQQPma','isStartRoom','inventory','rifle','473547yKdbAa','1704276QqsPLs','constructor','2676HlEBsw','1567458LinBDM','roomType','forEach','144UteDQI','legarmor','content','search','rewardItem','3371070NpwXav'];a47c=function(){return o;};return a47c();}const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x1ba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x1c6)]()['search'](h(0x1c2))['toString']()[h(0x1cd)](a47a)[h(0x1d5)]('(((.+)+)+)+$');});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';export class RoomFactory{[a47i(0x1b9)](a){const j=a47i,b=this[j(0x1bf)](a),c=new Room(b);if(a[j(0x1b5)]){const d=new Inventory();a[j(0x1b5)][j(0x1d1)](e=>{const k=j;d[k(0x1b1)](this['createItem'](e));}),c[j(0x1c9)]=d;}return a[j(0x1bd)]&&c[j(0x1b3)](this[j(0x1bc)](a[j(0x1bd)])),c;}['createItem'](a){const l=a47i;switch(a['type']){case l(0x1c0):return new Key(a[l(0x1bb)],a[l(0x1be)]);case l(0x1af):return new Book(a['name'],a[l(0x1be)],a[l(0x1d4)]);case l(0x1c1):return new Sword(a[l(0x1bb)],a[l(0x1be)]);case l(0x1ca):return new Rifle(a['name'],a['description']);case l(0x1b8):return new Helmet(a[l(0x1bb)],a[l(0x1be)]);case l(0x1b4):return new BodyArmor(a[l(0x1bb)],a[l(0x1be)]);case l(0x1d3):return new LegArmor(a[l(0x1bb)],a[l(0x1be)]);case'boots':return new Boots(a[l(0x1bb)],a['description']);case'gloves':return new Gloves(a[l(0x1bb)],a[l(0x1be)]);case l(0x1c4):return new Gauntlets(a['name'],a[l(0x1be)]);default:return new BasicItem(a[l(0x1bb)],a[l(0x1be)]);}}[a47i(0x1bc)](a){const m=a47i,b=this[m(0x1c5)](a[m(0x1d6)]);return new Puzzle({...a,'rewardItem':b});}[a47i(0x1bf)](a){const n=a47i,b=a[n(0x1d0)]&&RoomType[a[n(0x1d0)]['toUpperCase']()]?RoomType[a['roomType'][n(0x1b6)]()]:RoomType[n(0x1c3)];return{'name':a[n(0x1bb)],'description':a['description'],'isStartRoom':a[n(0x1c8)],'roomType':b};}}
1
+ const a47h=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0xef))/0x1+parseInt(f(0xfa))/0x2+-parseInt(f(0xe4))/0x3+parseInt(f(0xe5))/0x4*(-parseInt(f(0xdd))/0x5)+parseInt(f(0xf2))/0x6+-parseInt(f(0xea))/0x7*(parseInt(f(0xde))/0x8)+-parseInt(f(0xee))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x8732a));function a47c(){const n=['roomType','addItem','puzzle','description','bodyarmor','createItem','1650652tiqkYc','forEach','content','key','2639105XcEUoF','56BbVThy','name','legarmor','helmet','search','createRoom','19290XltHHv','4XcNpVE','type','inventory','items','rewardItem','230069ujrMrA','gauntlets','constructor','createPuzzle','2751039FlUGSh','177895UokCQD','toUpperCase','toString','3723240sJZVEY','(((.+)+)+)+$'];a47c=function(){return n;};return a47c();}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(0xf1)]()['search'](g(0xf3))[g(0xf1)]()[g(0xec)](a47a)[g(0xe2)](g(0xf3));});a47a();import{Room,Puzzle,Inventory}from'../models/_index.js';function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0xdb;let f=c[d];return f;},a47d(a,b);}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{[a47h(0xe3)](a){const i=a47h,b=this['convertToRoomConfig'](a),c=new Room(b);if(a[i(0xe8)]){const d=new Inventory();a[i(0xe8)][i(0xfb)](e=>{const j=i;d[j(0xf5)](this[j(0xf9)](e));}),c[i(0xe7)]=d;}return a[i(0xf6)]&&c['setPuzzle'](this['createPuzzle'](a['puzzle'])),c;}[a47h(0xf9)](a){const k=a47h;switch(a[k(0xe6)]){case k(0xdc):return new Key(a[k(0xdf)],a[k(0xf7)]);case'book':return new Book(a[k(0xdf)],a[k(0xf7)],a[k(0xdb)]);case'sword':return new Sword(a[k(0xdf)],a[k(0xf7)]);case'rifle':return new Rifle(a[k(0xdf)],a['description']);case k(0xe1):return new Helmet(a['name'],a[k(0xf7)]);case k(0xf8):return new BodyArmor(a['name'],a[k(0xf7)]);case k(0xe0):return new LegArmor(a[k(0xdf)],a['description']);case'boots':return new Boots(a[k(0xdf)],a[k(0xf7)]);case'gloves':return new Gloves(a[k(0xdf)],a[k(0xf7)]);case k(0xeb):return new Gauntlets(a[k(0xdf)],a[k(0xf7)]);default:return new BasicItem(a[k(0xdf)],a['description']);}}[a47h(0xed)](a){const l=a47h,b=this['createItem'](a[l(0xe9)]);return new Puzzle({...a,'rewardItem':b});}['convertToRoomConfig'](a){const m=a47h,b=a['roomType']&&RoomType[a[m(0xf4)][m(0xf0)]()]?RoomType[a[m(0xf4)]['toUpperCase']()]:RoomType['INSIDE'];return{'name':a[m(0xdf)],'description':a['description'],'isStartRoom':a['isStartRoom'],'roomType':b};}}
@@ -1 +1 @@
1
- const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=parseInt(h(0x164))/0x1*(parseInt(h(0x134))/0x2)+parseInt(h(0x15d))/0x3*(parseInt(h(0x147))/0x4)+-parseInt(h(0x148))/0x5+-parseInt(h(0x161))/0x6+-parseInt(h(0x135))/0x7*(-parseInt(h(0x14b))/0x8)+-parseInt(h(0x157))/0x9*(parseInt(h(0x13d))/0xa)+parseInt(h(0x146))/0xb*(-parseInt(h(0x162))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xc47b5));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x15c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a[j(0x141)]()[j(0x13a)]('(((.+)+)+)+$')[j(0x141)]()[j(0x143)](a48a)['search'](j(0x12f));});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';function a48c(){const s=['You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','4944uRmffw','scene','drop','solve','take','getHelpMessage','determineStartRoom','unlock','rooms','-\x20clear:\x20Clear\x20the\x20screen.\x0a','hasOwnProperty','player','9GWjQvg','use','handleInput','getRooms','-\x20quit:\x20Exit\x20the\x20game.\x0a','apply','16461BpwAeG','help','equip','lock','4292604SOdYqS','16164ufcgUe','registerCommand','285086VnngtL','Welcome,\x20','getWelcomeMessage','(((.+)+)+)+$','instance','execute','currentLocation','trim','4XyvAhe','13426AYcoVb','registerCommands','name','unequip','toLowerCase','search','Available\x20Commands:\x0a','split','9432190vgzUYt','quit','createCommand','say','toString','slice','constructor','currentRoom','clear','385eFLZYv','1028VvNXRU','3275340JCjGVt','getAllRegisteredCommands'];a48c=function(){return s;};return a48c();}function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x12e;let f=c[d];return f;},a48d(a,b);}import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a48k(0x130)];[a48k(0x14c)];['player'];[a48k(0x144)];[a48k(0x153)];constructor(a,b){const l=a48k;this[l(0x156)]=a,this[l(0x14c)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x14c)]['initialize'](),this[l(0x156)][l(0x132)]=this[l(0x151)](),this[l(0x136)]();}[a48k(0x136)](){const m=a48k;CommandFactory[m(0x163)]('look',LookCommand),CommandFactory[m(0x163)]('go',GoCommand),CommandFactory[m(0x163)](m(0x14f),TakeCommand),CommandFactory[m(0x163)](m(0x158),UseCommand),CommandFactory['registerCommand'](m(0x15f),EquipCommand),CommandFactory[m(0x163)](m(0x138),UnequipCommand),CommandFactory[m(0x163)](m(0x14e),SolveCommand),CommandFactory['registerCommand'](m(0x14d),DropCommand),CommandFactory[m(0x163)](m(0x152),UnlockCommand),CommandFactory[m(0x163)](m(0x160),LockCommand),CommandFactory['registerCommand'](m(0x13a),SearchCommand),CommandFactory[m(0x163)](m(0x140),SayCommand);}['determineStartRoom'](){const n=a48k;return this[n(0x14c)]['determineStartRoom']();}[a48k(0x12e)](){const o=a48k;return o(0x165)+this[o(0x156)][o(0x137)];}static['getInstance'](a,b){const p=a48k;return!Game[p(0x130)]&&(Game['instance']=new Game(a,b)),Game[p(0x130)];}[a48k(0x159)](a){const q=a48k,b=a[q(0x133)]()[q(0x13c)]('\x20'),c=b[0x0][q(0x139)](),d=b[q(0x142)](0x1);if(c===q(0x13e))return null;if(c==='maka')return q(0x14a);if(c===q(0x15e))return this[q(0x150)]();if(c===q(0x145))return'';const e={'actor':this[q(0x156)],'rooms':this[q(0x14c)][q(0x15a)](),'scene':this[q(0x14c)]},f=CommandFactory[q(0x13f)](c,e);if(f){const g=f[q(0x131)](d);return g;}return'I\x20don\x27t\x20understand\x20the\x20command\x20\x22'+c+'\x22.';}[a48k(0x150)](){const r=a48k,a=CommandFactory[r(0x149)]();let b=r(0x13b);for(const c in a){if(a[r(0x155)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d['getDescription']()+'\x0a';}}return b+=r(0x154),b+=r(0x15b),b;}}
1
+ const a48k=a48d;(function(a,b){const h=a48d,c=a();while(!![]){try{const d=parseInt(h(0x83))/0x1*(parseInt(h(0x9a))/0x2)+parseInt(h(0xb8))/0x3*(parseInt(h(0xae))/0x4)+parseInt(h(0xb1))/0x5+-parseInt(h(0xad))/0x6*(-parseInt(h(0xb7))/0x7)+parseInt(h(0xa2))/0x8*(-parseInt(h(0x8d))/0x9)+parseInt(h(0x97))/0xa*(-parseInt(h(0xac))/0xb)+-parseInt(h(0xb3))/0xc*(parseInt(h(0x99))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x43ca9));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a48d;if(c){const e=c[i(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const j=a48d;return a48a['toString']()[j(0x8a)](j(0x8c))[j(0xaf)]()[j(0x95)](a48a)[j(0x8a)](j(0x8c));});a48a();function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x80;let f=c[d];return f;},a48d(a,b);}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';export default class Game{static [a48k(0x88)];[a48k(0x98)];['player'];[a48k(0x84)];[a48k(0x9d)];constructor(a,b){const l=a48k;this[l(0x92)]=a,this[l(0x98)]=new Scene({'player':a,'roomConfiguration':b}),this['scene']['initialize'](),this[l(0x92)][l(0x9b)]=this[l(0xab)](),this['registerCommands']();}['registerCommands'](){const m=a48k;CommandFactory[m(0xa5)]('look',LookCommand),CommandFactory[m(0xa5)]('go',GoCommand),CommandFactory[m(0xa5)](m(0x87),TakeCommand),CommandFactory[m(0xa5)](m(0xb4),UseCommand),CommandFactory[m(0xa5)](m(0x81),EquipCommand),CommandFactory[m(0xa5)](m(0xa0),UnequipCommand),CommandFactory['registerCommand'](m(0x9e),SolveCommand),CommandFactory[m(0xa5)](m(0x86),DropCommand),CommandFactory['registerCommand'](m(0xa4),UnlockCommand),CommandFactory[m(0xa5)](m(0x8e),LockCommand),CommandFactory[m(0xa5)](m(0x8a),SearchCommand),CommandFactory[m(0xa5)](m(0xa8),SayCommand);}[a48k(0xab)](){const n=a48k;return this[n(0x98)][n(0xab)]();}[a48k(0x82)](){const o=a48k;return o(0x9f)+this[o(0x92)][o(0xaa)];}static[a48k(0x80)](a,b){const p=a48k;return!Game[p(0x88)]&&(Game[p(0x88)]=new Game(a,b)),Game[p(0x88)];}[a48k(0x8b)](a){const q=a48k,b=a[q(0xb6)]()[q(0x89)]('\x20'),c=b[0x0][q(0xa6)](),d=b[q(0xa7)](0x1);if(c===q(0x94))return null;if(c===q(0xb5))return q(0xa9);if(c===q(0x8f))return this['getHelpMessage']();if(c===q(0xa3))return'';const e={'actor':this[q(0x92)],'rooms':this['scene']['getRooms'](),'scene':this['scene']},f=CommandFactory[q(0x91)](c,e);if(f){const g=f['execute'](d);return g;}return q(0xb9)+c+'\x22.';}[a48k(0x96)](){const r=a48k,a=CommandFactory[r(0xa1)]();let b=r(0xb0);for(const c in a){if(a[r(0x90)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0x93)]()+'\x0a';}}return b+=r(0x85),b+=r(0xb2),b;}}function a48c(){const s=['1419845HAoeOb','-\x20quit:\x20Exit\x20the\x20game.\x0a','12CUgxDz','use','maka','trim','2219FojtjX','737859afiiit','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','getInstance','equip','getWelcomeMessage','77439bGIOUU','currentRoom','-\x20clear:\x20Clear\x20the\x20screen.\x0a','drop','take','instance','split','search','handleInput','(((.+)+)+)+$','3782934igYnZh','lock','help','hasOwnProperty','createCommand','player','getDescription','quit','constructor','getHelpMessage','10DSiRnK','scene','2269423FxJZoe','12JFtyLS','currentLocation','apply','rooms','solve','Welcome,\x20','unequip','getAllRegisteredCommands','8XKNALL','clear','unlock','registerCommand','toLowerCase','slice','say','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit','name','determineStartRoom','2768029CpIukg','2454YWKKDL','4kBQJOY','toString','Available\x20Commands:\x0a'];a48c=function(){return s;};return a48c();}
@@ -1 +1 @@
1
- (function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x1d2))/0x1*(-parseInt(f(0x1cb))/0x2)+parseInt(f(0x1cd))/0x3*(parseInt(f(0x1d1))/0x4)+parseInt(f(0x1ca))/0x5+parseInt(f(0x1cf))/0x6+-parseInt(f(0x1c5))/0x7+-parseInt(f(0x1d3))/0x8*(-parseInt(f(0x1cc))/0x9)+-parseInt(f(0x1c6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x92de7));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1d0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x1c9)]()[h(0x1ce)](h(0x1c7))[h(0x1c9)]()[h(0x1c8)](a49a)[h(0x1ce)](h(0x1c7));});a49a();function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1c5;var f=c[d];return f;},a49d(a,b);}export*from'./door.js';export*from'./inventory.js';export*from'./item.js';function a49c(){var i=['apply','756904HIVDhR','1tTLsCS','32ZnEYdu','5299833NMgPpd','582140TJEaGp','(((.+)+)+)+$','constructor','toString','5255430CkvoXh','844162aGTtpL','416286ZLJXUw','3UEkExf','search','2481966LTKivT'];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
+ function a49c(){var i=['90mIByaA','1285IiLOqC','318RPUugh','1142jEMFaV','1548euzMbk','constructor','33011cidZlh','197hzsOUR','1744164ONOGfN','8720QxqzLT','apply','641349zRPvkO','search','toString','4751008EKiyLU','17045mcZEzh'];a49c=function(){return i;};return a49c();}(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0x1d5))/0x1*(parseInt(f(0x1d1))/0x2)+-parseInt(f(0x1d6))/0x3+-parseInt(f(0x1d7))/0x4*(-parseInt(f(0x1cf))/0x5)+-parseInt(f(0x1d0))/0x6*(-parseInt(f(0x1cd))/0x7)+parseInt(f(0x1cc))/0x8+parseInt(f(0x1d9))/0x9*(-parseInt(f(0x1ce))/0xa)+parseInt(f(0x1d4))/0xb*(parseInt(f(0x1d2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x51cf8));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x1db)]()[h(0x1da)]('(((.+)+)+)+$')[h(0x1db)]()[h(0x1d3)](a49a)[h(0x1da)]('(((.+)+)+)+$');});a49a();export*from'./door.js';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-0x1cc;var f=c[d];return f;},a49d(a,b);}export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
@@ -1 +1 @@
1
- var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=-parseInt(f(0x18a))/0x1*(parseInt(f(0x18e))/0x2)+-parseInt(f(0x175))/0x3+-parseInt(f(0x18d))/0x4+-parseInt(f(0x180))/0x5*(-parseInt(f(0x18b))/0x6)+-parseInt(f(0x181))/0x7*(parseInt(f(0x188))/0x8)+-parseInt(f(0x17e))/0x9+parseInt(f(0x194))/0xa*(parseInt(f(0x187))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x5e202));function a50c(){var n=['toString','910323jTPuqs','getInstance','.\x20Used:\x20','write','checkIfLocked','checkIfLockable','roomA','Door\x20unlocked:\x20','attemptUnlock','5950215QINQNN','search','45635pZIcKV','131103sbSLjx','(((.+)+)+)+$','name','isLockable','apply','\x20and\x20','25792547gauKmY','160yrzkIP','isLocked','143GZrZOI','498TOpRCk','constructor','2894168WXIkMV','9148kYfHJV','Failed\x20to\x20unlock\x20door:\x20','roomB','.\x20Is\x20Locked:\x20','Door\x20created\x20between\x20','getOtherSide','10EmSqjw','logger','unlockItemOrSolution'];a50c=function(){return n;};return a50c();}var a50b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a50d;if(c){var e=c[g(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){var h=a50d;return a50a[h(0x174)]()[h(0x17f)](h(0x182))['toString']()[h(0x18c)](a50a)['search'](h(0x182));});a50a();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-0x172;var f=c[d];return f;},a50d(a,b);}export class Door extends AbstractDoor{[a50i(0x17b)];[a50i(0x190)];[a50i(0x189)];[a50i(0x173)];[a50i(0x183)];[a50i(0x172)];['isLockable'];constructor(a){var j=a50i;super(),this[j(0x17b)]=a[j(0x17b)],this['roomB']=a['roomB'],this[j(0x189)]=a[j(0x189)]||![],this[j(0x173)]=a[j(0x173)],this[j(0x183)]=a[j(0x183)]?capitalCase(a[j(0x183)]):'To\x20'+a[j(0x190)][j(0x183)],this[j(0x172)]=Logger[j(0x176)](),this['isLockable']=!!a[j(0x173)],this[j(0x172)][j(0x178)](j(0x192)+this[j(0x17b)][j(0x183)]+j(0x186)+this[j(0x190)]['name']+j(0x191)+this[j(0x189)]);}[a50i(0x193)](a){var k=a50i;return this[k(0x17b)]===a?this[k(0x190)]:this[k(0x17b)];}[a50i(0x17d)](a){var l=a50i;if(this['isLocked']&&this['unlockItemOrSolution']&&this['unlockItemOrSolution']===a)return this[l(0x189)]=![],this[l(0x172)][l(0x178)](l(0x17c)+this[l(0x183)]+'.\x20Used:\x20'+a),!![];return this[l(0x172)][l(0x178)](l(0x18f)+this[l(0x183)]+l(0x177)+a),![];}[a50i(0x179)](){return this['isLocked'];}[a50i(0x17a)](){var m=a50i;return this[m(0x184)];}}
1
+ var a50i=a50d;(function(a,b){var f=a50d,c=a();while(!![]){try{var d=parseInt(f(0x1ea))/0x1+-parseInt(f(0x1e2))/0x2+-parseInt(f(0x1f0))/0x3+-parseInt(f(0x1ee))/0x4*(parseInt(f(0x1f1))/0x5)+parseInt(f(0x1dd))/0x6+-parseInt(f(0x1e6))/0x7+parseInt(f(0x1e7))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xbb84e));var a50b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a50d;if(c){var e=c[g(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){var h=a50d;return a50a[h(0x1e0)]()['search'](h(0x1e1))['toString']()[h(0x1ec)](a50a)[h(0x1ed)]('(((.+)+)+)+$');});a50a();function a50d(a,b){var c=a50c();return a50d=function(d,e){d=d-0x1d5;var f=c[d];return f;},a50d(a,b);}import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';function a50c(){var m=['getOtherSide','7755349sUmXaX','30060872bxsxjl','isLocked','To\x20','576278CIRUEx','logger','constructor','search','1102036OVvoXr','unlockItemOrSolution','2718534BORKTD','15uoBLqK','Door\x20unlocked:\x20','roomA','write','roomB','.\x20Is\x20Locked:\x20','Door\x20created\x20between\x20','getInstance','checkIfLocked','Failed\x20to\x20unlock\x20door:\x20','name','695934JAeYqi','isLockable','apply','toString','(((.+)+)+)+$','1682372hlMydd','checkIfLockable','.\x20Used:\x20'];a50c=function(){return m;};return a50c();}import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{[a50i(0x1f3)];[a50i(0x1d6)];[a50i(0x1e8)];[a50i(0x1ef)];[a50i(0x1dc)];['logger'];[a50i(0x1de)];constructor(a){var j=a50i;super(),this['roomA']=a[j(0x1f3)],this[j(0x1d6)]=a[j(0x1d6)],this[j(0x1e8)]=a['isLocked']||![],this[j(0x1ef)]=a[j(0x1ef)],this['name']=a[j(0x1dc)]?capitalCase(a[j(0x1dc)]):j(0x1e9)+a['roomB']['name'],this['logger']=Logger[j(0x1d9)](),this[j(0x1de)]=!!a[j(0x1ef)],this[j(0x1eb)][j(0x1d5)](j(0x1d8)+this[j(0x1f3)]['name']+'\x20and\x20'+this[j(0x1d6)][j(0x1dc)]+j(0x1d7)+this['isLocked']);}[a50i(0x1e5)](a){var k=a50i;return this[k(0x1f3)]===a?this[k(0x1d6)]:this['roomA'];}['attemptUnlock'](a){var l=a50i;if(this['isLocked']&&this[l(0x1ef)]&&this[l(0x1ef)]===a)return this[l(0x1e8)]=![],this[l(0x1eb)][l(0x1d5)](l(0x1f2)+this[l(0x1dc)]+l(0x1e4)+a),!![];return this[l(0x1eb)]['write'](l(0x1db)+this['name']+'.\x20Used:\x20'+a),![];}[a50i(0x1da)](){return this['isLocked'];}[a50i(0x1e3)](){return this['isLockable'];}}
@@ -1 +1 @@
1
- const a51h=a51d;(function(a,b){const f=a51d,c=a();while(!![]){try{const d=-parseInt(f(0x1bc))/0x1*(parseInt(f(0x19e))/0x2)+-parseInt(f(0x1b1))/0x3+-parseInt(f(0x1a4))/0x4*(parseInt(f(0x1c0))/0x5)+-parseInt(f(0x1a6))/0x6+parseInt(f(0x1c3))/0x7+-parseInt(f(0x1c1))/0x8*(-parseInt(f(0x1aa))/0x9)+parseInt(f(0x1c6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xefc62));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const g=a51d;return a51a[g(0x1a7)]()[g(0x1a3)](g(0x1ba))[g(0x1a7)]()[g(0x1a2)](a51a)['search'](g(0x1ba));});a51a();import{capitalCase}from'change-case';function a51c(){const q=['name','495804tvYVLJ','map','join','Retrieved\x20details\x20for\x20item:\x20','addItem','items','has','logger','getWeight','(((.+)+)+)+$','removeItem','29623kqiikV','toLowerCase','.\x20Item\x20not\x20found.','Removed\x20item:\x20','10XoDKfw','12256aHdQHG','\x20from\x20inventory.','5388425DMgFDB','getAllItems','Checked\x20for\x20item:\x20','20236590eQFuKY','hasItem','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','70xSrzvK','getItem','write','keys','constructor','search','1529488NDWDir','.\x20Exists:\x20','4766058StiXTO','toString','\x20to\x20inventory.','\x20in\x20','5580ckuygI','Added\x20item:\x20','listItems','set','values','delete'];a51c=function(){return q;};return a51c();}import{Logger}from'../utilities/logger.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x19c;let f=c[d];return f;},a51d(a,b);}import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{['items'];[a51h(0x1b8)];constructor(){const i=a51h;super(),this[i(0x1b6)]=new Map(),this[i(0x1b8)]=Logger['getInstance']();}[a51h(0x1b5)](a){const j=a51h;this[j(0x1b6)][j(0x1ad)](a[j(0x1b0)][j(0x1bd)](),a),this[j(0x1b8)][j(0x1a0)](j(0x1ab)+a['name']+j(0x1a8));}[a51h(0x1bb)](a){const k=a51h,b=this[k(0x19f)](a);if(b)return this[k(0x1b6)][k(0x1af)](a['toLowerCase']()),this[k(0x1b8)][k(0x1a0)](k(0x1bf)+a+k(0x1c2)),b;return this[k(0x1b8)][k(0x1a0)]('Failed\x20to\x20remove\x20item:\x20'+a+k(0x1be)),null;}[a51h(0x19c)](a){const l=a51h,b=this[l(0x1b6)][l(0x1b7)](a[l(0x1bd)]()),c=[...this['items'][l(0x1a1)]()];return this[l(0x1b8)][l(0x1a0)](l(0x1c5)+a+l(0x1a9)+c[l(0x1b3)](',\x20')+l(0x1a5)+b+'.'),b;}[a51h(0x19f)](a){const m=a51h,b=this[m(0x1b6)]['get'](a['toLowerCase']())||null;return b?this['logger'][m(0x1a0)](m(0x1b4)+a+'.'):this[m(0x1b8)][m(0x1a0)](m(0x19d)+a+m(0x1be)),b;}[a51h(0x1ac)](){const n=a51h,a=[...this['items'][n(0x1a1)]()],b=a[n(0x1b2)](c=>capitalCase(c));return this[n(0x1b8)][n(0x1a0)]('Listed\x20items\x20in\x20inventory:\x20'+b[n(0x1b3)](',\x20')+'.'),a;}[a51h(0x1b9)](){const o=a51h;let a=0x0;for(const b of this[o(0x1b6)][o(0x1ae)]()){a+=b['weight'];}return a;}[a51h(0x1c4)](){const p=a51h;return[...this[p(0x1b6)][p(0x1ae)]()];}}
1
+ const a51i=a51d;function a51c(){const q=['Checked\x20for\x20item:\x20','set','\x20to\x20inventory.','weight','items','Removed\x20item:\x20','609833IwcQoy','477590jppBIX','removeItem','logger','getItem','has','148286umuZWK','get','Retrieved\x20details\x20for\x20item:\x20','getAllItems','keys','Listed\x20items\x20in\x20inventory:\x20','write','36BsRdaZ','values','delete','map','.\x20Exists:\x20','getWeight','addItem','apply','\x20from\x20inventory.','toLowerCase','5640437lYavkQ','\x20in\x20','6kEoQYy','2ZkoMaj','.\x20Item\x20not\x20found.','503245UGCKWr','join','name','search','Added\x20item:\x20','Failed\x20to\x20remove\x20item:\x20','408396vxjJBw','4IoHmEW','52312eNUGbI','toString','(((.+)+)+)+$'];a51c=function(){return q;};return a51c();}(function(a,b){const f=a51d,c=a();while(!![]){try{const d=parseInt(f(0x100))/0x1*(-parseInt(f(0xe7))/0x2)+-parseInt(f(0xef))/0x3*(parseInt(f(0xf0))/0x4)+-parseInt(f(0xe9))/0x5+parseInt(f(0xe6))/0x6*(parseInt(f(0xfa))/0x7)+parseInt(f(0xf1))/0x8*(-parseInt(f(0x107))/0x9)+-parseInt(f(0xfb))/0xa+parseInt(f(0xe4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x22668));function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0xde;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(0xe1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const h=a51d;return a51a[h(0xf2)]()[h(0xec)](h(0xf3))[h(0xf2)]()['constructor'](a51a)[h(0xec)](h(0xf3));});a51a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a51i(0xf8)];[a51i(0xfd)];constructor(){super(),this['items']=new Map(),this['logger']=Logger['getInstance']();}[a51i(0xe0)](a){const j=a51i;this['items'][j(0xf5)](a[j(0xeb)][j(0xe3)](),a),this[j(0xfd)]['write'](j(0xed)+a['name']+j(0xf6));}[a51i(0xfc)](a){const k=a51i,b=this[k(0xfe)](a);if(b)return this[k(0xf8)][k(0x109)](a['toLowerCase']()),this['logger'][k(0x106)](k(0xf9)+a+k(0xe2)),b;return this[k(0xfd)][k(0x106)](k(0xee)+a+k(0xe8)),null;}['hasItem'](a){const l=a51i,b=this[l(0xf8)][l(0xff)](a[l(0xe3)]()),c=[...this[l(0xf8)][l(0x104)]()];return this[l(0xfd)][l(0x106)](l(0xf4)+a+l(0xe5)+c[l(0xea)](',\x20')+l(0xde)+b+'.'),b;}[a51i(0xfe)](a){const m=a51i,b=this[m(0xf8)][m(0x101)](a[m(0xe3)]())||null;return b?this[m(0xfd)][m(0x106)](m(0x102)+a+'.'):this[m(0xfd)][m(0x106)]('Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20'+a+m(0xe8)),b;}['listItems'](){const n=a51i,a=[...this[n(0xf8)][n(0x104)]()],b=a[n(0x10a)](c=>capitalCase(c));return this[n(0xfd)]['write'](n(0x105)+b[n(0xea)](',\x20')+'.'),a;}[a51i(0xdf)](){const o=a51i;let a=0x0;for(const b of this[o(0xf8)][o(0x108)]()){a+=b[o(0xf7)];}return a;}[a51i(0x103)](){const p=a51i;return[...this[p(0xf8)][p(0x108)]()];}}
@@ -1 +1 @@
1
- var a52h=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x137))/0x1*(-parseInt(f(0x14f))/0x2)+-parseInt(f(0x14b))/0x3*(-parseInt(f(0x149))/0x4)+-parseInt(f(0x142))/0x5*(parseInt(f(0x13b))/0x6)+parseInt(f(0x14a))/0x7+-parseInt(f(0x147))/0x8+-parseInt(f(0x150))/0x9+parseInt(f(0x13f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xa9c08));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(0x13a)]()[g(0x13c)](g(0x145))[g(0x13a)]()[g(0x143)](a52a)['search'](g(0x145));});a52a();import{v4 as a52e}from'uuid';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x137;var f=c[d];return f;},a52d(a,b);}import{AbstractItem}from'../types/abstracts.js';function a52c(){var k=['2251532dTCgfl','7768320XhquYx','3HuPmlV','uuid','description','texture','25682XqspRk','10209411uksofB','1sxKGud','weight','use','toString','6TZWNqa','search','size','rating','9887300iFzpjY','shape','name','1347945xkWrAz','constructor','color','(((.+)+)+)+$','.\x20Nothing\x20special\x20happens.','4599536PPzDHb','category'];a52c=function(){return k;};return a52c();}export class Item extends AbstractItem{[a52h(0x14c)];[a52h(0x141)];['description'];[a52h(0x13d)];[a52h(0x148)];[a52h(0x140)];[a52h(0x144)];[a52h(0x14e)];[a52h(0x13e)];['weight'];constructor(a){var i=a52h;super(),this[i(0x141)]=a[i(0x141)],this[i(0x14d)]=a[i(0x14d)],this[i(0x13d)]=a['size'],this[i(0x148)]=a['category'],this[i(0x140)]=a[i(0x140)],this[i(0x144)]=a[i(0x144)],this[i(0x14e)]=a[i(0x14e)],this['rating']=a['rating'],this[i(0x138)]=a[i(0x138)],this[i(0x14c)]=a52e();}[a52h(0x139)](){var j=a52h;return'You\x20use\x20the\x20'+this[j(0x141)]+j(0x146);}}
1
+ var a52i=a52d;function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x1d6;var f=c[d];return f;},a52d(a,b);}(function(a,b){var f=a52d,c=a();while(!![]){try{var d=parseInt(f(0x1d8))/0x1+parseInt(f(0x1db))/0x2*(parseInt(f(0x1e2))/0x3)+parseInt(f(0x1e7))/0x4*(parseInt(f(0x1f0))/0x5)+-parseInt(f(0x1ee))/0x6*(-parseInt(f(0x1eb))/0x7)+parseInt(f(0x1f2))/0x8*(parseInt(f(0x1df))/0x9)+parseInt(f(0x1e6))/0xa+-parseInt(f(0x1ec))/0xb*(parseInt(f(0x1ea))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xaf393));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x1d6)]()[h(0x1ef)]('(((.+)+)+)+$')[h(0x1d6)]()[h(0x1da)](a52a)[h(0x1ef)](h(0x1e4));});a52a();import{v4 as a52e}from'uuid';import{AbstractItem}from'../types/abstracts.js';function a52c(){var l=['557451rIFeuQ','description','(((.+)+)+)+$','color','3070630YvfARB','1570056IEaSxf','category','apply','12ZkYusz','7baDpQt','33640519HMWaLA','rating','4871892xkjKHm','search','5OwbJVd','.\x20Nothing\x20special\x20happens.','6037872KxpXIF','toString','size','1323834WYppqF','shape','constructor','2ydupHB','name','weight','uuid','9stNSHi','You\x20use\x20the\x20','texture'];a52c=function(){return l;};return a52c();}export class Item extends AbstractItem{[a52i(0x1de)];[a52i(0x1dc)];[a52i(0x1e3)];['size'];[a52i(0x1e8)];['shape'];[a52i(0x1e5)];['texture'];[a52i(0x1ed)];[a52i(0x1dd)];constructor(a){var j=a52i;super(),this[j(0x1dc)]=a[j(0x1dc)],this[j(0x1e3)]=a['description'],this[j(0x1d7)]=a[j(0x1d7)],this[j(0x1e8)]=a[j(0x1e8)],this['shape']=a[j(0x1d9)],this[j(0x1e5)]=a[j(0x1e5)],this[j(0x1e1)]=a[j(0x1e1)],this[j(0x1ed)]=a[j(0x1ed)],this['weight']=a[j(0x1dd)],this[j(0x1de)]=a52e();}['use'](){var k=a52i;return k(0x1e0)+this[k(0x1dc)]+k(0x1f1);}}
@@ -1 +1 @@
1
- const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x12e))/0x1*(parseInt(f(0x120))/0x2)+-parseInt(f(0x133))/0x3*(parseInt(f(0x126))/0x4)+parseInt(f(0x125))/0x5+-parseInt(f(0x12d))/0x6+-parseInt(f(0x134))/0x7+parseInt(f(0x130))/0x8+parseInt(f(0x124))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xdb5ef));function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x11f;let f=c[d];return f;},a53d(a,b);}const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a[h(0x135)]()[h(0x12b)](h(0x12a))['toString']()[h(0x122)](a53a)[h(0x12b)](h(0x12a));});a53a();import{Player}from'./player.js';function a53c(){const o=['toString','floor','_dialogue','length','78CALTvp','rooms','constructor','execute','30540672nUlyJd','39590WDYtSm','1468QNqlDD','autonomousMove','apply','moveTo','(((.+)+)+)+$','search','_name','8627868ijIhqU','18341WFabiJ','scene','7622080oKBQLc','random','name','3981xVuwtH','5706799YXOYHJ'];a53c=function(){return o;};return a53c();}import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a53i(0x12c)];[a53i(0x137)];[a53i(0x121)];['scene'];constructor(a,b,c,d){const j=a53i;super(d),this[j(0x12c)]=a,this['_dialogue']=b,this[j(0x121)]=c;}get[a53i(0x132)](){const k=a53i;return this[k(0x12c)];}['speak'](){const l=a53i;return this[l(0x137)][Math[l(0x136)](Math[l(0x131)]()*this[l(0x137)][l(0x11f)])];}[a53i(0x127)](a){const m=a53i,b=a[Math[m(0x136)](Math['random']()*a[m(0x11f)])];this['moveTo'](b[m(0x132)]);}[a53i(0x129)](a){const n=a53i,b={'actor':this,'rooms':this['rooms'],'scene':this[n(0x12f)]},c=new GoCommand(b);c[n(0x123)]([a]);}}
1
+ const a53i=a53d;(function(a,b){const f=a53d,c=a();while(!![]){try{const d=-parseInt(f(0x147))/0x1+parseInt(f(0x139))/0x2+parseInt(f(0x142))/0x3+parseInt(f(0x146))/0x4*(-parseInt(f(0x13e))/0x5)+-parseInt(f(0x141))/0x6+parseInt(f(0x13c))/0x7+parseInt(f(0x140))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x582a2));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a53d;if(c){const e=c[g(0x13b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const h=a53d;return a53a['toString']()[h(0x14d)]('(((.+)+)+)+$')[h(0x14e)]()[h(0x14f)](a53a)[h(0x14d)](h(0x14c));});function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x138;let f=c[d];return f;},a53d(a,b);}a53a();import{Player}from'./player.js';function a53c(){const n=['_name','977536LnDiha','1576560hmnSzK','1520058tHClsS','execute','scene','moveTo','472fELLiJ','422244QLmLNB','speak','floor','_dialogue','random','(((.+)+)+)+$','search','toString','constructor','length','801122oOzAHA','name','apply','1753941KXkDOi','rooms','9910pQeqiL'];a53c=function(){return n;};return a53c();}import{GoCommand}from'../commands/go.js';export class NPC extends Player{['_name'];['_dialogue'];[a53i(0x13d)];[a53i(0x144)];constructor(a,b,c,d){const j=a53i;super(d),this[j(0x13f)]=a,this[j(0x14a)]=b,this[j(0x13d)]=c;}get[a53i(0x13a)](){return this['_name'];}[a53i(0x148)](){const k=a53i;return this[k(0x14a)][Math[k(0x149)](Math[k(0x14b)]()*this['_dialogue']['length'])];}['autonomousMove'](a){const l=a53i,b=a[Math[l(0x149)](Math[l(0x14b)]()*a[l(0x138)])];this[l(0x145)](b['name']);}[a53i(0x145)](a){const m=a53i,b={'actor':this,'rooms':this[m(0x13d)],'scene':this[m(0x144)]},c=new GoCommand(b);c[m(0x143)]([a]);}}
@@ -1 +1 @@
1
- const a54i=a54d;(function(a,b){const f=a54d,c=a();while(!![]){try{const d=parseInt(f(0x183))/0x1+parseInt(f(0x1a5))/0x2+parseInt(f(0x18f))/0x3+-parseInt(f(0x18a))/0x4*(parseInt(f(0x16a))/0x5)+-parseInt(f(0x169))/0x6+parseInt(f(0x172))/0x7*(-parseInt(f(0x188))/0x8)+parseInt(f(0x180))/0x9*(-parseInt(f(0x170))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x3a878));const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a54d;if(c){const e=c[g(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const h=a54d;return a54a['toString']()['search'](h(0x17c))[h(0x16f)]()[h(0x176)](a54a)[h(0x184)]('(((.+)+)+)+$');});a54a();function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x153;let f=c[d];return f;},a54d(a,b);}import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a54i(0x16b)];['_currentLocation'];[a54i(0x15b)];[a54i(0x16e)];[a54i(0x189)]=0x32;[a54i(0x178)];constructor(a){const j=a54i;super(),this[j(0x16b)]=a[j(0x163)],this[j(0x15d)]=a[j(0x199)]||new Room({'name':j(0x158),'description':j(0x1a2)}),this[j(0x15b)]=new Inventory(),this[j(0x178)]=Logger[j(0x1a4)]();if(a?.[j(0x193)])for(const b of a[j(0x193)]){this['_inventory'][j(0x166)](b);}this[j(0x16e)]=a?.[j(0x15e)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a54i(0x190)](){const k=a54i;return this[k(0x16b)];}get[a54i(0x192)](){const l=a54i;return this[l(0x15d)];}set[a54i(0x192)](a){const m=a54i;this[m(0x15d)]!==a&&(this['leaveRoom'](),this[m(0x153)](a)),this[m(0x15d)]=a;}get[a54i(0x164)](){const n=a54i;return this[n(0x15b)];}get[a54i(0x160)](){const o=a54i;return this[o(0x16e)];}set[a54i(0x160)](a){const p=a54i;this[p(0x16e)]=a;}get[a54i(0x181)](){const q=a54i;return this[q(0x189)];}set[a54i(0x181)](a){const r=a54i;a>0x0?this[r(0x189)]=a:console['error']('Max\x20carrying\x20weight\x20must\x20be\x20positive.');}get[a54i(0x175)](){const s=a54i;let a=this[s(0x15b)]['getWeight']();for(const b in this['_equipment']){const c=this[s(0x16e)][b];c&&(a+=c[s(0x168)]);}return a;}[a54i(0x171)](a){const t=a54i;if(this['currentWeight']+a[t(0x168)]>this[t(0x181)]){this['logger'][t(0x154)](t(0x179));throw new Error(t(0x155));}this[t(0x15b)][t(0x166)](a),this[t(0x178)][t(0x154)](t(0x17b)+a['name']+t(0x186));}[a54i(0x1a0)](a){const u=a54i;if(this['_inventory'][u(0x194)](a[u(0x190)]))return this['logger'][u(0x154)](u(0x161)+a[u(0x190)]+u(0x19e)),!![];return this[u(0x178)]['write'](u(0x198)+a[u(0x190)]+'\x20from\x20player\x27s\x20inventory.'),![];}[a54i(0x18d)](a){const v=a54i;if(!this[v(0x15b)][v(0x177)](a[v(0x190)]))return v(0x19a)+a['name']+'\x20in\x20your\x20inventory.';if(!this['canEquip'](a))return v(0x17f)+a['name']+'.';const b=this[v(0x18c)](a[v(0x1a7)]);if(!b)return a['name']+v(0x16c);if(this[v(0x160)][b])return v(0x157)+b+'.\x20You\x20must\x20unequip\x20it\x20first.';return this[v(0x160)][b]=a,this[v(0x1a0)](a),'You\x20equipped\x20'+a[v(0x190)]+'.';}[a54i(0x191)](a){const w=a54i;let b=a;if(!this[w(0x160)][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return w(0x1a8)+a+'.';}return this['unequipBySlot'](b);}[a54i(0x18c)](a){const x=a54i;switch(a[x(0x15a)]()){case Category[x(0x19c)][x(0x15a)]():return'rightHand';case Category['Shield'][x(0x15a)]():return'leftHand';case Category[x(0x196)][x(0x15a)]():return x(0x1a9);case Category['Helmet']['toLowerCase']():case Category['Hat'][x(0x15a)]():return'head';case Category[x(0x165)][x(0x15a)]():return x(0x1a3);case Category['LegArmor'][x(0x15a)]():return x(0x18e);case Category[x(0x185)][x(0x15a)]():return x(0x195);case Category['BodyArmor']['toLowerCase']():return x(0x15c);case'weapon':return x(0x18b);case'shield':return x(0x182);case x(0x1a9):return x(0x1a9);case x(0x159):case'hat':return x(0x19b);case'boots':return'feet';case x(0x1a1):case'legarmor':return x(0x18e);case x(0x19d):case'armarmor':return x(0x195);case x(0x187):case x(0x17d):case x(0x15c):return x(0x15c);default:return null;}}[a54i(0x173)](a){const y=a54i;return Object['values'](Category)['includes'](a[y(0x1a7)]);}[a54i(0x167)](a){const z=a54i,b=this[z(0x160)][a];if(!b)return z(0x19f)+a+z(0x162);return this[z(0x171)](b),this[z(0x160)][a]=null,'You\x20unequipped\x20'+b[z(0x190)]+'.';}[a54i(0x197)](a,b){const A=a54i;a!==this&&this[A(0x178)][A(0x1a6)](a['name']+A(0x17e)+b+'\x22');}[a54i(0x153)](a){const B=a54i;this[B(0x15d)]=a,a['on'](B(0x15f),this['hear'][B(0x16d)](this)),this['logger'][B(0x154)](this[B(0x190)]+'\x20is\x20now\x20listening\x20in\x20room\x20'+a['name']);}[a54i(0x156)](){const C=a54i;this[C(0x15d)]&&(this['_currentLocation'][C(0x174)](C(0x15f),this['hear'][C(0x16d)](this)),this[C(0x178)][C(0x154)](this[C(0x190)]+'\x20is\x20no\x20longer\x20listeng\x20in\x20'+this[C(0x15d)][C(0x190)]));}}function a54c(){const D=['category','Invalid\x20category\x20or\x20slot:\x20','gloves','enterRoom','write','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','leaveRoom','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','Nexus','helmet','toLowerCase','_inventory','torso','_currentLocation','initialEquipment','speak','equipment','Removed\x20','\x20slot.','playerName','inventory','Boots','addItem','unequipBySlot','weight','1155882KJbkcc','13165FTnnZI','_playerName','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','bind','_equipment','toString','85630gUVIEK','addInventory','883967XFWnpz','canEquip','off','currentWeight','constructor','hasItem','logger','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','apply','Added\x20','(((.+)+)+)+$','bodyarmor','\x20says:\x20\x22','You\x20can\x27t\x20equip\x20','459lqZPco','maxCarryingWeight','leftHand','448953tZhlJg','search','ArmArmor','\x20to\x20player\x27s\x20inventory.','body\x20armor','16UVVrVZ','_maxCarryingWeight','148CSrqiB','rightHand','determineEquipmentSlot','equip','legs','1012167mHCrpa','name','unequip','currentLocation','inventoryItems','removeItem','arms','Gloves','hear','Failed\x20to\x20remove\x20','startLocation','You\x20don\x27t\x20have\x20','head','Weapon','arm\x20armor','\x20from\x20player\x27s\x20inventory.','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','removeInventory','leg\x20armor','A\x20featureless\x20room','feet','getInstance','865474IqdZGp','log'];a54c=function(){return D;};return a54c();}
1
+ const a54i=a54d;function a54c(){const C=['3227IGiHYq','Max\x20carrying\x20weight\x20must\x20be\x20positive.','boots','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','includes','equipment','getInstance','maxCarryingWeight','You\x20don\x27t\x20have\x20','Gloves','getWeight','armarmor','inventoryItems','body\x20armor','Hat','177ECSwQs','arms','hasItem','category','A\x20featureless\x20room','3494886YlsmwS','_playerName','arm\x20armor','518139OeLsYk','gloves','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','name','toLowerCase','playerName','_inventory','Added\x20','head','legs','determineEquipmentSlot','104028NEubPO','Removed\x20','feet','hear','apply','280bkTyES','legarmor','unequipBySlot','\x20in\x20your\x20inventory.','speak','.\x20You\x20must\x20unequip\x20it\x20first.','\x20from\x20player\x27s\x20inventory.','inventory','weight','_equipment','values','\x20is\x20now\x20listening\x20in\x20room\x20','rightHand','You\x20can\x27t\x20equip\x20','5107795mwUNoL','You\x20equipped\x20','currentWeight','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','write','leaveRoom','You\x20unequipped\x20','canEquip','Nexus','off','\x20says:\x20\x22','removeInventory','currentLocation','addItem','search','logger','997700RNLXuJ','weapon','Failed\x20to\x20remove\x20','error','shield','equip','LegArmor','_maxCarryingWeight','torso','toString','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','_currentLocation','bind','3659940IJJKSp','addInventory','leftHand','1616pkISHy','initialEquipment'];a54c=function(){return C;};return a54c();}(function(a,b){const f=a54d,c=a();while(!![]){try{const d=parseInt(f(0xd3))/0x1+-parseInt(f(0xf9))/0x2+parseInt(f(0xf4))/0x3*(parseInt(f(0x107))/0x4)+parseInt(f(0xc3))/0x5+parseInt(f(0xe0))/0x6+-parseInt(f(0xe5))/0x7*(-parseInt(f(0xe3))/0x8)+parseInt(f(0xfc))/0x9*(-parseInt(f(0xb5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0xdb149));function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0xb3;let f=c[d];return f;},a54d(a,b);}const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a54d;if(c){const e=c[g(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const h=a54d;return a54a[h(0xdc)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a54a)[h(0xd1)]('(((.+)+)+)+$');});a54a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a54i(0xfa)];[a54i(0xde)];[a54i(0x102)];[a54i(0xbe)];['_maxCarryingWeight']=0x32;['logger'];constructor(a){const j=a54i;super(),this[j(0xfa)]=a[j(0x101)],this[j(0xde)]=a['startLocation']||new Room({'name':j(0xcb),'description':j(0xf8)}),this[j(0x102)]=new Inventory(),this[j(0xd2)]=Logger[j(0xeb)]();if(a?.[j(0xf1)])for(const b of a[j(0xf1)]){this[j(0x102)][j(0xd0)](b);}this[j(0xbe)]=a?.[j(0xe4)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get['name'](){const k=a54i;return this[k(0xfa)];}get[a54i(0xcf)](){const l=a54i;return this[l(0xde)];}set[a54i(0xcf)](a){const m=a54i;this[m(0xde)]!==a&&(this['leaveRoom'](),this['enterRoom'](a)),this[m(0xde)]=a;}get[a54i(0xbc)](){return this['_inventory'];}get[a54i(0xea)](){const n=a54i;return this[n(0xbe)];}set[a54i(0xea)](a){const o=a54i;this[o(0xbe)]=a;}get[a54i(0xec)](){const p=a54i;return this[p(0xda)];}set[a54i(0xec)](a){const q=a54i;a>0x0?this[q(0xda)]=a:console[q(0xd6)](q(0xe6));}get['currentWeight'](){const r=a54i;let a=this[r(0x102)][r(0xef)]();for(const b in this[r(0xbe)]){const c=this['_equipment'][b];c&&(a+=c['weight']);}return a;}[a54i(0xe1)](a){const s=a54i;if(this[s(0xc5)]+a[s(0xbd)]>this['maxCarryingWeight']){this[s(0xd2)][s(0xc7)](s(0xdd));throw new Error(s(0xfe));}this[s(0x102)][s(0xd0)](a),this['logger'][s(0xc7)](s(0x103)+a[s(0xff)]+'\x20to\x20player\x27s\x20inventory.');}[a54i(0xce)](a){const t=a54i;if(this[t(0x102)]['removeItem'](a[t(0xff)]))return this[t(0xd2)]['write'](t(0x108)+a['name']+t(0xbb)),!![];return this[t(0xd2)][t(0xc7)](t(0xd5)+a[t(0xff)]+t(0xbb)),![];}[a54i(0xd8)](a){const u=a54i;if(!this[u(0x102)][u(0xf6)](a[u(0xff)]))return u(0xed)+a['name']+u(0xb8);if(!this[u(0xca)](a))return u(0xc2)+a[u(0xff)]+'.';const b=this[u(0x106)](a[u(0xf7)]);if(!b)return a['name']+u(0xc6);if(this[u(0xea)][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+u(0xba);return this[u(0xea)][b]=a,this[u(0xce)](a),u(0xc4)+a[u(0xff)]+'.';}['unequip'](a){const v=a54i;let b=a;if(!this[v(0xea)][camelCase(b)]){b=this[v(0x106)](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this[v(0xb7)](b);}['determineEquipmentSlot'](a){const w=a54i;switch(a['toLowerCase']()){case Category['Weapon'][w(0x100)]():return w(0xc1);case Category['Shield'][w(0x100)]():return w(0xe2);case Category[w(0xee)]['toLowerCase']():return w(0xfd);case Category['Helmet'][w(0x100)]():case Category[w(0xf3)][w(0x100)]():return w(0x104);case Category['Boots'][w(0x100)]():return'feet';case Category[w(0xd9)][w(0x100)]():return w(0x105);case Category['ArmArmor'][w(0x100)]():return w(0xf5);case Category['BodyArmor'][w(0x100)]():return w(0xdb);case w(0xd4):return w(0xc1);case w(0xd7):return'leftHand';case w(0xfd):return'gloves';case'helmet':case'hat':return w(0x104);case w(0xe7):return w(0x109);case'leg\x20armor':case w(0xb6):return w(0x105);case w(0xfb):case w(0xf0):return'arms';case w(0xf2):case'bodyarmor':case'torso':return w(0xdb);default:return null;}}['canEquip'](a){const x=a54i;return Object[x(0xbf)](Category)[x(0xe9)](a[x(0xf7)]);}[a54i(0xb7)](a){const y=a54i,b=this['equipment'][a];if(!b)return y(0xe8)+a+'\x20slot.';return this[y(0xe1)](b),this['equipment'][a]=null,y(0xc9)+b['name']+'.';}[a54i(0xb3)](a,b){const z=a54i;a!==this&&this[z(0xd2)]['log'](a[z(0xff)]+z(0xcd)+b+'\x22');}['enterRoom'](a){const A=a54i;this[A(0xde)]=a,a['on']('speak',this[A(0xb3)]['bind'](this)),this['logger'][A(0xc7)](this[A(0xff)]+A(0xc0)+a[A(0xff)]);}[a54i(0xc8)](){const B=a54i;this['_currentLocation']&&(this['_currentLocation'][B(0xcc)](B(0xb9),this[B(0xb3)][B(0xdf)](this)),this['logger']['write'](this['name']+'\x20is\x20no\x20longer\x20listeng\x20in\x20'+this[B(0xde)]['name']));}}
@@ -1 +1 @@
1
- var a55h=a55d;function a55c(){var m=['failureMessage','820XAyrUw','You\x20have\x20already\x20solved\x20this\x20puzzle.','198wctDKe','requiredItem','187iGrjiI','logger','You\x20solved\x20the\x20puzzle!','18630BoEqHS','matchesRequiredPhrase','constructor','hasItem','rewardItem','(((.+)+)+)+$','toString','5330812hIuBjD','requiredPhrase','successMessage','solved','solve','hasRequiredItem','Puzzle:\x20Correct\x20solution\x20provided.','9717771Gqnvtc','618906QLPThe','write','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','298952NqPzRL','search','riddle','3juqtia','945070saoizs','6580gqfgAe'];a55c=function(){return m;};return a55c();}(function(a,b){var f=a55d,c=a();while(!![]){try{var d=parseInt(f(0x158))/0x1+-parseInt(f(0x14f))/0x2+parseInt(f(0x156))/0x3*(parseInt(f(0x168))/0x4)+-parseInt(f(0x15a))/0x5*(-parseInt(f(0x161))/0x6)+-parseInt(f(0x16f))/0x7+-parseInt(f(0x153))/0x8*(parseInt(f(0x15c))/0x9)+parseInt(f(0x157))/0xa*(parseInt(f(0x15e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xe4582));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(0x167)]()[g(0x154)](g(0x166))[g(0x167)]()[g(0x163)](a55a)['search'](g(0x166));});function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x14f;var f=c[d];return f;},a55d(a,b);}a55a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{['logger']=Logger['getInstance']();[a55h(0x16b)]=![];[a55h(0x15d)];[a55h(0x169)];[a55h(0x155)];['rewardItem'];['successMessage'];['failureMessage'];constructor(a){var i=a55h;super(),this['requiredItem']=a[i(0x15d)],this[i(0x169)]=a['requiredPhrase'],this[i(0x155)]=a[i(0x155)],this[i(0x165)]=a[i(0x165)],this[i(0x16a)]=a['successMessage']||i(0x160),this['failureMessage']=a[i(0x159)]||i(0x152);}['hasRequiredItem'](a){var j=a55h;if(this[j(0x15d)])return a[j(0x164)](this[j(0x15d)]);return![];}[a55h(0x162)](a){var k=a55h;return this[k(0x169)]===a;}[a55h(0x16c)](a,b){var l=a55h;if(this[l(0x16b)])return this[l(0x15f)][l(0x150)]('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':l(0x15b)};return this[l(0x16d)](b)||this[l(0x162)](a)?(this['solved']=!![],this[l(0x15f)]['write'](l(0x16e)),{'success':!![],'message':this['successMessage']}):(this[l(0x15f)][l(0x150)](l(0x151)),{'success':![],'message':this[l(0x159)]});}}
1
+ var a55i=a55d;(function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x159))/0x1*(parseInt(f(0x162))/0x2)+-parseInt(f(0x15a))/0x3+-parseInt(f(0x163))/0x4*(parseInt(f(0x154))/0x5)+-parseInt(f(0x161))/0x6+-parseInt(f(0x169))/0x7+-parseInt(f(0x15c))/0x8*(parseInt(f(0x165))/0x9)+parseInt(f(0x16c))/0xa*(parseInt(f(0x157))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xdb74f));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x153)]()[h(0x152)](h(0x16d))[h(0x153)]()['constructor'](a55a)[h(0x152)](h(0x16d));});a55a();function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x151;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(0x168)]=Logger[a55i(0x158)]();[a55i(0x164)]=![];[a55i(0x16a)];[a55i(0x15e)];[a55i(0x16f)];[a55i(0x15d)];['successMessage'];[a55i(0x167)];constructor(a){var j=a55i;super(),this[j(0x16a)]=a[j(0x16a)],this[j(0x15e)]=a[j(0x15e)],this[j(0x16f)]=a[j(0x16f)],this[j(0x15d)]=a[j(0x15d)],this['successMessage']=a[j(0x15f)]||j(0x155),this[j(0x167)]=a['failureMessage']||'You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.';}[a55i(0x156)](a){var k=a55i;if(this['requiredItem'])return a['hasItem'](this[k(0x16a)]);return![];}['matchesRequiredPhrase'](a){var l=a55i;return this[l(0x15e)]===a;}['solve'](a,b){var m=a55i;if(this['solved'])return this['logger'][m(0x15b)](m(0x16e)),{'success':![],'message':m(0x151)};return this[m(0x156)](b)||this['matchesRequiredPhrase'](a)?(this['solved']=!![],this['logger'][m(0x15b)](m(0x166)),{'success':!![],'message':this[m(0x15f)]}):(this[m(0x168)][m(0x15b)](m(0x16b)),{'success':![],'message':this[m(0x167)]});}}function a55c(){var n=['2QAjPrl','572712olNMVw','solved','1188qUHMGQ','Puzzle:\x20Correct\x20solution\x20provided.','failureMessage','logger','8877421qKejrk','requiredItem','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','72768370uDOMqS','(((.+)+)+)+$','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','riddle','You\x20have\x20already\x20solved\x20this\x20puzzle.','search','toString','10oyvHDW','You\x20solved\x20the\x20puzzle!','hasRequiredItem','11EFceAe','getInstance','556089QIltku','3641826NVNnsx','write','97192VLmqrO','rewardItem','requiredPhrase','successMessage','apply','8698104eSOVqD'];a55c=function(){return n;};return a55c();}
@@ -1 +1 @@
1
- const a56i=a56d;(function(a,b){const f=a56d,c=a();while(!![]){try{const d=parseInt(f(0x157))/0x1*(parseInt(f(0x153))/0x2)+parseInt(f(0x164))/0x3+parseInt(f(0x17f))/0x4+-parseInt(f(0x151))/0x5*(-parseInt(f(0x16e))/0x6)+parseInt(f(0x176))/0x7+-parseInt(f(0x15c))/0x8+parseInt(f(0x16a))/0x9*(-parseInt(f(0x171))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0xa22db));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a[h(0x155)]()[h(0x17c)](h(0x167))[h(0x155)]()[h(0x15a)](a56a)[h(0x17c)](h(0x167));});function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x14b;let f=c[d];return f;},a56d(a,b);}a56a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';function a56c(){const u=['INSIDE','getExit','name','exits','\x20remains\x20locked.','roomB','attemptUnlockExit','hasItem','getOppositeDirection','40teRuhw','values','4cgrLnS','Invalid\x20direction:\x20','toString','The\x20','121721TkPbLf','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','constructor','checkIfLocked','7611168OgEBBf','Checking\x20if\x20exit\x20in\x20direction\x20','south','setPuzzle','logger','roomType','attemptUnlock','addExit','112695UsAIqV','isStartRoom','riddle','(((.+)+)+)+$','east','west','512181TMiPZK','Item\x20removed\x20from\x20room\x20','down','description','821364RRGXbs','set','emit','330UokJpY','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','puzzle','apply','EAST','6232436EcVtCr','WEST','SOUTH','inventory','\x20is\x20locked.\x20Result:\x20','.\x20Success:\x20','search','addItem','north','4908676kfRyOA','speak','findExistingDoor','say','Item\x20added\x20to\x20room\x20','write','get','isExitLocked'];a56c=function(){return u;};return a56c();}import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a56i(0x160)]=Logger['getInstance']();['name'];[a56i(0x16d)];[a56i(0x14b)]=new Map();[a56i(0x161)];['isStartRoom'];[a56i(0x179)]=new Inventory();constructor(a){const j=a56i;super(),this[j(0x189)]=a[j(0x189)],this[j(0x16d)]=a[j(0x16d)],this[j(0x161)]=a[j(0x161)]||RoomType[j(0x187)],a['exits']&&(this['exits']=a['exits']||new Map()),a[j(0x179)]&&(this[j(0x179)]=a[j(0x179)]),a[j(0x173)]&&(this[j(0x173)]=a[j(0x173)]),this[j(0x165)]=a['isStartRoom']||![],this[j(0x160)][j(0x184)]('Room\x20created:\x20'+this['name']);}[a56i(0x182)](a,b){const k=a56i;this[k(0x170)](k(0x180),a,b);}[a56i(0x163)](a,b,c){const l=a56i;let d=this[l(0x181)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this['exits'][l(0x16f)](a,d),b[l(0x14b)]['set'](this[l(0x150)](a),d);}[a56i(0x14e)](a,b){const m=a56i,c=this[m(0x14b)][m(0x185)](a);if(c instanceof Door){const d=c[m(0x162)](b);return this[m(0x160)][m(0x184)](m(0x172)+a+m(0x17b)+d),d?'The\x20'+c[m(0x189)]+'\x20unlocked!':m(0x156)+c['name']+m(0x14c);}return this[m(0x160)][m(0x184)]('No\x20locked\x20exit\x20found\x20in\x20direction\x20'+a),m(0x159);}[a56i(0x188)](a){const n=a56i;return this[n(0x160)][n(0x184)]('Fetching\x20exit\x20in\x20direction:\x20'+a),this[n(0x14b)][n(0x185)](a);}[a56i(0x186)](a){const o=a56i,b=this[o(0x14b)]['get'](a),c=b instanceof Door&&b[o(0x15b)]();return this[o(0x160)][o(0x184)](o(0x15d)+a+o(0x17a)+c),c;}['addItem'](a){const p=a56i;this[p(0x179)][p(0x17d)](a),this[p(0x160)][p(0x184)](p(0x183)+this[p(0x189)]+':\x20'+a[p(0x189)]);}['removeItem'](a){const q=a56i;this[q(0x179)][q(0x14f)](a[q(0x189)])?(this['inventory']['removeItem'](a[q(0x189)]),this['logger']['write'](q(0x16b)+this['name']+':\x20'+a[q(0x189)])):this[q(0x160)][q(0x184)](q(0x158)+this[q(0x189)]+':\x20'+a['name']);}[a56i(0x15f)](a){const r=a56i;this[r(0x173)]=a,this[r(0x160)][r(0x184)]('Puzzle\x20set\x20for\x20room\x20'+this[r(0x189)]+':\x20'+a[r(0x166)]);}['getOppositeDirection'](a){const s=a56i;switch(a){case s(0x17e):return Direction[s(0x178)];case s(0x15e):return Direction['NORTH'];case s(0x168):return Direction[s(0x177)];case s(0x169):return Direction[s(0x175)];case'up':return Direction['DOWN'];case s(0x16c):return Direction['UP'];default:throw new Error(s(0x154)+a);}}['findExistingDoor'](a){const t=a56i;for(const b of this['exits'][t(0x152)]()){if(b instanceof Door){if(b['roomA']===this&&b[t(0x14d)]===a||b[t(0x14d)]===this&&b['roomA']===a)return b;}}return undefined;}}
1
+ const a56i=a56d;function a56c(){const u=['puzzle','Item\x20removed\x20from\x20room\x20','removeItem','2tDBemv','toString','.\x20Success:\x20','write','logger','speak','The\x20','apply','INSIDE','93789DiUbcT','SOUTH','WEST','roomA','isStartRoom','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','DOWN','402885UgCZsz','Item\x20added\x20to\x20room\x20','Fetching\x20exit\x20in\x20direction:\x20','east','2897092jrSgYR','values','say','north','hasItem','Invalid\x20direction:\x20','Room\x20created:\x20','set','name','roomB','EAST','65BsaKBe','Puzzle\x20set\x20for\x20room\x20','126194gxbytK','NORTH','setPuzzle','description','No\x20locked\x20exit\x20found\x20in\x20direction\x20','\x20is\x20locked.\x20Result:\x20','getExit','constructor','1334304qFfStw','emit','addExit','230ZOhTtS','getOppositeDirection','isExitLocked','(((.+)+)+)+$','getInstance','7637lIgild','roomType','41596yMkhwz','search','down','addItem','get','inventory','findExistingDoor','exits','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','318KtravY','attemptUnlockExit'];a56c=function(){return u;};return a56c();}(function(a,b){const f=a56d,c=a();while(!![]){try{const d=parseInt(f(0xd3))/0x1*(-parseInt(f(0xf3))/0x2)+-parseInt(f(0x103))/0x3+parseInt(f(0xe5))/0x4*(parseInt(f(0xd1))/0x5)+parseInt(f(0xee))/0x6*(parseInt(f(0xe3))/0x7)+parseInt(f(0xdb))/0x8+-parseInt(f(0xfc))/0x9*(parseInt(f(0xde))/0xa)+parseInt(f(0xc6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x1e076));function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0xc6;let f=c[d];return f;},a56d(a,b);}const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a56d;if(c){const e=c[g(0xfa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const h=a56d;return a56a[h(0xf4)]()['search'](h(0xe1))[h(0xf4)]()[h(0xda)](a56a)[h(0xe6)](h(0xe1));});a56a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';export class Room extends AbstractRoom{[a56i(0xf7)]=Logger[a56i(0xe2)]();[a56i(0xce)];[a56i(0xd6)];[a56i(0xec)]=new Map();[a56i(0xe4)];[a56i(0x100)];[a56i(0xea)]=new Inventory();constructor(a){const j=a56i;super(),this['name']=a['name'],this[j(0xd6)]=a[j(0xd6)],this[j(0xe4)]=a['roomType']||RoomType[j(0xfb)],a[j(0xec)]&&(this[j(0xec)]=a[j(0xec)]||new Map()),a[j(0xea)]&&(this[j(0xea)]=a[j(0xea)]),a[j(0xf0)]&&(this[j(0xf0)]=a['puzzle']),this[j(0x100)]=a[j(0x100)]||![],this[j(0xf7)][j(0xf6)](j(0xcc)+this[j(0xce)]);}[a56i(0xc8)](a,b){const k=a56i;this[k(0xdc)](k(0xf8),a,b);}[a56i(0xdd)](a,b,c){const l=a56i;let d=this['findExistingDoor'](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0xec)][l(0xcd)](a,d),b[l(0xec)][l(0xcd)](this['getOppositeDirection'](a),d);}[a56i(0xef)](a,b){const m=a56i,c=this[m(0xec)][m(0xe9)](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this[m(0xf7)][m(0xf6)](m(0xed)+a+m(0xf5)+d),d?m(0xf9)+c[m(0xce)]+'\x20unlocked!':m(0xf9)+c['name']+'\x20remains\x20locked.';}return this[m(0xf7)][m(0xf6)](m(0xd7)+a),m(0x101);}[a56i(0xd9)](a){const n=a56i;return this['logger']['write'](n(0x105)+a),this[n(0xec)][n(0xe9)](a);}[a56i(0xe0)](a){const o=a56i,b=this['exits'][o(0xe9)](a),c=b instanceof Door&&b['checkIfLocked']();return this[o(0xf7)][o(0xf6)]('Checking\x20if\x20exit\x20in\x20direction\x20'+a+o(0xd8)+c),c;}[a56i(0xe8)](a){const p=a56i;this[p(0xea)][p(0xe8)](a),this[p(0xf7)][p(0xf6)](p(0x104)+this[p(0xce)]+':\x20'+a['name']);}[a56i(0xf2)](a){const q=a56i;this[q(0xea)][q(0xca)](a['name'])?(this[q(0xea)][q(0xf2)](a[q(0xce)]),this['logger']['write'](q(0xf1)+this[q(0xce)]+':\x20'+a['name'])):this[q(0xf7)][q(0xf6)]('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this['name']+':\x20'+a[q(0xce)]);}[a56i(0xd5)](a){const r=a56i;this['puzzle']=a,this[r(0xf7)]['write'](r(0xd2)+this['name']+':\x20'+a['riddle']);}[a56i(0xdf)](a){const s=a56i;switch(a){case s(0xc9):return Direction[s(0xfd)];case'south':return Direction[s(0xd4)];case s(0x106):return Direction[s(0xfe)];case'west':return Direction[s(0xd0)];case'up':return Direction[s(0x102)];case s(0xe7):return Direction['UP'];default:throw new Error(s(0xcb)+a);}}[a56i(0xeb)](a){const t=a56i;for(const b of this[t(0xec)][t(0xc7)]()){if(b instanceof Door){if(b[t(0xff)]===this&&b[t(0xcf)]===a||b[t(0xcf)]===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(0xa8))/0x1+-parseInt(i(0xa1))/0x2*(parseInt(i(0x81))/0x3)+-parseInt(i(0xa3))/0x4+-parseInt(i(0xa9))/0x5+parseInt(i(0x7f))/0x6+-parseInt(i(0xac))/0x7+parseInt(i(0xab))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x1be55));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0xb7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0x80)]()[k(0xb1)](k(0x8f))['toString']()[k(0x95)](a57a)[k(0xb1)](k(0x8f));});a57a();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 a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x7a;let f=c[d];return f;},a57d(a,b);}function a57c(){const E=['(((.+)+)+)+$','keyRequired','addExit','Failed\x20to\x20set\x20','targetRoom','removeRoom','constructor','currentLocation','roomFactory','name','Added\x20room\x20to\x20scene:\x20','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','toUpperCase','removeActor','logger','length','setCharacterLocation','isStartRoom','13682ULBjyn','createExitsFromConfig','250248TemlPq','join','\x20found\x20in\x20the\x20scene.','exits','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','6315grBytx','576490AbiDNm','characterLocations','2647976icEueN','177555HEjLJK','createRoom','addPuzzleToRoom','get','addActor','search','generateRoomsFromConfig','write','set','Removed\x20room\x20from\x20scene:\x20','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','apply','delete','Scene\x20initialized\x20with\x20rooms:\x20','warn','Actor\x20with\x20name\x20','keys','setPuzzle','roomConfiguration','player','getInstance','rooms','No\x20actor\x20with\x20name\x20','\x27s\x20location.\x20Room\x20','has','743010LMBERi','toString','63vKmxXL','Added\x20item\x20','\x20not\x20found\x20in\x20scene.','addRoom','actors','getCharacterLocation','\x22\x20does\x20not\x20exist.','\x20to\x20room\x20','from','initialize','.\x20Room\x20','Room\x20\x22','determineStartRoom','\x20already\x20exists\x20in\x20the\x20scene.'];a57c=function(){return E;};return a57c();}export class Scene extends AbstractScene{[a57l(0x7b)];[a57l(0xbf)];['logger'];[a57l(0x85)];['characterLocations']=new Map();[a57l(0x97)];constructor(a){const m=a57l;super(),this['roomFactory']=new RoomFactory(),this[m(0xbf)]=a['player'],this['rooms']=this[m(0xb2)](a[m(0xbe)]),this['logger']=Logger[m(0x7a)](),this[m(0x85)]=new Map(),this[m(0xa2)](a[m(0xbe)]),this[m(0x9d)]['write'](m(0xb9)+Object[m(0xbc)](this[m(0x7b)])[m(0xa4)](',\x20'));}[a57l(0x8a)](){const n=a57l;this[n(0xbf)][n(0x96)]=this[n(0x8d)]();}[a57l(0xb2)](a){const o=a57l;if(!this['roomFactory'])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this[o(0x97)][o(0xad)](c);b[c[o(0x98)]]=d;}return b;}[a57l(0xa2)](a){const p=a57l;for(const b of a){const c=this[p(0x7b)][b[p(0x98)]];if(b[p(0xa6)])for(const d of b[p(0xa6)]){const e=d['direction'][p(0x9b)](),f=d[p(0x93)],g=d[p(0x90)],h=this[p(0x7b)][f];h&&c[p(0x91)](Direction[e],h,g);}}}[a57l(0xb0)](a){const q=a57l;if(this[q(0x85)][q(0x7e)](a['name']))throw new Error(q(0xbb)+a[q(0x98)]+q(0x8e));this['actors']['set'](a[q(0x98)],a);}[a57l(0x9c)](a){const r=a57l;if(!this[r(0x85)][r(0x7e)](a))throw new Error(r(0x7c)+a+r(0xa5));this['actors'][r(0xb8)](a);}['getActor'](a){const s=a57l;return this[s(0x85)][s(0xaf)](a);}get['allActors'](){const t=a57l;return Array[t(0x89)](this['actors']['values']());}[a57l(0x84)](a){const u=a57l;this[u(0x7b)][a[u(0x98)]]=a,this[u(0x9d)][u(0xb3)](u(0x99)+a[u(0x98)]);}[a57l(0x94)](a){const v=a57l;return this['rooms'][a]?(delete this['rooms'][a],this[v(0x9d)][v(0xb3)](v(0xb5)+a),!![]):(this['logger'][v(0xb3)](v(0xb6)+a),![]);}['addItemToRoom'](a,b){const w=a57l,c=this[w(0x7b)][b];c?(c['addItem'](a),this[w(0x9d)][w(0xb3)](w(0x82)+a[w(0x98)]+w(0x88)+c['name'])):this[w(0x9d)][w(0xb3)]('Failed\x20to\x20add\x20item\x20'+a['name']+w(0x8b)+b+'\x20not\x20found\x20in\x20scene.');}[a57l(0xae)](a,b){const x=a57l,c=this[x(0x7b)][b];c?(c[x(0xbd)](a),this['logger'][x(0xb3)]('Added\x20puzzle\x20to\x20room\x20'+c[x(0x98)])):this[x(0x9d)][x(0xb3)]('Failed\x20to\x20add\x20puzzle.\x20Room\x20'+b+x(0x83));}[a57l(0x9f)](a,b){const y=a57l,c=this[y(0x7b)][b];c?(this[y(0xaa)][y(0xb4)](a[y(0x98)],c),this[y(0x9d)][y(0xb3)](a[y(0x98)]+'\x20is\x20now\x20in\x20room\x20'+c[y(0x98)])):this['logger'][y(0xb3)](y(0x92)+a[y(0x98)]+y(0x7d)+b+y(0x83));}[a57l(0x86)](a){const z=a57l;return this[z(0xaa)][z(0xaf)](a['name']);}[a57l(0x8d)](){const A=a57l,a=[];for(const c in this[A(0x7b)]){if(this[A(0x7b)]['hasOwnProperty'](c)){const d=this[A(0x7b)][c];d[A(0xa0)]&&a['push'](d);}}if(a[A(0x9e)]>0x1)throw new Error(A(0xa7));if(a[A(0x9e)]===0x1)return a[0x0];const b=Object['keys'](this[A(0x7b)]);if(b['length']===0x0)throw new Error('No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.');return console[A(0xba)](A(0x9a)),this[A(0x7b)][b[0x0]];}['getPlayer'](){const B=a57l;return this[B(0xbf)];}['getRooms'](){const C=a57l;return this[C(0x7b)];}['connectRooms'](a,b,c,d){const D=a57l,e=this[D(0x7b)][a],f=this['rooms'][c];if(!e)throw new Error('Room\x20\x22'+a+D(0x87));if(!f)throw new Error(D(0x8c)+c+D(0x87));e[D(0x91)](b,f,d);}}
1
+ const a57l=a57d;function a57c(){const D=['push','Removed\x20room\x20from\x20scene:\x20','getPlayer','write','getInstance','keys','toUpperCase','setCharacterLocation','keyRequired','createRoom','addItem','delete','63nIHAwa','rooms','\x20not\x20found\x20in\x20scene.','removeRoom','player','addActor','logger','initialize','addRoom','roomFactory','2525RhObZD','length','257ZJwseX','getRooms','apply','search','isStartRoom','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','431130mRUkyh','actors','getCharacterLocation','set','Added\x20puzzle\x20to\x20room\x20','determineStartRoom','Added\x20room\x20to\x20scene:\x20','has','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','generateRoomsFromConfig','519pCKKvO','\x20found\x20in\x20the\x20scene.','connectRooms','Room\x20\x22','name','constructor','addItemToRoom','exits','10792wBlIit','Scene\x20initialized\x20with\x20rooms:\x20','8572rRLfAr','roomConfiguration','Failed\x20to\x20add\x20puzzle.\x20Room\x20','\x20already\x20exists\x20in\x20the\x20scene.','(((.+)+)+)+$','\x20to\x20room\x20','Failed\x20to\x20set\x20','toString','characterLocations','4610168QDRJUu','2552506pLtthi','getActor','3871378QicFFw','addPuzzleToRoom','.\x20Room\x20','\x22\x20does\x20not\x20exist.','\x20is\x20now\x20in\x20room\x20','Added\x20item\x20','warn','Failed\x20to\x20add\x20item\x20','from','7530OHRoTv','values','join','get'];a57c=function(){return D;};return a57c();}(function(a,b){const i=a57d,c=a();while(!![]){try{const d=parseInt(i(0x15f))/0x1*(parseInt(i(0x17a))/0x2)+parseInt(i(0x170))/0x3*(-parseInt(i(0x178))/0x4)+parseInt(i(0x15d))/0x5*(-parseInt(i(0x143))/0x6)+-parseInt(i(0x13a))/0x7+parseInt(i(0x137))/0x8+parseInt(i(0x153))/0x9*(parseInt(i(0x165))/0xa)+parseInt(i(0x138))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x883cb));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a['toString']()['search'](k(0x132))[k(0x135)]()[k(0x175)](a57a)[k(0x162)](k(0x132));});a57a();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 a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x130;let f=c[d];return f;},a57d(a,b);}export class Scene extends AbstractScene{[a57l(0x154)];[a57l(0x157)];[a57l(0x159)];[a57l(0x166)];['characterLocations']=new Map();[a57l(0x15c)];constructor(a){const m=a57l;super(),this[m(0x15c)]=new RoomFactory(),this[m(0x157)]=a['player'],this['rooms']=this[m(0x16f)](a['roomConfiguration']),this[m(0x159)]=Logger[m(0x14b)](),this[m(0x166)]=new Map(),this['createExitsFromConfig'](a[m(0x17b)]),this['logger'][m(0x14a)](m(0x179)+Object[m(0x14c)](this['rooms'])[m(0x145)](',\x20'));}[a57l(0x15a)](){const n=a57l;this[n(0x157)]['currentLocation']=this[n(0x16a)]();}[a57l(0x16f)](a){const o=a57l;if(!this[o(0x15c)])throw new Error('Room\x20Factory\x20was\x20not\x20correctly\x20initialized');const b={};for(const c of a){const d=this['roomFactory'][o(0x150)](c);b[c['name']]=d;}return b;}['createExitsFromConfig'](a){const p=a57l;for(const b of a){const c=this['rooms'][b[p(0x174)]];if(b['exits'])for(const d of b[p(0x177)]){const e=d['direction'][p(0x14d)](),f=d['targetRoom'],g=d[p(0x14f)],h=this[p(0x154)][f];h&&c['addExit'](Direction[e],h,g);}}}[a57l(0x158)](a){const q=a57l;if(this[q(0x166)][q(0x16c)](a[q(0x174)]))throw new Error('Actor\x20with\x20name\x20'+a['name']+q(0x131));this['actors'][q(0x168)](a['name'],a);}['removeActor'](a){const r=a57l;if(!this[r(0x166)][r(0x16c)](a))throw new Error('No\x20actor\x20with\x20name\x20'+a+r(0x171));this[r(0x166)][r(0x152)](a);}[a57l(0x139)](a){const s=a57l;return this[s(0x166)][s(0x146)](a);}get['allActors'](){const t=a57l;return Array[t(0x142)](this[t(0x166)][t(0x144)]());}[a57l(0x15b)](a){const u=a57l;this[u(0x154)][a[u(0x174)]]=a,this[u(0x159)][u(0x14a)](u(0x16b)+a['name']);}[a57l(0x156)](a){const v=a57l;return this[v(0x154)][a]?(delete this[v(0x154)][a],this[v(0x159)][v(0x14a)](v(0x148)+a),!![]):(this[v(0x159)]['write']('Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20'+a),![]);}[a57l(0x176)](a,b){const w=a57l,c=this['rooms'][b];c?(c[w(0x151)](a),this[w(0x159)][w(0x14a)](w(0x13f)+a[w(0x174)]+w(0x133)+c[w(0x174)])):this[w(0x159)][w(0x14a)](w(0x141)+a[w(0x174)]+w(0x13c)+b+w(0x155));}[a57l(0x13b)](a,b){const x=a57l,c=this[x(0x154)][b];c?(c['setPuzzle'](a),this[x(0x159)][x(0x14a)](x(0x169)+c['name'])):this[x(0x159)][x(0x14a)](x(0x130)+b+x(0x155));}[a57l(0x14e)](a,b){const y=a57l,c=this[y(0x154)][b];c?(this['characterLocations'][y(0x168)](a['name'],c),this[y(0x159)][y(0x14a)](a['name']+y(0x13e)+c['name'])):this[y(0x159)][y(0x14a)](y(0x134)+a[y(0x174)]+'\x27s\x20location.\x20Room\x20'+b+'\x20not\x20found\x20in\x20scene.');}[a57l(0x167)](a){const z=a57l;return this[z(0x136)][z(0x146)](a['name']);}['determineStartRoom'](){const A=a57l,a=[];for(const c in this[A(0x154)]){if(this['rooms']['hasOwnProperty'](c)){const d=this[A(0x154)][c];d[A(0x163)]&&a[A(0x147)](d);}}if(a[A(0x15e)]>0x1)throw new Error(A(0x164));if(a[A(0x15e)]===0x1)return a[0x0];const b=Object[A(0x14c)](this['rooms']);if(b[A(0x15e)]===0x0)throw new Error(A(0x16d));return console[A(0x140)](A(0x16e)),this[A(0x154)][b[0x0]];}[a57l(0x149)](){const B=a57l;return this[B(0x157)];}[a57l(0x160)](){return this['rooms'];}[a57l(0x172)](a,b,c,d){const C=a57l,e=this[C(0x154)][a],f=this[C(0x154)][c];if(!e)throw new Error(C(0x173)+a+C(0x13d));if(!f)throw new Error(C(0x173)+c+C(0x13d));e['addExit'](b,f,d);}}
@@ -1 +1 @@
1
- var a58s=a58d;(function(a,b){var f=a58d,c=a();while(!![]){try{var d=-parseInt(f(0x8a))/0x1+parseInt(f(0x68))/0x2*(-parseInt(f(0x85))/0x3)+-parseInt(f(0x83))/0x4*(-parseInt(f(0x71))/0x5)+-parseInt(f(0x8b))/0x6+parseInt(f(0x82))/0x7+-parseInt(f(0x84))/0x8*(parseInt(f(0x67))/0x9)+-parseInt(f(0x7b))/0xa*(-parseInt(f(0x89))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x255cc));function a58d(a,b){var c=a58c();return a58d=function(d,e){d=d-0x66;var f=c[d];return f;},a58d(a,b);}var a58b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a58d;if(c){var e=c[g(0x86)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){var h=a58d;return a58a[h(0x7d)]()[h(0x7c)](h(0x88))[h(0x7d)]()[h(0x8c)](a58a)[h(0x7c)](h(0x88));});a58a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a58d;super({'name':a,'description':b,'size':Size[i(0x70)],'category':Category[i(0x7a)],'shape':Shape[i(0x75)],'color':Color[i(0x97)],'texture':Texture['Smooth'],'rating':Rating[i(0x80)],'weight':0x1});}['use'](){return this['description'];}}export class Sword extends Item{constructor(a,b){var j=a58d;super({'name':a,'description':b,'size':Size[j(0x70)],'category':Category[j(0x98)],'shape':Shape[j(0x94)],'color':Color[j(0x91)],'texture':Texture[j(0x99)],'rating':Rating[j(0x80)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var k=a58d;super({'name':a,'description':b,'size':Size[k(0x6a)],'category':Category[k(0x98)],'shape':Shape[k(0x92)],'color':Color[k(0x77)],'texture':Texture[k(0x99)],'rating':Rating[k(0x93)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var l=a58d;super({'name':a,'description':b,'size':Size[l(0x70)],'category':Category[l(0x81)],'shape':Shape[l(0x8e)],'color':Color[l(0x91)],'texture':Texture[l(0x99)],'rating':Rating[l(0x80)],'weight':0x2});}}function a58c(){var C=['Book','(((.+)+)+)+$','143KRIjsb','80146fDeLCX','55314PWMYsf','constructor','Gold','Circle','publishDate','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','Grey','Rifle','Rare','Blade','Gloves','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','Yellow','Weapon','Metallic','\x20aloft,\x20feeling\x20its\x20immense\x20power.','117XDhYSm','5786DotkdK','LegArmor','Large','Unknown\x20Author','Smooth','Key','Small','name','Medium','297340ZKcyas','pageCount','Boots','author','Rectangle','ArmArmor','Brown','Tiny','You\x20hold\x20the\x20','Unknown','119170FjUFdP','search','toString','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','use','Common','Helmet','1980916pVmerc','8uYQEpc','124072ONymnG','117hvoLMa','apply'];a58c=function(){return C;};return a58c();}export class BodyArmor extends Item{constructor(a,b){var m=a58d;super({'name':a,'description':b,'size':Size[m(0x6a)],'category':Category['BodyArmor'],'shape':Shape[m(0x75)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating[m(0x80)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var n=a58d;super({'name':a,'description':b,'size':Size[n(0x70)],'category':Category[n(0x69)],'shape':Shape[n(0x75)],'color':Color[n(0x91)],'texture':Texture[n(0x99)],'rating':Rating[n(0x80)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var o=a58d;super({'name':a,'description':b,'size':Size[o(0x70)],'category':Category[o(0x73)],'shape':Shape[o(0x8e)],'color':Color['Brown'],'texture':Texture[o(0x6c)],'rating':Rating['Common'],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var p=a58d;super({'name':a,'description':b,'size':Size[p(0x6e)],'category':Category[p(0x95)],'shape':Shape['Circle'],'color':Color['Brown'],'texture':Texture[p(0x6c)],'rating':Rating[p(0x80)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var q=a58d;super({'name':a,'description':b,'size':Size[q(0x70)],'category':Category[q(0x76)],'shape':Shape[q(0x75)],'color':Color['Grey'],'texture':Texture[q(0x99)],'rating':Rating[q(0x80)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var r=a58d;super({'name':a,'description':b,'size':Size[r(0x78)],'category':Category[r(0x6d)],'shape':Shape[r(0x75)],'color':Color[r(0x97)],'texture':Texture[r(0x6c)],'rating':Rating[r(0x80)],'weight':0x0});}[a58s(0x7f)](){var t=a58s;return t(0x7e);}}export class Weapon extends Item{constructor(a,b){var u=a58s;super({'name':a,'description':b,'size':Size['Medium'],'category':Category['Weapon'],'shape':Shape['Blade'],'color':Color[u(0x91)],'texture':Texture['Metallic'],'rating':Rating[u(0x80)],'weight':0x3});}[a58s(0x7f)](){var v=a58s;return v(0x96);}}export class Book extends Item{[a58s(0x74)];[a58s(0x8f)];[a58s(0x72)];constructor(a,b='A\x20mysterious\x20book.',c=a58s(0x6b)){var w=a58s;super({'name':a,'description':b,'size':Size[w(0x70)],'category':Category[w(0x87)],'shape':Shape[w(0x75)],'color':Color[w(0x77)],'texture':Texture[w(0x6c)],'rating':Rating[w(0x80)],'weight':0x1}),this[w(0x74)]=c,this[w(0x8f)]=new Date(),this['pageCount']=0x64;}[a58s(0x7f)](){return'There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22';}}export class ShortSword extends Item{constructor(){var x=a58s;super({'name':'Short\x20Sword','description':'A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','size':Size[x(0x70)],'category':Category['Weapon'],'shape':Shape[x(0x94)],'color':Color[x(0x91)],'texture':Texture[x(0x99)],'rating':Rating['Common'],'weight':0x3});}[a58s(0x7f)](){var y=a58s;return y(0x96);}}export class SniperRifle extends Item{constructor(){var z=a58s;super({'name':'Sniper\x20Rifle','description':z(0x90),'size':Size[z(0x6a)],'category':Category[z(0x98)],'shape':Shape[z(0x92)],'color':Color[z(0x77)],'texture':Texture[z(0x6c)],'rating':Rating['Common'],'weight':0x5});}['use'](){return'You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22';}}export class HolyGrail extends Item{constructor(){var A=a58s;super({'name':'Holy\x20Grail','description':'A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','size':Size[A(0x6e)],'category':Category['Cup'],'shape':Shape['Circle'],'color':Color[A(0x8d)],'texture':Texture['Metallic'],'rating':Rating['Legendary'],'weight':0x1});}[a58s(0x7f)](){var B=a58s;return B(0x79)+this[B(0x6f)]+B(0x66);}}
1
+ var a58j=a58d;(function(a,b){var f=a58d,c=a();while(!![]){try{var d=-parseInt(f(0x1ac))/0x1+-parseInt(f(0x18c))/0x2+-parseInt(f(0x1b6))/0x3+parseInt(f(0x1b3))/0x4+-parseInt(f(0x19c))/0x5*(parseInt(f(0x1ab))/0x6)+-parseInt(f(0x1a0))/0x7*(-parseInt(f(0x19b))/0x8)+parseInt(f(0x190))/0x9*(parseInt(f(0x1a4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x82d8f));var a58b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a58d;if(c){var e=c[g(0x1a8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){var h=a58d;return a58a[h(0x19d)]()[h(0x1b0)](h(0x1ad))[h(0x19d)]()['constructor'](a58a)[h(0x1b0)]('(((.+)+)+)+$');});a58a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a58d;super({'name':a,'description':b,'size':Size[i(0x1aa)],'category':Category[i(0x1af)],'shape':Shape[i(0x1bc)],'color':Color['Yellow'],'texture':Texture[i(0x195)],'rating':Rating[i(0x1a9)],'weight':0x1});}[a58j(0x183)](){var k=a58j;return this[k(0x18b)];}}export class Sword extends Item{constructor(a,b){var l=a58j;super({'name':a,'description':b,'size':Size[l(0x1aa)],'category':Category[l(0x196)],'shape':Shape[l(0x1b8)],'color':Color[l(0x1a2)],'texture':Texture[l(0x1a1)],'rating':Rating[l(0x1a9)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var m=a58j;super({'name':a,'description':b,'size':Size[m(0x1b4)],'category':Category[m(0x196)],'shape':Shape[m(0x191)],'color':Color['Brown'],'texture':Texture[m(0x1a1)],'rating':Rating['Rare'],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var n=a58j;super({'name':a,'description':b,'size':Size[n(0x1aa)],'category':Category[n(0x188)],'shape':Shape['Circle'],'color':Color[n(0x1a2)],'texture':Texture[n(0x1a1)],'rating':Rating['Common'],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var o=a58j;super({'name':a,'description':b,'size':Size[o(0x1b4)],'category':Category[o(0x1ba)],'shape':Shape[o(0x1bc)],'color':Color[o(0x1a2)],'texture':Texture['Metallic'],'rating':Rating[o(0x1a9)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var p=a58j;super({'name':a,'description':b,'size':Size[p(0x1aa)],'category':Category[p(0x185)],'shape':Shape[p(0x1bc)],'color':Color[p(0x1a2)],'texture':Texture[p(0x1a1)],'rating':Rating['Common'],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var q=a58j;super({'name':a,'description':b,'size':Size[q(0x1aa)],'category':Category['Boots'],'shape':Shape[q(0x198)],'color':Color[q(0x193)],'texture':Texture[q(0x195)],'rating':Rating[q(0x1a9)],'weight':0x2});}}function a58c(){var F=['Smooth','Weapon','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Circle','author','Key','560PQQgLy','2020245PnPnxB','toString','Tiny','Yellow','12887TlqQHn','Metallic','Grey','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','15700hJWSRk','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Unknown\x20Author','Legendary','apply','Common','Medium','12lYVhkD','448075vgvpJI','(((.+)+)+)+$','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','Unknown','search','Holy\x20Grail','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','1952912Lxcvbp','Large','Gold','1420485rOZlQl','Small','Blade','publishDate','BodyArmor','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Rectangle','use','Book','LegArmor','A\x20mysterious\x20book.','You\x20hold\x20the\x20','Helmet','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','description','1934198FEARqH','name','ArmArmor','Sniper\x20Rifle','14994KhCAEq','Rifle','Gloves','Brown','pageCount'];a58c=function(){return F;};return a58c();}export class Gloves extends Item{constructor(a,b){var r=a58j;super({'name':a,'description':b,'size':Size[r(0x1b7)],'category':Category[r(0x192)],'shape':Shape['Circle'],'color':Color['Brown'],'texture':Texture['Smooth'],'rating':Rating[r(0x1a9)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a58j;super({'name':a,'description':b,'size':Size[s(0x1aa)],'category':Category[s(0x18e)],'shape':Shape[s(0x1bc)],'color':Color['Grey'],'texture':Texture[s(0x1a1)],'rating':Rating[s(0x1a9)],'weight':0x3});}}function a58d(a,b){var c=a58c();return a58d=function(d,e){d=d-0x183;var f=c[d];return f;},a58d(a,b);}export class Key extends Item{constructor(a,b){var t=a58j;super({'name':a,'description':b,'size':Size[t(0x19e)],'category':Category[t(0x19a)],'shape':Shape[t(0x1bc)],'color':Color[t(0x19f)],'texture':Texture[t(0x195)],'rating':Rating[t(0x1a9)],'weight':0x0});}[a58j(0x183)](){var u=a58j;return u(0x1bb);}}export class Weapon extends Item{constructor(a,b){var v=a58j;super({'name':a,'description':b,'size':Size[v(0x1aa)],'category':Category[v(0x196)],'shape':Shape[v(0x1b8)],'color':Color[v(0x1a2)],'texture':Texture[v(0x1a1)],'rating':Rating[v(0x1a9)],'weight':0x3});}[a58j(0x183)](){var w=a58j;return w(0x1a3);}}export class Book extends Item{[a58j(0x199)];['publishDate'];['pageCount'];constructor(a,b=a58j(0x186),c=a58j(0x1a6)){var x=a58j;super({'name':a,'description':b,'size':Size[x(0x1aa)],'category':Category[x(0x184)],'shape':Shape['Rectangle'],'color':Color[x(0x193)],'texture':Texture[x(0x195)],'rating':Rating[x(0x1a9)],'weight':0x1}),this[x(0x199)]=c,this[x(0x1b9)]=new Date(),this[x(0x194)]=0x64;}[a58j(0x183)](){var y=a58j;return y(0x1ae);}}export class ShortSword extends Item{constructor(){var z=a58j;super({'name':'Short\x20Sword','description':z(0x197),'size':Size['Medium'],'category':Category[z(0x196)],'shape':Shape[z(0x1b8)],'color':Color[z(0x1a2)],'texture':Texture[z(0x1a1)],'rating':Rating[z(0x1a9)],'weight':0x3});}[a58j(0x183)](){var A=a58j;return A(0x1a3);}}export class SniperRifle extends Item{constructor(){var B=a58j;super({'name':B(0x18f),'description':B(0x1b2),'size':Size[B(0x1b4)],'category':Category[B(0x196)],'shape':Shape[B(0x191)],'color':Color[B(0x193)],'texture':Texture[B(0x195)],'rating':Rating[B(0x1a9)],'weight':0x5});}[a58j(0x183)](){var C=a58j;return C(0x18a);}}export class HolyGrail extends Item{constructor(){var D=a58j;super({'name':D(0x1b1),'description':D(0x189),'size':Size['Small'],'category':Category['Cup'],'shape':Shape[D(0x198)],'color':Color[D(0x1b5)],'texture':Texture[D(0x1a1)],'rating':Rating[D(0x1a7)],'weight':0x1});}[a58j(0x183)](){var E=a58j;return E(0x187)+this[E(0x18d)]+E(0x1a5);}}