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
				
			
		
							
								
								
									
										38
									
								
								Source/IncidentWorkers/IncidentWorker_PsychicArouse.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								Source/IncidentWorkers/IncidentWorker_PsychicArouse.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,38 @@
 | 
			
		|||
using RimWorld;
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using Verse;
 | 
			
		||||
 | 
			
		||||
namespace RJW_Events
 | 
			
		||||
{
 | 
			
		||||
    public class IncidentWorker_PsychicArouse : IncidentWorker_PsychicEmanation
 | 
			
		||||
    {
 | 
			
		||||
        protected override void DoConditionAndLetter(IncidentParms parms, Map map, int duration, Gender gender, float points)
 | 
			
		||||
        {
 | 
			
		||||
			PsychicDroneLevel level;
 | 
			
		||||
			if (points < 800f)
 | 
			
		||||
			{
 | 
			
		||||
				level = PsychicDroneLevel.BadLow;
 | 
			
		||||
			}
 | 
			
		||||
			else if (points < 2000f)
 | 
			
		||||
			{
 | 
			
		||||
				level = PsychicDroneLevel.BadMedium;
 | 
			
		||||
			}
 | 
			
		||||
			else
 | 
			
		||||
			{
 | 
			
		||||
				level = PsychicDroneLevel.BadHigh;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			GameCondition_PsychicArouse gameCondition_PsychicEmanation = (GameCondition_PsychicArouse)GameConditionMaker.MakeCondition(GameConditionDefOf.PsychicArouse, duration);
 | 
			
		||||
 | 
			
		||||
			gameCondition_PsychicEmanation.gender = gender;
 | 
			
		||||
			gameCondition_PsychicEmanation.level = level;
 | 
			
		||||
 | 
			
		||||
			map.gameConditionManager.RegisterCondition(gameCondition_PsychicEmanation);
 | 
			
		||||
			base.SendStandardLetter(gameCondition_PsychicEmanation.LabelCap, gameCondition_PsychicEmanation.LetterText, gameCondition_PsychicEmanation.def.letterDef, parms, LookTargets.Invalid, Array.Empty<NamedArgument>());
 | 
			
		||||
		}
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue