Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # unit's hitpoints drop by $dehydration_loss, but cannot kill it
- [if]
- [variable]
- name=dehydrating_units[$i].hitpoints
- greater_than=$dehydration_loss
- [/variable]
- [then]
- {VARIABLE_OP dehydrating_units[$i].hitpoints add -$dehydration_loss}
- [/then]
- [else]
- {VARIABLE dehydrating_units[$i].hitpoints 1}
- [/else]
- [/if]
- -->
- -- HP drops by dehydration_loss, but cannot drop to zero.
- u.hitpoints = math.max(1, u.hitpoints - dehydration_loss)
Advertisement
Add Comment
Please, Sign In to add comment