public override void ApplyEffectKind(Person person, Event e) { if (person.BelongedFaction != null && person.LocationArchitecture != null && person.BelongedCaptive == null) { PersonGeneratorType type = person.Scenario.GameCommonData.AllPersonGeneratorTypes[preferredType] as PersonGeneratorType; person.LocationArchitecture.GenerateOfficer(type, true); } }
public override void ApplyEffectKind(Person person, Event e) { if (person.BelongedFaction != null && person.LocationArchitecture != null && person.BelongedCaptive == null) { PersonGeneratorType type = Session.Current.Scenario.GameCommonData.AllPersonGeneratorTypes[GameObject.Random(Session.Current.Scenario.GameCommonData.AllPersonGeneratorTypes.Count)] as PersonGeneratorType; person.LocationArchitecture.GenerateOfficer(type, true); } }