Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitKettle.cs
Go to the documentation of this file.
1
public
class
TraitKettle
:
TraitUniqueChara
2
{
3
public
override
int
CostRerollShop
=> 0;
4
5
public
override
bool
CanInvest
=>
CanJoinParty
;
6
7
public
override
CopyShopType
CopyShop
8
{
9
get
10
{
11
if
(!
CanJoinParty
)
12
{
13
return
CopyShopType
.None;
14
}
15
return
CopyShopType
.Item;
16
}
17
}
18
19
public
override
ShopType
ShopType
20
{
21
get
22
{
23
if
(!
CanJoinParty
)
24
{
25
return
ShopType
.None;
26
}
27
return
ShopType
.Copy;
28
}
29
}
30
31
public
override
PriceType
PriceType
=>
PriceType
.CopyShop;
32
33
public
override
bool
CanJoinParty
34
{
35
get
36
{
37
if
(!
EClass
.
game
.
quests
.
IsCompleted
(
"vernis_gold"
))
38
{
39
return
EClass
.
debug
.
enable
;
40
}
41
return
true
;
42
}
43
}
44
45
public
override
bool
CanBeBanished
=>
false
;
46
47
public
override
int
RestockDay
=> 28;
48
49
public
override
bool
CanCopy
(
Thing
t)
50
{
51
if
(t.
noSell
|| t.
HasRune
() || t.
HasElement
(1229))
52
{
53
return
false
;
54
}
55
if
(t.
trait
is
TraitSeed
)
56
{
57
return
true
;
58
}
59
if
(t.
HasElement
(759))
60
{
61
return
false
;
62
}
63
if
(t.
sockets
!=
null
)
64
{
65
foreach
(
int
socket
in
t.
sockets
)
66
{
67
if
(socket != 0)
68
{
69
return
false
;
70
}
71
}
72
}
73
return
t.
isCrafted
;
74
}
75
}
PriceType
PriceType
Definition:
PriceType.cs:2
ShopType
ShopType
Definition:
ShopType.cs:2
Card.isCrafted
bool isCrafted
Definition:
Card.cs:766
Card.HasRune
bool HasRune()
Definition:
Card.cs:3434
Card.HasElement
bool HasElement(int ele, int req=1)
Definition:
Card.cs:5214
Card.noSell
bool noSell
Definition:
Card.cs:802
Card.trait
Trait trait
Definition:
Card.cs:49
Card.sockets
List< int > sockets
Definition:
Card.cs:43
CoreDebug.enable
bool enable
Definition:
CoreDebug.cs:285
EClass
Definition:
EClass.cs:5
EClass.game
static Game game
Definition:
EClass.cs:8
EClass.debug
static CoreDebug debug
Definition:
EClass.cs:48
Game.quests
QuestManager quests
Definition:
Game.cs:179
QuestManager.IsCompleted
bool IsCompleted(string id)
Definition:
QuestManager.cs:196
Thing
Definition:
Thing.cs:8
TraitKettle
Definition:
TraitKettle.cs:2
TraitKettle.CanCopy
override bool CanCopy(Thing t)
Definition:
TraitKettle.cs:49
TraitKettle.CanInvest
override bool CanInvest
Definition:
TraitKettle.cs:5
TraitKettle.CanBeBanished
override bool CanBeBanished
Definition:
TraitKettle.cs:45
TraitKettle.RestockDay
override int RestockDay
Definition:
TraitKettle.cs:47
TraitKettle.CostRerollShop
override int CostRerollShop
Definition:
TraitKettle.cs:3
TraitKettle.CopyShop
override CopyShopType CopyShop
Definition:
TraitKettle.cs:8
TraitKettle.CanJoinParty
override bool CanJoinParty
Definition:
TraitKettle.cs:34
TraitSeed
Definition:
TraitSeed.cs:6
TraitUniqueChara
Definition:
TraitUniqueChara.cs:2
Trait.CopyShopType
CopyShopType
Definition:
Trait.cs:18
Elin
TraitKettle.cs
Generated by
1.9.6