using Content.Shared.Nutrition.Components;
using Content.Shared.Nutrition.EntitySystems;
using Content.Shared.Pointing;
+using Content.Shared.Random.Helpers;
using Content.Shared.RatKing;
using Robust.Shared.Map;
using Robust.Shared.Random;
base.DoCommandCallout(uid, component);
if (!component.OrderCallouts.TryGetValue(component.CurrentOrder, out var datasetId) ||
- !PrototypeManager.TryIndex<DatasetPrototype>(datasetId, out var datasetPrototype))
+ !PrototypeManager.TryIndex<LocalizedDatasetPrototype>(datasetId, out var datasetPrototype))
return;
- var msg = Random.Pick(datasetPrototype.Values);
+ var msg = Random.Pick(datasetPrototype);
_chat.TrySendInGameICMessage(uid, msg, InGameICChatType.Speak, true);
}
}
--- /dev/null
+rat-king-command-stay-1 = Sit!
+rat-king-command-stay-2 = Stay!
+rat-king-command-stay-3 = Stop!
+
+rat-king-command-follow-1 = Heel!
+rat-king-command-follow-2 = Follow!
+
+rat-king-command-cheese-1 = Attack!
+rat-king-command-cheese-2 = Sic!
+rat-king-command-cheese-3 = Kill!
+rat-king-command-cheese-4 = Cheese 'Em!
+
+rat-king-command-loose-1 = Free!
+rat-king-command-loose-2 = Loose!
-- type: dataset
+- type: localizedDataset
id: RatKingCommandStay
values:
- - "Sit!"
- - "Stay!"
- - "Stop!"
+ prefix: rat-king-command-stay-
+ count: 3
-- type: dataset
+- type: localizedDataset
id: RatKingCommandFollow
values:
- - "Heel!"
- - "Follow!"
+ prefix: rat-king-command-follow-
+ count: 2
-- type: dataset
+- type: localizedDataset
id: RatKingCommandCheeseEm
values:
- - "Attack!"
- - "Sic!"
- - "Kill!"
- - "Cheese 'Em!"
+ prefix: rat-king-command-cheese-
+ count: 4
-- type: dataset
+- type: localizedDataset
id: RatKingCommandLoose
values:
- - "Free!"
- - "Loose!"
+ prefix: rat-king-command-loose-
+ count: 2