@maka/maka-cli 4.6.12 → 4.6.14

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 (136) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/install.js +1 -1
  73. package/bundle/obf/src/commands/jsdoc.js +1 -1
  74. package/bundle/obf/src/commands/lint.js +1 -1
  75. package/bundle/obf/src/commands/login.js +1 -1
  76. package/bundle/obf/src/commands/logout.js +1 -1
  77. package/bundle/obf/src/commands/logs.js +1 -1
  78. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  79. package/bundle/obf/src/commands/murder.js +1 -1
  80. package/bundle/obf/src/commands/proxy.js +1 -1
  81. package/bundle/obf/src/commands/reconfig.js +1 -1
  82. package/bundle/obf/src/commands/run/_index.js +1 -1
  83. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  84. package/bundle/obf/src/commands/run/run.command.js +1 -1
  85. package/bundle/obf/src/commands/set/_index.js +1 -1
  86. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/set/set.command.js +1 -1
  89. package/bundle/obf/src/commands/ssh.js +1 -1
  90. package/bundle/obf/src/commands/ssl.js +1 -1
  91. package/bundle/obf/src/commands/test.js +1 -1
  92. package/bundle/obf/src/commands/version.js +1 -1
  93. package/bundle/obf/src/error.js +1 -1
  94. package/bundle/obf/src/exec.js +1 -1
  95. package/bundle/obf/src/generator.js +1 -1
  96. package/bundle/obf/src/generators/_index.js +1 -1
  97. package/bundle/obf/src/generators/api.js +1 -1
  98. package/bundle/obf/src/generators/collection.js +1 -1
  99. package/bundle/obf/src/generators/component.js +1 -1
  100. package/bundle/obf/src/generators/config.js +1 -1
  101. package/bundle/obf/src/generators/dbc.js +1 -1
  102. package/bundle/obf/src/generators/dockerfile.js +1 -1
  103. package/bundle/obf/src/generators/hook.js +1 -1
  104. package/bundle/obf/src/generators/kit.js +1 -1
  105. package/bundle/obf/src/generators/layout.js +1 -1
  106. package/bundle/obf/src/generators/maka.gen.js +1 -1
  107. package/bundle/obf/src/generators/methods.js +1 -1
  108. package/bundle/obf/src/generators/package.js +1 -1
  109. package/bundle/obf/src/generators/page.js +1 -1
  110. package/bundle/obf/src/generators/publish.js +1 -1
  111. package/bundle/obf/src/generators/route.js +1 -1
  112. package/bundle/obf/src/generators/service.js +1 -1
  113. package/bundle/obf/src/generators/services/_index.js +1 -1
  114. package/bundle/obf/src/generators/services/openssl.js +1 -1
  115. package/bundle/obf/src/generators/services/translation.js +1 -1
  116. package/bundle/obf/src/maka.js +1 -1
  117. package/bundle/obf/src/tool.js +1 -1
  118. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  120. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  122. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  124. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  125. package/bundle/obf/src/tools/https/https.class.js +1 -1
  126. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  127. package/bundle/obf/src/tools/log/log.class.js +1 -1
  128. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  129. package/bundle/obf/src/tools/options/options.class.js +1 -1
  130. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  131. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  132. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  134. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  136. package/package.json +1 -1
@@ -1 +1 @@
1
- const a36i=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d=parseInt(f(0xf2))/0x1*(parseInt(f(0xdb))/0x2)+parseInt(f(0xd8))/0x3*(-parseInt(f(0xe4))/0x4)+parseInt(f(0xdc))/0x5*(parseInt(f(0xef))/0x6)+-parseInt(f(0xd0))/0x7+parseInt(f(0xf6))/0x8+parseInt(f(0xe3))/0x9*(-parseInt(f(0xf7))/0xa)+parseInt(f(0xea))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x5cc37));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0xe7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a[h(0xe9)]()['search'](h(0xd7))[h(0xe9)]()['constructor'](a36a)[h(0xe5)](h(0xd7));});function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0xd0;let f=c[d];return f;},a36d(a,b);}function a36c(){const l=['description','There\x20is\x20no\x20item\x20\x22','143294nNEcia','620YaGRol','logger','The\x20item\x20\x22','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','join','name','take','5409xPddtS','1250024sHughY','search','getItem','apply','actor','toString','8353378eXJDHY','write','Pick\x20up\x20an\x20item.','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','\x22\x20to\x20','13362mzqLrz','inventory','Successfully\x20removed\x20\x22','7BTbgiZ','\x22\x20not\x20retrieved\x20from\x20','hasItem','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','540712oqHXmK','2360tugHJW','removeItem','message','\x22\x20in\x20this\x20room.','3204999QpNNeW','toLowerCase','\x22\x20not\x20found\x20in\x20','\x20during\x20\x27Take\x27\x20command.','Item\x20\x22','verb','\x22\x20is\x20too\x20heavy\x20to\x20carry.','(((.+)+)+)+$','6EoOcXo'];a36c=function(){return l;};return a36c();}a36a();import{Command}from'./command.js';export class TakeCommand extends Command{static [a36i(0xd5)]=a36i(0xe2);static [a36i(0xd9)]=a36i(0xec);['execute'](a){const j=a36i;return this[j(0xdd)][j(0xeb)](j(0xdf)+a[j(0xe0)]('\x20')),this[j(0xe2)](a);}[a36i(0xe2)](a){const k=a36i,b=a['join']('\x20')[k(0xd1)](),c=this[k(0xe8)]['currentLocation'];if(!c[k(0xf0)][k(0xf4)](b))return this[k(0xdd)][k(0xeb)](k(0xd4)+b+k(0xd2)+c[k(0xe1)]+k(0xd3)),k(0xda)+b+k(0xfa);const d=c['inventory'][k(0xe6)](b);if(!d)return this[k(0xdd)][k(0xeb)]('Item\x20\x22'+b+k(0xf3)+c[k(0xe1)]+k(0xed)),'There\x20is\x20no\x20item\x20\x22'+b+k(0xfa);try{return this[k(0xe8)]['addInventory'](d),this[k(0xdd)][k(0xeb)]('Successfully\x20added\x20\x22'+b+k(0xee)+this[k(0xe8)][k(0xe1)]+k(0xf5)),c[k(0xf0)][k(0xf8)](b),this[k(0xdd)][k(0xeb)](k(0xf1)+b+'\x22\x20from\x20'+c['name']+k(0xed)),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this['logger'][k(0xeb)]('Error\x20during\x20\x27Take\x27\x20command:\x20'+e[k(0xf9)]),k(0xde)+b+k(0xd6);}}}
1
+ const a36i=a36d;(function(a,b){const f=a36d,c=a();while(!![]){try{const d=parseInt(f(0x1f8))/0x1+parseInt(f(0x20b))/0x2*(parseInt(f(0x209))/0x3)+parseInt(f(0x1ee))/0x4+parseInt(f(0x20f))/0x5*(-parseInt(f(0x1fb))/0x6)+parseInt(f(0x1fd))/0x7+-parseInt(f(0x20e))/0x8+parseInt(f(0x1f6))/0x9*(-parseInt(f(0x1f9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x45200));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a36d;if(c){const e=c[g(0x1f1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const h=a36d;return a36a[h(0x20d)]()['search'](h(0x1fa))[h(0x20d)]()[h(0x1eb)](a36a)[h(0x1ec)](h(0x1fa));});a36a();import{Command}from'./command.js';function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a36d(a,b);}function a36c(){const l=['apply','Error\x20during\x20\x27Take\x27\x20command:\x20','write','name','\x20during\x20\x27Take\x27\x20command.','1521xCzrnk','execute','283494hDnOYS','57990vLWpOo','(((.+)+)+)+$','336wxaonb','\x22\x20to\x20','3430035uomKvd','logger','\x22\x20not\x20retrieved\x20from\x20','message','getItem','Attempting\x20\x27Take\x27\x20command\x20with\x20item:\x20','\x22\x20in\x20this\x20room.','hasItem','\x22\x20from\x20','description','removeItem','inventory','1266ZDIERQ','Item\x20\x22','2136uDzWTx','Successfully\x20added\x20\x22','toString','1542632cdDGME','10205LTsUAX','The\x20item\x20\x22','actor','\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','There\x20is\x20no\x20item\x20\x22','constructor','search','take','1384388paIaOo','\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.','\x22\x20is\x20too\x20heavy\x20to\x20carry.'];a36c=function(){return l;};return a36c();}export class TakeCommand extends Command{static ['verb']=a36i(0x1ed);static [a36i(0x206)]='Pick\x20up\x20an\x20item.';[a36i(0x1f7)](a){const j=a36i;return this['logger']['write'](j(0x202)+a['join']('\x20')),this[j(0x1ed)](a);}[a36i(0x1ed)](a){const k=a36i,b=a['join']('\x20')['toLowerCase'](),c=this[k(0x211)]['currentLocation'];if(!c[k(0x208)][k(0x204)](b))return this[k(0x1fe)]['write'](k(0x20a)+b+'\x22\x20not\x20found\x20in\x20'+c[k(0x1f4)]+k(0x1f5)),k(0x213)+b+'\x22\x20in\x20this\x20room.';const d=c[k(0x208)][k(0x201)](b);if(!d)return this[k(0x1fe)]['write'](k(0x20a)+b+k(0x1ff)+c['name']+'\x20room\x27s\x20inventory\x20during\x20\x27Take\x27\x20command.'),k(0x213)+b+k(0x203);try{return this[k(0x211)]['addInventory'](d),this[k(0x1fe)][k(0x1f3)](k(0x20c)+b+k(0x1fc)+this['actor']['name']+k(0x212)),c['inventory'][k(0x207)](b),this[k(0x1fe)]['write']('Successfully\x20removed\x20\x22'+b+k(0x205)+c[k(0x1f4)]+k(0x1ef)),'You\x20have\x20taken\x20the\x20'+b+'.';}catch(e){return this[k(0x1fe)][k(0x1f3)](k(0x1f2)+e[k(0x200)]),k(0x210)+b+k(0x1f0);}}}
@@ -1 +1 @@
1
- function a37c(){const k=['verb','unequip','30SLKoFK','description','write','toString','constructor','389426ncbGBw','search','20EHXNQZ','490629DGDvhW','(((.+)+)+)+$','actor','1LAnHGa','4561020bdJais','3593170bFMSpm','2651208lMWNGK','\x20unqeuiped\x20','3367098VLNvuj','apply','name','Unequip\x20an\x20item.','execute','logger','toLowerCase','unqeuip','2345568HgyspF'];a37c=function(){return k;};return a37c();}const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0xb2))/0x1*(parseInt(f(0xac))/0x2)+parseInt(f(0xaf))/0x3*(-parseInt(f(0xae))/0x4)+-parseInt(f(0xb4))/0x5+parseInt(f(0xb3))/0x6+-parseInt(f(0xb5))/0x7+parseInt(f(0xa4))/0x8+parseInt(f(0xb7))/0x9*(parseInt(f(0xa7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x6f2b8));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0xb8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0xaa)]()[h(0xad)](h(0xb0))[h(0xaa)]()[h(0xab)](a37a)['search'](h(0xb0));});a37a();import{Command}from'./command.js';function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0xa4;let f=c[d];return f;},a37d(a,b);}export class UnequipCommand extends Command{static [a37i(0xa5)]=a37i(0xbe);static [a37i(0xa8)]=a37i(0xba);[a37i(0xbb)](a){const j=a37i,b=a['join']('\x20')[j(0xbd)](),c=this[j(0xb1)][j(0xa6)](b);return this[j(0xbc)][j(0xa9)]('UnequipCommand:\x20'+this[j(0xb1)][j(0xb9)]+j(0xb6)+c),c;}}
1
+ const a37i=a37d;(function(a,b){const f=a37d,c=a();while(!![]){try{const d=parseInt(f(0xc8))/0x1+-parseInt(f(0xbb))/0x2*(-parseInt(f(0xb4))/0x3)+parseInt(f(0xc2))/0x4+parseInt(f(0xb2))/0x5*(parseInt(f(0xb6))/0x6)+-parseInt(f(0xbe))/0x7*(parseInt(f(0xc3))/0x8)+-parseInt(f(0xbf))/0x9*(-parseInt(f(0xcc))/0xa)+parseInt(f(0xc6))/0xb*(-parseInt(f(0xb7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0xc6c39));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a37d;if(c){const e=c[g(0xba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const h=a37d;return a37a[h(0xbd)]()[h(0xc7)](h(0xb3))[h(0xbd)]()[h(0xc5)](a37a)[h(0xc7)](h(0xb3));});a37a();function a37c(){const k=['1490358ZdHKqK','UnequipCommand:\x20','write','actor','2089590RhusFY','execute','10pLiDpG','(((.+)+)+)+$','3pEwnzA','join','644862jmDyra','8484nJMOFw','name','toLowerCase','apply','1285694wKuXng','logger','toString','63sXDcaY','9OGzQia','verb','description','4188220hBNrYc','630520EjUsbU','\x20unqeuiped\x20','constructor','32373lowEGb','search'];a37c=function(){return k;};return a37c();}function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0xb1;let f=c[d];return f;},a37d(a,b);}import{Command}from'./command.js';export class UnequipCommand extends Command{static [a37i(0xc0)]='unqeuip';static [a37i(0xc1)]='Unequip\x20an\x20item.';[a37i(0xb1)](a){const j=a37i,b=a[j(0xb5)]('\x20')[j(0xb9)](),c=this['actor']['unequip'](b);return this[j(0xbc)][j(0xca)](j(0xc9)+this[j(0xcb)][j(0xb8)]+j(0xc4)+c),c;}}
@@ -1 +1 @@
1
- function a38c(){const m=['\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','35498mGGOCl','actor','name','attemptUnlockExit','274635hkLuIU','exits','UnlockCommand:\x20','write','(((.+)+)+)+$','UnlockCommand:\x20No\x20target\x20specified.','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','toLowerCase','unlockItemOrSolution','287765AflFqM','unlock','logger','verb','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','1089536SXRTjM','currentLocation','1020775jozIEV','30fBeLVM','\x20is\x20attempted\x20to\x20unlock\x20','error','\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20','274704keiDAh','hasItem','inventory','toString','search','There\x27s\x20no\x20door\x20named\x20\x22','.\x20Result:\x20','has','12sfffEU','\x22\x20here.','constructor','5088069ItOTzA'];a38c=function(){return m;};return a38c();}const a38j=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=parseInt(h(0x1d5))/0x1+-parseInt(h(0x1d1))/0x2*(-parseInt(h(0x1f2))/0x3)+parseInt(h(0x1ea))/0x4+-parseInt(h(0x1de))/0x5*(-parseInt(h(0x1e6))/0x6)+parseInt(h(0x1e5))/0x7+-parseInt(h(0x1e3))/0x8+-parseInt(h(0x1f5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x23bbc));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const i=a38d;return a38a['toString']()[i(0x1ee)](i(0x1d9))[i(0x1ed)]()[i(0x1f4)](a38a)[i(0x1ee)]('(((.+)+)+)+$');});function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x1d1;let f=c[d];return f;},a38d(a,b);}a38a();import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a38j(0x1e1)]='unlock';static ['description']='Unlock\x20a\x20door.';['execute'](a){const k=a38j;return this[k(0x1df)](a);}[a38j(0x1df)](a){const l=a38j;if(a['length']===0x0)return this['logger'][l(0x1e8)](l(0x1da)),l(0x1e2);const b=a[0x0]['toLowerCase'](),c=this[l(0x1d2)][l(0x1e4)];if(this['isValidDirection'](b)&&c[l(0x1d6)][l(0x1f1)](b)){const d=c['exits']['get'](b);if(d instanceof Door){const e=d[l(0x1dd)]?.[l(0x1dc)]();if(e&&this[l(0x1d2)][l(0x1ec)][l(0x1eb)](e)){const f=this[l(0x1d2)][l(0x1ec)]['getItem'](e);if(f){const g=c[l(0x1d4)](b,f['name']);return this[l(0x1e0)][l(0x1d8)]('UnlockCommand:\x20'+this['actor'][l(0x1d3)]+l(0x1e7)+b+l(0x1f0)+g),g;}}return this[l(0x1e0)][l(0x1d8)](l(0x1d7)+this[l(0x1d2)]['name']+l(0x1e9)+b+'.'),l(0x1db);}else return this[l(0x1e0)][l(0x1d8)](l(0x1d7)+b+l(0x1f6)+c['name']+'.'),l(0x1ef)+b+l(0x1f3);}else return this[l(0x1e0)][l(0x1d8)](l(0x1d7)+b+l(0x1f6)+c[l(0x1d3)]+'.'),l(0x1ef)+b+l(0x1f3);}}
1
+ function a38c(){const l=['267603xNaQEg','1276KPWdmN','40EmfxYr','exits','toString','unlock','45881UiIGBR','\x22\x20here.','currentLocation','UnlockCommand:\x20','attemptUnlockExit','length','UnlockCommand:\x20No\x20target\x20specified.','There\x27s\x20no\x20door\x20named\x20\x22','\x20is\x20not\x20a\x20valid\x20exit\x20in\x20','6132VDLhxr','logger','verb','\x20is\x20attempted\x20to\x20unlock\x20','Please\x20specify\x20which\x20door\x20you\x20want\x20to\x20unlock.','24uPUMpn','execute','30588jQZEjb','write','.\x20Result:\x20','Unlock\x20a\x20door.','error','has','name','80584SvTDHX','7991217rPZRKp','inventory','constructor','14rrLcLa','8373410bPYHLR','actor','You\x20don\x27t\x20have\x20the\x20key\x20or\x20solution\x20to\x20unlock\x20this\x20door.','392EUwiZt','(((.+)+)+)+$','getItem','unlockItemOrSolution','description','search'];a38c=function(){return l;};return a38c();}const a38j=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=-parseInt(h(0xee))/0x1*(-parseInt(h(0xde))/0x2)+parseInt(h(0xe8))/0x3*(parseInt(h(0xfc))/0x4)+parseInt(h(0xea))/0x5*(-parseInt(h(0xf7))/0x6)+-parseInt(h(0x105))/0x7*(parseInt(h(0xe2))/0x8)+-parseInt(h(0x106))/0x9+parseInt(h(0xdf))/0xa+-parseInt(h(0xe9))/0xb*(-parseInt(h(0xfe))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x81345));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const i=a38d;return a38a[i(0xec)]()[i(0xe7)]('(((.+)+)+)+$')[i(0xec)]()[i(0x108)](a38a)[i(0xe7)](i(0xe3));});a38a();function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0xde;let f=c[d];return f;},a38d(a,b);}import{Door}from'../models/door.js';import{Command}from'./command.js';export class UnlockCommand extends Command{static [a38j(0xf9)]='unlock';static [a38j(0xe6)]=a38j(0x101);[a38j(0xfd)](a){return this['unlock'](a);}[a38j(0xed)](a){const k=a38j;if(a[k(0xf3)]===0x0)return this[k(0xf8)][k(0x102)](k(0xf4)),k(0xfb);const b=a[0x0]['toLowerCase'](),c=this[k(0xe0)][k(0xf0)];if(this['isValidDirection'](b)&&c[k(0xeb)][k(0x103)](b)){const d=c[k(0xeb)]['get'](b);if(d instanceof Door){const e=d[k(0xe5)]?.['toLowerCase']();if(e&&this[k(0xe0)][k(0x107)]['hasItem'](e)){const f=this[k(0xe0)][k(0x107)][k(0xe4)](e);if(f){const g=c[k(0xf2)](b,f[k(0x104)]);return this[k(0xf8)][k(0xff)](k(0xf1)+this[k(0xe0)][k(0x104)]+k(0xfa)+b+k(0x100)+g),g;}}return this[k(0xf8)]['write'](k(0xf1)+this[k(0xe0)]['name']+'\x20does\x20not\x20have\x20the\x20necessary\x20key\x20for\x20'+b+'.'),k(0xe1);}else return this[k(0xf8)][k(0xff)](k(0xf1)+b+k(0xf6)+c[k(0x104)]+'.'),k(0xf5)+b+k(0xef);}else return this[k(0xf8)][k(0xff)](k(0xf1)+b+k(0xf6)+c[k(0x104)]+'.'),k(0xf5)+b+k(0xef);}}
@@ -1 +1 @@
1
- function a39c(){const l=['hasItem','toString','You\x20don\x27t\x20have\x20the\x20',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','search','\x20to\x20use.','logger','execute','name','Use\x20an\x20item.','826507McSDPb','\x20in\x20this\x20way.','32977EOKJgT','UseCommand:\x20','12107736vgwPFT','join','\x20attempted\x20to\x20use\x20','3061344WzYTRe','description','(((.+)+)+)+$','actor','\x27s\x20inventory.','inventory','verb','3vyagHp','function','use','585008mgBRrH','\x20used\x20','\x20not\x20retrieved\x20from\x20','10ZsOndU','You\x20can\x27t\x20use\x20the\x20','constructor','141308qFGRJP','getItem','8209335mbjzBa','1338kuuEis','toLowerCase','write','apply'];a39c=function(){return l;};return a39c();}const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0xc7))/0x1+parseInt(f(0xce))/0x2+parseInt(f(0xd5))/0x3*(-parseInt(f(0xde))/0x4)+-parseInt(f(0xe0))/0x5+parseInt(f(0xe1))/0x6*(-parseInt(f(0xc9))/0x7)+-parseInt(f(0xd8))/0x8+-parseInt(f(0xcb))/0x9*(-parseInt(f(0xdb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xdc1ea));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a['toString']()[h(0xc1)](h(0xd0))[h(0xe6)]()[h(0xdd)](a39a)['search'](h(0xd0));});a39a();import{Command}from'./command.js';function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0xbf;let f=c[d];return f;},a39d(a,b);}export class UseCommand extends Command{static [a39i(0xd4)]=a39i(0xd7);static [a39i(0xcf)]=a39i(0xc6);[a39i(0xc4)](a){const j=a39i;return this[j(0xd7)](a);}[a39i(0xd7)](a){const k=a39i,b=a[k(0xcc)]('\x20')[k(0xe2)]();if(!this['actor']['inventory'][k(0xe5)](b))return this['logger']['write'](k(0xca)+this[k(0xd1)][k(0xc5)]+k(0xcd)+b+k(0xc0)),k(0xbf)+b+k(0xc2);const c=this['actor'][k(0xd3)][k(0xdf)](b);if(!c)return this['logger']['write']('UseCommand:\x20'+b+k(0xda)+this[k(0xd1)][k(0xc5)]+k(0xd2)),k(0xbf)+b+k(0xc2);if(typeof c[k(0xd7)]===k(0xd6)){const d=c[k(0xd7)]();return this['logger'][k(0xe3)](k(0xca)+this['actor']['name']+k(0xd9)+b+'.'),d;}else return this[k(0xc3)][k(0xe3)](k(0xca)+b+'\x20doesn\x27t\x20have\x20a\x20use\x20method.'),k(0xdc)+b+k(0xc8);}}
1
+ const a39i=a39d;(function(a,b){const f=a39d,c=a();while(!![]){try{const d=parseInt(f(0x1ee))/0x1*(-parseInt(f(0x207))/0x2)+-parseInt(f(0x203))/0x3+-parseInt(f(0x205))/0x4*(-parseInt(f(0x1f9))/0x5)+parseInt(f(0x1fb))/0x6+parseInt(f(0x208))/0x7+-parseInt(f(0x20a))/0x8+-parseInt(f(0x1f2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xd679b));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a39d;if(c){const e=c[g(0x20c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const h=a39d;return a39a[h(0x1fd)]()[h(0x1f6)]('(((.+)+)+)+$')[h(0x1fd)]()[h(0x1ff)](a39a)[h(0x1f6)]('(((.+)+)+)+$');});function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a39d(a,b);}a39a();function a39c(){const l=['1469870mkyjoX','\x20attempted\x20to\x20use\x20','4134552CrfwYo','write','toString','use','constructor','\x20not\x20retrieved\x20from\x20','\x20doesn\x27t\x20have\x20a\x20use\x20method.','\x20to\x20use.','172182lvffry','join','4vJXrWn','\x27s\x20inventory.','14198acuIJL','9677780eNTnMT','verb','4669936SVturG','function','apply','inventory','execute','You\x20don\x27t\x20have\x20the\x20','24UzeeuI','UseCommand:\x20','You\x20can\x27t\x20use\x20the\x20','getItem','6080427WqkNmr',',\x20which\x20is\x20not\x20in\x20their\x20inventory.','logger','\x20used\x20','search','name','actor'];a39c=function(){return l;};return a39c();}import{Command}from'./command.js';export class UseCommand extends Command{static [a39i(0x209)]='use';static ['description']='Use\x20an\x20item.';[a39i(0x1ec)](a){const j=a39i;return this[j(0x1fe)](a);}[a39i(0x1fe)](a){const k=a39i,b=a[k(0x204)]('\x20')['toLowerCase']();if(!this[k(0x1f8)][k(0x20d)]['hasItem'](b))return this[k(0x1f4)][k(0x1fc)]('UseCommand:\x20'+this[k(0x1f8)][k(0x1f7)]+k(0x1fa)+b+k(0x1f3)),k(0x1ed)+b+'\x20to\x20use.';const c=this[k(0x1f8)][k(0x20d)][k(0x1f1)](b);if(!c)return this[k(0x1f4)]['write'](k(0x1ef)+b+k(0x200)+this[k(0x1f8)]['name']+k(0x206)),k(0x1ed)+b+k(0x202);if(typeof c[k(0x1fe)]===k(0x20b)){const d=c[k(0x1fe)]();return this['logger'][k(0x1fc)]('UseCommand:\x20'+this['actor'][k(0x1f7)]+k(0x1f5)+b+'.'),d;}else return this['logger'][k(0x1fc)](k(0x1ef)+b+k(0x201)),k(0x1f0)+b+'\x20in\x20this\x20way.';}}
@@ -1 +1 @@
1
- function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x142;let f=c[d];return f;},a40d(a,b);}function a40c(){const l=['7783158tdFPpT','5FwSwVZ','constructor','toString','search','createCommand','1221496XeLVSS','473022kZbEzT','7zFLPya','11PSghfd','getAllRegisteredCommands','commandMap','290ZCPbbK','13486452Hanwae','10883032rRSdSn','6dYGxal','915241FuOStm','(((.+)+)+)+$','3347220GoXjUe'];a40c=function(){return l;};return a40c();}const a40h=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x14a))/0x1+parseInt(f(0x14c))/0x2+parseInt(f(0x149))/0x3*(parseInt(f(0x153))/0x4)+-parseInt(f(0x14e))/0x5*(parseInt(f(0x14d))/0x6)+parseInt(f(0x142))/0x7*(-parseInt(f(0x148))/0x8)+parseInt(f(0x154))/0x9*(parseInt(f(0x146))/0xa)+-parseInt(f(0x143))/0xb*(parseInt(f(0x147))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xe6102));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const g=a40d;return a40a[g(0x150)]()[g(0x151)](g(0x14b))[g(0x150)]()[g(0x14f)](a40a)['search'](g(0x14b));});a40a();export class CommandFactory{static [a40h(0x145)]={};static['registerCommand'](a,b){const i=a40h;this[i(0x145)][a]=b;}static[a40h(0x152)](a,b){const j=a40h,c=this[j(0x145)][a];if(c)return new c(b);return null;}static[a40h(0x144)](){const k=a40h;return this[k(0x145)];}}
1
+ function a40c(){const l=['54664ikAPjs','search','(((.+)+)+)+$','462tnZrNT','12JnHEDo','20uYvnhB','24814257DYapou','7874471ZkfPaw','5nsXqJs','constructor','getAllRegisteredCommands','15JFxTho','10ztwYbF','commandMap','toString','1661028EJSKJt','apply','510562gAkAcM','253755thylml','registerCommand','436194WGPPIg'];a40c=function(){return l;};return a40c();}const a40i=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0xb0))/0x1*(-parseInt(f(0xa4))/0x2)+parseInt(f(0xa5))/0x3*(parseInt(f(0xad))/0x4)+-parseInt(f(0x9e))/0x5*(-parseInt(f(0xa2))/0x6)+parseInt(f(0xab))/0x7*(-parseInt(f(0xa8))/0x8)+-parseInt(f(0xa7))/0x9*(parseInt(f(0x9f))/0xa)+-parseInt(f(0xaf))/0xb+parseInt(f(0xac))/0xc*(parseInt(f(0xae))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xa3b36));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a40d;if(c){const e=c[g(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const h=a40d;return a40a[h(0xa1)]()[h(0xa9)](h(0xaa))[h(0xa1)]()[h(0xb1)](a40a)[h(0xa9)](h(0xaa));});a40a();function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x9e;let f=c[d];return f;},a40d(a,b);}export class CommandFactory{static [a40i(0xa0)]={};static[a40i(0xa6)](a,b){this['commandMap'][a]=b;}static['createCommand'](a,b){const j=a40i,c=this[j(0xa0)][a];if(c)return new c(b);return null;}static[a40i(0xb2)](){const k=a40i;return this[k(0xa0)];}}
@@ -1 +1 @@
1
- const a41i=a41d;(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0x124))/0x1+parseInt(f(0x10c))/0x2*(parseInt(f(0x112))/0x3)+-parseInt(f(0x11d))/0x4+parseInt(f(0x117))/0x5+parseInt(f(0x113))/0x6+parseInt(f(0x10a))/0x7*(-parseInt(f(0x11c))/0x8)+parseInt(f(0x122))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x8cdf6));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0x10f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0x116)]()[h(0x11e)]('(((.+)+)+)+$')[h(0x116)]()[h(0x109)](a41a)[h(0x11e)](h(0x118));});a41a();function a41c(){const o=['rifle','content','puzzle','setPuzzle','inventory','toUpperCase','constructor','406XxRQga','items','45834xoZwPH','createItem','gauntlets','apply','book','createRoom','24wjmoBx','4646898ZaZXjV','name','helmet','toString','1097325AaGvKM','(((.+)+)+)+$','convertToRoomConfig','forEach','roomType','44552WUqrrE','2827448rrsrmv','search','legarmor','INSIDE','isStartRoom','7383735ZLgaWA','key','390821qGjzZJ','description','boots'];a41c=function(){return o;};return a41c();}import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x108;let f=c[d];return f;},a41d(a,b);}export class RoomFactory{[a41i(0x111)](a){const j=a41i,b=this[j(0x119)](a),c=new Room(b);if(a[j(0x10b)]){const d=new Inventory();a[j(0x10b)][j(0x11a)](e=>{const k=j;d['addItem'](this[k(0x10d)](e));}),c[j(0x12b)]=d;}return a['puzzle']&&c[j(0x12a)](this['createPuzzle'](a[j(0x129)])),c;}[a41i(0x10d)](a){const l=a41i;switch(a['type']){case l(0x123):return new Key(a[l(0x114)],a['description']);case l(0x110):return new Book(a[l(0x114)],a[l(0x125)],a[l(0x128)]);case'sword':return new Sword(a['name'],a['description']);case l(0x127):return new Rifle(a[l(0x114)],a[l(0x125)]);case l(0x115):return new Helmet(a[l(0x114)],a[l(0x125)]);case'bodyarmor':return new BodyArmor(a[l(0x114)],a[l(0x125)]);case l(0x11f):return new LegArmor(a[l(0x114)],a['description']);case l(0x126):return new Boots(a[l(0x114)],a[l(0x125)]);case'gloves':return new Gloves(a[l(0x114)],a['description']);case l(0x10e):return new Gauntlets(a[l(0x114)],a[l(0x125)]);default:return new BasicItem(a[l(0x114)],a[l(0x125)]);}}['createPuzzle'](a){const m=a41i,b=this[m(0x10d)](a['rewardItem']);return new Puzzle({...a,'rewardItem':b});}[a41i(0x119)](a){const n=a41i,b=a['roomType']&&RoomType[a[n(0x11b)][n(0x108)]()]?RoomType[a[n(0x11b)]['toUpperCase']()]:RoomType[n(0x120)];return{'name':a[n(0x114)],'description':a[n(0x125)],'isStartRoom':a[n(0x121)],'roomType':b};}}
1
+ const a41i=a41d;function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0xd6;let f=c[d];return f;},a41d(a,b);}(function(a,b){const f=a41d,c=a();while(!![]){try{const d=-parseInt(f(0xdf))/0x1*(-parseInt(f(0xdd))/0x2)+parseInt(f(0xe6))/0x3*(parseInt(f(0xe2))/0x4)+-parseInt(f(0xfe))/0x5*(parseInt(f(0xf2))/0x6)+-parseInt(f(0xd8))/0x7*(parseInt(f(0xf1))/0x8)+-parseInt(f(0xd7))/0x9*(-parseInt(f(0xfd))/0xa)+parseInt(f(0xed))/0xb*(parseInt(f(0xdb))/0xc)+-parseInt(f(0xf8))/0xd*(parseInt(f(0xf3))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0xd79ab));function a41c(){const o=['forEach','4UbSBSY','bodyarmor','search','gauntlets','638202UVAYrl','(((.+)+)+)+$','createItem','key','sword','apply','roomType','77klAAPT','gloves','puzzle','name','739400KLvmbv','4722zFjSjg','4075498GajNPy','toString','constructor','createPuzzle','addItem','39DmYBUf','createRoom','description','setPuzzle','content','1006090NQWhRY','4915NZzKzP','items','convertToRoomConfig','99xEzrTf','42ZAhsgv','rewardItem','INSIDE','74748tiFsGB','boots','60406TmeSaU','toUpperCase','57JYncNz','rifle'];a41c=function(){return o;};return a41c();}const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a41d;if(c){const e=c[g(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const h=a41d;return a41a[h(0xf4)]()[h(0xe4)](h(0xe7))['toString']()[h(0xf5)](a41a)['search'](h(0xe7));});a41a();import{Room,Puzzle,Inventory}from'../models/_index.js';import{RoomType}from'../types/enums.js';import{Key,Book,BasicItem,Sword,Rifle,Helmet,BodyArmor,LegArmor,Boots,Gloves,Gauntlets}from'../scenes/items.js';export class RoomFactory{[a41i(0xf9)](a){const j=a41i,b=this[j(0xd6)](a),c=new Room(b);if(a[j(0xff)]){const d=new Inventory();a[j(0xff)][j(0xe1)](e=>{const k=j;d[k(0xf7)](this[k(0xe8)](e));}),c['inventory']=d;}return a[j(0xef)]&&c[j(0xfb)](this[j(0xf6)](a['puzzle'])),c;}[a41i(0xe8)](a){const l=a41i;switch(a['type']){case l(0xe9):return new Key(a[l(0xf0)],a[l(0xfa)]);case'book':return new Book(a[l(0xf0)],a['description'],a[l(0xfc)]);case l(0xea):return new Sword(a[l(0xf0)],a[l(0xfa)]);case l(0xe0):return new Rifle(a['name'],a[l(0xfa)]);case'helmet':return new Helmet(a[l(0xf0)],a[l(0xfa)]);case l(0xe3):return new BodyArmor(a['name'],a[l(0xfa)]);case'legarmor':return new LegArmor(a['name'],a[l(0xfa)]);case l(0xdc):return new Boots(a[l(0xf0)],a[l(0xfa)]);case l(0xee):return new Gloves(a[l(0xf0)],a[l(0xfa)]);case l(0xe5):return new Gauntlets(a[l(0xf0)],a[l(0xfa)]);default:return new BasicItem(a[l(0xf0)],a[l(0xfa)]);}}[a41i(0xf6)](a){const m=a41i,b=this[m(0xe8)](a[m(0xd9)]);return new Puzzle({...a,'rewardItem':b});}[a41i(0xd6)](a){const n=a41i,b=a[n(0xec)]&&RoomType[a[n(0xec)][n(0xde)]()]?RoomType[a[n(0xec)][n(0xde)]()]:RoomType[n(0xda)];return{'name':a[n(0xf0)],'description':a[n(0xfa)],'isStartRoom':a['isStartRoom'],'roomType':b};}}
@@ -1 +1 @@
1
- const a42k=a42d;function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xf6;let f=c[d];return f;},a42d(a,b);}(function(a,b){const h=a42d,c=a();while(!![]){try{const d=-parseInt(h(0x108))/0x1*(-parseInt(h(0x11b))/0x2)+-parseInt(h(0x11d))/0x3+parseInt(h(0x10a))/0x4+parseInt(h(0x12e))/0x5*(parseInt(h(0x122))/0x6)+parseInt(h(0x109))/0x7*(-parseInt(h(0xf6))/0x8)+-parseInt(h(0x12b))/0x9+parseInt(h(0x125))/0xa*(parseInt(h(0xff))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xc6fdf));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0x105)]()[j(0x119)]('(((.+)+)+)+$')[j(0x105)]()[j(0x106)](a42a)[j(0x119)](j(0x10c));});a42a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';function a42c(){const s=['say','getHelpMessage','Available\x20Commands:\x0a','initialize','use','equip','6435gPQvZs','-\x20clear:\x20Clear\x20the\x20screen.\x0a','scene','getRooms','maka','look','toString','constructor','name','1281364EVKaPA','1389381bIwvHz','5224420fEIBJx','currentRoom','(((.+)+)+)+$','determineStartRoom','currentLocation','help','getAllRegisteredCommands','-\x20quit:\x20Exit\x20the\x20game.\x0a','slice','getWelcomeMessage','getInstance','solve','createCommand','clear','handleInput','search','player','2LtxuZm','execute','688182KfEVYG','trim','rooms','instance','unlock','2143050veFxiJ','registerCommand','quit','14940SxNDle','registerCommands','apply','unequip','hasOwnProperty','split','14249439vQuEJz','drop','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','5QvzVzL','48TFgvUi','Welcome,\x20','getDescription'];a42c=function(){return s;};return a42c();}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 [a42k(0x120)];[a42k(0x101)];[a42k(0x11a)];[a42k(0x10b)];[a42k(0x11f)];constructor(a,b){const l=a42k;this[l(0x11a)]=a,this[l(0x101)]=new Scene({'player':a,'roomConfiguration':b}),this[l(0x101)][l(0xfc)](),this[l(0x11a)][l(0x10e)]=this[l(0x10d)](),this[l(0x126)]();}[a42k(0x126)](){const m=a42k;CommandFactory[m(0x123)](m(0x104),LookCommand),CommandFactory[m(0x123)]('go',GoCommand),CommandFactory[m(0x123)]('take',TakeCommand),CommandFactory[m(0x123)](m(0xfd),UseCommand),CommandFactory[m(0x123)](m(0xfe),EquipCommand),CommandFactory[m(0x123)](m(0x128),UnequipCommand),CommandFactory[m(0x123)](m(0x115),SolveCommand),CommandFactory[m(0x123)](m(0x12c),DropCommand),CommandFactory[m(0x123)](m(0x121),UnlockCommand),CommandFactory[m(0x123)]('lock',LockCommand),CommandFactory[m(0x123)](m(0x119),SearchCommand),CommandFactory['registerCommand'](m(0xf9),SayCommand);}['determineStartRoom'](){const n=a42k;return this[n(0x101)][n(0x10d)]();}[a42k(0x113)](){const o=a42k;return o(0xf7)+this['player'][o(0x107)];}static[a42k(0x114)](a,b){const p=a42k;return!Game[p(0x120)]&&(Game['instance']=new Game(a,b)),Game['instance'];}[a42k(0x118)](a){const q=a42k,b=a[q(0x11e)]()[q(0x12a)]('\x20'),c=b[0x0]['toLowerCase'](),d=b[q(0x112)](0x1);if(c===q(0x124))return null;if(c===q(0x103))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c===q(0x10f))return this[q(0xfa)]();if(c===q(0x117))return'';const e={'actor':this[q(0x11a)],'rooms':this[q(0x101)][q(0x102)](),'scene':this[q(0x101)]},f=CommandFactory[q(0x116)](c,e);if(f){const g=f[q(0x11c)](d);return g;}return q(0x12d)+c+'\x22.';}[a42k(0xfa)](){const r=a42k,a=CommandFactory[r(0x110)]();let b=r(0xfb);for(const c in a){if(a[r(0x129)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0xf8)]()+'\x0a';}}return b+=r(0x100),b+=r(0x111),b;}}
1
+ const a42k=a42d;(function(a,b){const h=a42d,c=a();while(!![]){try{const d=-parseInt(h(0x9f))/0x1+parseInt(h(0xb1))/0x2+parseInt(h(0xcb))/0x3+parseInt(h(0xa2))/0x4+parseInt(h(0xbb))/0x5+parseInt(h(0xa1))/0x6+-parseInt(h(0xbf))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x533a0));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a42d;if(c){const e=c[i(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const j=a42d;return a42a[j(0xaf)]()[j(0xc0)](j(0xa0))[j(0xaf)]()[j(0xbd)](a42a)[j(0xc0)](j(0xa0));});a42a();import{Scene}from'./models/scene.js';import{LookCommand}from'./commands/look.js';import{TakeCommand}from'./commands/take.js';import{GoCommand}from'./commands/go.js';import{UseCommand}from'./commands/use.js';import{EquipCommand}from'./commands/equip.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x9d;let f=c[d];return f;},a42d(a,b);}import{UnequipCommand}from'./commands/unequip.js';import{SolveCommand}from'./commands/solve.js';import{DropCommand}from'./commands/drop.js';import{UnlockCommand}from'./commands/unlock.js';function a42c(){const s=['search','initialize','getAllRegisteredCommands','createCommand','scene','getDescription','unlock','currentLocation','Welcome,\x20','hasOwnProperty','registerCommands','1929333iIQHPL','execute','split','getRooms','getHelpMessage','610316MhJxdJ','(((.+)+)+)+$','1616208ZgREXw','2093516WFIRaR','use','slice','name','getInstance','take','apply','getWelcomeMessage','determineStartRoom','solve','look','handleInput','-\x20clear:\x20Clear\x20the\x20screen.\x0a','toString','quit','572pwrbnl','trim','registerCommand','maka','instance','drop','equip','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','player','currentRoom','2515860JrsutZ','lock','constructor','toLowerCase','6916728ZPbMuA'];a42c=function(){return s;};return a42c();}import{LockCommand}from'./commands/lock.js';import{SearchCommand}from'./commands/search.js';import{SayCommand}from'./commands/say.js';import{CommandFactory}from'./factories/commandF.js';export default class Game{static [a42k(0xb5)];[a42k(0xc4)];[a42k(0xb9)];[a42k(0xba)];['rooms'];constructor(a,b){const l=a42k;this[l(0xb9)]=a,this['scene']=new Scene({'player':a,'roomConfiguration':b}),this[l(0xc4)][l(0xc1)](),this[l(0xb9)][l(0xc7)]=this[l(0xaa)](),this[l(0xca)]();}[a42k(0xca)](){const m=a42k;CommandFactory[m(0xb3)](m(0xac),LookCommand),CommandFactory[m(0xb3)]('go',GoCommand),CommandFactory[m(0xb3)](m(0xa7),TakeCommand),CommandFactory[m(0xb3)](m(0xa3),UseCommand),CommandFactory[m(0xb3)](m(0xb7),EquipCommand),CommandFactory['registerCommand']('unequip',UnequipCommand),CommandFactory['registerCommand'](m(0xab),SolveCommand),CommandFactory[m(0xb3)](m(0xb6),DropCommand),CommandFactory[m(0xb3)](m(0xc6),UnlockCommand),CommandFactory[m(0xb3)](m(0xbc),LockCommand),CommandFactory[m(0xb3)](m(0xc0),SearchCommand),CommandFactory[m(0xb3)]('say',SayCommand);}[a42k(0xaa)](){const n=a42k;return this[n(0xc4)][n(0xaa)]();}[a42k(0xa9)](){const o=a42k;return o(0xc8)+this[o(0xb9)][o(0xa5)];}static[a42k(0xa6)](a,b){const p=a42k;return!Game['instance']&&(Game[p(0xb5)]=new Game(a,b)),Game['instance'];}[a42k(0xad)](a){const q=a42k,b=a[q(0xb2)]()[q(0xcd)]('\x20'),c=b[0x0][q(0xbe)](),d=b[q(0xa4)](0x1);if(c===q(0xb0))return null;if(c===q(0xb4))return'You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit';if(c==='help')return this[q(0x9e)]();if(c==='clear')return'';const e={'actor':this[q(0xb9)],'rooms':this[q(0xc4)][q(0x9d)](),'scene':this['scene']},f=CommandFactory[q(0xc3)](c,e);if(f){const g=f[q(0xcc)](d);return g;}return q(0xb8)+c+'\x22.';}[a42k(0x9e)](){const r=a42k,a=CommandFactory[r(0xc2)]();let b='Available\x20Commands:\x0a';for(const c in a){if(a[r(0xc9)](c)){const d=a[c];b+='-\x20'+c+':\x20'+d[r(0xc5)]()+'\x0a';}}return b+=r(0xae),b+='-\x20quit:\x20Exit\x20the\x20game.\x0a',b;}}
@@ -1 +1 @@
1
- (function(a,b){var f=a43d,c=a();while(!![]){try{var d=parseInt(f(0xf3))/0x1+-parseInt(f(0xf8))/0x2+parseInt(f(0xf7))/0x3+parseInt(f(0xf5))/0x4*(-parseInt(f(0xfe))/0x5)+-parseInt(f(0xf6))/0x6+-parseInt(f(0xff))/0x7*(-parseInt(f(0xfa))/0x8)+-parseInt(f(0xfd))/0x9*(parseInt(f(0xf4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x46f81));var a43b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a43d;if(c){var e=c[g(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){var h=a43d;return a43a['toString']()[h(0xfc)](h(0x100))[h(0xfb)]()[h(0xf9)](a43a)['search']('(((.+)+)+)+$');});a43a();export*from'./door.js';export*from'./inventory.js';export*from'./item.js';function a43c(){var i=['40552HrCJQt','constructor','33616exfphx','toString','search','89046QWKVfN','713095DuJsgN','826HpUjvM','(((.+)+)+)+$','apply','306079bncypO','290bChsSs','8JufRoj','1219788WFFuht','853536fBujir'];a43c=function(){return i;};return a43c();}export*from'./npc.js';function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0xf3;var f=c[d];return f;},a43d(a,b);}export*from'./player.js';export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
1
+ (function(a,b){var f=a43d,c=a();while(!![]){try{var d=-parseInt(f(0x15b))/0x1*(parseInt(f(0x154))/0x2)+-parseInt(f(0x157))/0x3*(parseInt(f(0x152))/0x4)+-parseInt(f(0x159))/0x5*(-parseInt(f(0x151))/0x6)+parseInt(f(0x15e))/0x7+parseInt(f(0x156))/0x8+-parseInt(f(0x15f))/0x9+-parseInt(f(0x15a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0xc1d9a));var a43b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a43d;if(c){var e=c[g(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){var h=a43d;return a43a[h(0x153)]()[h(0x15c)](h(0x15d))[h(0x153)]()[h(0x158)](a43a)['search'](h(0x15d));});a43a();export*from'./door.js';export*from'./inventory.js';function a43c(){var i=['2870pBnUcE','search','(((.+)+)+)+$','8200297zzlMjh','3155247YqxSAn','132slVIoq','140684EnPvEM','toString','698tJoPDm','apply','8017288VOjxOx','123datGqi','constructor','345365ReLrep','1050040saYQMj'];a43c=function(){return i;};return a43c();}export*from'./item.js';export*from'./npc.js';export*from'./player.js';function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0x151;var f=c[d];return f;},a43d(a,b);}export*from'./puzzle.js';export*from'./room.js';export*from'./scene.js';
@@ -1 +1 @@
1
- function a44c(){var n=['attemptUnlock','roomA','\x20and\x20','getInstance','Door\x20unlocked:\x20','.\x20Is\x20Locked:\x20','66UrcAGI','name','.\x20Used:\x20','toString','write','247212awjmDT','checkIfLocked','(((.+)+)+)+$','roomB','To\x20','isLocked','22632qhAQQm','getOtherSide','1746235cmcgZS','1339356xfmlsl','62588aWdcCc','apply','logger','1127GjlQut','6573447WiZfWJ','384398LEKqOg','search','checkIfLockable','constructor','unlockItemOrSolution','Failed\x20to\x20unlock\x20door:\x20'];a44c=function(){return n;};return a44c();}function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0x86;var f=c[d];return f;},a44d(a,b);}var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=parseInt(f(0x88))/0x1+-parseInt(f(0xa3))/0x2*(parseInt(f(0x94))/0x3)+parseInt(f(0x99))/0x4+-parseInt(f(0xa1))/0x5+-parseInt(f(0xa2))/0x6+-parseInt(f(0x86))/0x7*(-parseInt(f(0x9f))/0x8)+parseInt(f(0x87))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x5a9a8));var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0xa4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a['toString']()['search'](h(0x9b))[h(0x97)]()[h(0x8b)](a44a)[h(0x89)](h(0x9b));});a44a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];['roomB'];[a44i(0x9e)];['unlockItemOrSolution'];[a44i(0x95)];[a44i(0xa5)];['isLockable'];constructor(a){var j=a44i;super(),this[j(0x8f)]=a[j(0x8f)],this[j(0x9c)]=a['roomB'],this[j(0x9e)]=a[j(0x9e)]||![],this[j(0x8c)]=a[j(0x8c)],this[j(0x95)]=a[j(0x95)]?capitalCase(a[j(0x95)]):j(0x9d)+a[j(0x9c)][j(0x95)],this[j(0xa5)]=Logger[j(0x91)](),this['isLockable']=!!a[j(0x8c)],this[j(0xa5)][j(0x98)]('Door\x20created\x20between\x20'+this[j(0x8f)]['name']+j(0x90)+this[j(0x9c)]['name']+j(0x93)+this[j(0x9e)]);}[a44i(0xa0)](a){var k=a44i;return this[k(0x8f)]===a?this[k(0x9c)]:this[k(0x8f)];}[a44i(0x8e)](a){var l=a44i;if(this['isLocked']&&this[l(0x8c)]&&this['unlockItemOrSolution']===a)return this[l(0x9e)]=![],this[l(0xa5)][l(0x98)](l(0x92)+this['name']+l(0x96)+a),!![];return this[l(0xa5)][l(0x98)](l(0x8d)+this[l(0x95)]+l(0x96)+a),![];}[a44i(0x9a)](){var m=a44i;return this[m(0x9e)];}[a44i(0x8a)](){return this['isLockable'];}}
1
+ var a44i=a44d;(function(a,b){var f=a44d,c=a();while(!![]){try{var d=-parseInt(f(0x161))/0x1*(-parseInt(f(0x157))/0x2)+-parseInt(f(0x166))/0x3+parseInt(f(0x15b))/0x4+parseInt(f(0x155))/0x5+parseInt(f(0x163))/0x6+-parseInt(f(0x159))/0x7+parseInt(f(0x158))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xeefe1));function a44d(a,b){var c=a44c();return a44d=function(d,e){d=d-0x14e;var f=c[d];return f;},a44d(a,b);}function a44c(){var o=['roomA','isLockable','unlockItemOrSolution','logger','(((.+)+)+)+$','search','checkIfLocked','Door\x20unlocked:\x20','.\x20Used:\x20','3712355NLTPOz','getOtherSide','3214ZudORA','10415328ghJZie','7498225UCbmEq','write','729664tebQuu','checkIfLockable','toString','Failed\x20to\x20unlock\x20door:\x20','isLocked','getInstance','291WDmZYw','name','3806364DjEORZ','roomB','apply','3836238ZAOggw','\x20and\x20'];a44c=function(){return o;};return a44c();}var a44b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a44d;if(c){var e=c[g(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){var h=a44d;return a44a[h(0x15d)]()[h(0x151)]('(((.+)+)+)+$')['toString']()['constructor'](a44a)['search'](h(0x150));});a44a();import{Logger}from'../utilities/logger.js';import{capitalCase}from'change-case';import{AbstractDoor}from'../types/abstracts.js';export class Door extends AbstractDoor{['roomA'];[a44i(0x164)];[a44i(0x15f)];[a44i(0x14e)];[a44i(0x162)];[a44i(0x14f)];[a44i(0x169)];constructor(a){var j=a44i;super(),this[j(0x168)]=a[j(0x168)],this['roomB']=a[j(0x164)],this[j(0x15f)]=a[j(0x15f)]||![],this[j(0x14e)]=a[j(0x14e)],this[j(0x162)]=a[j(0x162)]?capitalCase(a[j(0x162)]):'To\x20'+a[j(0x164)][j(0x162)],this[j(0x14f)]=Logger[j(0x160)](),this[j(0x169)]=!!a[j(0x14e)],this[j(0x14f)][j(0x15a)]('Door\x20created\x20between\x20'+this[j(0x168)][j(0x162)]+j(0x167)+this[j(0x164)][j(0x162)]+'.\x20Is\x20Locked:\x20'+this[j(0x15f)]);}[a44i(0x156)](a){var k=a44i;return this[k(0x168)]===a?this[k(0x164)]:this['roomA'];}['attemptUnlock'](a){var l=a44i;if(this['isLocked']&&this[l(0x14e)]&&this['unlockItemOrSolution']===a)return this[l(0x15f)]=![],this[l(0x14f)][l(0x15a)](l(0x153)+this[l(0x162)]+l(0x154)+a),!![];return this[l(0x14f)][l(0x15a)](l(0x15e)+this[l(0x162)]+l(0x154)+a),![];}[a44i(0x152)](){var m=a44i;return this[m(0x15f)];}[a44i(0x15c)](){var n=a44i;return this[n(0x169)];}}
@@ -1 +1 @@
1
- const a45h=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=-parseInt(f(0xa0))/0x1+-parseInt(f(0xc0))/0x2*(-parseInt(f(0xaf))/0x3)+-parseInt(f(0xb1))/0x4+-parseInt(f(0xae))/0x5*(-parseInt(f(0xc1))/0x6)+parseInt(f(0xb4))/0x7+parseInt(f(0xad))/0x8*(parseInt(f(0xaa))/0x9)+-parseInt(f(0xa2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xdddd6));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[g(0xb7)]()[g(0xa4)](g(0xc4))['toString']()[g(0xa5)](a45a)['search'](g(0xc4));});a45a();import{capitalCase}from'change-case';import{Logger}from'../utilities/logger.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x9c;let f=c[d];return f;},a45d(a,b);}import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a45h(0xba)];['logger'];constructor(){const i=a45h;super(),this[i(0xba)]=new Map(),this[i(0xb9)]=Logger['getInstance']();}['addItem'](a){const j=a45h;this[j(0xba)][j(0xa9)](a[j(0xbc)]['toLowerCase'](),a),this['logger']['write'](j(0x9c)+a[j(0xbc)]+j(0xbe));}[a45h(0xac)](a){const k=a45h,b=this['getItem'](a);if(b)return this[k(0xba)][k(0xb8)](a[k(0xbd)]()),this[k(0xb9)][k(0xa3)](k(0xa1)+a+k(0xab)),b;return this[k(0xb9)][k(0xa3)](k(0xa7)+a+k(0xbf)),null;}[a45h(0xb3)](a){const l=a45h,b=this[l(0xba)][l(0xbb)](a['toLowerCase']()),c=[...this[l(0xba)]['keys']()];return this[l(0xb9)][l(0xa3)]('Checked\x20for\x20item:\x20'+a+l(0x9f)+c[l(0xc3)](',\x20')+l(0xb5)+b+'.'),b;}['getItem'](a){const m=a45h,b=this['items']['get'](a[m(0xbd)]())||null;return b?this[m(0xb9)][m(0xa3)](m(0xa6)+a+'.'):this['logger']['write'](m(0xb0)+a+m(0xbf)),b;}[a45h(0x9e)](){const n=a45h,a=[...this[n(0xba)][n(0x9d)]()],b=a[n(0xa8)](c=>capitalCase(c));return this[n(0xb9)][n(0xa3)](n(0xb6)+b[n(0xc3)](',\x20')+'.'),a;}['getWeight'](){const o=a45h;let a=0x0;for(const b of this[o(0xba)]['values']()){a+=b[o(0xb2)];}return a;}['getAllItems'](){const p=a45h;return[...this[p(0xba)][p(0xc2)]()];}}function a45c(){const q=['35375910AXJckP','write','search','constructor','Retrieved\x20details\x20for\x20item:\x20','Failed\x20to\x20remove\x20item:\x20','map','set','188586qxUXTT','\x20from\x20inventory.','removeItem','192XwLucw','5dWIGSv','53961MtYamc','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','447960KZqLaV','weight','hasItem','11930702KUWQVY','.\x20Exists:\x20','Listed\x20items\x20in\x20inventory:\x20','toString','delete','logger','items','has','name','toLowerCase','\x20to\x20inventory.','.\x20Item\x20not\x20found.','118ImyYSe','10758198sbyuMf','values','join','(((.+)+)+)+$','Added\x20item:\x20','keys','listItems','\x20in\x20','503209wtzmKT','Removed\x20item:\x20'];a45c=function(){return q;};return a45c();}
1
+ const a45i=a45d;(function(a,b){const f=a45d,c=a();while(!![]){try{const d=parseInt(f(0x135))/0x1*(parseInt(f(0x136))/0x2)+-parseInt(f(0x13c))/0x3+-parseInt(f(0x145))/0x4*(-parseInt(f(0x14b))/0x5)+-parseInt(f(0x13a))/0x6+parseInt(f(0x138))/0x7+-parseInt(f(0x147))/0x8+-parseInt(f(0x139))/0x9*(parseInt(f(0x158))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x5c145));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a45d;if(c){const e=c[g(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const h=a45d;return a45a[h(0x157)]()[h(0x140)]('(((.+)+)+)+$')[h(0x157)]()['constructor'](a45a)[h(0x140)](h(0x149));});a45a();import{capitalCase}from'change-case';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x133;let f=c[d];return f;},a45d(a,b);}import{Logger}from'../utilities/logger.js';import{AbstractInventory}from'../types/abstracts.js';export class Inventory extends AbstractInventory{[a45i(0x142)];[a45i(0x141)];constructor(){const j=a45i;super(),this[j(0x142)]=new Map(),this[j(0x141)]=Logger[j(0x150)]();}['addItem'](a){const k=a45i;this[k(0x142)][k(0x14a)](a[k(0x154)][k(0x143)](),a),this[k(0x141)][k(0x146)](k(0x134)+a['name']+k(0x14d));}[a45i(0x153)](a){const l=a45i,b=this['getItem'](a);if(b)return this['items']['delete'](a[l(0x143)]()),this[l(0x141)][l(0x146)](l(0x14c)+a+'\x20from\x20inventory.'),b;return this[l(0x141)]['write']('Failed\x20to\x20remove\x20item:\x20'+a+l(0x159)),null;}[a45i(0x152)](a){const m=a45i,b=this[m(0x142)][m(0x14f)](a[m(0x143)]()),c=[...this[m(0x142)][m(0x137)]()];return this[m(0x141)][m(0x146)]('Checked\x20for\x20item:\x20'+a+m(0x13f)+c['join'](',\x20')+m(0x156)+b+'.'),b;}[a45i(0x151)](a){const n=a45i,b=this['items'][n(0x133)](a[n(0x143)]())||null;return b?this[n(0x141)][n(0x146)](n(0x13b)+a+'.'):this['logger'][n(0x146)](n(0x155)+a+n(0x159)),b;}['listItems'](){const o=a45i,a=[...this[o(0x142)][o(0x137)]()],b=a['map'](c=>capitalCase(c));return this[o(0x141)]['write'](o(0x13e)+b['join'](',\x20')+'.'),a;}['getWeight'](){const p=a45i;let a=0x0;for(const b of this[p(0x142)][p(0x144)]()){a+=b[p(0x14e)];}return a;}[a45i(0x148)](){const q=a45i;return[...this[q(0x142)][q(0x144)]()];}}function a45c(){const r=['Listed\x20items\x20in\x20inventory:\x20','\x20in\x20','search','logger','items','toLowerCase','values','4cyCWeY','write','873872GkgCnG','getAllItems','(((.+)+)+)+$','set','2462155uassJs','Removed\x20item:\x20','\x20to\x20inventory.','weight','has','getInstance','getItem','hasItem','removeItem','name','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','.\x20Exists:\x20','toString','29210agBMMl','.\x20Item\x20not\x20found.','get','Added\x20item:\x20','644331JMJFoo','2YSsYNt','keys','6608xNTxYd','702bwhHfw','31716OwAplX','Retrieved\x20details\x20for\x20item:\x20','1254573IOQAXW','apply'];a45c=function(){return r;};return a45c();}
@@ -1 +1 @@
1
- var a46i=a46d;function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0xdf;var f=c[d];return f;},a46d(a,b);}(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0xf2))/0x1*(-parseInt(f(0xe6))/0x2)+-parseInt(f(0xeb))/0x3+-parseInt(f(0xf4))/0x4*(-parseInt(f(0xe3))/0x5)+parseInt(f(0xec))/0x6*(-parseInt(f(0xe1))/0x7)+-parseInt(f(0xf6))/0x8*(parseInt(f(0xf8))/0x9)+parseInt(f(0xf1))/0xa+parseInt(f(0xe9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xa272c));function a46c(){var l=['1602778GAtUux','description','uuid','3281685GSVYMr','(((.+)+)+)+$','894825XdVUgu','1602qKRMNR','You\x20use\x20the\x20','search','texture','toString','10166570tNuCaY','1UpWTKC','color','3399916BgPFqR','apply','1750312NCsSNK','weight','36MYdpfr','rating','constructor','category','shape','29561xdTMCZ','use','5AZPeVC','size','name'];a46c=function(){return l;};return a46c();}var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0xf0)]()[h(0xee)]('(((.+)+)+)+$')[h(0xf0)]()[h(0xfa)](a46a)[h(0xee)](h(0xea));});a46a();import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a46i(0xe8)];[a46i(0xe5)];[a46i(0xe7)];[a46i(0xe4)];[a46i(0xdf)];[a46i(0xe0)];[a46i(0xf3)];['texture'];[a46i(0xf9)];[a46i(0xf7)];constructor(a){var j=a46i;super(),this[j(0xe5)]=a['name'],this[j(0xe7)]=a[j(0xe7)],this['size']=a[j(0xe4)],this[j(0xdf)]=a['category'],this[j(0xe0)]=a['shape'],this['color']=a['color'],this[j(0xef)]=a['texture'],this['rating']=a[j(0xf9)],this['weight']=a[j(0xf7)],this['uuid']=a46e();}[a46i(0xe2)](){var k=a46i;return k(0xed)+this[k(0xe5)]+'.\x20Nothing\x20special\x20happens.';}}
1
+ var a46h=a46d;(function(a,b){var f=a46d,c=a();while(!![]){try{var d=-parseInt(f(0x171))/0x1*(-parseInt(f(0x181))/0x2)+-parseInt(f(0x17f))/0x3+-parseInt(f(0x184))/0x4+parseInt(f(0x17c))/0x5*(-parseInt(f(0x17b))/0x6)+-parseInt(f(0x186))/0x7*(-parseInt(f(0x17d))/0x8)+parseInt(f(0x182))/0x9*(-parseInt(f(0x172))/0xa)+parseInt(f(0x16d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x2c77b));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var g=a46d;return a46a[g(0x176)]()[g(0x16f)]('(((.+)+)+)+$')[g(0x176)]()[g(0x16e)](a46a)['search'](g(0x170));});a46a();function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x16d;var f=c[d];return f;},a46d(a,b);}import{v4 as a46e}from'uuid';import{AbstractItem}from'../types/abstracts.js';export class Item extends AbstractItem{[a46h(0x180)];[a46h(0x179)];['description'];[a46h(0x17a)];[a46h(0x177)];[a46h(0x173)];[a46h(0x175)];[a46h(0x187)];['rating'];[a46h(0x174)];constructor(a){var i=a46h;super(),this['name']=a[i(0x179)],this[i(0x185)]=a[i(0x185)],this[i(0x17a)]=a['size'],this[i(0x177)]=a[i(0x177)],this[i(0x173)]=a[i(0x173)],this[i(0x175)]=a['color'],this[i(0x187)]=a[i(0x187)],this['rating']=a[i(0x188)],this[i(0x174)]=a[i(0x174)],this[i(0x180)]=a46e();}[a46h(0x178)](){var j=a46h;return j(0x17e)+this[j(0x179)]+j(0x183);}}function a46c(){var k=['43ZtJFpI','830rKxAEV','shape','weight','color','toString','category','use','name','size','42SUgcla','212165pUfxLf','33832WfboNO','You\x20use\x20the\x20','105507AATvvO','uuid','3526LSrQBj','11007AUTQhT','.\x20Nothing\x20special\x20happens.','680184VJDqIB','description','119igYiKJ','texture','rating','7020112LVZgSu','constructor','search','(((.+)+)+)+$'];a46c=function(){return k;};return a46c();}
@@ -1 +1 @@
1
- const a47i=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=-parseInt(f(0x140))/0x1+parseInt(f(0x143))/0x2*(parseInt(f(0x14c))/0x3)+parseInt(f(0x14f))/0x4*(parseInt(f(0x148))/0x5)+-parseInt(f(0x14a))/0x6+parseInt(f(0x146))/0x7+parseInt(f(0x13e))/0x8*(-parseInt(f(0x150))/0x9)+parseInt(f(0x13d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0xcd382));const a47b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a47d;if(c){const e=c[g(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){const h=a47d;return a47a[h(0x152)]()[h(0x153)](h(0x147))[h(0x152)]()[h(0x149)](a47a)[h(0x153)](h(0x147));});a47a();import{Player}from'./player.js';function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x13d;let f=c[d];return f;},a47d(a,b);}function a47c(){const o=['1841082lQdkiJ','moveTo','floor','1075124cxPrdZ','45aVqdoJ','name','toString','search','rooms','5898050worNpz','1341008UEFxpc','_name','757754hRNYRE','_dialogue','scene','4VMDYfT','random','length','2102184eIHpAS','(((.+)+)+)+$','15ddbaXA','constructor','2924316MCaHbM','apply'];a47c=function(){return o;};return a47c();}import{GoCommand}from'../commands/go.js';export class NPC extends Player{['_name'];[a47i(0x141)];[a47i(0x154)];['scene'];constructor(a,b,c,d){const j=a47i;super(d),this[j(0x13f)]=a,this['_dialogue']=b,this[j(0x154)]=c;}get[a47i(0x151)](){const k=a47i;return this[k(0x13f)];}['speak'](){const l=a47i;return this['_dialogue'][Math[l(0x14e)](Math[l(0x144)]()*this[l(0x141)][l(0x145)])];}['autonomousMove'](a){const m=a47i,b=a[Math[m(0x14e)](Math[m(0x144)]()*a[m(0x145)])];this['moveTo'](b['name']);}[a47i(0x14d)](a){const n=a47i,b={'actor':this,'rooms':this['rooms'],'scene':this[n(0x142)]},c=new GoCommand(b);c['execute']([a]);}}
1
+ const a47h=a47d;(function(a,b){const f=a47d,c=a();while(!![]){try{const d=parseInt(f(0x153))/0x1+parseInt(f(0x146))/0x2+-parseInt(f(0x148))/0x3+parseInt(f(0x155))/0x4+parseInt(f(0x150))/0x5+parseInt(f(0x157))/0x6+-parseInt(f(0x14b))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x35397));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(0x14a)]()[g(0x14c)](g(0x14e))[g(0x14a)]()[g(0x159)](a47a)[g(0x14c)](g(0x14e));});a47a();function a47c(){const n=['661359QrlwiJ','moveTo','toString','5294639gTBBTM','search','speak','(((.+)+)+)+$','_dialogue','337915IjgSlp','scene','rooms','413174wftYRe','name','1203104dZDKOA','random','2407392TUZbLJ','floor','constructor','execute','24144TWWuHS','_name'];a47c=function(){return n;};return a47c();}function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x146;let f=c[d];return f;},a47d(a,b);}import{Player}from'./player.js';import{GoCommand}from'../commands/go.js';export class NPC extends Player{[a47h(0x147)];[a47h(0x14f)];['rooms'];[a47h(0x151)];constructor(a,b,c,d){const i=a47h;super(d),this[i(0x147)]=a,this[i(0x14f)]=b,this[i(0x152)]=c;}get[a47h(0x154)](){const j=a47h;return this[j(0x147)];}[a47h(0x14d)](){const k=a47h;return this[k(0x14f)][Math[k(0x158)](Math[k(0x156)]()*this[k(0x14f)]['length'])];}['autonomousMove'](a){const l=a47h,b=a[Math[l(0x158)](Math[l(0x156)]()*a['length'])];this[l(0x149)](b[l(0x154)]);}['moveTo'](a){const m=a47h,b={'actor':this,'rooms':this[m(0x152)],'scene':this[m(0x151)]},c=new GoCommand(b);c[m(0x15a)]([a]);}}
@@ -1 +1 @@
1
- const a48h=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=-parseInt(f(0x12c))/0x1+parseInt(f(0xed))/0x2*(parseInt(f(0x107))/0x3)+-parseInt(f(0x12b))/0x4+parseInt(f(0x120))/0x5*(-parseInt(f(0x137))/0x6)+-parseInt(f(0x13c))/0x7+-parseInt(f(0xf3))/0x8*(parseInt(f(0x139))/0x9)+parseInt(f(0xe2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x6184e));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const g=a48d;return a48a[g(0x11b)]()[g(0x133)](g(0x100))['toString']()['constructor'](a48a)['search'](g(0x100));});a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';import{Logger}from'../utilities/logger.js';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0xe1;let f=c[d];return f;},a48d(a,b);}function a48c(){const y=['head','equipment','\x20is\x20now\x20listening\x20in\x20room\x20','equip','1150856YCreZO','384845onqGSb','body\x20armor','maxCarryingWeight','addInventory','startLocation','arms','enterRoom','search','You\x20equipped\x20','Hat','getWeight','1736646LtnKSc','error','5923431OqkUYV','Helmet','getInstance','1048768NRLWgs','feet','currentWeight','addItem','24329180NYGkJb','off','determineEquipmentSlot','removeItem','unequip','leaveRoom','ArmArmor','logger','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','_playerName','toLowerCase','1128IKOKiS','speak','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','currentLocation','log','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','8qZokaN','Invalid\x20category\x20or\x20slot:\x20','\x20from\x20player\x27s\x20inventory.','_maxCarryingWeight','\x20to\x20player\x27s\x20inventory.','Shield','hasItem','torso','rightHand','hat','Gloves','A\x20featureless\x20room','_inventory','(((.+)+)+)+$','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','Failed\x20to\x20remove\x20','gloves','Added\x20','removeInventory','Boots','138WxTqgq','You\x20don\x27t\x20have\x20','LegArmor','leftHand','_currentLocation','_equipment','.\x20You\x20must\x20unequip\x20it\x20first.','category','You\x20unequipped\x20','legarmor','BodyArmor','inventoryItems','name','Nexus','\x20in\x20your\x20inventory.','hear','weight','write','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','Max\x20carrying\x20weight\x20must\x20be\x20positive.','toString','bodyarmor','values','helmet','initialEquipment','10vdwXMb','canEquip','Weapon','unequipBySlot','bind','shield','legs'];a48c=function(){return y;};return a48c();}import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';export class Player extends AbstractPlayer{[a48h(0xeb)];['_currentLocation'];[a48h(0xff)];[a48h(0x10c)];[a48h(0xf6)]=0x32;[a48h(0xe9)];constructor(a){const i=a48h;super(),this[i(0xeb)]=a['playerName'],this[i(0x10b)]=a[i(0x130)]||new Room({'name':i(0x114),'description':i(0xfe)}),this[i(0xff)]=new Inventory(),this['logger']=Logger[i(0x13b)]();if(a?.[i(0x112)])for(const b of a['inventoryItems']){this[i(0xff)][i(0xe1)](b);}this[i(0x10c)]=a?.[i(0x11f)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48h(0x113)](){const j=a48h;return this[j(0xeb)];}get[a48h(0xf0)](){return this['_currentLocation'];}set[a48h(0xf0)](a){const k=a48h;this['_currentLocation']!==a&&(this[k(0xe7)](),this[k(0x132)](a)),this[k(0x10b)]=a;}get['inventory'](){return this['_inventory'];}get[a48h(0x128)](){const l=a48h;return this[l(0x10c)];}set[a48h(0x128)](a){this['_equipment']=a;}get['maxCarryingWeight'](){return this['_maxCarryingWeight'];}set[a48h(0x12e)](a){const m=a48h;a>0x0?this[m(0xf6)]=a:console[m(0x138)](m(0x11a));}get[a48h(0x13e)](){const n=a48h;let a=this[n(0xff)][n(0x136)]();for(const b in this[n(0x10c)]){const c=this[n(0x10c)][b];c&&(a+=c[n(0x117)]);}return a;}[a48h(0x12f)](a){const o=a48h;if(this['currentWeight']+a[o(0x117)]>this['maxCarryingWeight']){this['logger'][o(0x118)](o(0x101));throw new Error(o(0x119));}this[o(0xff)]['addItem'](a),this['logger']['write'](o(0x104)+a['name']+o(0xf7));}[a48h(0x105)](a){const p=a48h;if(this[p(0xff)][p(0xe5)](a[p(0x113)]))return this[p(0xe9)][p(0x118)]('Removed\x20'+a[p(0x113)]+p(0xf5)),!![];return this['logger'][p(0x118)](p(0x102)+a['name']+p(0xf5)),![];}[a48h(0x12a)](a){const q=a48h;if(!this[q(0xff)][q(0xf9)](a['name']))return q(0x108)+a[q(0x113)]+q(0x115);if(!this[q(0x121)](a))return'You\x20can\x27t\x20equip\x20'+a[q(0x113)]+'.';const b=this[q(0xe4)](a[q(0x10e)]);if(!b)return a[q(0x113)]+q(0xea);if(this[q(0x128)][b])return q(0xef)+b+q(0x10d);return this[q(0x128)][b]=a,this[q(0x105)](a),q(0x134)+a[q(0x113)]+'.';}[a48h(0xe6)](a){const r=a48h;let b=a;if(!this[r(0x128)][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return r(0xf4)+a+'.';}return this[r(0x123)](b);}[a48h(0xe4)](a){const s=a48h;switch(a[s(0xec)]()){case Category[s(0x122)][s(0xec)]():return s(0xfb);case Category[s(0xf8)][s(0xec)]():return s(0x10a);case Category[s(0xfd)][s(0xec)]():return s(0x103);case Category[s(0x13a)][s(0xec)]():case Category[s(0x135)][s(0xec)]():return s(0x127);case Category[s(0x106)][s(0xec)]():return s(0x13d);case Category[s(0x109)][s(0xec)]():return s(0x126);case Category[s(0xe8)][s(0xec)]():return s(0x131);case Category[s(0x111)][s(0xec)]():return s(0xfa);case'weapon':return s(0xfb);case s(0x125):return s(0x10a);case s(0x103):return s(0x103);case s(0x11e):case s(0xfc):return s(0x127);case'boots':return s(0x13d);case'leg\x20armor':case s(0x110):return s(0x126);case'arm\x20armor':case'armarmor':return s(0x131);case s(0x12d):case s(0x11c):case s(0xfa):return s(0xfa);default:return null;}}[a48h(0x121)](a){const t=a48h;return Object[t(0x11d)](Category)['includes'](a[t(0x10e)]);}['unequipBySlot'](a){const u=a48h,b=this[u(0x128)][a];if(!b)return u(0xf2)+a+'\x20slot.';return this[u(0x12f)](b),this[u(0x128)][a]=null,u(0x10f)+b[u(0x113)]+'.';}[a48h(0x116)](a,b){const v=a48h;a!==this&&this[v(0xe9)][v(0xf1)](a[v(0x113)]+'\x20says:\x20\x22'+b+'\x22');}[a48h(0x132)](a){const w=a48h;this['_currentLocation']=a,a['on'](w(0xee),this['hear'][w(0x124)](this)),this[w(0xe9)][w(0x118)](this[w(0x113)]+w(0x129)+a[w(0x113)]);}[a48h(0xe7)](){const x=a48h;this['_currentLocation']&&(this[x(0x10b)][x(0xe3)]('speak',this[x(0x116)]['bind'](this)),this[x(0xe9)]['write'](this[x(0x113)]+'\x20is\x20no\x20longer\x20listeng\x20in\x20'+this['_currentLocation'][x(0x113)]));}}
1
+ const a48h=a48d;(function(a,b){const f=a48d,c=a();while(!![]){try{const d=parseInt(f(0x192))/0x1+parseInt(f(0x18d))/0x2+parseInt(f(0x1c8))/0x3+-parseInt(f(0x196))/0x4*(-parseInt(f(0x1c7))/0x5)+-parseInt(f(0x1ae))/0x6+parseInt(f(0x1b7))/0x7*(parseInt(f(0x197))/0x8)+-parseInt(f(0x1ca))/0x9*(parseInt(f(0x1a4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0xebaa6));const a48b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){const g=a48d;return a48a[g(0x190)]()[g(0x19b)](g(0x193))[g(0x190)]()[g(0x1e3)](a48a)[g(0x19b)]('(((.+)+)+)+$');});a48a();import{camelCase}from'change-case';import{Category}from'../types/enums.js';function a48c(){const z=['arm\x20armor','_equipment','Nexus','\x20from\x20player\x27s\x20inventory.','log','values','bind','hear','20188NDkgMS','getInstance','shield','write','Failed\x20to\x20remove\x20','error','leftHand','getWeight','hasItem','equipment','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','feet','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','You\x20can\x27t\x20equip\x20','inventory','You\x20don\x27t\x20have\x20','11300iDjOmA','1143561OUkXSe','head','1107skiqll','enterRoom','arms','_inventory','\x20is\x20no\x20longer\x20listeng\x20in\x20','Shield','BodyArmor','startLocation','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','initialEquipment','\x20to\x20player\x27s\x20inventory.','name','toLowerCase','addInventory','You\x20equipped\x20','maxCarryingWeight','leg\x20armor','inventoryItems','logger','unequipBySlot','body\x20armor','off','LegArmor','legs','helmet','constructor','_currentLocation','armarmor','\x20slot.','gloves','Boots','3040270bFiNlx','category','Invalid\x20category\x20or\x20slot:\x20','toString','You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20','882295XWJMUG','(((.+)+)+)+$','Removed\x20','ArmArmor','3112VCzclT','360wRlBAE','canEquip','includes','\x20is\x20now\x20listening\x20in\x20room\x20','search','legarmor','currentWeight','leaveRoom','determineEquipmentSlot','addItem','removeInventory','weight','Added\x20','227230pnGZYL','removeItem','Gloves','.\x20You\x20must\x20unequip\x20it\x20first.','_playerName','bodyarmor','_maxCarryingWeight','currentLocation','Hat','rightHand','5468772ykndmK'];a48c=function(){return z;};return a48c();}import{Logger}from'../utilities/logger.js';import{Room}from'./room.js';import{Inventory}from'./inventory.js';import{AbstractPlayer}from'../types/abstracts.js';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x18c;let f=c[d];return f;},a48d(a,b);}export class Player extends AbstractPlayer{[a48h(0x1a8)];['_currentLocation'];[a48h(0x1cd)];['_equipment'];[a48h(0x1aa)]=0x32;[a48h(0x1dc)];constructor(a){const i=a48h;super(),this[i(0x1a8)]=a['playerName'],this[i(0x1e4)]=a[i(0x1d1)]||new Room({'name':i(0x1b1),'description':'A\x20featureless\x20room'}),this['_inventory']=new Inventory(),this['logger']=Logger[i(0x1b8)]();if(a?.[i(0x1db)])for(const b of a[i(0x1db)]){this[i(0x1cd)][i(0x1a0)](b);}this[i(0x1b0)]=a?.[i(0x1d3)]||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get[a48h(0x1d5)](){const j=a48h;return this[j(0x1a8)];}get[a48h(0x1ab)](){return this['_currentLocation'];}set[a48h(0x1ab)](a){const k=a48h;this[k(0x1e4)]!==a&&(this['leaveRoom'](),this[k(0x1cb)](a)),this[k(0x1e4)]=a;}get[a48h(0x1c5)](){const l=a48h;return this[l(0x1cd)];}get['equipment'](){const m=a48h;return this[m(0x1b0)];}set[a48h(0x1c0)](a){this['_equipment']=a;}get['maxCarryingWeight'](){return this['_maxCarryingWeight'];}set['maxCarryingWeight'](a){const n=a48h;a>0x0?this[n(0x1aa)]=a:console[n(0x1bc)]('Max\x20carrying\x20weight\x20must\x20be\x20positive.');}get[a48h(0x19d)](){const o=a48h;let a=this['_inventory'][o(0x1be)]();for(const b in this[o(0x1b0)]){const c=this[o(0x1b0)][b];c&&(a+=c[o(0x1a2)]);}return a;}['addInventory'](a){const p=a48h;if(this[p(0x19d)]+a[p(0x1a2)]>this[p(0x1d9)]){this['logger']['write'](p(0x1c3));throw new Error(p(0x1d2));}this[p(0x1cd)][p(0x1a0)](a),this['logger'][p(0x1ba)](p(0x1a3)+a[p(0x1d5)]+p(0x1d4));}[a48h(0x1a1)](a){const q=a48h;if(this[q(0x1cd)][q(0x1a5)](a[q(0x1d5)]))return this['logger'][q(0x1ba)](q(0x194)+a['name']+q(0x1b2)),!![];return this[q(0x1dc)]['write'](q(0x1bb)+a[q(0x1d5)]+q(0x1b2)),![];}['equip'](a){const r=a48h;if(!this[r(0x1cd)][r(0x1bf)](a[r(0x1d5)]))return r(0x1c6)+a[r(0x1d5)]+'\x20in\x20your\x20inventory.';if(!this[r(0x198)](a))return r(0x1c4)+a[r(0x1d5)]+'.';const b=this['determineEquipmentSlot'](a[r(0x18e)]);if(!b)return a[r(0x1d5)]+r(0x1c1);if(this[r(0x1c0)][b])return r(0x191)+b+r(0x1a7);return this['equipment'][b]=a,this[r(0x1a1)](a),r(0x1d8)+a['name']+'.';}['unequip'](a){const s=a48h;let b=a;if(!this['equipment'][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return s(0x18f)+a+'.';}return this[s(0x1dd)](b);}[a48h(0x19f)](a){const t=a48h;switch(a['toLowerCase']()){case Category['Weapon'][t(0x1d6)]():return t(0x1ad);case Category[t(0x1cf)]['toLowerCase']():return t(0x1bd);case Category[t(0x1a6)][t(0x1d6)]():return t(0x1e7);case Category['Helmet']['toLowerCase']():case Category[t(0x1ac)][t(0x1d6)]():return'head';case Category[t(0x18c)][t(0x1d6)]():return t(0x1c2);case Category[t(0x1e0)][t(0x1d6)]():return t(0x1e1);case Category[t(0x195)][t(0x1d6)]():return t(0x1cc);case Category[t(0x1d0)][t(0x1d6)]():return'torso';case'weapon':return t(0x1ad);case t(0x1b9):return t(0x1bd);case t(0x1e7):return'gloves';case t(0x1e2):case'hat':return t(0x1c9);case'boots':return t(0x1c2);case t(0x1da):case t(0x19c):return t(0x1e1);case t(0x1af):case t(0x1e5):return t(0x1cc);case t(0x1de):case t(0x1a9):case'torso':return'torso';default:return null;}}['canEquip'](a){const u=a48h;return Object[u(0x1b4)](Category)[u(0x199)](a[u(0x18e)]);}['unequipBySlot'](a){const v=a48h,b=this['equipment'][a];if(!b)return'You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20'+a+v(0x1e6);return this[v(0x1d7)](b),this[v(0x1c0)][a]=null,'You\x20unequipped\x20'+b[v(0x1d5)]+'.';}['hear'](a,b){const w=a48h;a!==this&&this[w(0x1dc)][w(0x1b3)](a[w(0x1d5)]+'\x20says:\x20\x22'+b+'\x22');}[a48h(0x1cb)](a){const x=a48h;this[x(0x1e4)]=a,a['on']('speak',this['hear'][x(0x1b5)](this)),this[x(0x1dc)][x(0x1ba)](this[x(0x1d5)]+x(0x19a)+a['name']);}[a48h(0x19e)](){const y=a48h;this[y(0x1e4)]&&(this[y(0x1e4)][y(0x1df)]('speak',this[y(0x1b6)]['bind'](this)),this['logger'][y(0x1ba)](this['name']+y(0x1ce)+this[y(0x1e4)][y(0x1d5)]));}}
@@ -1 +1 @@
1
- var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=-parseInt(f(0xce))/0x1+parseInt(f(0xd3))/0x2+-parseInt(f(0xd9))/0x3+-parseInt(f(0xdb))/0x4*(parseInt(f(0xcf))/0x5)+parseInt(f(0xd8))/0x6+parseInt(f(0xdc))/0x7+-parseInt(f(0xda))/0x8*(parseInt(f(0xd1))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x7894a));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0xc9)]()['search'](h(0xc6))[h(0xc9)]()[h(0xd2)](a49a)[h(0xde)](h(0xc6));});a49a();function a49c(){var n=['You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','riddle','solved','5032518kiIlXm','2487264oFnehh','1432KBtNFi','268cbKTwI','6646409ructHu','Puzzle:\x20Correct\x20solution\x20provided.','search','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','requiredPhrase','matchesRequiredPhrase','solve','You\x20have\x20already\x20solved\x20this\x20puzzle.','apply','logger','rewardItem','(((.+)+)+)+$','write','successMessage','toString','getInstance','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','requiredItem','failureMessage','543182ZYLOPH','35240rbLOTm','hasRequiredItem','19620aAuxqx','constructor','1880728pgEdLM','hasItem'];a49c=function(){return n;};return a49c();}import{Logger}from'../utilities/logger.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0xc6;var f=c[d];return f;},a49d(a,b);}import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a49i(0xe5)]=Logger[a49i(0xca)]();['solved']=![];[a49i(0xcc)];[a49i(0xe0)];['riddle'];[a49i(0xe6)];[a49i(0xc8)];[a49i(0xcd)];constructor(a){var j=a49i;super(),this[j(0xcc)]=a[j(0xcc)],this['requiredPhrase']=a[j(0xe0)],this[j(0xd6)]=a[j(0xd6)],this['rewardItem']=a[j(0xe6)],this['successMessage']=a[j(0xc8)]||'You\x20solved\x20the\x20puzzle!',this[j(0xcd)]=a['failureMessage']||j(0xd5);}[a49i(0xd0)](a){var k=a49i;if(this[k(0xcc)])return a[k(0xd4)](this[k(0xcc)]);return![];}[a49i(0xe1)](a){var l=a49i;return this[l(0xe0)]===a;}[a49i(0xe2)](a,b){var m=a49i;if(this[m(0xd7)])return this['logger'][m(0xc7)](m(0xdf)),{'success':![],'message':m(0xe3)};return this[m(0xd0)](b)||this['matchesRequiredPhrase'](a)?(this[m(0xd7)]=!![],this[m(0xe5)][m(0xc7)](m(0xdd)),{'success':!![],'message':this['successMessage']}):(this['logger']['write'](m(0xcb)),{'success':![],'message':this['failureMessage']});}}
1
+ function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x71;var f=c[d];return f;},a49d(a,b);}function a49c(){var n=['write','solve','requiredItem','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.','3484280LALbHv','14625MbTqDR','You\x20have\x20already\x20solved\x20this\x20puzzle.','failureMessage','riddle','Puzzle:\x20Correct\x20solution\x20provided.','5369405mfthmu','1354560tAQOZi','requiredPhrase','solved','(((.+)+)+)+$','getInstance','successMessage','226MCELiY','rewardItem','matchesRequiredPhrase','6bQbfiN','hasItem','7633759BKoSbO','3504iaqLvH','apply','search','hasRequiredItem','toString','logger','1271986LAjVpB','4904dpUjsM','You\x20solved\x20the\x20puzzle!'];a49c=function(){return n;};return a49c();}var a49i=a49d;(function(a,b){var f=a49d,c=a();while(!![]){try{var d=parseInt(f(0x74))/0x1+parseInt(f(0x89))/0x2*(-parseInt(f(0x8f))/0x3)+parseInt(f(0x83))/0x4+parseInt(f(0x82))/0x5*(-parseInt(f(0x8c))/0x6)+-parseInt(f(0x8e))/0x7+-parseInt(f(0x75))/0x8*(-parseInt(f(0x7d))/0x9)+parseInt(f(0x7c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xa0d59));var a49b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a49d;if(c){var e=c[g(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){var h=a49d;return a49a[h(0x72)]()[h(0x91)](h(0x86))['toString']()['constructor'](a49a)[h(0x91)](h(0x86));});a49a();import{Logger}from'../utilities/logger.js';import{AbstractPuzzle}from'../types/abstracts.js';export class Puzzle extends AbstractPuzzle{[a49i(0x73)]=Logger[a49i(0x87)]();[a49i(0x85)]=![];[a49i(0x79)];['requiredPhrase'];[a49i(0x80)];[a49i(0x8a)];['successMessage'];[a49i(0x7f)];constructor(a){var j=a49i;super(),this[j(0x79)]=a[j(0x79)],this['requiredPhrase']=a['requiredPhrase'],this[j(0x80)]=a['riddle'],this[j(0x8a)]=a[j(0x8a)],this[j(0x88)]=a[j(0x88)]||j(0x76),this[j(0x7f)]=a[j(0x7f)]||j(0x7a);}[a49i(0x71)](a){var k=a49i;if(this[k(0x79)])return a[k(0x8d)](this[k(0x79)]);return![];}['matchesRequiredPhrase'](a){var l=a49i;return this[l(0x84)]===a;}[a49i(0x78)](a,b){var m=a49i;if(this[m(0x85)])return this[m(0x73)]['write']('Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.'),{'success':![],'message':m(0x7e)};return this[m(0x71)](b)||this[m(0x8b)](a)?(this[m(0x85)]=!![],this[m(0x73)][m(0x77)](m(0x81)),{'success':!![],'message':this[m(0x88)]}):(this[m(0x73)][m(0x77)](m(0x7b)),{'success':![],'message':this['failureMessage']});}}
@@ -1 +1 @@
1
- const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x110))/0x1+parseInt(f(0x10f))/0x2+parseInt(f(0xfb))/0x3*(-parseInt(f(0xf5))/0x4)+-parseInt(f(0xec))/0x5*(-parseInt(f(0x117))/0x6)+parseInt(f(0xf2))/0x7+parseInt(f(0xf8))/0x8*(-parseInt(f(0xe0))/0x9)+parseInt(f(0x11b))/0xa*(-parseInt(f(0x108))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x9e2b9));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a[h(0x11c)]()[h(0xf0)](h(0xf6))[h(0x11c)]()[h(0x10c)](a50a)[h(0xf0)](h(0xf6));});a50a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';import{Door}from'./door.js';function a50c(){const u=['search','exits','6625318wGLPbF','Item\x20removed\x20from\x20room\x20','Fetching\x20exit\x20in\x20direction:\x20','52396nPzWnf','(((.+)+)+)+$','DOWN','6416UtfCms','emit','riddle','39XTJPkp','get','addExit','NORTH','The\x20','name','values','setPuzzle','description','write','hasItem','Puzzle\x20set\x20for\x20room\x20','roomA','211772QekWBR','apply','south','Room\x20created:\x20','constructor','isStartRoom','attemptUnlock','1460972umDiuT','556400moeQrI','Invalid\x20direction:\x20','say','Checking\x20if\x20exit\x20in\x20direction\x20','SOUTH','EAST','roomB','96yIqkLI','inventory','north','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','470JhmYXL','toString','set','puzzle','down','14382QuVYov','findExistingDoor','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','.\x20Success:\x20','\x20remains\x20locked.','WEST','\x20is\x20locked.\x20Result:\x20','removeItem','attemptUnlockExit','roomType','logger','getExit','241010iFALAg','getOppositeDirection','checkIfLocked','isExitLocked'];a50c=function(){return u;};return a50c();}import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0xdd;let f=c[d];return f;},a50d(a,b);}export class Room extends AbstractRoom{[a50i(0xea)]=Logger['getInstance']();[a50i(0x100)];[a50i(0x103)];[a50i(0xf1)]=new Map();[a50i(0xe9)];[a50i(0x10d)];['inventory']=new Inventory();constructor(a){const j=a50i;super(),this[j(0x100)]=a['name'],this[j(0x103)]=a[j(0x103)],this['roomType']=a[j(0xe9)]||RoomType['INSIDE'],a[j(0xf1)]&&(this[j(0xf1)]=a[j(0xf1)]||new Map()),a[j(0x118)]&&(this[j(0x118)]=a[j(0x118)]),a[j(0xde)]&&(this[j(0xde)]=a[j(0xde)]),this[j(0x10d)]=a['isStartRoom']||![],this['logger']['write'](j(0x10b)+this['name']);}[a50i(0x112)](a,b){const k=a50i;this[k(0xf9)]('speak',a,b);}[a50i(0xfd)](a,b,c){const l=a50i;let d=this[l(0xe1)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[l(0xf1)]['set'](a,d),b[l(0xf1)][l(0xdd)](this[l(0xed)](a),d);}[a50i(0xe8)](a,b){const m=a50i,c=this['exits'][m(0xfc)](a);if(c instanceof Door){const d=c[m(0x10e)](b);return this[m(0xea)][m(0x104)](m(0x11a)+a+m(0xe3)+d),d?m(0xff)+c[m(0x100)]+'\x20unlocked!':m(0xff)+c[m(0x100)]+m(0xe4);}return this['logger'][m(0x104)]('No\x20locked\x20exit\x20found\x20in\x20direction\x20'+a),m(0xe2);}[a50i(0xeb)](a){const n=a50i;return this[n(0xea)][n(0x104)](n(0xf4)+a),this[n(0xf1)][n(0xfc)](a);}[a50i(0xef)](a){const o=a50i,b=this[o(0xf1)][o(0xfc)](a),c=b instanceof Door&&b[o(0xee)]();return this[o(0xea)][o(0x104)](o(0x113)+a+o(0xe6)+c),c;}['addItem'](a){const p=a50i;this[p(0x118)]['addItem'](a),this[p(0xea)][p(0x104)]('Item\x20added\x20to\x20room\x20'+this[p(0x100)]+':\x20'+a[p(0x100)]);}[a50i(0xe7)](a){const q=a50i;this[q(0x118)][q(0x105)](a[q(0x100)])?(this[q(0x118)][q(0xe7)](a['name']),this[q(0xea)][q(0x104)](q(0xf3)+this[q(0x100)]+':\x20'+a[q(0x100)])):this[q(0xea)][q(0x104)]('Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20'+this[q(0x100)]+':\x20'+a['name']);}[a50i(0x102)](a){const r=a50i;this[r(0xde)]=a,this['logger'][r(0x104)](r(0x106)+this[r(0x100)]+':\x20'+a[r(0xfa)]);}[a50i(0xed)](a){const s=a50i;switch(a){case s(0x119):return Direction[s(0x114)];case s(0x10a):return Direction[s(0xfe)];case'east':return Direction[s(0xe5)];case'west':return Direction[s(0x115)];case'up':return Direction[s(0xf7)];case s(0xdf):return Direction['UP'];default:throw new Error(s(0x111)+a);}}[a50i(0xe1)](a){const t=a50i;for(const b of this[t(0xf1)][t(0x101)]()){if(b instanceof Door){if(b[t(0x107)]===this&&b[t(0x116)]===a||b[t(0x116)]===this&&b['roomA']===a)return b;}}return undefined;}}
1
+ const a50i=a50d;(function(a,b){const f=a50d,c=a();while(!![]){try{const d=parseInt(f(0x222))/0x1+parseInt(f(0x1f3))/0x2+-parseInt(f(0x203))/0x3+parseInt(f(0x1f1))/0x4+-parseInt(f(0x221))/0x5*(parseInt(f(0x21c))/0x6)+parseInt(f(0x209))/0x7*(-parseInt(f(0x217))/0x8)+parseInt(f(0x200))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x26278));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a50d;if(c){const e=c[g(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const h=a50d;return a50a['toString']()['search']('(((.+)+)+)+$')[h(0x1ee)]()['constructor'](a50a)['search'](h(0x218));});a50a();import{Logger}from'../utilities/logger.js';import{RoomType,Direction}from'../types/enums.js';function a50c(){const t=['hasItem','.\x20Success:\x20','\x20unlocked!','down','puzzle','20504XEHYoR','(((.+)+)+)+$','exits','addItem','INSIDE','53826mFqtal','getExit','say','Room\x20created:\x20','isStartRoom','125aFYDSg','192746JcywdA','The\x20','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','EAST','name','toString','isExitLocked','apply','65108iAlOrq','\x20remains\x20locked.','276182WwAHnR','NORTH','getOppositeDirection','values','roomB','set','get','description','Checking\x20if\x20exit\x20in\x20direction\x20','south','WEST','\x20is\x20locked.\x20Result:\x20','SOUTH','2252250RTLyXl','riddle','Item\x20removed\x20from\x20room\x20','519714BpbhBa','There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.','logger','removeItem','Item\x20added\x20to\x20room\x20','Invalid\x20direction:\x20','119jBpvZc','Puzzle\x20set\x20for\x20room\x20','findExistingDoor','write','roomA','No\x20locked\x20exit\x20found\x20in\x20direction\x20','roomType','setPuzzle','inventory'];a50c=function(){return t;};return a50c();}import{Door}from'./door.js';import{Inventory}from'./inventory.js';import{AbstractRoom}from'../types/abstracts.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x1ed;let f=c[d];return f;},a50d(a,b);}export class Room extends AbstractRoom{[a50i(0x205)]=Logger['getInstance']();[a50i(0x1ed)];[a50i(0x1fa)];[a50i(0x219)]=new Map();['roomType'];[a50i(0x220)];['inventory']=new Inventory();constructor(a){const j=a50i;super(),this[j(0x1ed)]=a[j(0x1ed)],this[j(0x1fa)]=a[j(0x1fa)],this[j(0x20f)]=a[j(0x20f)]||RoomType[j(0x21b)],a[j(0x219)]&&(this[j(0x219)]=a[j(0x219)]||new Map()),a[j(0x211)]&&(this[j(0x211)]=a[j(0x211)]),a[j(0x216)]&&(this['puzzle']=a['puzzle']),this[j(0x220)]=a[j(0x220)]||![],this[j(0x205)][j(0x20c)](j(0x21f)+this[j(0x1ed)]);}[a50i(0x21e)](a,b){this['emit']('speak',a,b);}['addExit'](a,b,c){const k=a50i;let d=this[k(0x20b)](b);!d&&(d=new Door({'roomA':this,'roomB':b,'isLocked':Boolean(c),'unlockItemOrSolution':c})),this[k(0x219)][k(0x1f8)](a,d),b[k(0x219)][k(0x1f8)](this[k(0x1f5)](a),d);}['attemptUnlockExit'](a,b){const l=a50i,c=this[l(0x219)]['get'](a);if(c instanceof Door){const d=c['attemptUnlock'](b);return this['logger'][l(0x20c)]('Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20'+a+l(0x213)+d),d?l(0x223)+c[l(0x1ed)]+l(0x214):'The\x20'+c['name']+l(0x1f2);}return this[l(0x205)][l(0x20c)](l(0x20e)+a),l(0x204);}[a50i(0x21d)](a){const m=a50i;return this[m(0x205)][m(0x20c)]('Fetching\x20exit\x20in\x20direction:\x20'+a),this['exits']['get'](a);}[a50i(0x1ef)](a){const n=a50i,b=this[n(0x219)][n(0x1f9)](a),c=b instanceof Door&&b['checkIfLocked']();return this[n(0x205)][n(0x20c)](n(0x1fb)+a+n(0x1fe)+c),c;}[a50i(0x21a)](a){const o=a50i;this[o(0x211)]['addItem'](a),this[o(0x205)][o(0x20c)](o(0x207)+this['name']+':\x20'+a[o(0x1ed)]);}[a50i(0x206)](a){const p=a50i;this[p(0x211)][p(0x212)](a[p(0x1ed)])?(this[p(0x211)]['removeItem'](a['name']),this[p(0x205)][p(0x20c)](p(0x202)+this[p(0x1ed)]+':\x20'+a[p(0x1ed)])):this[p(0x205)]['write'](p(0x224)+this['name']+':\x20'+a['name']);}[a50i(0x210)](a){const q=a50i;this['puzzle']=a,this[q(0x205)]['write'](q(0x20a)+this[q(0x1ed)]+':\x20'+a[q(0x201)]);}['getOppositeDirection'](a){const r=a50i;switch(a){case'north':return Direction[r(0x1ff)];case r(0x1fc):return Direction[r(0x1f4)];case'east':return Direction[r(0x1fd)];case'west':return Direction[r(0x225)];case'up':return Direction['DOWN'];case r(0x215):return Direction['UP'];default:throw new Error(r(0x208)+a);}}[a50i(0x20b)](a){const s=a50i;for(const b of this[s(0x219)][s(0x1f6)]()){if(b instanceof Door){if(b[s(0x20d)]===this&&b[s(0x1f7)]===a||b[s(0x1f7)]===this&&b[s(0x20d)]===a)return b;}}return undefined;}}
@@ -1 +1 @@
1
- const a51l=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=parseInt(i(0x192))/0x1*(parseInt(i(0x1aa))/0x2)+parseInt(i(0x1ac))/0x3+-parseInt(i(0x18a))/0x4+parseInt(i(0x19f))/0x5+-parseInt(i(0x1a6))/0x6*(-parseInt(i(0x1a9))/0x7)+-parseInt(i(0x1a7))/0x8+-parseInt(i(0x16c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x93d62));function a51c(){const C=['isStartRoom','\x20is\x20now\x20in\x20room\x20','addExit','createExitsFromConfig','17814RcbgvZ','8697576QVVBtc','direction','1981fLzTCz','4svTFhK','determineStartRoom','1177209dQnwjE','getInstance','delete','rooms','toString','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','createRoom','Removed\x20room\x20from\x20scene:\x20','exits','.\x20Room\x20','write','1426653BSBwvc','set','player','Failed\x20to\x20add\x20item\x20','keyRequired','has','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','length','logger','Actor\x20with\x20name\x20','addPuzzleToRoom','get','roomConfiguration','values','(((.+)+)+)+$','Added\x20puzzle\x20to\x20room\x20','getPlayer','\x22\x20does\x20not\x20exist.','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','name','\x20to\x20room\x20','from','toUpperCase','Failed\x20to\x20set\x20','addActor','addItem','\x27s\x20location.\x20Room\x20','\x20not\x20found\x20in\x20scene.','targetRoom','currentLocation','3032736SxUQaa','actors','Room\x20\x22','search','initialize','\x20already\x20exists\x20in\x20the\x20scene.','No\x20actor\x20with\x20name\x20','setCharacterLocation','591802QmoylH','getActor','generateRoomsFromConfig','join','removeRoom','roomFactory','keys','characterLocations','constructor','hasOwnProperty','getRooms','Failed\x20to\x20add\x20puzzle.\x20Room\x20','apply','966010pbkDXJ','warn','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.'];a51c=function(){return C;};return a51c();}const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a51d;if(c){const e=c[j(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const k=a51d;return a51a['toString']()['search'](k(0x17a))[k(0x165)]()[k(0x19a)](a51a)[k(0x18d)](k(0x17a));});a51a();function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x165;let f=c[d];return f;},a51d(a,b);}import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';export class Scene extends AbstractScene{['rooms'];['player'];['logger'];[a51l(0x18b)];[a51l(0x199)]=new Map();[a51l(0x197)];constructor(a){const m=a51l;super(),this[m(0x197)]=new RoomFactory(),this[m(0x16e)]=a['player'],this[m(0x1af)]=this[m(0x194)](a['roomConfiguration']),this[m(0x174)]=Logger[m(0x1ad)](),this['actors']=new Map(),this[m(0x1a5)](a[m(0x178)]),this[m(0x174)][m(0x16b)]('Scene\x20initialized\x20with\x20rooms:\x20'+Object[m(0x198)](this['rooms'])[m(0x195)](',\x20'));}[a51l(0x18e)](){const n=a51l;this['player'][n(0x189)]=this[n(0x1ab)]();}['generateRoomsFromConfig'](a){const o=a51l;if(!this[o(0x197)])throw new Error(o(0x166));const b={};for(const c of a){const d=this['roomFactory'][o(0x167)](c);b[c[o(0x17f)]]=d;}return b;}['createExitsFromConfig'](a){const p=a51l;for(const b of a){const c=this[p(0x1af)][b['name']];if(b[p(0x169)])for(const d of b[p(0x169)]){const e=d[p(0x1a8)][p(0x182)](),f=d[p(0x188)],g=d[p(0x170)],h=this[p(0x1af)][f];h&&c[p(0x1a4)](Direction[e],h,g);}}}[a51l(0x184)](a){const q=a51l;if(this[q(0x18b)][q(0x171)](a[q(0x17f)]))throw new Error(q(0x175)+a['name']+q(0x18f));this[q(0x18b)][q(0x16d)](a['name'],a);}['removeActor'](a){const r=a51l;if(!this['actors'][r(0x171)](a))throw new Error(r(0x190)+a+'\x20found\x20in\x20the\x20scene.');this[r(0x18b)][r(0x1ae)](a);}[a51l(0x193)](a){const s=a51l;return this[s(0x18b)][s(0x177)](a);}get['allActors'](){const t=a51l;return Array[t(0x181)](this[t(0x18b)][t(0x179)]());}['addRoom'](a){const u=a51l;this['rooms'][a[u(0x17f)]]=a,this['logger'][u(0x16b)]('Added\x20room\x20to\x20scene:\x20'+a[u(0x17f)]);}[a51l(0x196)](a){const v=a51l;return this[v(0x1af)][a]?(delete this[v(0x1af)][a],this[v(0x174)][v(0x16b)](v(0x168)+a),!![]):(this[v(0x174)]['write'](v(0x17e)+a),![]);}['addItemToRoom'](a,b){const w=a51l,c=this['rooms'][b];c?(c[w(0x185)](a),this[w(0x174)][w(0x16b)]('Added\x20item\x20'+a[w(0x17f)]+w(0x180)+c[w(0x17f)])):this[w(0x174)][w(0x16b)](w(0x16f)+a[w(0x17f)]+w(0x16a)+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0x176)](a,b){const x=a51l,c=this[x(0x1af)][b];c?(c['setPuzzle'](a),this[x(0x174)][x(0x16b)](x(0x17b)+c[x(0x17f)])):this['logger'][x(0x16b)](x(0x19d)+b+x(0x187));}[a51l(0x191)](a,b){const y=a51l,c=this[y(0x1af)][b];c?(this['characterLocations'][y(0x16d)](a['name'],c),this['logger'][y(0x16b)](a[y(0x17f)]+y(0x1a3)+c['name'])):this[y(0x174)]['write'](y(0x183)+a[y(0x17f)]+y(0x186)+b+y(0x187));}['getCharacterLocation'](a){const z=a51l;return this['characterLocations'][z(0x177)](a[z(0x17f)]);}[a51l(0x1ab)](){const A=a51l,a=[];for(const c in this[A(0x1af)]){if(this[A(0x1af)][A(0x19b)](c)){const d=this['rooms'][c];d[A(0x1a2)]&&a['push'](d);}}if(a[A(0x173)]>0x1)throw new Error(A(0x1a1));if(a[A(0x173)]===0x1)return a[0x0];const b=Object[A(0x198)](this[A(0x1af)]);if(b[A(0x173)]===0x0)throw new Error(A(0x172));return console[A(0x1a0)]('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this[A(0x1af)][b[0x0]];}[a51l(0x17c)](){return this['player'];}[a51l(0x19c)](){return this['rooms'];}['connectRooms'](a,b,c,d){const B=a51l,e=this[B(0x1af)][a],f=this['rooms'][c];if(!e)throw new Error('Room\x20\x22'+a+B(0x17d));if(!f)throw new Error(B(0x18c)+c+B(0x17d));e[B(0x1a4)](b,f,d);}}
1
+ const a51l=a51d;(function(a,b){const i=a51d,c=a();while(!![]){try{const d=parseInt(i(0xaa))/0x1*(parseInt(i(0xae))/0x2)+-parseInt(i(0xa8))/0x3*(-parseInt(i(0xb9))/0x4)+parseInt(i(0xab))/0x5+parseInt(i(0xc0))/0x6*(parseInt(i(0xbf))/0x7)+parseInt(i(0xd8))/0x8*(-parseInt(i(0xd2))/0x9)+parseInt(i(0xc3))/0xa*(parseInt(i(0xc5))/0xb)+parseInt(i(0xdb))/0xc*(-parseInt(i(0xd1))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0x68a29));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a51d;if(c){const e=c[j(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const k=a51d;return a51a[k(0xea)]()[k(0xd0)](k(0xf1))['toString']()[k(0xf0)](a51a)[k(0xd0)](k(0xf1));});a51a();import{Logger}from'../utilities/logger.js';import{Direction}from'../types/enums.js';import{AbstractScene}from'../types/abstracts.js';import{RoomFactory}from'../factories/roomsF.js';function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0xa7;let f=c[d];return f;},a51d(a,b);}function a51c(){const E=['removeActor','29LuEHMt','3100305jpUgRs','rooms','connectRooms','23662npaDhM','warn','initialize','Failed\x20to\x20add\x20item\x20','actors','addItem','\x27s\x20location.\x20Room\x20','generateRoomsFromConfig','keys','length','targetRoom','184ylJgZP','has','exits','addPuzzleToRoom','Actor\x20with\x20name\x20','get','434VjixAI','7602MRSwlm','No\x20actor\x20with\x20name\x20','write','10ZaUIxY','characterLocations','8067785TPGXJL','Room\x20Factory\x20was\x20not\x20correctly\x20initialized','player','getInstance','push','Removed\x20room\x20from\x20scene:\x20','apply','createExitsFromConfig','hasOwnProperty','roomFactory','Scene\x20initialized\x20with\x20rooms:\x20','search','13QwxxmP','1269OCqGHR','setCharacterLocation','Added\x20item\x20','addExit','delete','addActor','41544kJeKDU','Attempted\x20to\x20remove\x20a\x20non-existent\x20room\x20from\x20scene:\x20','\x22\x20does\x20not\x20exist.','17107836vcaTdM','Multiple\x20starting\x20rooms\x20have\x20been\x20defined.\x20Please\x20ensure\x20there\x27s\x20only\x20one\x20starting\x20room.','logger','set','\x20not\x20found\x20in\x20scene.','determineStartRoom','Added\x20puzzle\x20to\x20room\x20','No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.','roomConfiguration','addRoom','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','Added\x20room\x20to\x20scene:\x20','from','allActors','keyRequired','toString','name','.\x20Room\x20','removeRoom','Failed\x20to\x20add\x20puzzle.\x20Room\x20','getPlayer','constructor','(((.+)+)+)+$','getRooms','52911RMcBjM'];a51c=function(){return E;};return a51c();}export class Scene extends AbstractScene{[a51l(0xac)];[a51l(0xc7)];[a51l(0xdd)];[a51l(0xb2)];[a51l(0xc4)]=new Map();[a51l(0xce)];constructor(a){const m=a51l;super(),this[m(0xce)]=new RoomFactory(),this['player']=a[m(0xc7)],this[m(0xac)]=this[m(0xb5)](a[m(0xe3)]),this[m(0xdd)]=Logger[m(0xc8)](),this['actors']=new Map(),this[m(0xcc)](a['roomConfiguration']),this['logger'][m(0xc2)](m(0xcf)+Object[m(0xb6)](this['rooms'])['join'](',\x20'));}[a51l(0xb0)](){const n=a51l;this[n(0xc7)]['currentLocation']=this['determineStartRoom']();}[a51l(0xb5)](a){const o=a51l;if(!this[o(0xce)])throw new Error(o(0xc6));const b={};for(const c of a){const d=this[o(0xce)]['createRoom'](c);b[c[o(0xeb)]]=d;}return b;}['createExitsFromConfig'](a){const p=a51l;for(const b of a){const c=this['rooms'][b[p(0xeb)]];if(b['exits'])for(const d of b[p(0xbb)]){const e=d['direction']['toUpperCase'](),f=d[p(0xb8)],g=d[p(0xe9)],h=this[p(0xac)][f];h&&c[p(0xd5)](Direction[e],h,g);}}}[a51l(0xd7)](a){const q=a51l;if(this[q(0xb2)][q(0xba)](a[q(0xeb)]))throw new Error(q(0xbd)+a['name']+'\x20already\x20exists\x20in\x20the\x20scene.');this[q(0xb2)][q(0xde)](a[q(0xeb)],a);}[a51l(0xa9)](a){const r=a51l;if(!this[r(0xb2)][r(0xba)](a))throw new Error(r(0xc1)+a+'\x20found\x20in\x20the\x20scene.');this[r(0xb2)][r(0xd6)](a);}['getActor'](a){const s=a51l;return this[s(0xb2)][s(0xbe)](a);}get[a51l(0xe8)](){const t=a51l;return Array[t(0xe7)](this[t(0xb2)]['values']());}[a51l(0xe4)](a){const u=a51l;this[u(0xac)][a[u(0xeb)]]=a,this[u(0xdd)][u(0xc2)](u(0xe6)+a[u(0xeb)]);}[a51l(0xed)](a){const v=a51l;return this['rooms'][a]?(delete this[v(0xac)][a],this[v(0xdd)]['write'](v(0xca)+a),!![]):(this[v(0xdd)][v(0xc2)](v(0xd9)+a),![]);}['addItemToRoom'](a,b){const w=a51l,c=this[w(0xac)][b];c?(c[w(0xb3)](a),this[w(0xdd)][w(0xc2)](w(0xd4)+a[w(0xeb)]+'\x20to\x20room\x20'+c[w(0xeb)])):this[w(0xdd)]['write'](w(0xb1)+a[w(0xeb)]+w(0xec)+b+w(0xdf));}[a51l(0xbc)](a,b){const x=a51l,c=this[x(0xac)][b];c?(c['setPuzzle'](a),this[x(0xdd)][x(0xc2)](x(0xe1)+c[x(0xeb)])):this[x(0xdd)][x(0xc2)](x(0xee)+b+'\x20not\x20found\x20in\x20scene.');}[a51l(0xd3)](a,b){const y=a51l,c=this[y(0xac)][b];c?(this[y(0xc4)][y(0xde)](a[y(0xeb)],c),this[y(0xdd)][y(0xc2)](a[y(0xeb)]+'\x20is\x20now\x20in\x20room\x20'+c[y(0xeb)])):this[y(0xdd)]['write']('Failed\x20to\x20set\x20'+a['name']+y(0xb4)+b+y(0xdf));}['getCharacterLocation'](a){const z=a51l;return this[z(0xc4)]['get'](a[z(0xeb)]);}[a51l(0xe0)](){const A=a51l,a=[];for(const c in this[A(0xac)]){if(this[A(0xac)][A(0xcd)](c)){const d=this[A(0xac)][c];d['isStartRoom']&&a[A(0xc9)](d);}}if(a[A(0xb7)]>0x1)throw new Error(A(0xdc));if(a[A(0xb7)]===0x1)return a[0x0];const b=Object[A(0xb6)](this[A(0xac)]);if(b[A(0xb7)]===0x0)throw new Error(A(0xe5));return console[A(0xaf)](A(0xe2)),this['rooms'][b[0x0]];}[a51l(0xef)](){const B=a51l;return this[B(0xc7)];}[a51l(0xa7)](){const C=a51l;return this[C(0xac)];}[a51l(0xad)](a,b,c,d){const D=a51l,e=this['rooms'][a],f=this['rooms'][c];if(!e)throw new Error('Room\x20\x22'+a+D(0xda));if(!f)throw new Error('Room\x20\x22'+c+'\x22\x20does\x20not\x20exist.');e[D(0xd5)](b,f,d);}}
@@ -1 +1 @@
1
- var a52j=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0x1cd))/0x1+-parseInt(f(0x1ad))/0x2*(-parseInt(f(0x1d3))/0x3)+parseInt(f(0x1a2))/0x4+parseInt(f(0x1c6))/0x5+parseInt(f(0x1a5))/0x6+-parseInt(f(0x1c7))/0x7*(-parseInt(f(0x1a1))/0x8)+parseInt(f(0x1b6))/0x9*(-parseInt(f(0x1c2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x74da6));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0x1b7)]()[h(0x19d)](h(0x1b8))[h(0x1b7)]()[h(0x19f)](a52a)['search'](h(0x1b8));});a52a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a52d;super({'name':a,'description':b,'size':Size[i(0x1a8)],'category':Category[i(0x1b5)],'shape':Shape[i(0x1c8)],'color':Color[i(0x1ce)],'texture':Texture[i(0x19c)],'rating':Rating[i(0x1bd)],'weight':0x1});}[a52j(0x1cf)](){var k=a52j;return this[k(0x1a6)];}}export class Sword extends Item{constructor(a,b){var l=a52j;super({'name':a,'description':b,'size':Size[l(0x1a8)],'category':Category[l(0x1d5)],'shape':Shape[l(0x1d2)],'color':Color[l(0x1b9)],'texture':Texture['Metallic'],'rating':Rating[l(0x1bd)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var m=a52j;super({'name':a,'description':b,'size':Size[m(0x1bc)],'category':Category[m(0x1d5)],'shape':Shape['Rifle'],'color':Color[m(0x1ab)],'texture':Texture[m(0x1c0)],'rating':Rating[m(0x1d1)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var n=a52j;super({'name':a,'description':b,'size':Size[n(0x1a8)],'category':Category[n(0x1a9)],'shape':Shape[n(0x1ac)],'color':Color[n(0x1b9)],'texture':Texture[n(0x1c0)],'rating':Rating[n(0x1bd)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var o=a52j;super({'name':a,'description':b,'size':Size[o(0x1bc)],'category':Category[o(0x1bf)],'shape':Shape['Rectangle'],'color':Color['Grey'],'texture':Texture[o(0x1c0)],'rating':Rating[o(0x1bd)],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var p=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[p(0x1ca)],'shape':Shape[p(0x1c8)],'color':Color['Grey'],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x6});}}function a52c(){var F=['Common','Gloves','BodyArmor','Metallic','Book','430aSarcC','publishDate','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','author','2893405AsSGOs','21pLTbRN','Rectangle','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','LegArmor','Key','Sniper\x20Rifle','729088xKaoSA','Yellow','use','ArmArmor','Rare','Blade','6ShVfVW','apply','Weapon','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','Smooth','search','Holy\x20Grail','constructor','\x20aloft,\x20feeling\x20its\x20immense\x20power.','2156464PmsAOz','2924504DRowul','Cup','Gold','363834TBpXBz','description','Tiny','Medium','Helmet','Rifle','Brown','Circle','383012dcCyGU','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','pageCount','Unknown\x20Author','Small','A\x20mysterious\x20book.','Boots','name','Unknown','283482pBtVdT','toString','(((.+)+)+)+$','Grey','Legendary','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','Large'];a52c=function(){return F;};return a52c();}export class Boots extends Item{constructor(a,b){var q=a52j;super({'name':a,'description':b,'size':Size[q(0x1a8)],'category':Category[q(0x1b3)],'shape':Shape['Circle'],'color':Color[q(0x1ab)],'texture':Texture[q(0x19c)],'rating':Rating[q(0x1bd)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var r=a52j;super({'name':a,'description':b,'size':Size[r(0x1b1)],'category':Category[r(0x1be)],'shape':Shape[r(0x1ac)],'color':Color[r(0x1ab)],'texture':Texture[r(0x19c)],'rating':Rating['Common'],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var s=a52j;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[s(0x1d0)],'shape':Shape[s(0x1c8)],'color':Color[s(0x1b9)],'texture':Texture[s(0x1c0)],'rating':Rating[s(0x1bd)],'weight':0x3});}}function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0x19b;var f=c[d];return f;},a52d(a,b);}export class Key extends Item{constructor(a,b){var t=a52j;super({'name':a,'description':b,'size':Size[t(0x1a7)],'category':Category[t(0x1cb)],'shape':Shape[t(0x1c8)],'color':Color['Yellow'],'texture':Texture['Smooth'],'rating':Rating[t(0x1bd)],'weight':0x0});}[a52j(0x1cf)](){var u=a52j;return u(0x1bb);}}export class Weapon extends Item{constructor(a,b){var v=a52j;super({'name':a,'description':b,'size':Size[v(0x1a8)],'category':Category[v(0x1d5)],'shape':Shape[v(0x1d2)],'color':Color[v(0x1b9)],'texture':Texture[v(0x1c0)],'rating':Rating[v(0x1bd)],'weight':0x3});}[a52j(0x1cf)](){var w=a52j;return w(0x1c9);}}export class Book extends Item{[a52j(0x1c5)];[a52j(0x1c3)];[a52j(0x1af)];constructor(a,b=a52j(0x1b2),c=a52j(0x1b0)){var x=a52j;super({'name':a,'description':b,'size':Size[x(0x1a8)],'category':Category[x(0x1c1)],'shape':Shape[x(0x1c8)],'color':Color[x(0x1ab)],'texture':Texture[x(0x19c)],'rating':Rating[x(0x1bd)],'weight':0x1}),this[x(0x1c5)]=c,this['publishDate']=new Date(),this[x(0x1af)]=0x64;}[a52j(0x1cf)](){var y=a52j;return y(0x1ae);}}export class ShortSword extends Item{constructor(){var z=a52j;super({'name':'Short\x20Sword','description':z(0x19b),'size':Size[z(0x1a8)],'category':Category[z(0x1d5)],'shape':Shape[z(0x1d2)],'color':Color[z(0x1b9)],'texture':Texture[z(0x1c0)],'rating':Rating[z(0x1bd)],'weight':0x3});}['use'](){var A=a52j;return A(0x1c9);}}export class SniperRifle extends Item{constructor(){var B=a52j;super({'name':B(0x1cc),'description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size[B(0x1bc)],'category':Category['Weapon'],'shape':Shape[B(0x1aa)],'color':Color[B(0x1ab)],'texture':Texture[B(0x19c)],'rating':Rating[B(0x1bd)],'weight':0x5});}[a52j(0x1cf)](){var C=a52j;return C(0x1c4);}}export class HolyGrail extends Item{constructor(){var D=a52j;super({'name':D(0x19e),'description':'A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','size':Size[D(0x1b1)],'category':Category[D(0x1a3)],'shape':Shape[D(0x1ac)],'color':Color[D(0x1a4)],'texture':Texture['Metallic'],'rating':Rating[D(0x1ba)],'weight':0x1});}[a52j(0x1cf)](){var E=a52j;return'You\x20hold\x20the\x20'+this[E(0x1b4)]+E(0x1a0);}}
1
+ var a52v=a52d;(function(a,b){var f=a52d,c=a();while(!![]){try{var d=-parseInt(f(0xe4))/0x1+-parseInt(f(0xc8))/0x2*(-parseInt(f(0xd2))/0x3)+-parseInt(f(0xb8))/0x4*(parseInt(f(0xcd))/0x5)+parseInt(f(0xbe))/0x6*(-parseInt(f(0xad))/0x7)+-parseInt(f(0xb7))/0x8+parseInt(f(0xde))/0x9*(-parseInt(f(0xe0))/0xa)+parseInt(f(0xd6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x1a61e));var a52b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a52d;if(c){var e=c[g(0xe1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){var h=a52d;return a52a[h(0xc6)]()[h(0xdf)](h(0xd3))[h(0xc6)]()[h(0xaf)](a52a)[h(0xdf)](h(0xd3));});a52a();import{Size,Category,Shape,Color,Texture,Rating}from'../types/enums.js';function a52d(a,b){var c=a52c();return a52d=function(d,e){d=d-0xab;var f=c[d];return f;},a52d(a,b);}import{Item}from'../models/item.js';export class BasicItem extends Item{constructor(a,b){var i=a52d;super({'name':a,'description':b,'size':Size[i(0xba)],'category':Category[i(0xcc)],'shape':Shape[i(0xb6)],'color':Color[i(0xb1)],'texture':Texture[i(0xbb)],'rating':Rating['Common'],'weight':0x1});}['use'](){var j=a52d;return this[j(0xab)];}}function a52c(){var E=['4298iexplt','Legendary','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','publishDate','Unknown','5WBkxVa','Brown','Helmet','An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','Short\x20Sword','141LKzBeR','(((.+)+)+)+$','pageCount','There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22','5364271mFjYrZ','Rare','Tiny','Metallic','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Common','Cup','Key','278352gdeVNR','search','20aVXUeG','apply','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','use','142515NRMTNm','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Book','description','BodyArmor','142611lCGbME','ArmArmor','constructor','Sniper\x20Rifle','Yellow','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','Rifle','author','A\x20mysterious\x20book.','Rectangle','791504iwaxbP','627680NlvPyu','Blade','Medium','Smooth','Grey','LegArmor','6ADukUJ','Weapon','Holy\x20Grail','Circle','Gloves','Boots','Unknown\x20Author','Large','toString','name'];a52c=function(){return E;};return a52c();}export class Sword extends Item{constructor(a,b){var k=a52d;super({'name':a,'description':b,'size':Size[k(0xba)],'category':Category[k(0xbf)],'shape':Shape[k(0xb9)],'color':Color[k(0xbc)],'texture':Texture[k(0xd9)],'rating':Rating[k(0xdb)],'weight':0x3});}}export class Rifle extends Item{constructor(a,b){var l=a52d;super({'name':a,'description':b,'size':Size[l(0xc5)],'category':Category[l(0xbf)],'shape':Shape[l(0xb3)],'color':Color[l(0xce)],'texture':Texture[l(0xd9)],'rating':Rating[l(0xd7)],'weight':0x7});}}export class Helmet extends Item{constructor(a,b){var m=a52d;super({'name':a,'description':b,'size':Size[m(0xba)],'category':Category[m(0xcf)],'shape':Shape[m(0xc1)],'color':Color[m(0xbc)],'texture':Texture[m(0xd9)],'rating':Rating[m(0xdb)],'weight':0x2});}}export class BodyArmor extends Item{constructor(a,b){var n=a52d;super({'name':a,'description':b,'size':Size[n(0xc5)],'category':Category[n(0xac)],'shape':Shape[n(0xb6)],'color':Color['Grey'],'texture':Texture[n(0xd9)],'rating':Rating['Common'],'weight':0xa});}}export class LegArmor extends Item{constructor(a,b){var o=a52d;super({'name':a,'description':b,'size':Size[o(0xba)],'category':Category[o(0xbd)],'shape':Shape[o(0xb6)],'color':Color[o(0xbc)],'texture':Texture[o(0xd9)],'rating':Rating[o(0xdb)],'weight':0x6});}}export class Boots extends Item{constructor(a,b){var p=a52d;super({'name':a,'description':b,'size':Size['Medium'],'category':Category[p(0xc3)],'shape':Shape[p(0xc1)],'color':Color[p(0xce)],'texture':Texture[p(0xbb)],'rating':Rating[p(0xdb)],'weight':0x2});}}export class Gloves extends Item{constructor(a,b){var q=a52d;super({'name':a,'description':b,'size':Size['Small'],'category':Category[q(0xc2)],'shape':Shape['Circle'],'color':Color[q(0xce)],'texture':Texture[q(0xbb)],'rating':Rating[q(0xdb)],'weight':0x1});}}export class Gauntlets extends Item{constructor(a,b){var r=a52d;super({'name':a,'description':b,'size':Size[r(0xba)],'category':Category[r(0xae)],'shape':Shape[r(0xb6)],'color':Color['Grey'],'texture':Texture[r(0xd9)],'rating':Rating[r(0xdb)],'weight':0x3});}}export class Key extends Item{constructor(a,b){var s=a52d;super({'name':a,'description':b,'size':Size[s(0xd8)],'category':Category[s(0xdd)],'shape':Shape[s(0xb6)],'color':Color[s(0xb1)],'texture':Texture['Smooth'],'rating':Rating[s(0xdb)],'weight':0x0});}['use'](){var t=a52d;return t(0xca);}}export class Weapon extends Item{constructor(a,b){var u=a52d;super({'name':a,'description':b,'size':Size[u(0xba)],'category':Category['Weapon'],'shape':Shape[u(0xb9)],'color':Color[u(0xbc)],'texture':Texture[u(0xd9)],'rating':Rating[u(0xdb)],'weight':0x3});}[a52v(0xe3)](){var w=a52v;return w(0xe2);}}export class Book extends Item{[a52v(0xb4)];[a52v(0xcb)];[a52v(0xd4)];constructor(a,b=a52v(0xb5),c=a52v(0xc4)){var x=a52v;super({'name':a,'description':b,'size':Size[x(0xba)],'category':Category[x(0xe6)],'shape':Shape[x(0xb6)],'color':Color[x(0xce)],'texture':Texture[x(0xbb)],'rating':Rating['Common'],'weight':0x1}),this[x(0xb4)]=c,this[x(0xcb)]=new Date(),this['pageCount']=0x64;}['use'](){var y=a52v;return y(0xd5);}}export class ShortSword extends Item{constructor(){var z=a52v;super({'name':z(0xd1),'description':'A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','size':Size[z(0xba)],'category':Category[z(0xbf)],'shape':Shape['Blade'],'color':Color[z(0xbc)],'texture':Texture['Metallic'],'rating':Rating['Common'],'weight':0x3});}[a52v(0xe3)](){return'Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22';}}export class SniperRifle extends Item{constructor(){var A=a52v;super({'name':A(0xb0),'description':A(0xd0),'size':Size[A(0xc5)],'category':Category[A(0xbf)],'shape':Shape['Rifle'],'color':Color[A(0xce)],'texture':Texture[A(0xbb)],'rating':Rating['Common'],'weight':0x5});}[a52v(0xe3)](){var B=a52v;return B(0xda);}}export class HolyGrail extends Item{constructor(){var C=a52v;super({'name':C(0xc0),'description':C(0xb2),'size':Size['Small'],'category':Category[C(0xdc)],'shape':Shape['Circle'],'color':Color['Gold'],'texture':Texture[C(0xd9)],'rating':Rating[C(0xc9)],'weight':0x1});}[a52v(0xe3)](){var D=a52v;return'You\x20hold\x20the\x20'+this[D(0xc7)]+D(0xe5);}}