Potency sprite scaling (#7100)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
mirrorcult
2022-03-13 03:11:03 -07:00
committed by GitHub
parent c1c8b8ffc0
commit e87ab94810
6 changed files with 53 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using Content.Server.Botany.Components;
using Content.Server.Kitchen.Components;
using Content.Shared.Botany;
using Content.Shared.Examine;
using Content.Shared.Random.Helpers;
using Content.Shared.Tag;
@@ -124,6 +125,11 @@ public sealed partial class BotanySystem
produce.SeedName = proto.ID;
ProduceGrown(entity, produce);
if (TryComp<AppearanceComponent>(entity, out var appearance))
{
appearance.SetData(ProduceVisuals.Potency, proto.Potency);
}
if (proto.Mysterious)
{
var metaData = MetaData(entity);