Can someone explain how exactly the library works? I get the general gist of it that it provides experience and learning points. However does that only apply to the person working as the librarian or does it affect everyone in the manor regardless if they're fighting mobs with me. Also, what does "experience efficiency decreases with level." Does this mean if the librarian has a high level the experience they give out to everyone is lower?
Code:
person.xp += max((15 + 5*globals.state.mansionupgrades.mansionlibrary + person.wit/12) - (person.level-1)*8,0)
person.learningpoints += ceil(person.wit/20)+globals.state.mansionupgrades.mansionlibrary
It provides experience only to the slaves that study in the library. There is no librarian nor any distributed experience from the library. For every level a slave gains, that slave gains less experience per day spent in the library.
For reference, these are the numbers of a maxed library for a noble slave with maxed wit:
Level 1: 38 exp per day, ~3 days to level up
Level 2: 15 exp per day, ~7 days to level up
Level 3: 7 exp per day, ~14 days to level up
Level 4: 4 exp per day, ~25 days to level up
Level 5+: 1 exp per day, ~100 days to level up
The slave roughly gains 1 learning point per 20 wit plus 1 per library level per day.