Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ConStrife Class Reference
Inheritance diagram for ConStrife:
BaseBuff BaseDebuff Condition BaseCondition BaseStats EClass

Public Member Functions

override bool CanStack (Condition c)
 
void AddKill (Chara c)
 
Dice GetDice ()
 
void SetTurn ()
 
override void Tick ()
 
override void OnWriteNote (List< string > list)
 
- Public Member Functions inherited from BaseBuff
override int GetPhase ()
 
override bool CanStack (Condition c)
 
- Public Member Functions inherited from BaseDebuff
override int GetPhase ()
 
override BaseNotification CreateNotification ()
 
- Public Member Functions inherited from Condition
override BaseNotification CreateNotification ()
 
virtual void OnStacked (int p)
 
Condition SetPerfume (int duration=3)
 
override void Tick ()
 
virtual void OnCalculateFov (Fov fov, ref int radius, ref float power)
 
virtual void OnCreateFov (Fov fov)
 
override void OnValueChanged ()
 
void Kill (bool silent=false)
 
- Public Member Functions inherited from BaseCondition
virtual bool CanStack (Condition c)
 
virtual bool TryMove (Point p)
 
void SetElement (int id)
 
void SetRefVal (int a, int b)
 
virtual Color GetSpriteColor ()
 
override string ToString ()
 
override string GetText ()
 
override int GetValue ()
 
override Color GetColor (Gradient g)
 
virtual void SetOwner (Chara _owner, bool onDeserialize=false)
 
SourceElement.Row GetElementSource (int i)
 
void Start ()
 
bool TryNullify (Condition c)
 
virtual void OnBeforeStart ()
 
virtual void OnStart ()
 
virtual void OnStartOrStack ()
 
virtual void PlayEffect ()
 
virtual void PlayEndEffect ()
 
virtual void OnRefresh ()
 
void SetPhase ()
 
bool IsNullPhase ()
 
override int GetPhase ()
 
void PhaseMsg (bool inc)
 
override string GetPhaseStr ()
 
virtual void Tick ()
 
void Mod (int a, bool force=false)
 
virtual void OnValueChanged ()
 
virtual void OnChangePhase (int lastPhase, int newPhase)
 
virtual void OnRemoved ()
 
virtual int EvaluatePower (int p)
 
virtual int EvaluateTurn (int p)
 
virtual BaseNotification CreateNotification ()
 
Element GetDefenseAttribute (Chara c=null)
 
override void _WriteNote (UINote n, bool asChild=false)
 
virtual void OnWriteNote (List< string > list)
 
virtual RendererReplacer GetRendererReplacer ()
 
- Public Member Functions inherited from BaseStats
virtual Color GetColor (Gradient gradient)
 
virtual Color GetColor (SkinColorProfile c)
 
Color GetColor ()
 
virtual string GetText ()
 
virtual string GetPhaseStr ()
 
virtual int GetValue ()
 
virtual Sprite GetSprite ()
 
virtual void SetText (UIText t, SkinColorProfile cols=null)
 
virtual int GetPhase ()
 
void PopText ()
 
virtual void WriteNote (UINote n, Action< UINote > onWriteNote=null)
 
virtual void _WriteNote (UINote n, bool asChild=false)
 

Public Attributes

int exp
 
int lv
 
int turn
 
- Public Attributes inherited from BaseCondition
int[] _ints = new int[5]
 
int phase = -1
 
ElementContainer elements
 
Chara owner
 
- Public Attributes inherited from BaseStats
int id
 
SourceStat.Row _source
 

Properties

override string TextDuration [get]
 
override bool WillOverride [get]
 
int ExpToNext [get]
 
- Properties inherited from BaseBuff
override bool CanManualRemove [get]
 
- Properties inherited from BaseDebuff
override bool WillOverride [get]
 
- Properties inherited from Condition
virtual bool IsKilled [get]
 
virtual string TextDuration [get]
 
- Properties inherited from BaseCondition
int value [get, set]
 
int power [get, set]
 
int refVal [get, set]
 
int refVal2 [get, set]
 
bool givenByPcParty [get, set]
 
bool isPerfume [get, set]
 
override Chara Owner [get]
 
virtual string Name [get]
 
virtual bool IsToggle [get]
 
virtual bool WillOverride [get]
 
virtual bool AllowMultipleInstance [get]
 
virtual bool ConsumeTurn [get]
 
virtual bool PreventRegen [get]
 
virtual bool ShouldRefresh [get]
 
virtual bool CancelAI [get]
 
virtual bool TimeBased [get]
 
virtual bool SyncRide [get]
 
virtual bool UseElements [get]
 
virtual int GainResistFactor [get]
 
virtual int P2 [get]
 
SourceElement.Row sourceElement [get]
 
virtual bool IsElemental [get]
 
virtual string RefString1 [get]
 
virtual bool CanManualRemove [get]
 
- Properties inherited from BaseStats
SourceStat.Row source [get]
 
virtual Emo2 EmoIcon [get]
 
virtual ConditionType Type [get]
 
virtual string idSprite [get]
 
virtual bool ShowInWidget [get]
 
virtual Chara Owner [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

- Static Public Member Functions inherited from Condition
static T Create< T > (int power=100, Action< T > onCreate=null)
 
static Condition Create (string alias, int power=100, Action< Condition > onCreate=null)
 
- Static Public Member Functions inherited from EClass
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)
 
- Static Public Attributes inherited from Condition
static bool ignoreEffect
 
- Static Public Attributes inherited from BaseStats
static Chara CC
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 5 of file ConStrife.cs.

Member Function Documentation

◆ AddKill()

void ConStrife.AddKill ( Chara  c)
inline

Definition at line 27 of file ConStrife.cs.

28 {
30 {
31 if (c.IsMinion)
32 {
33 exp += 2;
34 }
35 else
36 {
37 exp += 30;
38 }
39 }
40 else
41 {
42 exp++;
43 }
44 while (exp >= ExpToNext)
45 {
46 exp -= ExpToNext;
47 lv++;
48 }
49 SetTurn();
50 }
bool IsPCFactionOrMinion
Definition: Card.cs:2132
override bool IsMinion
Definition: Chara.cs:612
void SetTurn()
Definition: ConStrife.cs:57
int exp
Definition: ConStrife.cs:8
int lv
Definition: ConStrife.cs:11
int ExpToNext
Definition: ConStrife.cs:20

References exp, ExpToNext, Chara.IsMinion, Card.IsPCFactionOrMinion, lv, and SetTurn().

Referenced by Card.DamageHP().

◆ CanStack()

override bool ConStrife.CanStack ( Condition  c)
inlinevirtual

Reimplemented from BaseBuff.

Definition at line 22 of file ConStrife.cs.

23 {
24 return true;
25 }

◆ GetDice()

Dice ConStrife.GetDice ( )
inline

Definition at line 52 of file ConStrife.cs.

53 {
54 return new Dice(1, 1 + Mathf.Min(lv, 10) * 2);
55 }
Definition: Dice.cs:4

References lv.

Referenced by AttackProcess.GetRawDamage(), and OnWriteNote().

◆ OnWriteNote()

override void ConStrife.OnWriteNote ( List< string >  list)
inlinevirtual

Reimplemented from BaseCondition.

Definition at line 80 of file ConStrife.cs.

81 {
82 list.Add("hintStrife".lang(lv.ToString() ?? "", exp + "/" + ExpToNext, GetDice().ToString()));
83 }
override string ToString()
Dice GetDice()
Definition: ConStrife.cs:52

References exp, ExpToNext, GetDice(), lv, and BaseCondition.ToString().

◆ SetTurn()

void ConStrife.SetTurn ( )
inline

Definition at line 57 of file ConStrife.cs.

58 {
59 turn = Mathf.Max(100 - lv * 10, 10);
60 }
int turn
Definition: ConStrife.cs:14

References lv, and turn.

Referenced by AddKill(), and Tick().

◆ Tick()

override void ConStrife.Tick ( )
inlinevirtual

Reimplemented from Condition.

Definition at line 62 of file ConStrife.cs.

63 {
64 turn--;
65 if (turn < 0)
66 {
67 lv--;
68 if (lv >= 1)
69 {
70 SetTurn();
71 exp = ExpToNext / 2;
72 }
73 else
74 {
75 Kill();
76 }
77 }
78 }
void Kill(bool silent=false)
Definition: Condition.cs:91

References exp, ExpToNext, Condition.Kill(), lv, SetTurn(), and turn.

Member Data Documentation

◆ exp

int ConStrife.exp

Definition at line 8 of file ConStrife.cs.

Referenced by AddKill(), OnWriteNote(), and Tick().

◆ lv

int ConStrife.lv

Definition at line 11 of file ConStrife.cs.

Referenced by AddKill(), GetDice(), OnWriteNote(), SetTurn(), and Tick().

◆ turn

int ConStrife.turn

Definition at line 14 of file ConStrife.cs.

Referenced by SetTurn(), and Tick().

Property Documentation

◆ ExpToNext

int ConStrife.ExpToNext
get

Definition at line 20 of file ConStrife.cs.

Referenced by AddKill(), OnWriteNote(), and Tick().

◆ TextDuration

override string ConStrife.TextDuration
get

Definition at line 16 of file ConStrife.cs.

◆ WillOverride

override bool ConStrife.WillOverride
get

Definition at line 18 of file ConStrife.cs.


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