Skip to content

Commit

Permalink
ыыы
Browse files Browse the repository at this point in the history
  • Loading branch information
FaDeOkno committed Dec 6, 2024
1 parent 413382b commit ef52145
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Content.Shared/ADT/Bark/BarkPrototype.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Content.Shared.Humanoid;
using JetBrains.Annotations;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
Expand Down Expand Up @@ -89,4 +90,14 @@ public BarkData Copy()
MaxVar = MaxVar
};
}

public bool MemberwiseEquals(BarkData other)
{
if (Proto != other.Proto) return false;
if (Sound != other.Sound) return false;
if (Pitch != other.Pitch) return false;
if (MinVar != other.MinVar) return false;
if (MaxVar != other.MaxVar) return false;
return true;
}
}
2 changes: 1 addition & 1 deletion Content.Shared/Preferences/HumanoidCharacterProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ public bool MemberwiseEquals(ICharacterProfile maybeOther)
if (!Loadouts.SequenceEqual(other.Loadouts)) return false;
if (FlavorText != other.FlavorText) return false;
// ADT Barks start
if (!Bark.Equals(other.Bark)) return false;
if (!Bark.MemberwiseEquals(other.Bark)) return false;
// ADT Barks end
return Appearance.MemberwiseEquals(other.Appearance);
}
Expand Down

0 comments on commit ef52145

Please sign in to comment.