/* Copyright 2025 <FireWave Interactive>. This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. You may not use this work for commercial purposes, and you may not alter, transform, or build upon this work. For more details, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ */
function _0x31b3(_0x499743,_0x367e2f){const _0x52e4f7=_0x52e4();return _0x31b3=function(_0x31b307,_0x45cbf1){_0x31b307=_0x31b307-0xfb;let _0xc42eb4=_0x52e4f7[_0x31b307];return _0xc42eb4;},_0x31b3(_0x499743,_0x367e2f);}const _0x1c29c1=_0x31b3;(function(_0x1e87ee,_0x5a269d){const _0x2c8184=_0x31b3,_0x2db3f9=_0x1e87ee();while(!![]){try{const _0x397c1f=-parseInt(_0x2c8184(0x111))/0x1+parseInt(_0x2c8184(0x10d))/0x2+-parseInt(_0x2c8184(0x117))/0x3+-parseInt(_0x2c8184(0x103))/0x4*(-parseInt(_0x2c8184(0xfb))/0x5)+-parseInt(_0x2c8184(0x105))/0x6+-parseInt(_0x2c8184(0x10c))/0x7+-parseInt(_0x2c8184(0x119))/0x8*(-parseInt(_0x2c8184(0x116))/0x9);if(_0x397c1f===_0x5a269d)break;else _0x2db3f9['push'](_0x2db3f9['shift']());}catch(_0x324401){_0x2db3f9['push'](_0x2db3f9['shift']());}}}(_0x52e4,0xba229));import{EntityComponentTypes,world}from'@minecraft/server';import{GUNS_LORE,IEMS_LORE,NAMESPACE,WEARABLE_LORE}from'../util/data';function _0x52e4(){const _0x386399=['Inventory','tickInterval','644188yWZmSQ','getDynamicProperty','372336cmlfGI','getLore','setDynamicProperty','bind','includes','find','haveOwner','483588bpRDrh','609192fQtQQw','addTickInterval','lore','updateLoreForAllPlayers','202662lyQRdv','setPlayerLore','setLore','getItem','getAllPlayers','486HvnNKk','3819282ZwKBBu','onInitialize','282024eEhnPT','5tVclVj','typeId','getComponent',':have_owner','container','setItem'];_0x52e4=function(){return _0x386399;};return _0x52e4();}import _0x36f01f from'./scripting';const LORE_LIST=[...IEMS_LORE,...GUNS_LORE,...WEARABLE_LORE];export default class LoreModule extends _0x36f01f{[_0x1c29c1(0x102)]=0x4;constructor(_0x465b8c=!![]){super('LoreModule',_0x465b8c);}[_0x1c29c1(0x118)](){const _0x49bffc=_0x1c29c1;this[_0x49bffc(0x10e)](this['tickInterval'],this[_0x49bffc(0x110)][_0x49bffc(0x108)](this));}[_0x1c29c1(0x110)](){const _0x2e9f42=_0x1c29c1;for(const _0x26e606 of world[_0x2e9f42(0x115)]()){this[_0x2e9f42(0x112)](_0x26e606);}}['setPlayerLore'](_0x48c6c5){const _0x4da32b=_0x1c29c1,_0x4c1ed6=_0x48c6c5[_0x4da32b(0xfd)](EntityComponentTypes[_0x4da32b(0x101)]);if(!_0x4c1ed6)return;const _0x51dcd0=_0x4c1ed6[_0x4da32b(0xff)];for(let _0x59fc23=0x0;_0x59fc23<_0x51dcd0['size'];_0x59fc23++){const _0x204354=_0x51dcd0[_0x4da32b(0x114)](_0x59fc23);if(!_0x204354)continue;if(_0x204354[_0x4da32b(0x106)]()['length']>0x0)continue;const _0x263541=LORE_LIST[_0x4da32b(0x10a)](_0x1279d0=>_0x1279d0[_0x4da32b(0xfc)][_0x4da32b(0x109)](_0x204354[_0x4da32b(0xfc)]));if(!_0x263541)continue;_0x263541[_0x4da32b(0x10b)]&&!_0x204354[_0x4da32b(0x104)](NAMESPACE+_0x4da32b(0xfe))&&_0x204354[_0x4da32b(0x107)](NAMESPACE+_0x4da32b(0xfe),_0x48c6c5['id']),_0x204354[_0x4da32b(0x113)](_0x263541[_0x4da32b(0x10f)]),_0x51dcd0[_0x4da32b(0x100)](_0x59fc23,_0x204354);}}}