r13380 has the start of this. There are new proxy records for items, minhp, maxhp, minmp, maxmp - guess what they do! Restores panel now shows average restore values based on restores.txt values or expressions (Recovery Items also does, as these panels are the same). Let me know if any data is wrong or restores are missing.
Issues:
I'd prefer to use either the slightly more accurate doubles for average (the difference between 2 average and 2.5 say might be significant when using large numbers), or even show a range, but sort by the average. Was having trouble with the sort however, so haven't done this - doubles didn't sort at all. Any ideas?
I've added the data into ItemDatabase, as the vast majority of restores are items, and it doesn't add an extra database. I reserve the right to change my mind however!
Next step is to use these values for all other Mafia use, making HPRestoreItemList and MPRestoreItemList only control what displays on the panel HP/MP usage.
Step after that will be to build those lists from Preferences instead, to minimise hard coded lists. It'll default to something sensible, but allow players to add lines, though it'll require a restart to see them.
Issues:
I'd prefer to use either the slightly more accurate doubles for average (the difference between 2 average and 2.5 say might be significant when using large numbers), or even show a range, but sort by the average. Was having trouble with the sort however, so haven't done this - doubles didn't sort at all. Any ideas?
I've added the data into ItemDatabase, as the vast majority of restores are items, and it doesn't add an extra database. I reserve the right to change my mind however!
Next step is to use these values for all other Mafia use, making HPRestoreItemList and MPRestoreItemList only control what displays on the panel HP/MP usage.
Step after that will be to build those lists from Preferences instead, to minimise hard coded lists. It'll default to something sensible, but allow players to add lines, though it'll require a restart to see them.