Add Modular grenades (chemnades). (#7138)

This commit is contained in:
Leon Friedrich
2022-03-25 17:17:29 +13:00
committed by GitHub
parent 414c03978d
commit 1b0e7ae0f5
51 changed files with 994 additions and 96 deletions

View File

@@ -190,6 +190,17 @@ namespace Content.Shared.Verbs
return string.Compare(Text, otherVerb.Text, StringComparison.CurrentCulture);
}
if (IconEntity != otherVerb.IconEntity)
{
if (IconEntity == null)
return -1;
if (otherVerb.IconEntity == null)
return 1;
return IconEntity.Value.CompareTo(otherVerb.IconEntity.Value);
}
// Finally, compare icon texture paths. Note that this matters for verbs that don't have any text (e.g., the rotate-verbs)
return string.Compare(IconTexture, otherVerb.IconTexture, StringComparison.CurrentCulture);
}