Before making the pull request, make backups and then test this version. There may be bugs, although it seems to work fine.
This fixes and improves portable entities.
I have kept a copy of the old generic_portable.lua file (although it is not compatible). You can delete it.
EDIT: this version allows to choose the number of bounces, and also the distances, durations and heights of each bounce. Two scripts have been removed and the new code is better. The parametrized trajectories have been improved too. However, there may be some "useless" functions in the code which I used for features with my hero system that your game does not have, but that should not matter (those functions are not used by your game).
Before making the pull request, make backups and then test this version. There may be bugs, although it seems to work fine.
This fixes and improves portable entities. I have kept a copy of the old generic_portable.lua file (although it is not compatible). You can delete it.
EDIT: this version allows to choose the number of bounces, and also the distances, durations and heights of each bounce. Two scripts have been removed and the new code is better. The parametrized trajectories have been improved too. However, there may be some "useless" functions in the code which I used for features with my hero system that your game does not have, but that should not matter (those functions are not used by your game).