I have check for .landtiles in my mining.src:
Code: Select all
var is_swamp, is_sand, is_minable;
is_swamp := IsSwampLandscape( info.landtile );
if (!is_swamp)
is_minable := ExistMinableAt( use_on, who.realm );
if (!is_minable)
is_sand := IsSandLandscape( info.landtile );
if (!is_sand)
SendSysmessage(who, "You can't mine or dig anything there.");
ReleaseItem(tool);
UnlockAction( who );
return;
endif
endif
endif
When I stand on the ground where Z=0, my checks work good and I can mine.
But when I stand underground (where Z<0, for example -60), and on the surface is water tile (Z=0), there is error, I see msg "You can't mine or dig anything there." and can't mine.
Here is the example of my custom statics file. I think that this is very serious bug in core, cause it does not recognize Z level and it has to be fixed!