mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 22:18:52 +03:00
# Description Some improvements to loadouts too. --- # TODO - [x] Points logic - [x] Server-side validation - [x] Categorize traits - [x] Assign points to traits - [x] Header costs - [x] Sort entries - [x] Max traits - [x] Communicate max traits - [x] Point bar - [x] Group exclusivity - Black outline on text - [x] Fix existing component whitelists --- <details><summary><h1>Media</h1></summary> <p> ## Accurate except for small details  ### Something to note:    </p> </details> --- # Changelog 🆑 - add: Added trait points - add: Added categories for traits --------- Co-authored-by: VMSolidus <evilexecutive@gmail.com>
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using Content.Shared.Traits.Assorted;
|
|
using Content.Shared.Traits.Assorted.Systems;
|
|
using Robust.Shared.Audio;
|
|
using Content.Shared.Traits.Assorted.Components;
|
|
|
|
namespace Content.Server.Traits.Assorted;
|
|
|
|
public sealed class ParacusiaSystem : SharedParacusiaSystem
|
|
{
|
|
public void SetSounds(EntityUid uid, SoundSpecifier sounds, ParacusiaComponent? component = null)
|
|
{
|
|
if (!Resolve(uid, ref component))
|
|
{
|
|
return;
|
|
}
|
|
component.Sounds = sounds;
|
|
Dirty(component);
|
|
}
|
|
|
|
public void SetTime(EntityUid uid, float minTime, float maxTime, ParacusiaComponent? component = null)
|
|
{
|
|
if (!Resolve(uid, ref component))
|
|
{
|
|
return;
|
|
}
|
|
component.MinTimeBetweenIncidents = minTime;
|
|
component.MaxTimeBetweenIncidents = maxTime;
|
|
Dirty(component);
|
|
}
|
|
|
|
public void SetDistance(EntityUid uid, float maxSoundDistance, ParacusiaComponent? component = null)
|
|
{
|
|
if (!Resolve(uid, ref component))
|
|
{
|
|
return;
|
|
}
|
|
component.MaxSoundDistance = maxSoundDistance;
|
|
Dirty(component);
|
|
}
|
|
}
|