Random humanoid appearance (#7895)

This commit is contained in:
Kara
2022-05-02 13:50:56 -07:00
committed by GitHub
parent 291ad9c307
commit 930533cd94
5 changed files with 45 additions and 2 deletions

View File

@@ -18,10 +18,10 @@ namespace Content.Shared.CharacterAppearance.Systems
SubscribeLocalEvent<HumanoidAppearanceComponent, ComponentHandleState>(OnAppearanceHandleState);
}
public void UpdateFromProfile(EntityUid uid, ICharacterProfile profile)
public void UpdateFromProfile(EntityUid uid, ICharacterProfile profile, HumanoidAppearanceComponent? appearance=null)
{
var humanoid = (HumanoidCharacterProfile) profile;
UpdateAppearance(uid, humanoid.Appearance, humanoid.Sex, humanoid.Gender, humanoid.Species);
UpdateAppearance(uid, humanoid.Appearance, humanoid.Sex, humanoid.Gender, humanoid.Species, appearance);
}
// The magic mirror otherwise wouldn't work. (it directly modifies the component server-side)