Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
HappinessSummary.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
3public class HappinessSummary : EClass
4{
5 public int happiness;
6
7 public int hunger;
8
9 public int fatigue;
10
11 public int depression;
12
13 public int bladder;
14
15 public int hygine;
16
18 {
19 List<Chara> members = b.members;
20 foreach (Chara item in members)
21 {
22 happiness += item.happiness;
23 hunger += item.hunger.value;
24 fatigue += item.stamina.value;
25 depression += item.depression.value;
26 bladder += item.bladder.value;
27 hygine += item.hygiene.value;
28 }
29 int count = members.Count;
30 happiness /= count;
31 hunger /= count;
32 fatigue /= count;
33 depression /= count;
34 bladder /= count;
35 hygine /= count;
36 }
37
38 public string GetText()
39 {
40 string text = "";
41 text = text + "happiness".lang() + ": " + happiness + "\n";
42 text = text + EClass.pc.hunger.name + ": " + hunger + "\n";
43 text = text + EClass.pc.stamina.name + ": " + fatigue + "\n";
44 text = text + EClass.pc.depression.name + ": " + depression + "\n";
45 text = text + EClass.pc.bladder.name + ": " + bladder + "\n";
46 return text + EClass.pc.hygiene.name + ": " + hygine;
47 }
48}
Definition: Chara.cs:10
Definition: EClass.cs:5
List< Chara > members
HappinessSummary(FactionBranch b)