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
|
@ -5,12 +5,24 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using Verse.Sound;
|
||||
|
||||
namespace RJW_Events
|
||||
{
|
||||
public class IncidentWorker_PsychicArouse : IncidentWorker_PsychicEmanation
|
||||
{
|
||||
protected override void DoConditionAndLetter(IncidentParms parms, Map map, int duration, Gender gender, float points)
|
||||
|
||||
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)
|
||||
{
|
||||
PsychicDroneLevel level;
|
||||
if (points < 800f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue