Skip to content

Commit

Permalink
-_-
Browse files Browse the repository at this point in the history
  • Loading branch information
pofitlo-Git committed Nov 20, 2024
1 parent 0a3536c commit c71ec36
Show file tree
Hide file tree
Showing 74 changed files with 196 additions and 48 deletions.
5 changes: 2 additions & 3 deletions Content.Server/Flash/FlashSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
using Robust.Shared.Audio;
using Robust.Shared.Random;
using InventoryComponent = Content.Shared.Inventory.InventoryComponent;
using Content.Shared._CorvaxNext.Flash.Components; //CorvaxNext

namespace Content.Server.Flash
{
Expand Down Expand Up @@ -118,9 +117,9 @@ public void Flash(EntityUid target,
TimeSpan? stunDuration = null)
{
//CorvaxNext duration modifier for resomi
if (TryComp<FlashModifierComponent>(target, out var CompUser))
if (TryComp<FlashModifierComponent>(target, out var flashModifier))
{
flashDuration *= CompUser.Modifier;
flashDuration *= flashModifier.Modifier;
}

var attempt = new FlashAttemptEvent(target, user, used);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Robust.Shared.Physics;

namespace Content.Server._CorvaxNext.Resomi.Abilities;

public sealed class AgillitySkillSystem : SharedAgillitSkillSystem
{
[Dependency] private readonly SharedActionsSystem _actionsSystem = default!;
Expand Down Expand Up @@ -45,6 +46,7 @@ private void SwitchAgility(Entity<AgillitySkillComponent> ent, ref SwitchAgillit
DeactivateAgility(ent.Owner, ent.Comp, action);
}
}

private void ActivateAgility(Entity<AgillitySkillComponent> ent, Entity<BaseActionComponent> action)
{
if (!TryComp<MovementSpeedModifierComponent>(ent.Owner, out var comp))
Expand All @@ -60,6 +62,7 @@ private void ActivateAgility(Entity<AgillitySkillComponent> ent, Entity<BaseActi
var ev = new SwitchAgillity(action, ent.Comp.Active);
RaiseLocalEvent(ent.Owner, ref ev);
}

private void DeactivateAgility(EntityUid uid, AgillitySkillComponent component, Entity<BaseActionComponent> action)
{
if (!TryComp<MovementSpeedModifierComponent>(uid, out var comp))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
namespace Content.Server._CorvaxNext.Speech.Components;

/// <summary>
/// Hiss!
/// </summary>
[RegisterComponent]
public sealed partial class ResomiAccentComponent : Component
{

}
public sealed partial class ResomiAccentComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
using System.Text.RegularExpressions;
using Content.Server._CorvaxNext.Speech.Components;
using Content.Server.Speech;
using Content.Server.Speech.EntitySystems;
using Robust.Shared.Random;

namespace Content.Server._CorvaxNext.Speech.EntitySystems;

public sealed class ResomiAccentSystem : EntitySystem
{
private static readonly Regex RegexLowerS = new("s+");
private static readonly Regex RegexUpperS = new("S+");
private static readonly Regex RegexInternalX = new(@"(\w)x");
private static readonly Regex RegexLowerEndX = new(@"\bx([\-|r|R]|\b)");
private static readonly Regex RegexUpperEndX = new(@"\bX([\-|r|R]|\b)");

[Dependency] private readonly IRobustRandom _random = default!; // Corvax-Localization
[Dependency] private readonly IRobustRandom _random = default!;

public override void Initialize()
{
Expand All @@ -26,7 +20,6 @@ private void OnAccent(EntityUid uid, ResomiAccentComponent component, AccentGetE
{
var message = args.Message;

// Corvax-Next-Localization-Start
// ш => шшш
message = Regex.Replace(
message,
Expand Down Expand Up @@ -63,7 +56,6 @@ private void OnAccent(EntityUid uid, ResomiAccentComponent component, AccentGetE
"Р+",
_random.Pick(new List<string>() { "РР", "РРР" })
);
// Corvax-Next-Localization-End
args.Message = message;
}
}
13 changes: 13 additions & 0 deletions Content.Shared/Flash/Components/FlashModifierComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace Content.Shared.Flash.Components;


/// <summary>
/// Corvax-Next-Resomi
/// </summary>

[RegisterComponent]
public sealed partial class FlashModifierComponent : Component
{
[DataField]
public float Modifier = 1f;
}
2 changes: 1 addition & 1 deletion Content.Shared/Wieldable/Components/WieldableComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public sealed partial class WieldableComponent : Component

public string? OldInhandPrefix = null;

public EntityUid? User = null; //Corvax-Next
public EntityUid? User = null; // Corvax-Next-Resomi
}

[Serializable, NetSerializable]
Expand Down
6 changes: 3 additions & 3 deletions Content.Shared/Wieldable/WieldableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using Robust.Shared.Audio.Systems;
using Robust.Shared.Network;
using Robust.Shared.Timing;
using Content.Shared._CorvaxNext.Resomi.Abilities; //Corvax-Next
using Content.Shared._CorvaxNext.Resomi.Abilities;

namespace Content.Shared.Wieldable;

Expand Down Expand Up @@ -109,7 +109,7 @@ private void OnDeselectWieldable(EntityUid uid, WieldableComponent component, Ha
private void OnGunRefreshModifiers(Entity<GunWieldBonusComponent> bonus, ref GunRefreshModifiersEvent args)
{
if (TryComp(bonus, out WieldableComponent? wield) &&
wield.Wielded && !HasComp<WeaponsUseInabilityComponent>(wield.User)) //Corvax-Next
wield.Wielded && !HasComp<WeaponsUseInabilityComponent>(wield.User)) //Corvax-Next-Resomi
{
args.MinAngle += bonus.Comp.MinAngle;
args.MaxAngle += bonus.Comp.MaxAngle;
Expand Down Expand Up @@ -257,7 +257,7 @@ public bool TryWield(EntityUid used, WieldableComponent component, EntityUid use
var othersMessage = Loc.GetString("wieldable-component-successful-wield-other", ("user", user), ("item", used));
_popupSystem.PopupPredicted(selfMessage, othersMessage, user, user);

component.User = user; //Corvax-Next
component.User = user; //Corvax-Next-Resomi

var targEv = new ItemWieldedEvent();
RaiseLocalEvent(used, ref targEv);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public abstract class SharedAgillitSkillSystem : EntitySystem
[Dependency] protected readonly SharedActionsSystem _actions = default!;

protected const int BaseCollisionGroup = (int)(CollisionGroup.MobMask);

public override void Initialize()
{
SubscribeLocalEvent<AgillitySkillComponent, StartCollideEvent>(DoJump);
Expand Down
4 changes: 1 addition & 3 deletions Content.Shared/_CorvaxNext/Resomi/SharedResomi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

namespace Content.Shared._CorvaxNext.Resomi;

public sealed partial class SwitchAgillityActionEvent : InstantActionEvent
{
}
public sealed partial class SwitchAgillityActionEvent : InstantActionEvent;

/// <summary>
/// Rises when the action state changes
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/5ea6d8b4422027d0c22cb415d1f05a08bf39aaa0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/5ea6d8b4422027d0c22cb415d1f05a08bf39aaa0, equipped-OUTERCLOTHING-resomi made by Pofitlo",
"size": {
"x": 32,
"y": 32
Expand All @@ -18,6 +18,10 @@
"name": "equipped-OUTERCLOTHING-vox",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC0-1.0",
"copyright": "Modified from detective coat found in https://github.com/tgstation/tgstation/commit/d90c7e5de6f6d94596c164da78dbc8d3cd35bb99 by Flareguy. vox state modified from detective state found in vgstation13 at https://github.com/vgstation-coders/vgstation13/blob//icons/mob/species/vox/suit.dmi. icon state by Flareguy. ",
"copyright": "Modified from detective coat found in https://github.com/tgstation/tgstation/commit/d90c7e5de6f6d94596c164da78dbc8d3cd35bb99 by Flareguy. vox state modified from detective state found in vgstation13 at https://github.com/vgstation-coders/vgstation13/blob//icons/mob/species/vox/suit.dmi. icon state by Flareguy, equipped-OUTERCLOTHING-resomi made by Pofitlo",
"size": {
"x": 32,
"y": 32
Expand All @@ -18,6 +18,10 @@
"name": "equipped-OUTERCLOTHING-vox",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Made by PuroSlavKing (github) for SS14",
"copyright": "Made by PuroSlavKing (github) for SS14, equipped-OUTERCLOTHING-resomi made by Pofitlo",
"size": {
"x": 32,
"y": 32
Expand All @@ -14,6 +14,10 @@
"name": "equipped-OUTERCLOTHING",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from Paradise at https://github.com/ParadiseSS13/Paradise/blob/cae6017c486dbadef2b2d86ddc58d7226c17597c/icons/mob/clothing/suit.dmi, https://github.com/ParadiseSS13/Paradise/blob/cab0fa52972c777ec3929cc2e03a74088349486f/icons/obj/clothing/suits.dmi",
"copyright": "Taken from Paradise at https://github.com/ParadiseSS13/Paradise/blob/cae6017c486dbadef2b2d86ddc58d7226c17597c/icons/mob/clothing/suit.dmi, https://github.com/ParadiseSS13/Paradise/blob/cab0fa52972c777ec3929cc2e03a74088349486f/icons/obj/clothing/suits.dmi, equipped-OUTERCLOTHING-resomi made by Pofitlo",
"size": {
"x": 32,
"y": 32
Expand All @@ -15,6 +15,10 @@
"name": "equipped-OUTERCLOTHING-vox",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "icon"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/4f6190e2895e09116663ef282d3ce1d8b35c032e",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/4f6190e2895e09116663ef282d3ce1d8b35c032e, equipped-OUTERCLOTHING-resomi made by Pofitlo",
"size": {
"x": 32,
"y": 32
Expand All @@ -14,6 +14,10 @@
"name": "equipped-OUTERCLOTHING",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"name": "equipped-OUTERCLOTHING-vox",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/4f6190e2895e09116663ef282d3ce1d8b35c032e. equipped-OUTERCLOTHING-vox state taken from /vg/station at commit https://github.com/vgstation-coders/vgstation13/commit/31d6576ba8102135d058ef49c3cb6ecbe8db8a79",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/4f6190e2895e09116663ef282d3ce1d8b35c032e. equipped-OUTERCLOTHING-vox state taken from /vg/station at commit https://github.com/vgstation-coders/vgstation13/commit/31d6576ba8102135d058ef49c3cb6ecbe8db8a79, equipped-OUTERCLOTHING-resomi made by Pofitlo",
"size": {
"x": 32,
"y": 32
Expand All @@ -18,6 +18,10 @@
"name": "equipped-OUTERCLOTHING-vox",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/2fea0a59470c476cf3f927833d3918d89cbe6af8, reptilian made by murouxlul(705433554602950793)",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/2fea0a59470c476cf3f927833d3918d89cbe6af8, reptilian made by murouxlul(705433554602950793), sprites for resomi made by Pofitlo",
"size": {
"x": 32,
"y": 32
Expand Down Expand Up @@ -37,6 +37,14 @@
"name": "open-equipped-OUTERCLOTHING-vox",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "open-equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/2fea0a59470c476cf3f927833d3918d89cbe6af8 & inhand updated by github:Morb0, reptilian made by murouxlul(705433554602950793)",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/2fea0a59470c476cf3f927833d3918d89cbe6af8 & inhand updated by github:Morb0, reptilian made by murouxlul(705433554602950793), sprites for resomi made by Pofitlo",
"size": {
"x": 32,
"y": 32
Expand Down Expand Up @@ -37,6 +37,14 @@
"name": "open-equipped-OUTERCLOTHING-vox",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "open-equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/2fea0a59470c476cf3f927833d3918d89cbe6af8 & inhand recolored by github:Morb0, reptilian made by murouxlul(705433554602950793)",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/2fea0a59470c476cf3f927833d3918d89cbe6af8 & inhand recolored by github:Morb0, reptilian made by murouxlul(705433554602950793), sprites for resomi made by Pofitlo",
"size": {
"x": 32,
"y": 32
Expand Down Expand Up @@ -37,6 +37,14 @@
"name": "open-equipped-OUTERCLOTHING-vox",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "open-equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
"name": "open-equipped-OUTERCLOTHING-vox",
"directions": 4
},
{
"name": "equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "open-equipped-OUTERCLOTHING-resomi",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c71ec36

Please sign in to comment.