Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitPotionRandom.cs
Go to the documentation of this file.
2{
4 {
5 type = "P",
6 lvMod = 10
7 };
8
10
11 public override string AliasEle => source.aliasRef;
12
13 public override int Power => 200;
14
15 public override EffectId IdEffect => source.proc[0].ToEnum<EffectId>();
16
17 public override string N1 => source.proc.TryGet(1, returnNull: true);
18
19 public override bool IsNeg => source.tag.Contains("neg");
20
22 {
23 return source;
24 }
25
26 public override int GetValue()
27 {
28 return source.value * 120 / 100;
29 }
30
31 public override void OnCreate(int lv)
32 {
33 owner.refVal = selecter.Select(lv);
34 }
35
36 public override string GetName()
37 {
38 return Lang.TryGet("potion_" + source.alias) ?? "potion_".lang(source.GetName().ToLower());
39 }
40}
EffectId
Definition: EffectId.cs:2
int refVal
Definition: Card.cs:190
Definition: EClass.cs:5
static SourceManager sources
Definition: EClass.cs:42
int Select(int lv)
Definition: Lang.cs:6
static string TryGet(string id)
Definition: Lang.cs:105
SourceElement elements
override string GetName()
override string N1
override void OnCreate(int lv)
override bool IsNeg
override SourceElement.Row GetRefElement()
override SourceElement.Row source
override string AliasEle
static ElementSelecter selecter
override EffectId IdEffect
override int GetValue()
Card owner
Definition: Trait.cs:26