Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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);
     }
 }