xNVSE / NVSE

New Vegas Script Extender (NVSE)
https://git.io/JfSAo
702 stars 55 forks source link

RemoveEventHandler fixes #143

Closed Demorome closed 2 years ago

Demorome commented 2 years ago

Validate filters inside RemoveEventHandler. Make filter validation no longer floor the stored number - they will be floored when needed for comparison. This is in order to support arrays of numbers that need to be floored, while not butchering the array / relying on it never changing afterwards.

Cover more cases in ShouldRemoveCallback.

Add more unit tests for SetEventHandlerAlt / RemoveEventHandler.

Make internal events dispatches check for the new filters, in the callbacks.filters map.

Render the AnyForm filter type identical in effect to the Reference filter type, otherwise it would've acted weird for OnHit events and other NVSE events.

Add CreateFormList, for unit tests.