Elin Modding Docs Doc
Loading...
Searching...
No Matches
QuestSupplyCat.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using Newtonsoft.Json;
5
6// Token: 0x020000E9 RID: 233
8{
9 // Token: 0x17000176 RID: 374
10 // (get) Token: 0x0600065D RID: 1629 RVA: 0x00029083 File Offset: 0x00027283
11 public SourceCategory.Row Cat
12 {
13 get
14 {
15 return EClass.sources.categories.map[this.idCat];
16 }
17 }
18
19 // Token: 0x17000177 RID: 375
20 // (get) Token: 0x0600065E RID: 1630 RVA: 0x0002909F File Offset: 0x0002729F
21 public override string RefDrama2
22 {
23 get
24 {
25 return this.Cat.GetName();
26 }
27 }
28
29 // Token: 0x0600065F RID: 1631 RVA: 0x000290AC File Offset: 0x000272AC
30 public override bool IsDestThing(Thing t)
31 {
32 return !t.c_isImportant && !t.isEquipped && t.category.IsChildOf(this.idCat) && t.things.Count == 0;
33 }
34
35 // Token: 0x17000178 RID: 376
36 // (get) Token: 0x06000660 RID: 1632 RVA: 0x000290E1 File Offset: 0x000272E1
37 public override string NameDeliver
38 {
39 get
40 {
41 return this.Cat.GetName();
42 }
43 }
44
45 // Token: 0x06000661 RID: 1633 RVA: 0x000290F0 File Offset: 0x000272F0
46 public override void SetIdThing()
47 {
48 List<SourceCategory.Row> source = (from c in EClass.sources.categories.rows
49 where c._parent == "meal"
50 select c).ToList<SourceCategory.Row>();
51 this.idCat = source.RandomItem<SourceCategory.Row>().id;
52 }
53
54 // Token: 0x06000662 RID: 1634 RVA: 0x00029148 File Offset: 0x00027348
55 public override string GetTextProgress()
56 {
57 string @ref = (this.GetDestThing() != null) ? "supplyInInv".lang().TagColor(FontColor.Good, null) : "supplyNotInInv".lang();
58 return "progressSupply".lang(this.Cat.GetName(), @ref, null, null, null);
59 }
60
61 // Token: 0x0400071B RID: 1819
62 [JsonProperty]
63 public string idCat;
64}
Definition Thing.cs:10