|
| 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) |
| |
| 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, Card c, 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 (Chara chara=null) |
| |
| virtual bool | TryGetGift (Chara chara=null) |
| |
| virtual void | OnReforge (Thing t) |
| |
| virtual bool | IsIgnoreReforge (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 | PunishPerverseWretch (Chara c) |
| |
| void | DoPunish (Chara c, PunishType type) |
| |
| virtual void | OnJoinFaith () |
| |
| virtual void | OnLeaveFaith () |
| |
| virtual void | OnChangeHour () |
| |
|
| enum | ConvertType { Default
, Campaign
} |
| |
| enum | PunishType { Wrath
, Takeover
, Pervert
} |
| |
| 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 Religion | recentWrath |
| |
| static Core | core |
| |
Definition at line 4 of file ReligionCustom.cs.
◆ GetOfferingMtp()
| override int ReligionCustom.GetOfferingMtp |
( |
Thing |
t | ) |
|
|
inlinevirtual |
Reimplemented from Religion.
Definition at line 37 of file ReligionCustom.cs.
38 {
39 if (
content.offeringMtp.TryGetValue(t.
id, out var value))
40 {
41 return value;
42 }
43 return base.GetOfferingMtp(t);
44 }
CustomReligionContent content
References content, and Card.id.
◆ GetOfferingValue()
| override int ReligionCustom.GetOfferingValue |
( |
Thing |
t, |
|
|
int |
num = -1 |
|
) |
| |
|
inlinevirtual |
Reimplemented from Religion.
Definition at line 46 of file ReligionCustom.cs.
47 {
48 if (num == -1)
49 {
51 }
52 int offeringValue = base.GetOfferingValue(t, num);
53 if (
content.offeringValue.TryGetValue(t.
id, out var value))
54 {
55 var args = new
56 {
57 @base = offeringValue,
59 rarity = t.rarityLv
60 };
61 if (value.TryEvaluateAsCalc(out int result, (object)args))
62 {
63 return result;
64 }
65 }
66 return offeringValue;
67 }
References content, Card.id, Card.LV, and Card.Num.
◆ GetSprite()
| override Sprite ReligionCustom.GetSprite |
( |
| ) |
|
|
inlinevirtual |
Reimplemented from Religion.
Definition at line 17 of file ReligionCustom.cs.
18 {
19 return ModUtil.LoadSprite(id, null, null, 150, 200) ?? base.GetSprite();
20 }
◆ GetValidArtifacts()
| override string[] ReligionCustom.GetValidArtifacts |
( |
| ) |
|
|
inlinevirtual |
◆ IsFaithElement()
| override bool ReligionCustom.IsFaithElement |
( |
Element |
e | ) |
|
|
inlinevirtual |
◆ IsValidArtifact()
| override bool ReligionCustom.IsValidArtifact |
( |
string |
thingId | ) |
|
|
inlinevirtual |
◆ Punish()
| override void ReligionCustom.Punish |
( |
Chara |
c | ) |
|
|
inlinevirtual |
◆ PunishTakeOver()
| override void ReligionCustom.PunishTakeOver |
( |
Chara |
c | ) |
|
|
inlinevirtual |
◆ content
| CustomReligionContent ReligionCustom.content |
◆ CanJoin
| override bool ReligionCustom.CanJoin |
|
get |
◆ id
| override string ReligionCustom.id |
|
get |
◆ IsAvailable
| override bool ReligionCustom.IsAvailable |
|
get |
◆ IsMinorGod
| override bool ReligionCustom.IsMinorGod |
|
get |
The documentation for this class was generated from the following file: