mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-events.git
synced 2024-08-14 23:57:42 +00:00
Add psychic lust mechanic, works like psychic drone
This commit is contained in:
parent
06122c2b18
commit
60a4205e6f
11 changed files with 383 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
using RimWorld;
|
||||
using Verse;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RJW_Events
|
||||
{
|
||||
public static class GameConditionManagerExtension
|
||||
{
|
||||
|
||||
public static PsychicDroneLevel GetHighestPsychicArouseLevelFor(this GameConditionManager g, Gender gender)
|
||||
{
|
||||
PsychicDroneLevel psychicDroneLevel = PsychicDroneLevel.None;
|
||||
for (int i = 0; i < g.ActiveConditions.Count; i++)
|
||||
{
|
||||
GameCondition_PsychicArouse gameCondition_PsychicEmanation = g.ActiveConditions[i] as GameCondition_PsychicArouse;
|
||||
if (gameCondition_PsychicEmanation != null && gameCondition_PsychicEmanation.gender == gender && gameCondition_PsychicEmanation.level > psychicDroneLevel)
|
||||
{
|
||||
psychicDroneLevel = gameCondition_PsychicEmanation.level;
|
||||
}
|
||||
}
|
||||
return psychicDroneLevel;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue