Add precudure for calculating the font color of a resistance value.

git-svn-id: http://svn.gna.org/svn/wesnoth/trunk@56059 75b3775d-3801-0410-9e12-e2e43121521d