mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* Allulalo: finally finishing the ancient raptor species project (#3504) * well, it loads * sprite's * names + starting on displacements * more displacements * displacements * left hand only * displacements * yup * ooa * inhand displacements * blood * accent * iv bags * placeholder clarification * Revert "iv bags" This reverts commit c2aa504eab8d0673604b33e0ccaf79b406979da6. * whitespace * adds tooshortforUI and removes the damage modifier set * speechsounds * typing indicator * basic customisation * guidebook 1 * fixed full * markings, displacements, speech verb * displacement fixes * trailing newlines * spelling moment * brute damage sprites and blood fix * guidebook iteration * injection melee + ethanotoxin + guidebook rewrite * guidebook * guidebook * nitpicks + roundstart --------- Co-authored-by: starlighthowls <starlighthowls7@gmail.com> Co-authored-by: mqole <anactualpanacea@gmail.com> * Allulalo tooshotforui bugfix (#3598) * yay * p[leebnmar * oops * Allulalo Markings (#3602) * eye markings and two tails * more * almost got ya * yup * wings yay * thank you landshark for my life btw * still needs loc files * Update allulalo.ftl * I lost so much progress to git bullshit * and who can forget dear rat boy * touch up speech indicator at yesters request --------- Co-authored-by: starlighthowls <starlighthowls7@gmail.com> * Allulalo Roundstart (#3621) * yup * shock blanket + pleebnar fixes * yuuup (#3655) * Allulalo fix pass 1 (#3661) * what if I did it all in one commit like a total moron * yup * untuch * i love you spriting tool * my birdsty * Update allulalo.yml * Update Species.xml * let allulalo use holopads. (#3669) * adds a white list for the too small component to add specific allowed entities. e.g holopads * imp comment * i love forgetting white space!!!! --------- Co-authored-by: sev7ves <soapedzone@gmail.com> Co-authored-by: beck <163376292+widgetbeck@users.noreply.github.com> * fix (#3693) * I need to learn to not do everything in one commit (#3750) * mime on again (#4243) * Small fix * Add them to our accentless trait * Add unable to wield system * Fix too short for UI using old blacklist methods * Fix duplicated localization line * Add heavyweight drunk comp (might merge this with lightweight later) * Why was this even added * Revert "Add unable to wield system" This reverts commitcbe3a10fc7. * Revert "Fix too short for UI using old blacklist methods" This reverts commit833743f029. * add TooShortForUIComponent (#3495) * add TooShortForUIComponent * correct documentation * incomplete documentation * add UnableToWieldComponent (#3496) * Fixing this again I am dumb I cherrypicked things in the wrong order * WHY WAS THIS EVEN ADDED THERE'S NO SPRITE EVEN ON IMPSTATION??? * Port Allulalos to Nubody * Fix for Allulalo chems doing nothing * Add allulalo to the guidebook species list * Restore some accidentally deleted effects and comments * Fix typo that made allu blood 10x more alcoholic than normal * Delete random misplaced sprites from cherrypicking * More of the random sprites removal (this time from the meta) * Add missing allulalo flavor * Removed some nonexistant fields from the species * Add unisex cough/sneeze, comment out Wuhey and Ungh emotes * Fix guidebook not using loc string * I THINK this fixes that test error and it doesn't seem to break anything either so let's try * Remove unsupported unshaded shader from eyes * Ok last one didn't work (sorry for trial and error) * Removed mention of HARMPACKs and Tether Guns from the guidebook. * Blacklist allulalos from random humanoid spawns * Add missing allulalo gulp sound * Carriable in 1 hand allulalos, fix carrying system blocking both hands always * Remove DV comments --------- Co-authored-by: Kip <32859367+kipdotnet@users.noreply.github.com> Co-authored-by: starlighthowls <starlighthowls7@gmail.com> Co-authored-by: mqole <anactualpanacea@gmail.com> Co-authored-by: sev7ves <58966116+sev7ves@users.noreply.github.com> Co-authored-by: sev7ves <soapedzone@gmail.com> Co-authored-by: beck <163376292+widgetbeck@users.noreply.github.com> Co-authored-by: Yesteryear <208338078+yesteryuri@users.noreply.github.com>
52 lines
1.6 KiB
C#
52 lines
1.6 KiB
C#
using Content.Shared.StatusEffectNew;
|
|
using Content.Shared.Traits.Assorted;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Drunk;
|
|
|
|
public abstract class SharedDrunkSystem : EntitySystem
|
|
{
|
|
public static EntProtoId Drunk = "StatusEffectDrunk";
|
|
|
|
[Dependency] protected readonly StatusEffectsSystem Status = default!;
|
|
|
|
|
|
public override void Initialize()
|
|
{
|
|
SubscribeLocalEvent<LightweightDrunkComponent, DrunkEvent>(OnLightweightDrinking);
|
|
SubscribeLocalEvent<HeavyweightDrunkComponent, DrunkEvent>(OnHeavyweightDrinking); //imp
|
|
}
|
|
|
|
public void TryApplyDrunkenness(EntityUid uid, TimeSpan boozePower)
|
|
{
|
|
var ev = new DrunkEvent(boozePower);
|
|
RaiseLocalEvent(uid, ref ev);
|
|
|
|
Status.TryAddStatusEffectDuration(uid, Drunk, ev.Duration);
|
|
}
|
|
|
|
public void TryRemoveDrunkenness(EntityUid uid)
|
|
{
|
|
Status.TryRemoveStatusEffect(uid, Drunk);
|
|
}
|
|
|
|
public void TryRemoveDrunkennessTime(EntityUid uid, TimeSpan boozePower)
|
|
{
|
|
Status.TryAddTime(uid, Drunk, - boozePower);
|
|
}
|
|
|
|
private void OnLightweightDrinking(Entity<LightweightDrunkComponent> entity, ref DrunkEvent args)
|
|
{
|
|
args.Duration *= entity.Comp.BoozeStrengthMultiplier;
|
|
}
|
|
|
|
//imp addition, repeated code bad, i know, but it seems excessive to make a whole other new method that both methods use
|
|
private void OnHeavyweightDrinking(Entity<HeavyweightDrunkComponent> entity, ref DrunkEvent args)
|
|
{
|
|
args.Duration *= entity.Comp.BoozeStrengthMultiplier;
|
|
}
|
|
|
|
[ByRefEvent]
|
|
public record struct DrunkEvent(TimeSpan Duration);
|
|
}
|