Open 6fears7 opened 2 months ago
This is not low hanging fruit. Called every frame.
CreatureCommunities.SetLikeOfPlayer.
Actually CreatureCommunities.SetLikeOfPlayer is called on GameSession ctor. Need to investigate more.
LikeOfPlayer is called fairly frequently but only when contact with a critter is made.
RegionState also has:
foreach (AbstractCreature abstractCreature2 in this.world.game.Players)
{
if (abstractCreature != null && abstractCreature.state != null && abstractCreature.state.socialMemory != null)
{
num = Mathf.Max(num, abstractCreature.state.socialMemory.GetLike(abstractCreature2.ID));
}
}
Just loves the tamer right now. Should be an low hanging fruit.