1using System.Collections.Generic;
78 int happiness =
item.GetHappiness();
83 else if (happiness >= 30)
93 int avg = ((list.Count != 0) ? (num / list.Count) : 0);
94 string s =
"(" + num2.ToString().TagColor(
FontColor.Good) +
"/" + num3.ToString().TagColor(
FontColor.Default) +
"/" + num4.ToString().TagColor(
FontColor.Bad) +
")";
95 return (((list.Count == 0) ?
" - " : avg.ToString()) +
"%").TagColorGoodBad(() => list.Count == 0 || avg >= 50) +
" " + s.TagSize(14);
override void OnSwitchContent(int idTab)
UIButton buttonHappinessLivestock
UIButton buttonHappinessResident
string GetTextHappiness(List< Chara > list)
static FactionBranch Branch
HappinessManager happiness
int CountMembers(FactionMemberType type, bool onlyAlive=false)
HomeResourceManager resources
List< BaseHomeResource > list
void SetResource(BaseHomeResource _r)
override void Add(object item)