Elin Decompiled Documentation
EA 23.130 Nightly
Loading...
Searching...
No Matches
TraitLoytelMart.cs
Go to the documentation of this file.
1
public
class
TraitLoytelMart
:
TraitVendingMachine
2
{
3
public
int
LV
=>
EClass
.
player
.
flags
.
loytelMartLv
;
4
5
public
override
int
ShopLv
=>
LV
* 10 + ((
LV
<= 0) ? 1 : 10) + (EClass.debug.enable ? 50 : 0);
6
7
public
override
bool
IsHomeItem
=>
true
;
8
9
public
override
string
IDInvStyle
=>
"default"
;
10
11
public
override
bool
CanBeOnlyBuiltInHome
=>
true
;
12
13
public
override
ShopType
ShopType
=>
ShopType
.LoytelMart;
14
15
public
override
int
CostRerollShop
16
{
17
get
18
{
19
if
(!
EClass
.
debug
.
enable
)
20
{
21
return
0;
22
}
23
return
1;
24
}
25
}
26
27
public
override
bool
CanUse
(
Chara
c)
28
{
29
if
(
owner
.
IsInstalled
)
30
{
31
return
EClass
.
_zone
.
IsPCFaction
;
32
}
33
return
false
;
34
}
35
36
public
override
void
SetName
(ref
string
s)
37
{
38
if
(
LV
> 0)
39
{
40
s = s + Lang.space +
"+"
+
LV
;
41
}
42
}
43
}
ShopType
ShopType
Definition:
ShopType.cs:2
Card.IsInstalled
bool IsInstalled
Definition:
Card.cs:2281
Chara
Definition:
Chara.cs:10
CoreDebug.enable
bool enable
Definition:
CoreDebug.cs:285
EClass
Definition:
EClass.cs:5
EClass._zone
static Zone _zone
Definition:
EClass.cs:20
EClass.player
static Player player
Definition:
EClass.cs:12
EClass.debug
static CoreDebug debug
Definition:
EClass.cs:48
Player.Flags.loytelMartLv
int loytelMartLv
Definition:
Player.cs:534
Player.flags
Flags flags
Definition:
Player.cs:910
TraitLoytelMart
Definition:
TraitLoytelMart.cs:2
TraitLoytelMart.CostRerollShop
override int CostRerollShop
Definition:
TraitLoytelMart.cs:16
TraitLoytelMart.IDInvStyle
override string IDInvStyle
Definition:
TraitLoytelMart.cs:9
TraitLoytelMart.IsHomeItem
override bool IsHomeItem
Definition:
TraitLoytelMart.cs:7
TraitLoytelMart.ShopLv
override int ShopLv
Definition:
TraitLoytelMart.cs:5
TraitLoytelMart.CanBeOnlyBuiltInHome
override bool CanBeOnlyBuiltInHome
Definition:
TraitLoytelMart.cs:11
TraitLoytelMart.CanUse
override bool CanUse(Chara c)
Definition:
TraitLoytelMart.cs:27
TraitLoytelMart.LV
int LV
Definition:
TraitLoytelMart.cs:3
TraitLoytelMart.SetName
override void SetName(ref string s)
Definition:
TraitLoytelMart.cs:36
TraitVendingMachine
Definition:
TraitVendingMachine.cs:2
Trait.owner
Card owner
Definition:
Trait.cs:26
Zone.IsPCFaction
bool IsPCFaction
Definition:
Zone.cs:464
Elin
TraitLoytelMart.cs
Generated by
1.9.6