Skip to content
Snippets Groups Projects
Commit 7e19d9fb authored by Ed86's avatar Ed86
Browse files

changing gender of hero will result positive mood rather than random

parent 95c0c286
No related branches found
No related tags found
No related merge requests found
......@@ -251,12 +251,12 @@ namespace rjw
if (oldsex == newsex)
return;
// Sexualize droid after installation of genitals.
if (oldsex == Sex.none
&& (CompRJW.Comp(pawn).orientation == Orientation.Asexual || CompRJW.Comp(pawn).orientation == Orientation.None)
&& pawn.kindDef.race.defName.ToLower().Contains("droid"))
{
CompRJW.Comp(pawn).Sexualize(pawn, true); // Sexualize droid after installation of genitalia.
CompRJW.Comp(pawn).Sexualize(pawn, true);
}
var old_thought = IsInDenial(pawn);
......@@ -264,10 +264,10 @@ namespace rjw
if (old_thought==null || old_thought.is_happy())//pawn either liked it or got used already
{
Log.Message("ChangeSex 1 old_thought" + old_thought);
Log.Message("ChangeSex 1 react" + react);
//Log.Message("ChangeSex 1 old_thought" + old_thought);
//Log.Message("ChangeSex 1 react" + react);
if (react!=null)
GiveThought(pawn, react);//give unhappy
GiveThought(pawn, react, pawn.IsDesignatedHero());//give unhappy, if not hero
if (old_thought!=null)
pawn.health.RemoveHediff(old_thought);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment