henpemaz / Rain-Meadow

Rain World multiplayer engine and custom game mode
141 stars 21 forks source link

Tamed Lizards Should Love All Slugs #291

Open 6fears7 opened 2 months ago

6fears7 commented 2 months ago

Just loves the tamer right now. Should be an low hanging fruit.

6fears7 commented 2 months ago

This is not low hanging fruit. Called every frame.

6fears7 commented 2 months ago

CreatureCommunities.SetLikeOfPlayer.

6fears7 commented 2 months ago

Actually CreatureCommunities.SetLikeOfPlayer is called on GameSession ctor. Need to investigate more.

6fears7 commented 2 months ago

LikeOfPlayer is called fairly frequently but only when contact with a critter is made.

6fears7 commented 2 months ago

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));
    }
    }