mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2026-06-18 19:25:59 +00:00
30 lines
No EOL
808 B
C#
30 lines
No EOL
808 B
C#
using System.Collections.Generic;
|
|
using rjw.Modules.Interactions.Preferences;
|
|
|
|
namespace RJWSexperience.Ideology
|
|
{
|
|
/// <summary>
|
|
/// SexPreference proxy to include in the Defs
|
|
/// </summary>
|
|
public class SexPreferenceDef {
|
|
public float score;
|
|
public List<SexPreferenceDef> ifDissatisfied;
|
|
|
|
public SexPreference ToSexPreference()
|
|
{
|
|
SexPreference result = ThisToSexPref();
|
|
|
|
if (ifDissatisfied != null)
|
|
{
|
|
for (int i = 0; i < ifDissatisfied.Count; i++)
|
|
{
|
|
result.IfDissatisfied(ifDissatisfied[i].ThisToSexPref());
|
|
}
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
protected virtual SexPreference ThisToSexPref() => new SexPreference(score);
|
|
}
|
|
} |