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

Public Member Functions

override void Tick ()
 
override void OnWriteNote (List< string > list)
 
- Public Member Functions inherited from TimeDebuff
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)
 

Properties

override bool IsElemental [get]
 
- Properties inherited from TimeDebuff
override bool TimeBased [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)
 
- 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
 
- 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 ConMiasma.cs.

Member Function Documentation

◆ OnWriteNote()

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

Reimplemented from BaseCondition.

Definition at line 50 of file ConMiasma.cs.

51 {
52 Dice dice = Dice.Create("miasma_", base.power);
53 list.Add("hintDOT".lang(dice.ToString(), base.sourceElement.GetName().ToLower()));
54 }
Definition: Dice.cs:4
override string ToString()
Definition: Dice.cs:91
static Dice Create(Element ele, Card c)
Definition: Dice.cs:96

References Dice.Create(), and Dice.ToString().

◆ Tick()

override void ConMiasma.Tick ( )
inlinevirtual

Reimplemented from Condition.

Definition at line 9 of file ConMiasma.cs.

10 {
11 Dice dice = Dice.Create("miasma_", base.power);
12 try
13 {
14 owner.DamageHP(dice.Roll(), base.refVal, EClass.rnd(base.power / 2) + base.power / 4, AttackSource.Condition);
15 if (owner.IsAliveInCurrentZone && base.value > 1)
16 {
17 for (int i = 0; i < 6; i++)
18 {
19 foreach (Chara chara in owner.pos.GetRandomPoint(2).Charas)
20 {
21 if ((!owner.IsPCFaction || chara.IsPCFaction) && (owner.IsPCFaction || !chara.IsPCFaction) && chara.IsFriendOrAbove(owner) && !chara.HasCondition<ConMiasma>())
22 {
23 Condition condition = chara.AddCondition(Condition.Create(base.power / 2, delegate(ConMiasma con)
24 {
25 con.givenByPcParty = base.givenByPcParty;
26 con.SetElement(base.refVal);
27 }));
28 if (condition != null)
29 {
30 condition.value = base.value - 1;
31 }
32 if (EClass.rnd(2) == 0)
33 {
34 break;
35 }
36 }
37 }
38 }
39 }
40 }
41 catch (Exception ex)
42 {
43 Debug.Log(ex.Message);
44 Debug.Log(owner);
45 Debug.Log(base.refVal);
46 }
47 Mod(-1);
48 }
AttackSource
Definition: AttackSource.cs:2
void SetElement(int id)
void Mod(int a, bool force=false)
void DamageHP(int dmg, AttackSource attackSource=AttackSource.None, Card origin=null)
Definition: Card.cs:3735
Point pos
Definition: Card.cs:55
Definition: Chara.cs:10
override bool IsAliveInCurrentZone
Definition: Chara.cs:546
Condition AddCondition(string id, int p=100, bool force=false)
Definition: Chara.cs:8415
bool HasCondition(string alias)
Definition: Chara.cs:8568
override bool IsPCFaction
Definition: Chara.cs:656
bool IsFriendOrAbove()
Definition: Chara.cs:5972
static Condition Create(string alias, int power=100, Action< Condition > onCreate=null)
Definition: Condition.cs:46
static int Roll(int num, int sides, int bonus=0, Card card=null)
Definition: Dice.cs:15
Definition: EClass.cs:5
static int rnd(int a)
Definition: EClass.cs:50
List< Chara > Charas
Definition: Point.cs:316
Point GetRandomPoint(int radius, bool requireLos=true, bool allowChara=true, bool allowBlocked=false, int tries=100)
Definition: Point.cs:741

References Chara.AddCondition(), Point.Charas, Dice.Create(), Condition.Create(), Card.DamageHP(), Debug, Point.GetRandomPoint(), Chara.HasCondition(), Chara.IsAliveInCurrentZone, Chara.IsFriendOrAbove(), Chara.IsPCFaction, BaseCondition.Mod(), BaseCondition.owner, Card.pos, EClass.rnd(), Dice.Roll(), and BaseCondition.SetElement().

Property Documentation

◆ IsElemental

override bool ConMiasma.IsElemental
get

Definition at line 7 of file ConMiasma.cs.


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