* kobold variety - allows kobolds to have random colors and horns * hey lets maybe not crash in this case, lets maybe let the color continue being null in this case * excuse us vscode what the fuck is this * brightens kob base, makes kob outline more bold, fixes to the prototype because our code spaghett * okay yeah angler horns just dont work At All. the floppy kobold ears, however? MWAH. chef's kis * we've been staring at these critters all day - makes base color line up with the base color of some of the markings
28 lines
968 B
C#
28 lines
968 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Sprite;
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class RandomSpriteComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Whether or not all groups from <see cref="Available"/> are used,
|
|
/// or if only one is picked at random.
|
|
/// </summary>
|
|
[DataField("getAllGroups")]
|
|
public bool GetAllGroups;
|
|
|
|
/// <summary>
|
|
/// Available colors based on group, parsed layer enum, state, and color.
|
|
/// Stored as a list so we can have groups of random sprites (e.g. tech_base + tech_flare for holoparasite)
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("available")]
|
|
public List<Dictionary<string, Dictionary<string, string?>>> Available = new();
|
|
|
|
/// <summary>
|
|
/// Selected colors
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("selected")]
|
|
public Dictionary<string, (string State, Color? Color)> Selected = new();
|
|
}
|