SetDestructableMaxLife

Parameters
d destructable
max real
comment

Sets new maximum hitpoints.

Current hitpoints are always scaled by relative factor of currentHp*ratioMaxHp (see "permanent" parameter of SetHeroStr).

note

A value of (+- n.5) is always rounded towards +infinity. Otherwise normal rounding.

patch

1.00

Source
common.j (suggest an edit or discuss on Github)
return type
nothing
Source code
native          SetDestructableMaxLife      takes destructable d, real max returns nothing