This problem wasn't apparent before because vanilla's pet carrier is limited to animals of SMALL size or less. Sky island's version lets you capture HUGE.
Describe the solution
Invalidate the using character's cached weight whenever an animal is captured or released
Describe alternatives you've considered
item::set_var() would also be a good place to call this, but it doesn't have knowledge of what character it is or isn't attached to
Testing
Captured a horse, got knocked to the ground immediately. Released the horse, was able to get up without any other inventory changes.
Summary
None
Purpose of change
This problem wasn't apparent before because vanilla's pet carrier is limited to animals of SMALL size or less. Sky island's version lets you capture HUGE.
Describe the solution
Invalidate the using character's cached weight whenever an animal is captured or released
Describe alternatives you've considered
item::set_var() would also be a good place to call this, but it doesn't have knowledge of what character it is or isn't attached to
Testing
Captured a horse, got knocked to the ground immediately. Released the horse, was able to get up without any other inventory changes.
Additional context