1using System.Collections.Generic;
111 public static readonly
int[]
IDS =
new int[52]
113 3604, 3500, 3600, 3601, 3602, 3603, 3700, 3605, 2207, 3701,
114 2206, 2116, 2204, 2203, 2202, 2201, 2200, 2120, 2117, 2003,
115 3702, 2119, 2118, 2115, 2205, 3703, 3706, 3705, 4006, 4005,
116 4004, 4003, 4002, 4001, 3704, 3900, 3805, 3804, 3803, 4000,
117 3801, 3802, 3708, 3709, 3710, 3780, 3707, 3782, 3783, 3784,
152 public virtual string TextType =>
"sub_faction".lang();
165 relation.faction =
this;
166 relation.affinity =
source.relation;
172 relation.faction =
this;
202 List<FactionBranch> list =
new List<FactionBranch>();
207 list.Add((value as
Zone).branch);
272 relation.affinity += a;
275 public bool HasMember(
string id,
bool includeReserve =
true)
288 if (
item.chara.id ==
id)
321 Msg.
Say(
"contribute", a.ToString() ??
"",
Name);
341 EClass.Branch.uidMaid = 0;
357 listReserve.Remove(i);
507 int v = 500 + Mathf.Min(a, 10) * 500;
531 num += child.
Evalue(2119);
533 return (
int)(long)((
float)(v * 100) / (100f + Mathf.Sqrt(num * 5)));
void SetInt(int id, int value=0)
GlobalCharaList globalCharas
int GetCurrency(string id="money")
void ModCurrency(int a, string id="money")
FactionMemberType memberType
int GetRaw(int offsetHours=0)
static int curve(int a, int start, int step, int rate=75)
static SourceManager sources
static FactionBranch Branch
const int actBuildInspect
const int actBuildCollect
const int actBuildAnywhere
const int actBuildTerrain
static readonly int[] IDS
void RemoveMemeber(Chara c)
HomeResourceManager resources
void AssignUID(Faction s)
Dictionary< string, Faction > dictAll
List< FactionBranch > GetChildren()
void AddGlobalPolicy(int id)
FactionBranch FindBranch(Chara c)
ElementContainerFaction charaElements
void SetTaxTooltip(UINote n)
bool IsGlobalPolicyActive(int id)
int GetTotalTax(bool evasion)
bool IsWearingPanty(Chara c)
void TryPayBill(Thing bill)
int GetFameTax(bool evasion)
ElementContainerZone elements
bool HasMember(string id, bool includeReserve=true)
HashSet< int > globalPolicies
List< HireInfo > listReserve
int EvadeTax(int v, bool evasion)
void RemoveReserve(Chara c)
SourceFaction.Row _source
int GetBaseTax(bool evasion)
static Faction Create(SourceFaction.Row r)
void SetGlobalPolicyActive(int id, bool active)
void AddContribution(int a)
static void PayBill(Thing t, bool fromBank=false)
static string _currency(object a, string IDCurrency)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
void SetActive(int id, bool active)
bool IsActive(int id, int days=-1)
static Thing CreateParcel(string idLang=null, params Thing[] things)
static Thing CreateBill(int pay, bool tax)
static Thing Create(string id, int idMat=-1, int lv=-1)
UIItem AddHeader(string text, Sprite sprite=null)
UIItem AddTopic(string id, string text, string value=null)
void SendPackage(Thing p)