Affinity For Darkness - caraminden/anathema-roguelike GitHub Wiki
As a character learns Shadow Spells they become more and more comfortable in the dark and it becomes harder to act when not surrounded by shadows.
The Effects of Affinity for Darkness are based on a character's Shadow Power
Shadow Power represents a character's knowledge of Shadow magic, it is equal to the number of Shadow Spells a character has learned, plus the total number of Ability Specializations that character has spent on Shadow Spells.
The character's Encumbrance is multiplied by 100% - (Shadow Power * (100% - 2 * Light) / 50)%