Skip to content

Commit

Permalink
Fix fairy being visible before Amy
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Jan 25, 2024
1 parent 708f483 commit c94b6af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zzre/game/systems/fairy/OverworldFairySpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,9 @@ private void SpawnFairy(DefaultEcs.Entity parent, zzio.InventoryFairy invFairy)
actorParts.Body.Get<Location>().Parent = fairy.Get<Location>();
//actorParts.Body.Get<Skeleton>().JumpToAnimation(actorParts.Body.Get<components.AnimationPool>()[zzio.AnimationType.SpecialIdle0]);
actorParts.Wings!.Value.Get<Skeleton>().JumpToAnimation(actorParts.Wings.Value.Get<components.AnimationPool>()[zzio.AnimationType.Idle0]);

if (parent.TryGet<components.ActorParts>(out var parentActorParts) &&
parentActorParts.Body.Get<components.Visibility>() == components.Visibility.Invisible)
World.Publish(new messages.CreatureSetVisibility(fairy, false));
}
}

0 comments on commit c94b6af

Please sign in to comment.