Ведь без тебя нет смысла жить
This commit is contained in:
@@ -14,20 +14,10 @@ public sealed class AirlockSystem : SharedAirlockSystem
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<AirlockComponent, BeforeDoorClosedEvent>(OnBeforeDoorClosed);
|
||||
SubscribeLocalEvent<AirlockComponent, ComponentStartup>(OnComponentStartup);
|
||||
SubscribeLocalEvent<AirlockComponent, AppearanceChangeEvent>(OnAppearanceChange);
|
||||
}
|
||||
|
||||
// А нужен ли ты блять
|
||||
private void OnBeforeDoorClosed(EntityUid uid, AirlockComponent airlock, BeforeDoorClosedEvent args)
|
||||
{
|
||||
if (_appearanceSystem.TryGetData<bool>(uid, DoorVisuals.BoltLights, out var boltLights) && boltLights)
|
||||
{
|
||||
args.Cancel();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void OnComponentStartup(EntityUid uid, AirlockComponent comp, ComponentStartup args)
|
||||
{
|
||||
// Has to be on component startup because we don't know what order components initialize in and running this before DoorComponent inits _will_ crash.
|
||||
|
||||
@@ -1163,26 +1163,17 @@ namespace Content.Client.Preferences.UI
|
||||
var hairMarking = Profile.Appearance.HairStyleId switch
|
||||
{
|
||||
HairStyles.DefaultHairStyle => new List<Marking>(),
|
||||
_ => [new Marking(Profile.Appearance.HairStyleId, [Profile.Appearance.HairColor])],
|
||||
_ => new List<Marking> { new(Profile.Appearance.HairStyleId, new List<Color> { Profile.Appearance.HairColor }) },
|
||||
};
|
||||
|
||||
var facialHairMarking = Profile.Appearance.FacialHairStyleId switch
|
||||
{
|
||||
HairStyles.DefaultFacialHairStyle => new List<Marking>(),
|
||||
_ =>
|
||||
[
|
||||
new Marking(Profile.Appearance.FacialHairStyleId, [Profile.Appearance.FacialHairColor])
|
||||
],
|
||||
_ => new List<Marking> { new(Profile.Appearance.FacialHairStyleId, new List<Color> { Profile.Appearance.FacialHairColor }) },
|
||||
};
|
||||
|
||||
_hairPicker.UpdateData(
|
||||
hairMarking,
|
||||
Profile.Species,
|
||||
1);
|
||||
_facialHairPicker.UpdateData(
|
||||
facialHairMarking,
|
||||
Profile.Species,
|
||||
1);
|
||||
_hairPicker.UpdateData(hairMarking, Profile.Species, 1);
|
||||
_facialHairPicker.UpdateData(facialHairMarking, Profile.Species, 1);
|
||||
}
|
||||
|
||||
private void UpdateCMarkingsHair()
|
||||
|
||||
Reference in New Issue
Block a user