mirror of
https://github.com/rmroc451/TweaksAndThings.git
synced 2026-05-23 16:15:15 -05:00
Pluralize extension method
This commit is contained in:
@@ -10,6 +10,7 @@ using System;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UI.Builder;
|
using UI.Builder;
|
||||||
using UI.CarInspector;
|
using UI.CarInspector;
|
||||||
|
using Core;
|
||||||
|
|
||||||
namespace RMROC451.TweaksAndThings.Patches;
|
namespace RMROC451.TweaksAndThings.Patches;
|
||||||
|
|
||||||
@@ -60,8 +61,8 @@ internal static class CarInspector_PopulateEquipmentPanel_Patch
|
|||||||
Multiplayer.SendError(
|
Multiplayer.SendError(
|
||||||
StateManager.Shared.PlayersManager.LocalPlayer,
|
StateManager.Shared.PlayersManager.LocalPlayer,
|
||||||
hasDestination
|
hasDestination
|
||||||
? $"Copied repair destination to {updatedCount} connected {(updatedCount == 1 ? "car" : "cars")}."
|
? $"Copied repair destination to {updatedCount} connected {"car".Pluralize(updatedCount == 1 ? 1 : 0)}."
|
||||||
: $"Cleared repair destination from {updatedCount} connected {(updatedCount == 1 ? "car" : "cars")}.",
|
: $"Cleared repair destination from {updatedCount} connected {"car".Pluralize(updatedCount == 1 ? 1 : 0)}.",
|
||||||
default);
|
default);
|
||||||
|
|
||||||
hstack.Rebuild();
|
hstack.Rebuild();
|
||||||
|
|||||||
Reference in New Issue
Block a user