Skip to content

Commit

Permalink
女官可被臨幸
Browse files Browse the repository at this point in the history
  • Loading branch information
luiges90 committed Feb 24, 2024
1 parent 61af87f commit 207c5a1
Show file tree
Hide file tree
Showing 5 changed files with 254 additions and 237 deletions.
10 changes: 1 addition & 9 deletions Content/Data/Plugins/TabListData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1511,14 +1511,6 @@
FontColor="4294967295"
Align="Middle">
</Column>
<Column ID="135" Name="MakeMarryableList" IsNumber="false"
DisplayName="可赐婚予" MinWidth="300" DetailLevel="5"
FontName="方正隶变_GBK"
FontSize="12"
FontStyle="Regular"
FontColor="4294967295"
Align="Left">
</Column>
<Column ID="530" Name="Fund" IsNumber="false" DisplayName="銀兩"
MinWidth="60" DetailLevel="9"
FontName="方正隶变_GBK"
Expand Down Expand Up @@ -1570,7 +1562,7 @@
Columns="1 83 84 154 155 156 157 158 163 159 160 161 162">
</Tab>
<Tab ID="14" Name="PersonRelations" DisplayName="人物关系"
Columns="1 121 122 123 125 126 132 133 135">
Columns="1 121 122 123 125 126 132 133">
</Tab>
<Tab ID="15" Name="PersonSpecialRelations" DisplayName="关系武将"
Columns="1 181 180" ListKind="PersonRelationValue"
Expand Down
26 changes: 26 additions & 0 deletions WorldOfTheThreeKingdoms/GameObjects/Architecture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using System.Text;
using System.Runtime.Serialization;
using GameManager;
using Steamworks;

namespace GameObjects
{
Expand Down Expand Up @@ -709,6 +710,26 @@ public PersonList PersonsExcludeNvGuan
}
}

public PersonList NvGuans
{
get
{
PersonList all = Session.Current.Scenario.GetPersonList(this);
PersonList result = new PersonList();

foreach (Person p in all)
{
if (p.NvGuan)
{
result.Add(p);
}
}

result.SetImmutable();
return result;
}
}

public PersonList PromotableNvGuans
{
get
Expand Down Expand Up @@ -14991,6 +15012,11 @@ public PersonList meifaxianhuaiyundefeiziliebiao()
if (!person.faxianhuaiyun && this.BelongedFaction.Leader.isLegalFeiZiExcludeAge(person) && person.ArrivingDays <= 0)
meihuailiebiao.Add(person);
}
foreach (Person person in this.NvGuans)
{
if (!person.faxianhuaiyun && this.BelongedFaction.Leader.isLegalFeiZi(person) && person.Spouse == this.BelongedFaction.Leader && person.ArrivingDays <= 0)
meihuailiebiao.Add(person);
}
return meihuailiebiao;
}

Expand Down
Loading

0 comments on commit 207c5a1

Please sign in to comment.