minor bugfix and pad support
This commit is contained in:
parent
ce671e7124
commit
6e87be3c77
21 changed files with 574 additions and 85 deletions
|
|
@ -313,6 +313,15 @@ namespace RacesOfValheim
|
|||
return false;
|
||||
}
|
||||
|
||||
// THE PATROL POINT GOES OFF while it follows, and GoHome puts it back when it is let go.
|
||||
// MonsterAI.UpdateTarget measures a tame creature's target from its patrol point whenever
|
||||
// it has one, and only falls back to the follow target when it has none (IL). Left on, a
|
||||
// thrall walking beside its master kept judging every enemy by its distance from the
|
||||
// STATION - so the further from home, the fewer fights it would take. ResetPatrolPoint
|
||||
// writes the ZDO as well as the field, which matters: GetPatrolPoint re-reads the ZDO
|
||||
// every second and would switch it straight back on.
|
||||
if (m_ai != null) m_ai.ResetPatrolPoint();
|
||||
|
||||
m_monsterAI.SetFollowTarget(player.gameObject);
|
||||
if (announce) player.Message(MessageHud.MessageType.Center, $"{m_character.m_name} follows.");
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue