mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
Port Allulalo from Impstation (#6172)
* 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>
This commit is contained in:
co-authored by
starlighthowls
mqole
sev7ves
beck
Kip
sev7ves
Yesteryear
parent
7b77d25068
commit
f22266d51f
@@ -0,0 +1,7 @@
|
||||
namespace Content.Server.Speech.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Scraw!!
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed partial class AllulaloAccentComponent : Component { }
|
||||
@@ -0,0 +1,52 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using Content.Server.Speech.Components;
|
||||
using Content.Shared.Speech;
|
||||
|
||||
namespace Content.Server._Impstation.Speech.EntitySystems;
|
||||
|
||||
public sealed class AllulaloAccentSystem : EntitySystem
|
||||
{
|
||||
private static readonly Regex RegexLowerslurR = new Regex("r{1,3}");
|
||||
private static readonly Regex RegexUpperslurR = new Regex("R{1,3}");
|
||||
private static readonly Regex RegexLowerdoubleCK = new Regex("ck{1,3}");
|
||||
private static readonly Regex RegexUpperdoubleCK = new Regex("CK{1,3}");
|
||||
private static readonly Regex RegexCasedoubleCK = new Regex("Ck{1,3}");
|
||||
private static readonly Regex RegexCameldoubleCK = new Regex("cK{1,3}");
|
||||
private static readonly Regex RegexLowerdoubleCKT = new Regex("ct{1,3}");
|
||||
private static readonly Regex RegexUpperdoubleCKT = new Regex("CT{1,3}");
|
||||
private static readonly Regex RegexCasedoubleCKT = new Regex("Ct{1,3}");
|
||||
private static readonly Regex RegexCameldoubleCKT = new Regex("cT{1,3}");
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<AllulaloAccentComponent, AccentGetEvent>(OnAccent);
|
||||
}
|
||||
|
||||
private void OnAccent(EntityUid uid, AllulaloAccentComponent component, AccentGetEvent args)
|
||||
{
|
||||
var message = args.Message;
|
||||
|
||||
// Im not writing music in this one
|
||||
message = RegexLowerslurR.Replace(message, "rr");
|
||||
// Sorry to the snalienaccentsystem fans
|
||||
message = RegexUpperslurR.Replace(message, "RR");
|
||||
//
|
||||
message = RegexLowerdoubleCK.Replace(message, "ck-ck");
|
||||
//
|
||||
message = RegexUpperdoubleCK.Replace(message, "CK-CK");
|
||||
//
|
||||
message = RegexCasedoubleCK.Replace(message, "Ck-ck");
|
||||
//
|
||||
message = RegexCameldoubleCK.Replace(message, "cK-CK");
|
||||
//
|
||||
message = RegexLowerdoubleCKT.Replace(message, "ck-ct");
|
||||
//
|
||||
message = RegexUpperdoubleCKT.Replace(message, "CK-CT");
|
||||
//
|
||||
message = RegexCasedoubleCKT.Replace(message, "Ck-ct");
|
||||
//
|
||||
message = RegexCameldoubleCKT.Replace(message, "cK-CT");
|
||||
args.Message = message;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user