public static void InjectHardcodedData(Backstory bs)
 {
     if (bs.Title == "Urbworld sex slave")
     {
         bs.AddForcedTrait(TraitDefOf.Beauty, 2);
     }
     if (bs.Title == "Pop idol")
     {
         bs.AddForcedTrait(TraitDefOf.Beauty, 2);
     }
     if (bs.Title == "Amateur botanist")
     {
         bs.AddForcedTrait(TraitDefOf.GreenThumb, 0);
     }
     if (bs.Title == "Mechanoid nerd")
     {
         bs.AddDisallowedTrait(TraitDefOf.Gay, 0);
     }
     if (bs.Title == "Mad scientist")
     {
         bs.AddForcedTrait(TraitDefOf.Psychopath, 0);
     }
     if (bs.Title == "Urbworld politican")
     {
         bs.AddForcedTrait(TraitDefOf.Greedy, 0);
     }
     if (bs.Title == "Criminal tinker")
     {
         bs.AddForcedTrait(TraitDefOf.Bloodlust, 0);
     }
     if (bs.Title == "Urbworld enforcer")
     {
         bs.AddForcedTrait(TraitDefOf.Nerves, 1);
     }
     if (bs.Title == "Pyro assistant")
     {
         bs.AddForcedTrait(TraitDefOf.Pyromaniac, 0);
     }
     if (bs.Title == "Stiletto assassin")
     {
         bs.AddForcedTrait(TraitDefOf.Psychopath, 0);
     }
     if (bs.Title == "Discharged soldier")
     {
         bs.AddForcedTrait(TraitDefOf.TooSmart, 0);
     }
     if (bs.Title == "Bloody wanderer")
     {
         bs.AddForcedTrait(TraitDefOf.Bloodlust, 0);
     }
     if (bs.Title == "New age duelist")
     {
         bs.AddForcedTrait(TraitDefOf.Industriousness, -1);
     }
     if (bs.Title == "Pirate doctor")
     {
         bs.AddForcedTrait(TraitDefOf.NaturalMood, 1);
     }
 }
Esempio n. 2
0
 public static void InjectHardcodedData(Backstory bs)
 {
     if (bs.title == "urbworld sex slave")
     {
         bs.AddForcedTrait(TraitDefOf.Beauty, 2);
     }
     if (bs.title == "pop idol")
     {
         bs.AddForcedTrait(TraitDefOf.Beauty, 2);
     }
     if (bs.title == "mechanoid nerd")
     {
         bs.AddDisallowedTrait(TraitDefOf.Gay);
     }
     if (bs.title == "mad scientist")
     {
         bs.AddForcedTrait(TraitDefOf.Psychopath);
     }
     if (bs.title == "urbworld politican")
     {
         bs.AddForcedTrait(TraitDefOf.Greedy);
     }
     if (bs.title == "criminal tinker")
     {
         bs.AddForcedTrait(TraitDefOf.Bloodlust);
     }
     if (bs.title == "urbworld enforcer")
     {
         bs.AddForcedTrait(TraitDefOf.Nerves, 1);
     }
     if (bs.title == "pyro assistant")
     {
         bs.AddForcedTrait(TraitDefOf.Pyromaniac);
     }
     if (bs.title == "stiletto assassin")
     {
         bs.AddForcedTrait(TraitDefOf.Psychopath);
     }
     if (bs.title == "discharged soldier")
     {
         bs.AddForcedTrait(TraitDefOf.TooSmart);
     }
     if (bs.title == "bloody wanderer")
     {
         bs.AddForcedTrait(TraitDefOf.Bloodlust);
     }
     if (bs.title == "new age duelist")
     {
         bs.AddForcedTrait(TraitDefOf.Industriousness, -1);
     }
     if (bs.title == "pirate doctor")
     {
         bs.AddForcedTrait(TraitDefOf.NaturalMood, 1);
     }
     if (bs.title == "cave child")
     {
         bs.AddForcedTrait(TraitDefOf.Undergrounder);
     }
     if (bs.title == "space marine medic")
     {
         bs.AddForcedTrait(TraitDefOf.SpeedOffset, 2);
         bs.AddForcedTrait(TraitDefOf.ShootingAccuracy, -1);
     }
     if (bs.title == "bush sniper")
     {
         bs.AddForcedTrait(TraitDefOf.ShootingAccuracy, 1);
     }
 }