Elin Decompiled Documentation
EA 23.307 Stable
Loading...
Searching...
No Matches
TraitMerchantTravel.cs
Go to the documentation of this file.
1
public
class
TraitMerchantTravel
:
TraitMerchant
2
{
3
public
bool
ShouldOpenShop
4
{
5
get
6
{
7
if
(!base.owner.IsPCFactionOrMinion)
8
{
9
return
!
EClass
.
_zone
.
IsPCFactionOrTent
;
10
}
11
return
false
;
12
}
13
}
14
15
public
override
int
ShopLv
16
{
17
get
18
{
19
if
(!
ShouldOpenShop
)
20
{
21
return
base.ShopLv;
22
}
23
return
EClass.pc.FameLv + EClass.pc.FameLv / 2 + 10;
24
}
25
}
26
27
public
override
ShopType
ShopType
28
{
29
get
30
{
31
if
(!
ShouldOpenShop
)
32
{
33
return
ShopType
.None;
34
}
35
return
ShopType
.TravelMerchant;
36
}
37
}
38
39
public
override
bool
CanInvest
=>
false
;
40
41
public
override
bool
AllowCriminal
=>
true
;
42
43
public
override
int
CostRerollShop
=> 0;
44
45
public
override
int
RestockDay
=> -1;
46
}
ShopType
ShopType
Definition:
ShopType.cs:2
EClass
Definition:
EClass.cs:6
EClass._zone
static Zone _zone
Definition:
EClass.cs:21
TraitMerchantTravel
Definition:
TraitMerchantTravel.cs:2
TraitMerchantTravel.AllowCriminal
override bool AllowCriminal
Definition:
TraitMerchantTravel.cs:41
TraitMerchantTravel.CanInvest
override bool CanInvest
Definition:
TraitMerchantTravel.cs:39
TraitMerchantTravel.RestockDay
override int RestockDay
Definition:
TraitMerchantTravel.cs:45
TraitMerchantTravel.ShouldOpenShop
bool ShouldOpenShop
Definition:
TraitMerchantTravel.cs:4
TraitMerchantTravel.ShopLv
override int ShopLv
Definition:
TraitMerchantTravel.cs:16
TraitMerchantTravel.CostRerollShop
override int CostRerollShop
Definition:
TraitMerchantTravel.cs:43
TraitMerchant
Definition:
TraitMerchant.cs:2
Zone.IsPCFactionOrTent
bool IsPCFactionOrTent
Definition:
Zone.cs:478
Elin
TraitMerchantTravel.cs
Generated by
1.9.6