Ladysnake / PlayerAbilityLib

It's your new pal!
GNU Lesser General Public License v3.0
13 stars 8 forks source link

Implement active ability source checking methods #8

Closed Pyrofab closed 2 years ago

Pyrofab commented 2 years ago

A common behaviour when implementing modded ability sources is to play side effects like burning fuel while active. In current versions of PAL however, there is no way to determine which ability is the "primary/active" one, which means every source has to play those side effects simultaneously, leading to player annoyances like fuel waste.

This PR introduces the concept of active/primary ability source to help mods deal with this issue, backed by a priority-based source ordering system.