We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 799a30e commit aa46d6fCopy full SHA for aa46d6f
Dat/Objects/CargoObject.cs
@@ -62,13 +62,12 @@ public bool Validate()
62
&& CargoTransferTime != 0;
63
64
public bool TryGetImageName(int id, out string? value)
65
- => ImageIdNameMap.TryGetValue(id, out value);
66
-
67
- public static Dictionary<int, string> ImageIdNameMap = new()
68
{
69
- { 0, "kInlineSprite" },
70
- // There are NumPlatformVariations sprites after this one
71
- { 1, "kStationPlatformBegin" },
72
- };
+ value = id == 0
+ ? "kInlineSprite"
+ : $"kStationPlatform{id}";
+
+ return true;
+ }
73
}
74
0 commit comments