mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
Fix IDE messages
This commit is contained in:
parent
032b031123
commit
670584500b
7 changed files with 262 additions and 288 deletions
|
@ -113,11 +113,13 @@ namespace RJWSexperience.Ideology.Patches
|
|||
|
||||
public static float PreceptSextype(Pawn pawn, Pawn partner, float score, List<HistoryEventDef> historyEventDefs)
|
||||
{
|
||||
foreach(HistoryEventDef eventDef in historyEventDefs)
|
||||
for (int i = 0; i < historyEventDefs.Count; i++)
|
||||
{
|
||||
HistoryEventDef eventDef = historyEventDefs[i];
|
||||
|
||||
if (eventDef.CreateEventWithPartner(pawn, partner).DoerWillingToDo())
|
||||
{
|
||||
float mult = 8.0f * Math.Max(0.3f, 1 / Math.Max(0.01f, pawn.GetStatValue(xxx.sex_drive_stat)));
|
||||
float mult = 8.0f * Math.Max(0.3f, 1 / Math.Max(0.01f, pawn.GetStatValue(xxx.sex_drive_stat, cacheStaleAfterTicks: 60)));
|
||||
return score * mult;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue