This commit is contained in:
Vanessa 2026-08-14 00:55:04 -06:00 committed by GitHub
commit 65733503ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 37 additions and 12 deletions

View File

@ -22,6 +22,7 @@ using Content.Shared.StatusEffect;
using Content.Shared.Store.Components;
using Content.Shared.Stunnable;
using Content.Shared.Tag;
using Content.Shared.Weapons.Melee.Events; // DeltaV
using Robust.Server.GameObjects;
using Robust.Shared.Physics.Components;
using Robust.Shared.Prototypes;
@ -64,6 +65,7 @@ public sealed partial class RevenantSystem : EntitySystem
SubscribeLocalEvent<RevenantComponent, StatusEffectAddedEvent>(OnStatusAdded);
SubscribeLocalEvent<RevenantComponent, StatusEffectEndedEvent>(OnStatusEnded);
SubscribeLocalEvent<RoundEndTextAppendEvent>(_ => MakeVisible(true));
SubscribeLocalEvent<RevenantComponent, MeleeAttackEvent>(OnMeleeAttack); // DeltaV
SubscribeLocalEvent<RevenantComponent, GetVisMaskEvent>(OnRevenantGetVis);
@ -131,6 +133,14 @@ public sealed partial class RevenantSystem : EntitySystem
ChangeEssenceAmount(uid, essenceDamage, component);
}
/// <summary>
/// DeltaV - No more attack spam and remaining invisible
/// </summary>
private void OnMeleeAttack(Entity<RevenantComponent> ent, ref MeleeAttackEvent args)
{
_statusEffects.TryAddStatusEffect<CorporealComponent>(ent, "Corporeal", ent.Comp.MeleeRevealTime, false);
}
public bool ChangeEssenceAmount(EntityUid uid, FixedPoint2 amount, RevenantComponent? component = null, bool allowDeath = true, bool regenCap = false)
{
if (!Resolve(uid, ref component))

View File

@ -300,4 +300,12 @@ public sealed partial class RevenantComponent : Component
public string HarvestingState = "harvesting";
#endregion
[DataField] public EntityUid? HauntAction; // Imp
#region Melee
/// <summary>
/// DeltaV - The amount of time a rev is revealed after making a melee attack.
/// </summary>
[DataField]
public TimeSpan MeleeRevealTime = TimeSpan.FromSeconds(2);
#endregion
}

View File

@ -87,6 +87,7 @@
params:
volume: 5
priority: -12
useDelay: 5 # DeltaV - small cooldown
- type: TargetAction
checkCanAccess: false
range: 0

View File

@ -1086,6 +1086,12 @@
- type: Item
heldPrefix: green
- type: AgentIDCard
- type: ActivatableUI # DeltaV - adds the agent ID ui
key: enum.AgentIDCardUiKey.Key
- type: UserInterface # DeltaV - adds the agent ID ui
interfaces:
enum.AgentIDCardUiKey.Key:
type: AgentIDCardBoundUserInterface
- type: IdCard
jobIcon: JobIconNinja
- type: Access

View File

@ -163,7 +163,7 @@
- type: LimitedCharges
maxCharges: 3
- type: AutoRecharge
rechargeDuration: 20
rechargeDuration: 30 # DeltaV - was 20
- type: Clothing
sprite: Objects/Weapons/Melee/energykatana.rsi
slots:

View File

@ -84,20 +84,20 @@
lightThreshold: 0.7
darkDamage:
types:
Blunt: -5
Piercing: -5
Slash: -5
Heat: -5
Poison: -5
Asphyxiation: -2.5
Bloodloss: -2.5
Cellular: -5
Blunt: -2
Piercing: -2
Slash: -2
Heat: -2
Poison: -2
Asphyxiation: -2
Bloodloss: -2
Cellular: -2
Soul: -1
lightDamage:
types:
Blunt: 1.5
Piercing: 1.5
Slash: 1.5
Blunt: 2
Piercing: 2
Slash: 2
healWhenDead: true
darkMovementSpeedMultiplier: 1.25
lightMovementSpeedMultiplier: 1.0