Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ngines into ports
  • Loading branch information
gluesniffler committed Jan 1, 2025
2 parents a7da703 + 280aa4b commit 602cbfd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Content.Client/Humanoid/HumanoidAppearanceSystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Numerics;
using Content.Shared.Humanoid;
using Content.Shared.Humanoid.Markings;
using Content.Shared.Humanoid.Prototypes;
Expand Down Expand Up @@ -31,15 +30,6 @@ private void UpdateSprite(HumanoidAppearanceComponent component, SpriteComponent
UpdateLayers(component, sprite);
ApplyMarkingSet(component, sprite);

var speciesPrototype = _prototypeManager.Index(component.Species);

var height = Math.Clamp(component.Height, speciesPrototype.MinHeight, speciesPrototype.MaxHeight);
var width = Math.Clamp(component.Width, speciesPrototype.MinWidth, speciesPrototype.MaxWidth);
component.Height = height;
component.Width = width;

sprite.Scale = new Vector2(width, height);

sprite[sprite.LayerMapReserveBlank(HumanoidVisualLayers.Eyes)].Color = component.EyeColor;
}

Expand Down Expand Up @@ -209,8 +199,6 @@ public override void LoadProfile(EntityUid uid, HumanoidCharacterProfile? profil
humanoid.Species = profile.Species;
humanoid.SkinColor = profile.Appearance.SkinColor;
humanoid.EyeColor = profile.Appearance.EyeColor;
humanoid.Height = profile.Height;
humanoid.Width = profile.Width;

UpdateSprite(humanoid, Comp<SpriteComponent>(uid));
}
Expand Down
11 changes: 11 additions & 0 deletions Resources/Changelog/Changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8883,3 +8883,14 @@ Entries:
id: 6601
time: '2024-12-31T16:28:11.0000000+00:00'
url: https://github.com/Simple-Station/Einstein-Engines/pull/1385
- author: Mocho
changes:
- type: Add
message: >-
Added some fun organs and other thingies, check out the Goob PRs if you
want more details.
- type: Fix
message: Fixed tons of issues with shitmed. Too many for the changelog in fact.
id: 6602
time: '2024-12-31T20:42:24.0000000+00:00'
url: https://github.com/Simple-Station/Einstein-Engines/pull/1387

0 comments on commit 602cbfd

Please sign in to comment.