Prevent impossible fall dmg if falling up
The way hole destinations work now theoretically allows for a cross-branch hole or trap door to move you across branches in a way that decreases your overall depth. If this happened, it would cause an impossible when the negative result of (depth(new) - depth(old)) was used to calculate fall damage. Limit fall damage to 1d6 if dist <= 0.
This commit is contained in:
committed by
Pasi Kallinen
parent
e148d5e925
commit
82337beedd
Reference in New Issue
Block a user