Elin Decompiled Documentation EA 23.219 Nightly
Loading...
Searching...
No Matches
Guild Class Reference
Inheritance diagram for Guild:
Faction EClass GuildFighter GuildMage GuildMerchant GuildThief

Public Member Functions

void RefreshDevelopment ()
 
- Public Member Functions inherited from Faction
void Init ()
 
void OnLoad ()
 
float GetHappiness ()
 
Sprite GetSprite ()
 
int CountTax ()
 
int GetMaxReserve ()
 
List< FactionBranchGetChildren ()
 
int CountWealth ()
 
int CountTerritories ()
 
int CountMembers ()
 
Hostility GetHostility ()
 
void ModRelation (int a)
 
bool HasMember (string id, bool includeReserve=true)
 
bool IsWearingPanty (Chara c)
 
void AddContribution (int a)
 
void AddReserve (Chara c)
 
void RemoveReserve (Chara c)
 
void OnAdvanceDay ()
 
void OnAdvanceMonth ()
 
void TryPayBill (Thing bill)
 
FactionBranch FindBranch (Chara c)
 
void AddGlobalPolicy (int id)
 
bool IsGlobalPolicyActive (int id)
 
void SetGlobalPolicyActive (int id, bool active)
 
int GetResidentTax ()
 
int GetRankIncome ()
 
int GetFactionSalary ()
 
int GetTotalTax (bool evasion)
 
int GetBaseTax (bool evasion)
 
int GetFameTax (bool evasion)
 
int EvadeTax (int v, bool evasion)
 
void SetTaxTooltip (UINote n)
 
int CountTaxFreeLand ()
 

Static Public Member Functions

static Guild GetCurrentGuild ()
 
- Static Public Member Functions inherited from Faction
static Faction Create (SourceFaction.Row r)
 
- Static Public Member Functions inherited from EClass
static int rndSeed (int a, int seed)
 
static int rnd (long a)
 
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 

Properties

static Guild Current [get]
 
static Guild CurrentDrama [get]
 
static GuildFighter Fighter [get]
 
static GuildMage Mage [get]
 
static GuildThief Thief [get]
 
static GuildMerchant Merchant [get]
 
static QuestGuild CurrentQuest [get]
 
override string TextType [get]
 
virtual QuestGuild Quest [get]
 
virtual bool IsCurrentZone [get]
 
bool IsMember [get]
 
- Properties inherited from Faction
string Name [get]
 
SourceFaction.Row source [get]
 
virtual string TextType [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Public Attributes inherited from Faction
FactionRelation relation = new FactionRelation()
 
string id
 
string uid
 
string name
 
List< HireInfolistReserve = new List<HireInfo>()
 
ElementContainerZone elements = new ElementContainerZone()
 
HashSet< int > globalPolicies = new HashSet<int>()
 
ElementContainerFaction charaElements = new ElementContainerFaction()
 
SourceFaction.Row _source
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 1 of file Guild.cs.

Member Function Documentation

◆ GetCurrentGuild()

static Guild Guild.GetCurrentGuild ( )
inlinestatic

Definition at line 74 of file Guild.cs.

75 {
77 {
78 return Fighter;
79 }
81 {
82 return Mage;
83 }
85 {
86 return Thief;
87 }
89 {
90 return Merchant;
91 }
92 return null;
93 }
override bool IsCurrentZone
Definition: GuildFighter.cs:6
override bool IsCurrentZone
Definition: GuildMage.cs:6
override bool IsCurrentZone
Definition: GuildMerchant.cs:5
override bool IsCurrentZone
Definition: GuildThief.cs:6
static GuildMerchant Merchant
Definition: Guild.cs:62
static GuildMage Mage
Definition: Guild.cs:58
static GuildFighter Fighter
Definition: Guild.cs:56
static GuildThief Thief
Definition: Guild.cs:60

References Fighter, GuildFighter.IsCurrentZone, GuildMage.IsCurrentZone, GuildMerchant.IsCurrentZone, GuildThief.IsCurrentZone, Mage, Merchant, and Thief.

Referenced by DramaCustomSequence.Build(), DramaOutcome.guild_promote(), and CoreDebug.ModContribution().

◆ RefreshDevelopment()

void Guild.RefreshDevelopment ( )
inline

Definition at line 95 of file Guild.cs.

96 {
97 EClass._zone.development = (10 + relation.rank * 5) * 10;
98 }

Referenced by DramaOutcome.guild_promote().

Property Documentation

◆ Current

Guild Guild.Current
staticget

Definition at line 3 of file Guild.cs.

4 {
5 get
6 {
7 if (!(EClass._zone.id == "guild_merchant"))
8 {
9 if (!(EClass._zone.id == "lumiest"))
10 {
11 if (!(EClass._zone.id == "derphy"))
12 {
14 }
16 }
17 return EClass.game.factions.Mage;
18 }
20 }
21 }
Definition: EClass.cs:5
static Game game
Definition: EClass.cs:8
static Zone _zone
Definition: EClass.cs:20
GuildMerchant Merchant
GuildThief Thief
GuildMage Mage
GuildFighter Fighter
FactionManager factions
Definition: Game.cs:161
string id
Definition: Spatial.cs:13

◆ CurrentDrama

Guild Guild.CurrentDrama
staticget

Definition at line 23 of file Guild.cs.

24 {
25 get
26 {
28 {
30 if (chara != null)
31 {
32 switch (chara.id)
33 {
34 case "guild_master_fighter":
35 case "guild_clerk_fighter":
36 case "guild_doorman_fighter":
37 return Fighter;
38 case "guild_master_thief":
39 case "guild_clerk_thief":
40 case "guild_doorman_thief":
41 return Thief;
42 case "guild_master_mage":
43 case "guild_clerk_mage":
44 case "guild_doorman_mage":
45 return Mage;
46 case "guild_master_merchant":
47 case "guild_clerk_merchant":
48 return Merchant;
49 }
50 }
51 }
52 return Current;
53 }
54 }
string id
Definition: Card.cs:35
Definition: Chara.cs:10
bool IsSurvival
Definition: Game.cs:272
static Guild Current
Definition: Guild.cs:4
static LayerDrama Instance
Definition: LayerDrama.cs:20
DramaManager drama
Definition: LayerDrama.cs:28
Chara chara
Definition: Person.cs:36

Referenced by GameLang.ConvertDrama(), DramaOutcome.guild_join(), DramaOutcome.guild_promote(), DramaOutcome.guild_trial(), CalcPlat.Learn(), and CalcPlat.Train().

◆ CurrentQuest

QuestGuild Guild.CurrentQuest
staticget

Definition at line 64 of file Guild.cs.

Referenced by DramaOutcome.guild_mageTrial().

◆ Fighter

◆ IsCurrentZone

virtual bool Guild.IsCurrentZone
get

Definition at line 70 of file Guild.cs.

◆ IsMember

bool Guild.IsMember
get

Definition at line 72 of file Guild.cs.

Referenced by Card.GetPrice().

◆ Mage

GuildMage Guild.Mage
staticget

◆ Merchant

GuildMerchant Guild.Merchant
staticget

◆ Quest

virtual QuestGuild Guild.Quest
get

Definition at line 68 of file Guild.cs.

Referenced by DramaOutcome.guild_join().

◆ TextType

override string Guild.TextType
get

Definition at line 66 of file Guild.cs.

◆ Thief


The documentation for this class was generated from the following file: