Gender Swap
This commit is contained in:
@@ -359,6 +359,21 @@ public abstract class SharedHumanoidAppearanceSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
|
||||
public void SwapSex(EntityUid uid, HumanoidAppearanceComponent? humanoid = null)
|
||||
{
|
||||
if (!Resolve(uid, ref humanoid) || humanoid.Sex == Sex.Unsexed)
|
||||
return;
|
||||
|
||||
// Not set up for future possible alien sexes
|
||||
if (humanoid.Sex == Sex.Male)
|
||||
{
|
||||
SetSex(uid,Sex.Female);
|
||||
return;
|
||||
}
|
||||
SetSex(uid,Sex.Male);
|
||||
|
||||
}
|
||||
|
||||
public List<BodyTypePrototype> GetValidBodyTypes(SpeciesPrototype species, Sex sex)
|
||||
{
|
||||
return species.BodyTypes.Select(protoId => _proto.Index<BodyTypePrototype>(protoId))
|
||||
|
||||
Reference in New Issue
Block a user