Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitPerfume.cs
Go to the documentation of this file.
1
public
class
TraitPerfume
:
TraitPotionRandom
2
{
3
public
new
static
ElementSelecter
selecter
=
new
ElementSelecter
4
{
5
type =
"F"
,
6
lvMod = 10
7
};
8
9
public
override
int
GetValue
()
10
{
11
return
source.value * 1200 / 100;
12
}
13
14
public
override
void
OnCreate
(
int
lv)
15
{
16
owner.refVal =
selecter
.
Select
(lv);
17
}
18
19
public
override
string
GetName
()
20
{
21
return
Lang
.
TryGet
(
"perfume_"
+
source
.alias) ??
"perfume_"
.lang(
source
.GetName().ToLower());
22
}
23
}
ElementSelecter
Definition:
ElementSelecter.cs:5
ElementSelecter.Select
int Select(int lv)
Definition:
ElementSelecter.cs:16
Lang
Definition:
Lang.cs:6
Lang.TryGet
static string TryGet(string id)
Definition:
Lang.cs:105
TraitPerfume
Definition:
TraitPerfume.cs:2
TraitPerfume.OnCreate
override void OnCreate(int lv)
Definition:
TraitPerfume.cs:14
TraitPerfume.selecter
static new ElementSelecter selecter
Definition:
TraitPerfume.cs:3
TraitPerfume.GetValue
override int GetValue()
Definition:
TraitPerfume.cs:9
TraitPerfume.GetName
override string GetName()
Definition:
TraitPerfume.cs:19
TraitPotionRandom
Definition:
TraitPotionRandom.cs:2
TraitPotionRandom.source
override SourceElement.Row source
Definition:
TraitPotionRandom.cs:9
Elin
TraitPerfume.cs
Generated by
1.9.6