mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-14 19:29:53 +01:00
* Empty commit * yeah thingi * added a GetHighestDamageTypes thingi to the DamageableSystem * no idea why those files names are different only in github so just in case readding them * yeah doing that * first steps of moving the logic somewhere nicer * still plenty to do * gosh such a mess but getting progress done * small fixie push * big mess of bunch of stuff * dealing with a conflict and fixing the random numbers * testing if github will update now * dealing with the other conflict * github please update i beg you * dealing with more conflicts * hopefully this fixes it * fixing conflicts again * cleaning up stuffies * sprite fixie * general cleanup * doing the small fixies first * getting rid of the new event, gotta handle ashing next * adding spaces to comments before i forget * handling ashing * think that did it? * small fixies * more small fixies * last batch of quickie fixies before i gotta handle the bigger stuff * last bunch of fixies i do understand * small bit of progress yknow may as well yeah * renaming and moving stuff to shared * comment fixiees * saving damage in a new component instead of in MindComponent * protoid's and dict usage instead of the previously ickier methods * small fixie before biggie fixie * more fixies im slepy gosh * thinkie that should fixie it * smoothed the damage storage systeem so its less repetitive and icki and now itss cooler and i can go eepy * lots of stuffies x3 * first step of getting git to detect my file name changes * thinkie that should fixie it * fixies * just getting rid of the merge conflict, will check damageable later * small thingies first * more small stuffiees * now all of the sprites have at leeast a 0 * dirtying the lastbody comp * more fixies * small thingi first * another small fixie and a minor sprite fixie * rng fixie * moving the damage storage system to shared * smoothing out code thats likely to be replaced soon but its good to do for now * just showing progress bcus yis * general progress stuffies mhm * pushie * small cleanup * general progress :3 * in progress push for helpie * proper pushie with progress and workies * removed unnecessary usage of the storedamage component * minor fixiees * extra comments * replaced a couple strings for ProtoId's * gibbing related fixies :3
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using Content.Shared.Damage.Prototypes;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.GhostTypes;
|
|
|
|
/// <summary>
|
|
/// Changes the entity sprite according to damage taken
|
|
/// Slash may be shown by cuts and slashes on the ghost, Heat as flames, Cold as frostbite and ice, Radiation as a green glow, etc.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class GhostSpriteStateComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Prefix the GhostSpriteStateSystem will add to the name of the damage type it chooses.
|
|
/// It should be identical to the prefix of the entity optional damage sprites.
|
|
/// (Example) Ghosts sprites currently use a "ghost_" prefix for their optional damage states.
|
|
/// </summary>
|
|
[DataField]
|
|
public string Prefix;
|
|
|
|
/// <summary>
|
|
/// Should link damage types names to an int, according to the amount of possible sprites for that specific type.
|
|
/// (The GhostSpriteStateSystem will randomly choose between them)
|
|
/// </summary>
|
|
[DataField]
|
|
public Dictionary<ProtoId<DamageTypePrototype>, int> DamageMap = new();
|
|
}
|