RimWorld

RimWorld

207 ratings
Pawn Education (1.1)
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1
File Size
Posted
Updated
367.751 KB
2 May, 2019 @ 5:56am
18 Apr, 2020 @ 10:30am
8 Change Notes ( view )

Subscribe to download
Pawn Education (1.1)

In 1 collection by Shitler
My RimWorld Mods
4 items
Description
A mod that allows pawns to educate each other.

Description
A mod that allows pawns to educate each other. The higher the passion for the subject, the higher the odds of discussion and the more experience is shared.
When the teacher has skill level 20, something special may happen... :)

Savegame compatible.

Should not conflict with any mods

I did not spend a ton of time testing the balance (activation odds, exp gain). Please let me know your opinions on the balance of activation odds and exp gain, or if you notice any spelling errors in the log.

This mod has one of my other mods built in (Empty Play Log) in order to allow uninstalling. If you are subscribed to this one, you don't need Empty Play Log. Subscribing to both will cause the button to show up twice, but shouldn't cause any other problems.

Functionality Specifics
Interaction will only activate for skills that
1. The teacher is passionate in
2. The difference between teacher/student skill is >= 2
3. Skill is enabled for both teacher/student (not disabled by traits or lack of body parts)

Activation rate is affected by combined passion of teacher and student, from a min-weight = 0.2 to a max-weight = 0.8. For comparison, the default activation weight of the 'chat' interaction, provided necessary circumstances are met, is 0.8.

Teacher xp gain = 2 * (20/ {difference in skill})
Student xp gain = 2 * {difference in skill} * 3

Teacher gets a 2x xp multiplier for burning passion
Student gets a 4x xp multiplier for burning passion, and a 2x xp multiplier for regular passion
Student gets a 8x xp multiplier if the teacher is a master (Skill = 20). This is not combined with other xp modifiers for the student.
If the teacher is a master (Skill=20), there is a 5% chance he/she will give a 'master lesson'. This is an automatic 2 level increase to the skill for the student. If this activates, the student does not get other skill gains listed above. The teacher gets the same xp bonus regardless.

Thoughts/moods
Check the ThoughtsDef file for specifics on how social/opinions are affected

Teaching/learning a passionate skill gives a +1 mood buff, lasting 3 days, stacking up to 5 times
Teaching/learning a burning passionate skill gives a +3 mood buff, lasting 3 days, stacking up to 5 times, with a 0.67x multiplier on each additional stack
Learning from a master gives a +10 mood buff, lasting 3 days, stacking up to 5 times, with a 0.5x multiplier on each addtional stack

Pawns with the 'Psychopath' trait do not get social or mood boosts because they are Psychopaths. Pawns with the 'Too Smart' trait also do not get social or mood boosts.



Configuration
Upon loading the mod the first time, a file should get generated at C:\Users\{USER}\AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Config\PawnEducation.config . The values in this file can be edited/saved to change the parameters of the interaction algorithms. Setting values too high might cause errors. Some values are explicitly capped due to game engine limitations.

To edit opinion/mood gains from interactions, modify the Def files at :
{STEAM_INSTALL_LOCATION}\steamapps\workshop\content\294100\1729795429\Defs

Where {STEAM_INSTALL_LOCATION} is the location of the Steam partition containing RimWorld


Uninstalling
1. Load your existing save
2. Put the game into 'pause' mode
3. Click the debug action 'Clear Play Log' under 'Mods - Misc'
4. Make a new save
5. Exit to menu
6. Disable/unsubcribe from Pawn Education
7. Load new save (ignore warnings)

Dependencies
None

Synergy
works well with Orion's Hospitality mod - https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=753498552

Honourable Mentions
pardeike/Harmony - https://github.com/pardeike/Harmony/
Mlie, for updating the mod for 1.1

Future Enhancements
Translations
Incorporating Insult/Social fight chances into the mix