IronTetsubo
Member
I'm concerned I'm missing something obvious that explains why this isn't already there, but on the off chance this wasn't already hashed out in the forums and I missed it:
- added "Laugh It Off" to the hp restorers list, so it can be used for auto recovery.
The attached patch is against r10808. It builds/runs, but I haven't tested it yet because I'm already drunk for the day, and the patch itself is pretty trivial. The one concerning part is unfortunately for this skill, there's no integer average for the amount of HP restored and so that might make the recovery logic struggle. I saw two routes to go, with my extremely limited knowledge of the code - either convert the HPRestoreItem to use a float instead of an int for the HP restore value (and change all the references accordingly), or change it to take two values, a min and a max, and again convert all the references accordingly. If that's a valuable route to go down, I can pursue further, but would prefer guidance on the right way to go before I start digging. Thanks!
- added "Laugh It Off" to the hp restorers list, so it can be used for auto recovery.
The attached patch is against r10808. It builds/runs, but I haven't tested it yet because I'm already drunk for the day, and the patch itself is pretty trivial. The one concerning part is unfortunately for this skill, there's no integer average for the amount of HP restored and so that might make the recovery logic struggle. I saw two routes to go, with my extremely limited knowledge of the code - either convert the HPRestoreItem to use a float instead of an int for the HP restore value (and change all the references accordingly), or change it to take two values, a min and a max, and again convert all the references accordingly. If that's a valuable route to go down, I can pursue further, but would prefer guidance on the right way to go before I start digging. Thanks!