Skip to content

Commit

Permalink
fixiki
Browse files Browse the repository at this point in the history
  • Loading branch information
PuroSlavKing committed Dec 22, 2024
1 parent ee3c37d commit 4ca5ef1
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Chat/Systems/ChatSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public void TrySendXenoHivemindMessage(
{
if (!CanSendInGame(message, shell, player))
return;
if (player != null && !_chatManager.HandleRateLimit(player))
if (player != null && _chatManager.HandleRateLimit(player) != RateLimitStatus.Allowed)
return;
// It doesn't make any sense for a non-player to send in-game OOC messages, whereas non-players may be sending
// in-game IC messages.
Expand Down
4 changes: 4 additions & 0 deletions Content.Shared/Buckle/SharedBuckleSystem.Buckle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Content.Shared.Movement.Pulling.Events;
using Content.Shared.Popups;
using Content.Shared.Pulling.Events;
using Content.Shared.Bed.Sleep; // WWDP
using Content.Shared.Rotation;
using Content.Shared.Standing;
using Content.Shared.Storage.Components;
Expand Down Expand Up @@ -404,7 +405,9 @@ public bool TryUnbuckle(Entity<BuckleComponent?> buckle, EntityUid? user, bool p
if (!Resolve(buckle.Owner, ref buckle.Comp))
return false;

if (!CanUnbuckle(buckle, user, popup, out var strap)) // WWDP - Remove this after fix shit under it
// WWDP START
/*
if (CompOrNull<StrapComponent>(strapUid) != null && Comp<StrapComponent>(strapUid).Delay > buckleComp.Delay)
buckleComp.Delay = Comp<StrapComponent>(strapUid).Delay;
Expand Down Expand Up @@ -442,6 +445,7 @@ public bool TryUnbuckle(Entity<BuckleComponent?> buckle, EntityUid? user, bool p
SetBuckledTo(buckleUid, null, null, buckleComp);
if (!TryComp<StrapComponent>(strapUid, out var strapComp))
*/
// WWDP END
return false;

Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Chat/ChatChannelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static Color TextColor(this ChatChannel channel)
ChatChannel.AdminAlert => Color.Red,
ChatChannel.AdminChat => Color.HotPink,
ChatChannel.Whisper => Color.DarkGray,
ChatChannel.XenoHivemind => Color.FromHex("#600a91"), // WWDP
// ChatChannel.XenoHivemind => Color.FromHex("#600a91"), // WWDP
_ => Color.LightGray
};
}
Expand Down
4 changes: 2 additions & 2 deletions Content.Shared/Chat/ChatSelectChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ public enum ChatSelectChannel : ushort
Admin = ChatChannel.AdminChat,

/// <summary>
/// Nyano - Summary:. Telepathic channel for all psionic entities.
/// Nyano - Summary:. Telepathic channel for all psionic entities.
/// </summary>
Telepathic = ChatChannel.Telepathic,

/// <summary>
/// WWDP - Xenomorph Hivemind
/// WWDP - Xenomorph Hivemind
/// </summary>
XenoHivemind = ChatChannel.XenoHivemind,

Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Devour/SharedDevourSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected void OnDevourAction(EntityUid uid, DevourerComponent component, Devour
{
_doAfterSystem.TryStartDoAfter(new DoAfterArgs(EntityManager, uid, component.DevourTime, new DevourDoAfterEvent(), uid, target: target, used: uid)
{
BreakOnMove = true,
BreakOnUserMove = true,
});
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private void OnHit(EntityUid uid, AlienJumpComponent comp, ThrowDoHitEvent args)

if (HasComp<StandingStateComponent>(args.Target))
{
_standing.TryLieDown(args.Target, null, StandingStateSystem.DropHeldItemsBehavior.NoDrop);
_standing.Down(args.Target, false, dropHeldItems:false);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public sealed class SharedPlasmaVesselSystem : EntitySystem
[Dependency] private readonly AlertsSystem _alerts = default!;
private IGameTiming? _gameTiming;

[ValidatePrototypeId<AlertPrototype>]
public const string PlasmaCounterAlert = "PlasmaCounter";

public override void Initialize()
{
_gameTiming = IoCManager.Resolve<IGameTiming>();
Expand Down Expand Up @@ -106,7 +109,7 @@ public bool ChangePlasmaAmount(EntityUid uid, FixedPoint2 amount, PlasmaVesselCo

if (currentTime - component.LastAlertUpdateTime >= PlasmaVesselComponent.AlertUpdateInterval)
{
_alerts.ShowAlert(uid, AlertType.PlasmaCounter, (short)newAlertValue);
_alerts.ShowAlert(uid, PlasmaCounterAlert, (short)newAlertValue);
component.AlertValue = newAlertValue;
component.LastAlertUpdateTime = currentTime;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void OnStructureMaking(EntityUid uid, float cost, float productionLength
BlockDuplicate = true,
BreakOnDamage = true,
CancelDuplicate = true,
BreakOnMove = true
BreakOnUserMove = true
};

_doAfterSystem.TryStartDoAfter(doAfter);
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/_White/Xenomorphs/Systems/TailLashSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private void OnLash(EntityUid uid, TailLashComponent component, TailLashActionEv
{
if (HasComp<StandingStateComponent>(entity))
{
_standing.TryLieDown(entity, null, DropHeldItemsBehavior.NoDrop);
_standing.Down(entity, playSound: false, dropHeldItems:false);
}
}
_actions.SetCooldown(component.TailLashActionEntity, TimeSpan.FromSeconds(component.Cooldown));
Expand Down
1 change: 0 additions & 1 deletion Resources/Locale/ru-RU/_white/aliens/xenomorph_actions.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ action-transfer-plasma-alien-desc = Передайте 50 плазмы ближ
alien-transfer-fail = Вы не можете передать плазму прямо сейчас.
alien-plasma-left = Осталось {$value} плазмы.
alien-create-structure-failed = Вы не можете создать структуру здесь.
alien-action-fail-plasma = Недостаточно плазмы.
action-larva-grow = Рости
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@
description: Little and harmless alien
components:
- type: ShowInfectedIcons
- type: GlobalAntagonist
antagonistPrototype: globalAntagonistXenomorphs
- type: Body
prototype: Xeno
- type: Speech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
components:
- type: MindContainer
showExamineInfo: true
- type: GlobalAntagonist
antagonistPrototype: globalAntagonistXenomorphs
- type: GhostTakeoverAvailable
- type: GhostRole
allowMovement: true
Expand Down Expand Up @@ -185,8 +183,6 @@
components:
- type: MindContainer
showExamineInfo: true
- type: GlobalAntagonist
antagonistPrototype: globalAntagonistXenomorphs
- type: GhostTakeoverAvailable
- type: GhostRole
allowMovement: true
Expand Down Expand Up @@ -328,8 +324,6 @@
components:
- type: MindContainer
showExamineInfo: true
- type: GlobalAntagonist
antagonistPrototype: globalAntagonistXenomorphs
- type: GhostTakeoverAvailable
- type: GhostRole
allowMovement: true
Expand Down Expand Up @@ -480,8 +474,6 @@
showExamineInfo: true
- type: Alien
caste: praetorian
- type: GlobalAntagonist
antagonistPrototype: globalAntagonistXenomorphs
- type: GhostTakeoverAvailable
- type: GhostRole
allowMovement: true
Expand Down Expand Up @@ -647,8 +639,6 @@
showExamineInfo: true
- type: Alien
caste: queen
- type: GlobalAntagonist
antagonistPrototype: globalAntagonistXenomorphs
- type: GhostTakeoverAvailable
- type: GhostRole
allowMovement: true
Expand Down Expand Up @@ -761,8 +751,6 @@
components:
- type: MindContainer
showExamineInfo: true
- type: GlobalAntagonist
antagonistPrototype: globalAntagonistXenomorphs
- type: GhostTakeoverAvailable
- type: GhostRole
allowMovement: true
Expand Down

0 comments on commit 4ca5ef1

Please sign in to comment.