@@ -20,40 +20,6 @@ public override void Initialize()
20
20
SubscribeLocalEvent < HumanoidAppearanceComponent , GetVerbsEvent < Verb > > ( OnVerbsRequest ) ;
21
21
}
22
22
23
- // this was done enough times that it only made sense to do it here
24
-
25
- /// <summary>
26
- /// Clones a humanoid's appearance to a target mob, provided they both have humanoid components.
27
- /// </summary>
28
- /// <param name="source">Source entity to fetch the original appearance from.</param>
29
- /// <param name="target">Target entity to apply the source entity's appearance to.</param>
30
- /// <param name="sourceHumanoid">Source entity's humanoid component.</param>
31
- /// <param name="targetHumanoid">Target entity's humanoid component.</param>
32
- public void CloneAppearance ( EntityUid source , EntityUid target , HumanoidAppearanceComponent ? sourceHumanoid = null ,
33
- HumanoidAppearanceComponent ? targetHumanoid = null )
34
- {
35
- if ( ! Resolve ( source , ref sourceHumanoid ) || ! Resolve ( target , ref targetHumanoid ) )
36
- {
37
- return ;
38
- }
39
-
40
- targetHumanoid . Species = sourceHumanoid . Species ;
41
- targetHumanoid . SkinColor = sourceHumanoid . SkinColor ;
42
- targetHumanoid . EyeColor = sourceHumanoid . EyeColor ;
43
- targetHumanoid . Age = sourceHumanoid . Age ;
44
- SetSex ( target , sourceHumanoid . Sex , false , targetHumanoid ) ;
45
- targetHumanoid . CustomBaseLayers = new ( sourceHumanoid . CustomBaseLayers ) ;
46
- targetHumanoid . MarkingSet = new ( sourceHumanoid . MarkingSet ) ;
47
-
48
- targetHumanoid . Gender = sourceHumanoid . Gender ;
49
- if ( TryComp < GrammarComponent > ( target , out var grammar ) )
50
- {
51
- grammar . Gender = sourceHumanoid . Gender ;
52
- }
53
-
54
- Dirty ( target , targetHumanoid ) ;
55
- }
56
-
57
23
/// <summary>
58
24
/// Removes a marking from a humanoid by ID.
59
25
/// </summary>
0 commit comments