Elin Modding Docs Doc
Loading...
Searching...
No Matches
HappinessSummary.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x0200006C RID: 108
5public class HappinessSummary : EClass
6{
7 // Token: 0x0600032A RID: 810 RVA: 0x000185EC File Offset: 0x000167EC
9 {
10 List<Chara> members = b.members;
11 foreach (Chara chara in members)
12 {
13 this.happiness += chara.happiness;
14 this.hunger += chara.hunger.value;
15 this.fatigue += chara.stamina.value;
16 this.depression += chara.depression.value;
17 this.bladder += chara.bladder.value;
18 this.hygine += chara.hygiene.value;
19 }
20 int count = members.Count;
21 this.happiness /= count;
22 this.hunger /= count;
23 this.fatigue /= count;
24 this.depression /= count;
25 this.bladder /= count;
26 this.hygine /= count;
27 }
28
29 // Token: 0x0600032B RID: 811 RVA: 0x0001872C File Offset: 0x0001692C
30 public string GetText()
31 {
32 string text = "";
33 text = string.Concat(new string[]
34 {
35 text,
36 "happiness".lang(),
37 ": ",
38 this.happiness.ToString(),
39 "\n"
40 });
41 text = string.Concat(new string[]
42 {
43 text,
44 EClass.pc.hunger.name,
45 ": ",
46 this.hunger.ToString(),
47 "\n"
48 });
49 text = string.Concat(new string[]
50 {
51 text,
52 EClass.pc.stamina.name,
53 ": ",
54 this.fatigue.ToString(),
55 "\n"
56 });
57 text = string.Concat(new string[]
58 {
59 text,
60 EClass.pc.depression.name,
61 ": ",
62 this.depression.ToString(),
63 "\n"
64 });
65 text = string.Concat(new string[]
66 {
67 text,
68 EClass.pc.bladder.name,
69 ": ",
70 this.bladder.ToString(),
71 "\n"
72 });
73 return text + EClass.pc.hygiene.name + ": " + this.hygine.ToString();
74 }
75
76 // Token: 0x0400055F RID: 1375
77 public int happiness;
78
79 // Token: 0x04000560 RID: 1376
80 public int hunger;
81
82 // Token: 0x04000561 RID: 1377
83 public int fatigue;
84
85 // Token: 0x04000562 RID: 1378
86 public int depression;
87
88 // Token: 0x04000563 RID: 1379
89 public int bladder;
90
91 // Token: 0x04000564 RID: 1380
92 public int hygine;
93}
Definition Chara.cs:12