fix chem guidebooks not displaying all damages (#19509)

This commit is contained in:
Nemanja
2023-08-24 22:14:53 -04:00
committed by GitHub
parent 9bd30d57ad
commit cb98613450

View File

@@ -115,7 +115,7 @@ namespace Content.Shared.Localizations
<= 0 => string.Empty,
1 => list[0],
2 => $"{list[0]} and {list[1]}",
> 2 => $"{string.Join(", ", list.GetRange(0, list.Count - 2))}, and {list[^1]}"
_ => $"{string.Join(", ", list.GetRange(0, list.Count - 1))}, and {list[^1]}"
};
}