Changes

1,049 bytes added ,  18:20, 25 November 2021
About the correct profession
{{talkheader}}

==Profession Affecting the Incubation Time==
I think the correct profession is Coopmaster, in the game code the same profession index is used for "Incubator" and "Ostrich Incubator" (I check the code before modifying).

<code>Object::performObjectDropInAction</code>
<syntaxhighlight lang="C#">
if (name.Equals("Incubator"))
{
(...)
if (((NetList<int, NetInt>)(object)who.professions).Contains(2))
{
NetIntDelta obj = minutesUntilReady;
((NetFieldBase<int, NetIntDelta>)(object)obj).set_Value(((NetFieldBase<int, NetIntDelta>)(object)obj).get_Value() / 2);
}
(...)
}

(...)

if (name.Equals("Ostrich Incubator"))
{
(...)
if (((NetList<int, NetInt>)(object)who.professions).Contains(2))
{
NetIntDelta obj2 = minutesUntilReady;
((NetFieldBase<int, NetIntDelta>)(object)obj2).set_Value(((NetFieldBase<int, NetIntDelta>)(object)obj2).get_Value() / 2);
}
(...)
}
</syntaxhighlight>

Btw, is there a index list of professions somewhere?

-- [[User:Charly|Charly]] ([[User talk:Charly|talk]]) 18:20, 25 November 2021 (UTC)
255

edits