Making a mod that allows easier climbing of stuff if have spider_arms_ok

how do I code in a mod that :
function map::climb_difficulty use this to give spider mutation better odds of climbing stuff cut climbing diff by 50%?
and buff the strength of the webs from web walker