mirror of
				https://gitgud.io/c0ffeeeeeeee/rjw-events.git
				synced 2024-08-14 23:57:42 +00:00 
			
		
		
		
	Fixes to make Psychic Arouse occur naturally
This commit is contained in:
		
							parent
							
								
									60a4205e6f
								
							
						
					
					
						commit
						2859cc2484
					
				
					 3 changed files with 17 additions and 2 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
<Defs>
 | 
					<Defs>
 | 
				
			||||||
	<GameConditionDef>
 | 
						<GameConditionDef>
 | 
				
			||||||
		<defName>PsychicArouse</defName>
 | 
							<defName>PsychicArouse</defName>
 | 
				
			||||||
		<conditionClass>RJW_Events.GameCondition_PsychicArouse</conditionClass>
 | 
							<conditionClass>RJW_Events.GameCondition_PsychicEmanation</conditionClass>
 | 
				
			||||||
		<label>psychic arouse</label>
 | 
							<label>psychic arouse</label>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		<description>A distant archotech is emitting psychic signals through an orbital amplifier, sexually arousing people.</description>
 | 
							<description>A distant archotech is emitting psychic signals through an orbital amplifier, sexually arousing people.</description>
 | 
				
			||||||
| 
						 | 
					@ -12,5 +12,8 @@
 | 
				
			||||||
		<defaultDroneLevel>BadMedium</defaultDroneLevel>
 | 
							<defaultDroneLevel>BadMedium</defaultDroneLevel>
 | 
				
			||||||
		<letterDef>NegativeEvent</letterDef>
 | 
							<letterDef>NegativeEvent</letterDef>
 | 
				
			||||||
		<natural>false</natural>
 | 
							<natural>false</natural>
 | 
				
			||||||
 | 
							<exclusiveConditions>
 | 
				
			||||||
 | 
								<li>PsychicArouse</li>
 | 
				
			||||||
 | 
							</exclusiveConditions>
 | 
				
			||||||
	</GameConditionDef>
 | 
						</GameConditionDef>
 | 
				
			||||||
</Defs>
 | 
					</Defs>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,11 +5,23 @@ using System.Linq;
 | 
				
			||||||
using System.Text;
 | 
					using System.Text;
 | 
				
			||||||
using System.Threading.Tasks;
 | 
					using System.Threading.Tasks;
 | 
				
			||||||
using Verse;
 | 
					using Verse;
 | 
				
			||||||
 | 
					using Verse.Sound;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace RJW_Events
 | 
					namespace RJW_Events
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public class IncidentWorker_PsychicArouse : IncidentWorker_PsychicEmanation
 | 
					    public class IncidentWorker_PsychicArouse : IncidentWorker_PsychicEmanation
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							protected override bool TryExecuteWorker(IncidentParms parms)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								if (base.TryExecuteWorker(parms))
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									SoundDefOf.PsychicSootheGlobal.PlayOneShotOnCamera((Map)parms.target);
 | 
				
			||||||
 | 
									return true;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								return false;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		protected override void DoConditionAndLetter(IncidentParms parms, Map map, int duration, Gender gender, float points)
 | 
							protected override void DoConditionAndLetter(IncidentParms parms, Map map, int duration, Gender gender, float points)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
			PsychicDroneLevel level;
 | 
								PsychicDroneLevel level;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue