Elin Decompiled Documentation EA 23.312 Nightly Patch 4
Loading...
Searching...
No Matches
ReligionCustom Class Reference
Inheritance diagram for ReligionCustom:
Religion EClass

Public Member Functions

override Sprite GetSprite ()
 
override bool IsValidArtifact (string thingId)
 
override string[] GetValidArtifacts ()
 
override bool IsFaithElement (Element e)
 
override int GetOfferingMtp (Thing t)
 
override int GetOfferingValue (Thing t, int num=-1)
 
override void Punish (Chara c)
 
override void PunishTakeOver (Chara c)
 
- Public Member Functions inherited from Religion
virtual SourceElement.Row GetFeat (int i)
 
virtual void Init ()
 
virtual void OnLoad ()
 
virtual void OnAdvanceDay ()
 
virtual Sprite GetSprite ()
 
virtual void SetTextRelation (UIText text)
 
virtual string GetTextBenefit ()
 
virtual string GetTextTemper (int _temper=-99999)
 
virtual void Revelation (string idTalk, int chance=100)
 
virtual void Talk (string idTalk, Card c=null, Card agent=null)
 
virtual string GetGodTalk (string idTalk)
 
virtual int GetOfferingMtp (Thing t)
 
virtual int GetOfferingValue (Thing t, int num=-1)
 
virtual int GetGiftRank ()
 
virtual bool TryGetGift ()
 
virtual void OnReforge (Thing t)
 
virtual bool IsValidArtifact (string id)
 
virtual bool IsFaithElement (Element e)
 
virtual string[] GetValidArtifacts ()
 
virtual void OnBecomeBranchFaith ()
 
virtual void JoinFaith (Chara c, ConvertType type=ConvertType.Default)
 
virtual void LeaveFaith (Chara c, Religion newFaith, ConvertType type)
 
virtual void Punish (Chara c)
 
virtual void PunishTakeOver (Chara c)
 
virtual void OnJoinFaith ()
 
virtual void OnLeaveFaith ()
 
virtual void OnChangeHour ()
 

Public Attributes

CustomReligionContent content
 
- Public Attributes inherited from Religion
int relation
 
int giftRank
 
int mood
 

Properties

override string id [get]
 
override bool CanJoin [get]
 
override bool IsMinorGod [get]
 
override bool IsAvailable [get]
 
- Properties inherited from Religion
virtual string id [get]
 
virtual bool IsAvailable [get]
 
virtual string Name [get]
 
SourceReligion.Row source [get]
 
virtual string NameShort [get]
 
virtual string NameDomain [get]
 
virtual string TextType [get]
 
virtual string TextGodGender [get]
 
virtual string TextMood [get]
 
bool IsEyth [get]
 
bool IsEhekatl [get]
 
bool IsOpatos [get]
 
virtual bool IsMinorGod [get]
 
virtual bool CanJoin [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 Types inherited from Religion
enum  ConvertType { Default , Campaign }
 
- 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 (long _a, int start, int step, int rate=75)
 
static int sqrt (int a)
 
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)
 
- Static Public Attributes inherited from Religion
static Religion recentWrath
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 3 of file ReligionCustom.cs.

Member Function Documentation

◆ GetOfferingMtp()

override int ReligionCustom.GetOfferingMtp ( Thing  t)
inlinevirtual

Reimplemented from Religion.

Definition at line 35 of file ReligionCustom.cs.

36 {
37 if (content.offeringMtp.TryGetValue(t.id, out var value))
38 {
39 return value;
40 }
41 return base.GetOfferingMtp(t);
42 }
string id
Definition: Card.cs:36
CustomReligionContent content

References content, and Card.id.

◆ GetOfferingValue()

override int ReligionCustom.GetOfferingValue ( Thing  t,
int  num = -1 
)
inlinevirtual

Reimplemented from Religion.

Definition at line 44 of file ReligionCustom.cs.

45 {
46 if (num == -1)
47 {
48 num = t.Num;
49 }
50 int offeringValue = base.GetOfferingValue(t, num);
51 if (content.offeringValue.TryGetValue(t.id, out var value))
52 {
53 var args = new
54 {
55 @base = offeringValue,
56 lv = t.LV,
57 rarity = t.rarityLv
58 };
59 if (value.TryEvaluateAsCalc(out int result, (object)args))
60 {
61 return result;
62 }
63 }
64 return offeringValue;
65 }
int Num
Definition: Card.cs:161
int LV
Definition: Card.cs:389

References content, Card.id, Card.LV, and Card.Num.

◆ GetSprite()

override Sprite ReligionCustom.GetSprite ( )
inlinevirtual

Reimplemented from Religion.

Definition at line 15 of file ReligionCustom.cs.

16 {
17 return ModUtil.LoadSprite(id, null, null, 150, 200) ?? base.GetSprite();
18 }

◆ GetValidArtifacts()

override string[] ReligionCustom.GetValidArtifacts ( )
inlinevirtual

Reimplemented from Religion.

Definition at line 25 of file ReligionCustom.cs.

26 {
27 return content.artifacts.ToArray();
28 }

References content.

◆ IsFaithElement()

override bool ReligionCustom.IsFaithElement ( Element  e)
inlinevirtual

Reimplemented from Religion.

Definition at line 30 of file ReligionCustom.cs.

31 {
32 return content.elements.Contains(e.source.alias);
33 }
SourceElement.Row source
Definition: ELEMENT.cs:278

References content, and Element.source.

◆ IsValidArtifact()

override bool ReligionCustom.IsValidArtifact ( string  thingId)
inlinevirtual

Reimplemented from Religion.

Definition at line 20 of file ReligionCustom.cs.

21 {
22 return content.artifacts.Contains(thingId);
23 }

References content.

◆ Punish()

override void ReligionCustom.Punish ( Chara  c)
inlinevirtual

Reimplemented from Religion.

Definition at line 67 of file ReligionCustom.cs.

68 {
69 if (content.noPunish)
70 {
72 }
73 else
74 {
75 base.Punish(c);
76 }
77 }
void SayNothingHappans()
Definition: Card.cs:7203

References content, and Card.SayNothingHappans().

◆ PunishTakeOver()

override void ReligionCustom.PunishTakeOver ( Chara  c)
inlinevirtual

Reimplemented from Religion.

Definition at line 79 of file ReligionCustom.cs.

80 {
81 if (content.noPunishTakeover)
82 {
84 }
85 else
86 {
87 base.PunishTakeOver(c);
88 }
89 }

References content, and Card.SayNothingHappans().

Member Data Documentation

◆ content

CustomReligionContent ReligionCustom.content

Property Documentation

◆ CanJoin

override bool ReligionCustom.CanJoin
get

Definition at line 9 of file ReligionCustom.cs.

◆ id

override string ReligionCustom.id
get

Definition at line 7 of file ReligionCustom.cs.

◆ IsAvailable

override bool ReligionCustom.IsAvailable
get

Definition at line 13 of file ReligionCustom.cs.

◆ IsMinorGod

override bool ReligionCustom.IsMinorGod
get

Definition at line 11 of file ReligionCustom.cs.


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