RimWorld
Оценок: 56
Gauranlen Meditation
   
Наградить
В избранное
В избранном
Удалить
Mod, 1.3, 1.4, 1.5
Размер файла
Добавлен
Изменён
2.631 MB
4 авг. 2021 г. в 7:35
10 апр. 2024 г. в 16:07
Обновлений: 4 (просмотреть)
Для использования необходим дополнительный контент.

Подпишитесь, чтобы загрузить
Gauranlen Meditation

В 1 коллекции, созданной these people
Rimworld Multiplayer
Предметов: 148
Описание
Psycasters get some psyfocus from pruning.

As far as my testing has done, so far it seems to be compatible with the following:

Gauranlen Boost
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2557144953&searchtext=Gauranlen

Faster Gauranlen Pruning
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2557875448&searchtext=Gauranlen

Psychic Gauranlen Connection
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2562637418&searchtext=Gauranlen

[O21] Adjustable Gauranlen
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2560002213&searchtext=Gauranlen

***

Note: For some reason I seem to be having some trouble adding a pretick action to an already-existing Toil, so this mod re-implements the pruning JobDriver to add a psyfocus gain to the prune Toil. If any other modders are experienced in modifying jobs like this, I can share the source code of the Harmony patching I was trying to do.
Комментариев: 20
chrismmar 3 дек. 2023 г. в 17:44 
its still broken, at least for me, as soon as i installed the mod then my pawns stopped maintaining it properly.
Fokson 25 окт. 2023 г. в 17:15 
Glad to help! =)
these people  [создатель] 25 окт. 2023 г. в 17:13 
Finally got around to that - sorry, it's been a busy month
these people  [создатель] 7 окт. 2023 г. в 12:23 
@Fokson Ahhhhh I probably should have realized that, but it does make sense. Thank you for looking into it! I will ping you on it when I get a chance!
Fokson 7 окт. 2023 г. в 2:07 
I poked around in your source code and fixed the issue. Giving the tree a meditation focus stat makes the game treat it as something you don't need to interact with when you don't need to meditate, so I removed that part of the code and replaced it with this:


float psy = pawn.GetStatValue( StatDefOf.MeditationFocusGain );

psy += LoadedModManager.GetMod<GauranlenMeditation>().GetSettings<GauranlenMeditationSettings>().psyfocusGain;

psy /= 60000f;

pawn.psychicEntropy.OffsetPsyfocusDirectly( psy );


I'm not posting this to the workshop myself, but feel free to reach out if you want to implement it yourself and need further information.
these people  [создатель] 7 апр. 2023 г. в 16:24 
@Casiy - It is semi-abandoned I suppose. I could not figure out why the behavior was occurring because again, all it does is add some psyfocus regain when they're doing pruning. It doesn't make pruning count as a meditation type. There might be something deeper within all the AI that sees that the job has psyfocus, but I couldn't figure it out. That said, I believe I included the source code in the download if anyone else wants to take a look!
Casiy Rose 7 апр. 2023 г. в 15:41 
Has this just been abandoned or will it be fixed? It's a great mod, but a bit broken.
Triel 15 мар. 2023 г. в 8:37 
Try getting common sense and disabling 'pawns meditate only as much as they need', maybe itll change something?
these people  [создатель] 7 фев. 2023 г. в 19:38 
@Gravekeeper See the weird thing about the issues people are seeing is that this shouldn't change it to count as a psyfocus meditation type at all - they should only be prioritizing it as much as they would be pruning anyway. All it should be doing is adding psyfocus gain (if they have psyfocus) while pruning.
Gravekeeper 7 фев. 2023 г. в 17:48 
wouldnt dedicated meditation time in the work scheduler fix that? they would attempt to do psyfocus tasks regardless due to the schedule no?