mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-events.git
synced 2024-08-14 23:57:42 +00:00
Fixes for orgy job, made psychic arouse incidentworker fireable
This commit is contained in:
parent
ea886df513
commit
84be102c0f
11 changed files with 26 additions and 59 deletions
|
@ -16,32 +16,18 @@ namespace RJW_Events
|
|||
{
|
||||
if (base.TryExecuteWorker(parms))
|
||||
{
|
||||
SoundDefOf.PsychicSootheGlobal.PlayOneShotOnCamera((Map)parms.target);
|
||||
return true;
|
||||
SoundDefOf.PsychicSootheGlobal.PlayOneShotOnCamera(null);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
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 gameCondition_PsychicEmanation = (GameCondition_PsychicEmanation)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