Skip to content

Commit

Permalink
調整子女培育
Browse files Browse the repository at this point in the history
  • Loading branch information
luiges90 committed Sep 23, 2018
1 parent b12770f commit 2b276db
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions WorldOfTheThreeKingdoms/GameObjects/GameScenario.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5892,9 +5892,9 @@ public void TrainChildren()
{
PersonList teachers = new PersonList();

if (parental != null && parental.LocationArchitecture != null)
if (parental != null && parental.BelongedArchitecture != null)
{
GameObjectList list = parental.LocationArchitecture.PersonAndChildren.GetRandomList();
GameObjectList list = parental.BelongedArchitecture.PersonAndChildren.GetRandomList();
foreach (Person q in list)
{
if (q.Strength > p.Strength && q.Age > 8 && q.IsValidTeacher && (GameObject.Chance(50 / list.Count) || q == parental || q == p.Father || q == p.Mother))
Expand Down Expand Up @@ -5943,9 +5943,9 @@ public void TrainChildren()
{
PersonList teachers = new PersonList();

if (parental != null && parental.LocationArchitecture != null)
if (parental != null && parental.BelongedArchitecture != null)
{
GameObjectList list = parental.LocationArchitecture.PersonAndChildren.GetRandomList();
GameObjectList list = parental.BelongedArchitecture.PersonAndChildren.GetRandomList();
foreach (Person q in list)
{
if (q.Command > p.Command && q.Age > 8 && q.IsValidTeacher && (GameObject.Chance(50 / list.Count) || q == parental || q == p.Father || q == p.Mother))
Expand Down Expand Up @@ -5994,9 +5994,9 @@ public void TrainChildren()
{
PersonList teachers = new PersonList();

if (parental != null && parental.LocationArchitecture != null)
if (parental != null && parental.BelongedArchitecture != null)
{
GameObjectList list = parental.LocationArchitecture.PersonAndChildren.GetRandomList();
GameObjectList list = parental.BelongedArchitecture.PersonAndChildren.GetRandomList();
foreach (Person q in list)
{
if (q.Intelligence > p.Intelligence && q.Age > 8 && q.IsValidTeacher && (GameObject.Chance(50 / list.Count) || q == parental || q == p.Father || q == p.Mother))
Expand Down Expand Up @@ -6044,9 +6044,9 @@ public void TrainChildren()
{
PersonList teachers = new PersonList();

if (parental != null && parental.LocationArchitecture != null)
if (parental != null && parental.BelongedArchitecture != null)
{
GameObjectList list = parental.LocationArchitecture.PersonAndChildren.GetRandomList();
GameObjectList list = parental.BelongedArchitecture.PersonAndChildren.GetRandomList();
foreach (Person q in list)
{
if (q.Politics > p.Politics && q.Age > 8 && q.IsValidTeacher && (GameObject.Chance(50 / list.Count) || q == parental || q == p.Father || q == p.Mother))
Expand Down Expand Up @@ -6095,9 +6095,9 @@ public void TrainChildren()
{
PersonList teachers = new PersonList();

if (parental != null && parental.LocationArchitecture != null)
if (parental != null && parental.BelongedArchitecture != null)
{
GameObjectList list = parental.LocationArchitecture.PersonAndChildren.GetRandomList();
GameObjectList list = parental.BelongedArchitecture.PersonAndChildren.GetRandomList();
foreach (Person q in list)
{
if (q.Glamour > p.Glamour && q.Age > 8 && q.IsValidTeacher && (GameObject.Chance(50 / list.Count) || q == parental || q == p.Father || q == p.Mother))
Expand Down Expand Up @@ -6146,9 +6146,9 @@ public void TrainChildren()
{
PersonList teachers = new PersonList();

if (parental != null && parental.LocationArchitecture != null)
if (parental != null && parental.BelongedArchitecture != null)
{
GameObjectList list = parental.LocationArchitecture.PersonAndChildren.GetRandomList();
GameObjectList list = parental.BelongedArchitecture.PersonAndChildren.GetRandomList();
foreach (Person q in list)
{
if ((GameObject.Chance(50 / list.Count) || q == parental || q == p.Father || q == p.Mother) && q.IsValidTeacher && q.Age > 8)
Expand Down Expand Up @@ -6219,9 +6219,9 @@ public void TrainChildren()
{
PersonList teachers = new PersonList();

if (parental != null && parental.LocationArchitecture != null)
if (parental != null && parental.BelongedArchitecture != null)
{
GameObjectList list = parental.LocationArchitecture.PersonAndChildren.GetRandomList();
GameObjectList list = parental.BelongedArchitecture.PersonAndChildren.GetRandomList();
foreach (Person q in list)
{
if ((GameObject.Chance(50 / list.Count) || q == parental || q == p.Father || q == p.Mother) && q.IsValidTeacher && q.Age > 8)
Expand Down Expand Up @@ -6286,9 +6286,9 @@ public void TrainChildren()
{
PersonList teachers = new PersonList();

if (parental != null && parental.LocationArchitecture != null)
if (parental != null && parental.BelongedArchitecture != null)
{
GameObjectList list = parental.LocationArchitecture.PersonAndChildren.GetRandomList();
GameObjectList list = parental.BelongedArchitecture.PersonAndChildren.GetRandomList();
foreach (Person q in list)
{
if ((GameObject.Chance(50 / list.Count) || q == parental || q == p.Father || q == p.Mother) && q.IsValidTeacher && q.Age > 8)
Expand Down

0 comments on commit 2b276db

Please sign in to comment.