* - fix: Genitals sprite shit and meow for tajaran * - add: fart sound if kicked from server * - tweak: vulpies and tajaran now for donaters!!! * - fix: Fart on exit * - add: roleplay think * - fix: database shit and loc * - add: ears for slime * - fix: LOC interaction fix * - add: height setting * - fix: height for felinids * - fix: nigga fix * - fix: no bitches on captain * - fix: interaction panel animation shit
26 lines
814 B
C#
26 lines
814 B
C#
using System.Linq;
|
|
using Content.Server._White.Sponsors;
|
|
using Content.Shared._Amour.Sponsor;
|
|
using Content.Shared._White.Sponsors;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server._Amour.Sponsor;
|
|
|
|
public sealed class SponsorSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
SubscribeLocalEvent<SponsorInfoLoadEvent>(OnSponsorLoaded);
|
|
}
|
|
|
|
private void OnSponsorLoaded(ref SponsorInfoLoadEvent ev)
|
|
{
|
|
if(ev.SponsorInfo.Tier is null || !_prototypeManager.TryIndex<SponsorItemPrototype>(ev.SponsorInfo.Tier.Value.ToString(), out var prototype))
|
|
return;
|
|
|
|
ev.SponsorInfo.AllowedMarkings = ev.SponsorInfo.AllowedMarkings.Concat(prototype.Items).ToArray();
|
|
}
|
|
}
|