As I've already stated a few times, A Moron is Me™!
Anyway, I think we're getting just a bit sidetracked. I think I'm done with the profit_fx.ash, so now I just have to work on integrating the whole ugly mess into your much more aesthetically-pleasing script.
Files are attached. If you want to use it, I'd grab the latest version of relfx.txt, as the old versions have the wrong duration for inhalers. Have a happy New Year, everyone!
Edit: Well damn, I totally forgot that reducing the pressure penalty in the sea to 0 will cause this script to ignore a lack of Fishy. Will fix the pertaining lines. If I can think of a clever workaround.
(adventures.txt doesn't seem like it'd be importable to a map, as it doesn't have a unique key. I'll check it out anyway. As stated, I -am- a moron, so I could be wrong.)
Double edit: Also, wow. I totally didn't realize that the filesize more than doubled from the derivative (which in itself was almost 1.5x that of the original). Heh. This new version uses a container.txt, which you can create for yourself by swapping the first and fourth columns of adventures.txt. Or download, as it is now available here.
(Feature request: Can this :
lease:: be the new format of adventures.txt? It'll make it so much easier for script authors.)
Triple edit: Oh dear god, I had a != instead of ==. Updated version attached. Several other fixes, too.
Fourth & Final edit: Okay, this is most likely the final version, unless someone finds a coding error. =P The function you want to call is "meat_gain". See my test script if you're unsure how this works.
[[In completely unrelated news, you guys all use test scripts too, right? I just want to make sure that I'm not the only one. Heh.]]