The kinetic energy with which the hammer strikes the ground
is exactly the potential energy it had at the height from which it fell.
Potential energy is (mass) x (gravity) x (height) .... directly proportional
to height.
Starting from double the height, it starts with double the potential
energy, and it reaches the bottom with double the kinetic energy.