
    6bt                     l    S SK r SSKJrJrJrJrJrJr  S SKrS SK	r	 " S S\5      r
\" \
" 5       5        g)    N   )EnabledSaveTypeModTypesOptionManagerSDKModHookRegisterModc                     ^  \ rS rSr% Sr\\S'   Sr\\S'   Sr\\S'   Sr	\\S	'   \
R                  r\
\S
'   \R                  r\\S'   U 4S jr\" SS5      S 5       rS rS r\" S5      S 5       rU 4S jrU 4S jrSrU =r$ )	Lootbeams   zLoot NotificatorNamez2.1VersionzAdds Special Particles to all Red Text gear dropped. Also plays a sound. Configure which modpack you are running in the Mod Options.DescriptionzJuso and SilverBeamAuthorTypesSaveEnabledStatec           	      8  > [         [        U ]  5         [        [        R
                  R                  [        R
                  R                  [        R
                  R                  [        5      5      S5      S5       n[        R                  " U5      U l        S S S 5        / SQU l        SS/U l        [        R                   R#                  SSS[%        U R                  R'                  5       5      S	9U l        U R(                  /U l        g ! , (       d  f       Ny= f)
Nzrarities.jsonr)z#FX_ENV_Misc.Particles.Part_Confettiz<FX_Aster_Knight.Particles.Paladin.Part_DivineShard_HitImpactz4FX_Aster_Knight.Particles.Paladin.Part_PillarOfSmitez2FX_Aster_Knight.Particles.Paladin.Part_DivineFavorz7FX_Aster_Knight.Particles.Paladin.Part_ConcecrateGroundz>FX_Aster_ButtStallion.Particles.Part_ButtStallionSavesTheWorldz+Ake_UI.UI_Mission.Ak_Play_UI_Mission_Rewardz,Ake_UI.UI_HUD.Ak_Play_UI_HUD_Chapter_StingerzMod Packz%Select which modpack you are running.Exodus)Captionr   StartingValueChoices)superr   __init__openospathjoindirnamerealpath__file__jsonloadRarities	ParticlesEventSoundsr   OptionsSpinnerlistkeysModPackSpinner)selff	__class__s     cZ:\mnt\Skyabridged\SteamLibrary\steamapps\common\Borderlands 2\sdk_mods\LootNotificator\__init__.pyr   Lootbeams.__init__   s    i')"'',,rwwrww/?/?/IJO\^abfg IIaLDM c
 ::

 ,33;;?"++-.	 < 
 
/ cbs   <D
D"WillowGame.FrontendGFxMovie.OnTickForceLoadParticlesc                 b   [         R                  " S5        [         R                  " S5        [         R                  " S5        [         R                  " S5        U R                   H0  n[         R                  " SU5      n[         R                  " U5        M2     [         R
                  " SS5        g )NSanctuaryAir_DynamicCastleKeep_FXCastleKeep_CombatCastleKeep_MissionParticleSystemr1   r2   )	unrealsdkLoadPackager%   
FindObject	KeepAlive
RemoveHook)r,   callerfunctionparamsParticletemps         r/   	ForceLoadLootbeams.ForceLoad2   s    45o.1223H''(8(CD% ' 	ACWX    c                 J    [         R                  " SU R                  U   5      $ )Nr8   )r9   r;   r%   r,   indexs     r/   GetParticleLootbeams.GetParticle=   s    ##$4dnnU6KLLrE   c                 J    [         R                  " SU R                  U   5      $ )NAkEvent)r9   r;   r&   rG   s     r/   GetSoundLootbeams.GetSound@   s     ##It/?/?/FGGrE   z/WillowGame.WillowPickup.ConvertRigidBodyToFixedc                    [         R                  " 5       R                  5       R                  nUR                  R
                  UR                  R                  UR                  R                  4nUR                  R                  UR                  R                  UR                  R                  4nUR                  R                  R
                  S:w  a  U R                  U R                  R                       Ho  nUR"                  [%        US   US   S-   5      ;   d  M(  UR'                  U R)                  US   5      XV5        UR+                  U R-                  US   5      5          g    g g )Nr   	min_level	max_level   particlesound)r9   	GetEngineGetCurrentWorldInfoMyEmitterPoolLocationXYZRotationPitchYawRollRBStatePositionr$   r+   CurrentValueInventoryRarityLevelrangeSpawnEmitterrI   PlayAkEventrM   )r,   r>   r?   r@   EmitterSpawnerrX   r\   raritys           r/   HandleLootBeamsLootbeams.HandleLootBeamsC   s    #,,.BBDRROO%%v'8'8&//:K:KLOO))6??+>+>@T@TU>>""$$)--(;(;(H(HI..%{8KVT_M`cdMd2ee"//0@0@
AS0TV^i&&t}}VG_'EF	 J *rE   c                 "   > [         TU ]  5         g N)r   Enabler,   r.   s    r/   rm   Lootbeams.EnableQ   s    rE   c                 "   > [         TU ]  5         g rl   )r   Disablern   s    r/   rq   Lootbeams.DisableT   s    rE   )r&   r+   r'   r%   r$   )__name__
__module____qualname____firstlineno__r   str__annotations__r   r   r   r   Utilityr   r   LoadWithSettingsr   r   r   rC   rI   rM   ri   rm   rq   __static_attributes____classcell__)r.   s   @r/   r   r      s    "D#"GSUK U'FC'&&E8&(7(H(HoH
B 

.0DEY FYMH 

;< = rE   r   )r9   ModMenur   r   r   r   r   r	   r   r"   r    rE   r/   <module>r      s/     Y Y 	 M M` IK rE   