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, 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); } if (bs.title == "cave child") { bs.AddForcedTrait(TraitDefOf.Undergrounder, 0); } 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); } }
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); } }
public static void InjectHardcodedData(Backstory bs) { string a = bs.title.CapitalizeFirst(); if (a == "Urbworld sex slave") { bs.AddForcedTrait(TraitDefOf.Beauty, 2); } if (a == "Pop idol") { bs.AddForcedTrait(TraitDefOf.Beauty, 2); } if (a == "Mechanoid nerd") { bs.AddDisallowedTrait(TraitDefOf.Gay, 0); } if (a == "Mad scientist") { bs.AddForcedTrait(TraitDefOf.Psychopath, 0); } if (a == "Urbworld politican") { bs.AddForcedTrait(TraitDefOf.Greedy, 0); } if (a == "Criminal tinker") { bs.AddForcedTrait(TraitDefOf.Bloodlust, 0); } if (a == "Urbworld enforcer") { bs.AddForcedTrait(TraitDefOf.Nerves, 1); } if (a == "Pyro assistant") { bs.AddForcedTrait(TraitDefOf.Pyromaniac, 0); } if (a == "Stiletto assassin") { bs.AddForcedTrait(TraitDefOf.Psychopath, 0); } if (a == "Discharged soldier") { bs.AddForcedTrait(TraitDefOf.TooSmart, 0); } if (a == "Bloody wanderer") { bs.AddForcedTrait(TraitDefOf.Bloodlust, 0); } if (a == "New age duelist") { bs.AddForcedTrait(TraitDefOf.Industriousness, -1); } if (a == "Pirate doctor") { bs.AddForcedTrait(TraitDefOf.NaturalMood, 1); } if (a == "Cave child") { bs.AddForcedTrait(TraitDefOf.Tunneler, 0); } if (a == "Space marine medic") { bs.AddForcedTrait(TraitDefOf.SpeedOffset, 2); bs.AddForcedTrait(TraitDefOf.ShootingAccuracy, -1); } }