21 m_creaturesList.ItemWidgetFactory = delegate(
object item) {
27 bestiaryCreatureInfo2,
36 "LoadCreatureInfoInBestiaryScreen",
38 loader.LoadCreatureInfoInBestiaryScreen(
this, obj, bestiaryCreatureInfo2, bestiaryCreatureInfo2.
EntityValuesDictionary);
45 List<BestiaryCreatureInfo> list =
new();
48 entitiesValuesDictionary,
51 if (valuesDictionary !=
null) {
52 string value = valuesDictionary.GetValue<
string>(
"DisplayName");
53 if (value.StartsWith(
'[')
54 && value.EndsWith(
']')) {
55 string[] lp = value.Substring(1, value.Length - 2).Split(
':', StringSplitOptions.RemoveEmptyEntries);
58 if (!
string.IsNullOrEmpty(value)) {
65 int value4 = value2.GetValue<
int>(
"EggTypeIndex");
72 entitiesValuesDictionary,
76 entitiesValuesDictionary,
80 entitiesValuesDictionary,
84 entitiesValuesDictionary,
88 entitiesValuesDictionary,
92 entitiesValuesDictionary,
96 entitiesValuesDictionary,
100 entitiesValuesDictionary,
103 string dy = valuesDictionary.GetValue<
string>(
"Description");
104 if (dy.StartsWith(
'[')
105 && dy.EndsWith(
']')) {
106 string[] lp = dy.Substring(1, dy.Length - 2).Split(
':', StringSplitOptions.RemoveEmptyEntries);
110 EntityValuesDictionary = entitiesValuesDictionary,
114 ModelName = valuesDictionary2.GetValue<
string>(
"ModelName"),
115 TextureOverride = valuesDictionary2.GetValue<
string>(
"TextureOverride"),
116 Mass = valuesDictionary3.GetValue<
float>(
"Mass"),
117 AttackResilience = valuesDictionary4.GetValue<
float>(
"AttackResilience"),
118 AttackPower = valuesDictionary5?.GetValue<
float>(
"AttackPower") ?? 0f,
121 valuesDictionary6.GetValue<
float>(
"WalkSpeed"),
122 valuesDictionary6.GetValue<
float>(
"FlySpeed"),
123 valuesDictionary6.GetValue<
float>(
"SwimSpeed")
125 JumpHeight =
MathUtils.
Sqr(valuesDictionary6.GetValue<
float>(
"JumpSpeed")) / 20f,
126 IsHerding = valuesDictionary7 !=
null,
127 CanBeRidden = valuesDictionary8 !=
null,
128 HasSpawnerEgg = value2?.GetValue<
bool>(
"ShowEgg") ??
false,
129 Loot = valuesDictionary9 !=
null
135 bestiaryCreatureInfo.AttackPower *= 0.8f;
136 bestiaryCreatureInfo.AttackResilience *= 0.8f;
137 bestiaryCreatureInfo.MovementSpeed *= 1.03f;
138 bestiaryCreatureInfo.JumpHeight *=
MathUtils.
Sqr(1.03f);
140 list.Add(bestiaryCreatureInfo);