From 2b276dba5c462e0714b63c1d2f190e7218069e53 Mon Sep 17 00:00:00 2001 From: Peter WONG Date: Sun, 23 Sep 2018 13:37:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AA=BF=E6=95=B4=E5=AD=90=E5=A5=B3=E5=9F=B9?= =?UTF-8?q?=E8=82=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GameObjects/GameScenario.cs | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/WorldOfTheThreeKingdoms/GameObjects/GameScenario.cs b/WorldOfTheThreeKingdoms/GameObjects/GameScenario.cs index dc8c83049..8025da1c4 100644 --- a/WorldOfTheThreeKingdoms/GameObjects/GameScenario.cs +++ b/WorldOfTheThreeKingdoms/GameObjects/GameScenario.cs @@ -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)) @@ -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)) @@ -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)) @@ -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)) @@ -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)) @@ -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) @@ -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) @@ -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)