Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitDemitas.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public override int CostRerollShop => 0;
6
7 public bool CanSpellwrite
8 {
9 get
10 {
11 if (!EClass.debug.enable)
12 {
13 return EClass.game.quests.IsCompleted("demitas_spellwriter");
14 }
15 return true;
16 }
17 }
18
19 public override bool CanInvest => CanSpellwrite;
20
21 public override CopyShopType CopyShop
22 {
23 get
24 {
25 if (!CanSpellwrite)
26 {
27 return CopyShopType.None;
28 }
29 return CopyShopType.Spellbook;
30 }
31 }
32
33 public override ShopType ShopType
34 {
35 get
36 {
37 if (!CanSpellwrite)
38 {
39 return ShopType.None;
40 }
41 return ShopType.Copy;
42 }
43 }
44
45 public override int NumCopyItem => 3 + Mathf.Min(base.owner.c_invest / 5, 7);
46
47 public override bool CanJoinParty => false;
48
49 public override bool CanBeBanished => false;
50
51 public override int RestockDay => 28;
52
53 public override bool CanCopy(Thing t)
54 {
55 return t.trait is TraitSpellbook;
56 }
57}
ShopType
Definition: ShopType.cs:2
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 CanBeBanished
Definition: TraitDemitas.cs:49
override CopyShopType CopyShop
Definition: TraitDemitas.cs:22
override bool CanJoinParty
Definition: TraitDemitas.cs:47
override bool CanCopy(Thing t)
Definition: TraitDemitas.cs:53
bool CanSpellwrite
Definition: TraitDemitas.cs:8
override int CostRerollShop
Definition: TraitDemitas.cs:5
override int RestockDay
Definition: TraitDemitas.cs:51
override bool CanInvest
Definition: TraitDemitas.cs:19
override int NumCopyItem
Definition: TraitDemitas.cs:45
CopyShopType
Definition: Trait.cs:18