1using System.Collections.Generic;
113 public static readonly
int[]
IDS =
new int[53]
115 3606, 3604, 3700, 2207, 3605, 3701, 3603, 3602, 3601, 3600,
116 3500, 4005, 2205, 2204, 2203, 2202, 2201, 2120, 3702, 2119,
117 2118, 2117, 2116, 2206, 3703, 3802, 3705, 4006, 4004, 4003,
118 2115, 4002, 4001, 4000, 3900, 3805, 3804, 3803, 3801, 3800,
119 3784, 3783, 3782, 3781, 3780, 3710, 3709, 3708, 3707, 3706,
154 public virtual string TextType =>
"sub_faction".lang();
167 relation.faction =
this;
168 relation.affinity =
source.relation;
174 relation.faction =
this;
204 List<FactionBranch> list =
new List<FactionBranch>();
209 list.Add((value as
Zone).branch);
274 relation.affinity += a;
277 public bool HasMember(
string id,
bool includeReserve =
true)
290 if (
item.chara.id ==
id)
323 Msg.
Say(
"contribute", a.ToString() ??
"",
Name);
347 EClass.Branch.uidMaid = 0;
363 listReserve.Remove(i);
513 int v = 500 + Mathf.Min(a, 10) * 500;
537 num += child.
Evalue(2119);
539 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 RemoveMember(Chara c)
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)