Difference between revisions of "Talk:Ostrich Incubator"
Jump to navigation
Jump to search
(About the correct profession) |
m (→Profession Affecting the Incubation Time: quick fix) |
||
Line 17: | Line 17: | ||
} | } | ||
− | + | else if (name.Equals("Ostrich Incubator")) | |
− | |||
− | if (name.Equals("Ostrich Incubator")) | ||
{ | { | ||
(...) | (...) |
Revision as of 18:22, 25 November 2021
This talk page is for discussing Ostrich Incubator. | |
---|---|
|
|
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).
Object::performObjectDropInAction
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);
}
(...)
}
else 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);
}
(...)
}
Btw, is there a index list of professions somewhere?