DoomRL > Modding

About traits, doc needed

<< < (2/2)

tehtmi:
The ironman bonus is actually

--- Code: ---math.floor(0.2 * player.hpnom)

--- End code ---
although I think AoHu is the only thing that changes hpnom.

I have to agree with yaf about adding and subtracting hp instead of setting it, especially if you want to later reverse the affect.  Remember that there are items that can affect hpmax, and nothing is keeping track of them.  You can calculate the target value you want, and then keep track of the delta so you can reverse it later.

SPTX:
When it will be finished, the mod won't allow stats-changing items, so setting the maxhp shouldn't cause issues. I'll keep that in mind for future reference though.

Navigation

[0] Message Index

[*] Previous page

Go to full version