Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitKettle.cs
Go to the documentation of this file.
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
Definition: PriceType.cs:2
ShopType
Definition: ShopType.cs:2
bool isCrafted
Definition: Card.cs:766
bool HasRune()
Definition: Card.cs:3434
bool HasElement(int ele, int req=1)
Definition: Card.cs:5214
bool noSell
Definition: Card.cs:802
Trait trait
Definition: Card.cs:49
List< int > sockets
Definition: Card.cs:43
bool enable
Definition: CoreDebug.cs:285
Definition: EClass.cs:5
static Game game
Definition: EClass.cs:8
static CoreDebug debug
Definition: EClass.cs:48
QuestManager quests
Definition: Game.cs:179
bool IsCompleted(string id)
Definition: Thing.cs:8
override bool CanCopy(Thing t)
Definition: TraitKettle.cs:49
override bool CanInvest
Definition: TraitKettle.cs:5
override bool CanBeBanished
Definition: TraitKettle.cs:45
override int RestockDay
Definition: TraitKettle.cs:47
override int CostRerollShop
Definition: TraitKettle.cs:3
override CopyShopType CopyShop
Definition: TraitKettle.cs:8
override bool CanJoinParty
Definition: TraitKettle.cs:34
CopyShopType
Definition: Trait.cs:18