From 4b0a3e51f08b04d71e9bb33e25113dc003710d1f Mon Sep 17 00:00:00 2001 From: Peter WONG Date: Sat, 9 Mar 2024 18:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AA=AA=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content/Data/Plugins/HelpTextTree.xml | 49 ++++++++++++------- WorldOfTheThreeKingdoms/GameObjects/Person.cs | 13 +++-- 2 files changed, 41 insertions(+), 21 deletions(-) diff --git a/Content/Data/Plugins/HelpTextTree.xml b/Content/Data/Plugins/HelpTextTree.xml index 8abcc869..4e14cd15 100644 --- a/Content/Data/Plugins/HelpTextTree.xml +++ b/Content/Data/Plugins/HelpTextTree.xml @@ -789,7 +789,7 @@ - + @@ -818,7 +818,7 @@ - + @@ -829,7 +829,7 @@ - + @@ -841,7 +841,7 @@ Color="4294375158" /> - + @@ -852,7 +852,7 @@ Color="4294375158" /> - + @@ -863,7 +863,7 @@ Color="4294375158" /> - + @@ -874,7 +874,7 @@ Color="4294375158" /> - + @@ -1036,10 +1036,10 @@ Color="4294375158" /> - + - + @@ -1069,11 +1069,7 @@ Color="4294375158" /> Color="4294375158" /> - - - - @@ -1086,7 +1082,24 @@ Color="4294375158" /> Color="4294375158" /> - + + + + + + + + + + + + + + + + + + @@ -1094,13 +1107,13 @@ Color="4294375158" /> - + - + @@ -1135,7 +1148,7 @@ Color="4294375158" /> - + diff --git a/WorldOfTheThreeKingdoms/GameObjects/Person.cs b/WorldOfTheThreeKingdoms/GameObjects/Person.cs index e58b2e42..68f5cc9d 100644 --- a/WorldOfTheThreeKingdoms/GameObjects/Person.cs +++ b/WorldOfTheThreeKingdoms/GameObjects/Person.cs @@ -1441,7 +1441,8 @@ public bool NvGuanPromotable { get { - return NvGuan && (suoshurenwuList.Count == 0 || (suoshurenwuList.Count == 1 && suoshurenwuList[0] == Spouse)) && (Age < 16 || DaySinceAvailable < 30); + return NvGuan && (suoshurenwuList.Count == 0 || (suoshurenwuList.Count == 1 && suoshurenwuList[0] == Spouse)) && + ((Session.Current.Scenario.GlobalVariables.PersonNaturalDeath == true && Age < 16) || (Session.Current.Scenario.GlobalVariables.PersonNaturalDeath != true && DaySinceAvailable < 360)); } } @@ -2548,7 +2549,10 @@ public void Marry(Person p, Person maker) { p.SetBelongedCaptive(null, PersonStatus.Normal); p.ChangeFaction(this.BelongedFaction); - p.NvGuan = true; + if (p.Sex) + { + p.NvGuan = true; + } p.AdjustRelation(maker, 0, Math.Max(0, -100 * (p.PersonalLoyalty - 1) * (p.PersonalLoyalty - 1))); maker.DecreaseKarma(1 + p.PersonalLoyalty + Math.Max(0, p.Karma / 5)); @@ -10747,7 +10751,10 @@ public Person XuanZeMeiNv(Person nvren) nvren.Status = PersonStatus.Princess; nvren.workKind = ArchitectureWorkKind.无; - nvren.NvGuan = true; + if (nvren.Sex) + { + nvren.NvGuan = true; + } nvren.PrincessTaker = this.BelongedFactionWithPrincess.Leader;