Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitScrollRandom.cs
Go to the documentation of this file.
2{
4 {
5 type = "S",
6 lvMod = 20
7 };
8
9 public override EffectId idEffect => source.proc[0].ToEnum<EffectId>();
10
11 public override int Power => 200;
12
13 public override string AliasEle => source.aliasRef;
14
15 public override string N1 => source.proc.TryGet(1, returnNull: true);
16
18
19 public override string GetName()
20 {
21 return Lang.TryGet("scroll_" + source.alias) ?? "scroll_".lang(source.GetName().ToLower());
22 }
23
24 public override void OnCreate(int lv)
25 {
26 owner.refVal = selector.Select(lv);
27 }
28}
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 N1
static ElementSelecter selector
override EffectId idEffect
override SourceElement.Row source
override void OnCreate(int lv)
override string AliasEle
override string GetName()
Card owner
Definition: Trait.cs:26