use real function calls instead of the old string method where possible
(basically leaving only the old legacy mapgen calls still using the string method)