fantasycalendar / FoundryVTT-Sequencer

This module implements a basic pipeline that can be used for managing the flow of a set of functions, effects, sounds, and macros.
Other
41 stars 17 forks source link

[BUG] - Sequencer database ignores given range measures on files with multiple ranges. #207

Open Autumn225 opened 8 months ago

Autumn225 commented 8 months ago

Describe the bug When using the sequencer database, either within .file() or Sequencer.Database.getEntry(), if a database path with a distance is given, it ignores it.

To Reproduce Steps to reproduce the behavior: Method A: Within a Sequence:

new Sequence()
    .effect()
        .file('jb2a.eldritch_blast.purple.05ft')
        .atLocation(token)
    .play()

Does not play the 5ft animation. When using the direct file path, ie. 'modules/JB2A_DnD5e/Library/Cantrip/Eldritch_Blast/EldritchBlast_01_Regular_Purple_05ft_600x400.webm', it plays the given animation.

Method B: Using Sequencer.Database.getEntry():

Sequencer.Database.getEntry('jb2a.eldritch_blast.purple.05ft')

The returned object shows the sequencer database path as 'jb2a.eldritch_blast.purple'. This is less problematic because all the distance files and in the object.

Expected behavior The sequencer database should account for range extensions on database paths.

Setup:

Active modules: