for depth > 5.5 it always spawns medium even though previously it spawned high with 100% chance. Is this intended?
There's a tiny hole in the if condition, it will never work for depth exactly 5.5. It should be if abs(p.y) >= depth * 5.5 then instead of >. And it probably should be an elseif too?
There are random chances being rolled with same outcome. Intended or just dead code?
https://github.com/ComfyFactory/ComfyFactorio/blob/cd2cda7a0e7a92d76180cd41bd2692b21e140fc4/maps/mountain_fortress_v3/resource_generator.lua#L685-L697
if abs(p.y) >= depth * 5.5 then
instead of>
. And it probably should be an elseif too?