Basic math for core character stat values.

Merging with master.