Elin Modding Docs Doc
Loading...
Searching...
No Matches
ListPeopleExpedition.cs
1using System;
2using System.Collections.Generic;
3using UnityEngine;
4
5// Token: 0x020005B0 RID: 1456
7{
8 // Token: 0x17000BBD RID: 3005
9 // (get) Token: 0x060027F4 RID: 10228 RVA: 0x000E1BD7 File Offset: 0x000DFDD7
10 public override bool ShowGoto
11 {
12 get
13 {
14 return false;
15 }
16 }
17
18 // Token: 0x17000BBE RID: 3006
19 // (get) Token: 0x060027F5 RID: 10229 RVA: 0x000E1BDA File Offset: 0x000DFDDA
20 public override bool ShowHome
21 {
22 get
23 {
24 return false;
25 }
26 }
27
28 // Token: 0x060027F6 RID: 10230 RVA: 0x000E1BE0 File Offset: 0x000DFDE0
29 public override void OnClick(Chara c, ItemGeneral i)
30 {
31 Expedition ex = this.expeditions[c.uid];
32 if (!c.IsAliveInCurrentZone || !ex.costs.CanPay())
33 {
34 SE.Beep();
35 return;
36 }
37 UIContextMenu uicontextMenu = EClass.ui.CreateContextMenuInteraction().SetHighlightTarget(i);
38 uicontextMenu.AddButton("sendExpedition", delegate()
39 {
40 EClass.Branch.expeditions.Add(ex);
41 SE.MoveZone();
42 this.list.List(false);
43 }, true);
44 uicontextMenu.Show();
45 }
46
47 // Token: 0x060027F7 RID: 10231 RVA: 0x000E1C60 File Offset: 0x000DFE60
48 public override void OnList()
49 {
50 foreach (Chara chara in EClass.Branch.members)
51 {
52 if (!chara.IsPCParty)
53 {
54 this.list.Add(chara);
55 this.expeditions[chara.uid] = Expedition.Create(chara, this.type);
56 }
57 }
58 }
59
60 // Token: 0x060027F8 RID: 10232 RVA: 0x000E1CE4 File Offset: 0x000DFEE4
61 public override void SetSubText(Chara a, ItemGeneral b)
62 {
63 Expedition expedition = this.expeditions[a.uid];
64 string lang = "";
65 if (a.IsAliveInCurrentZone)
66 {
67 lang = expedition.costs.GetText() + "subExpedition".lang((expedition.MinHour / 24).ToString() ?? "", (expedition.MaxHour / 24).ToString() ?? "", null, null, null);
68 }
69 else if (a.isDead)
70 {
71 lang = "isDead".lang();
72 }
73 else
74 {
75 Zone currentZone = a.currentZone;
76 if (((currentZone != null) ? currentZone.id : null) == "somewhere")
77 {
78 lang = "isExploring".lang();
79 }
80 }
81 b.SetSubText(lang, 280, FontColor.Default, TextAnchor.MiddleLeft);
82 }
83
84 // Token: 0x04001623 RID: 5667
85 public Dictionary<int, Expedition> expeditions = new Dictionary<int, Expedition>();
86
87 // Token: 0x04001624 RID: 5668
88 public ExpeditionType type;
89}
Definition Chara.cs:12
Definition Zone.cs:14