Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert stored_calories on character template load
Before CleverRaven#46906, character templates were saved with stored_calories equal to total kilocalories (55,000 being the "healthy" baseline). Now, stored_calories is in units of small-c calories, being 55,000,000 for the healthy baseline. This led to a bug CleverRaven#46995 where new characters created from older-version templates would spawn with too few calories, by a factor of 1,000. Detect this when templates are loaded, and multiply stored_calories if its value appears to be way too small.
- Loading branch information