Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitToolRangeCane.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public override bool NeedAmmo => false;
6
7 public override bool NeedReload => false;
8
10
11 public override void OnCreate(int lv)
12 {
13 owner.elements.SetBase(Element.GetRandomElement(lv).id, Mathf.Clamp(EClass.rndHalf(10 + lv / 2), 1, 50));
14 }
15}
ElementContainerCard elements
Definition: Card.cs:37
Definition: EClass.cs:5
static int rndHalf(int a)
Definition: EClass.cs:74
Element SetBase(string alias, int v, int potential=0)
Element GetOrCreateElement(Element ele)
static SourceElement.Row GetRandomElement(int lv=1)
Definition: ELEMENT.cs:546
override bool NeedAmmo
override bool NeedReload
override Element WeaponSkill
override void OnCreate(int lv)
Card owner
Definition: Trait.cs:26