Skip to content

Commit e1f3184

Browse files
committed
otherchanges
1 parent 017a487 commit e1f3184

File tree

10 files changed

+36
-13
lines changed

10 files changed

+36
-13
lines changed

Content.Server/_Wega/Lavaland/Systems/Artefacts/VoiceOfGodSystem.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ private void OnEntitySpoke(Entity<VoiceOfGodComponent> ent, ref EntitySpokeEvent
200200

201201
private void ProcessCommand(Entity<VoiceOfGodComponent> ent, VoiceOfGodCommand command, string originalMessage)
202202
{
203+
if (_timing.CurTime < ent.Comp.LastCommandUse + TimeSpan.FromSeconds(ent.Comp.GlobalCooldown))
204+
return;
205+
203206
if (ent.Comp.CommandCooldowns.TryGetValue(command.Id, out var lastUse))
204207
{
205208
var cooldownEnd = lastUse + TimeSpan.FromSeconds(command.Cooldown);
@@ -214,8 +217,9 @@ private void ProcessCommand(Entity<VoiceOfGodComponent> ent, VoiceOfGodCommand c
214217
}
215218

216219
ent.Comp.CommandCooldowns[command.Id] = _timing.CurTime;
220+
ent.Comp.LastCommandUse = _timing.CurTime;
217221

218-
_admin.Add(LogType.Action, LogImpact.Medium,
222+
_admin.Add(LogType.Action, LogImpact.Extreme,
219223
$"{ToPrettyString(ent):player} used Voice of God command '{command.Id}' with message: {originalMessage}");
220224
}
221225

Content.Shared/Weapons/Melee/MeleeWeaponComponent.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,13 @@ public sealed partial class MeleeWeaponComponent : Component
7171
[DataField, AutoNetworkedField]
7272
public bool ResistanceBypass = false;
7373

74-
[DataField, AutoNetworkedField] // Corvax-Wega-Add
75-
public bool PossibilityWideAtack = true; // Corvax-Wega-Add
74+
// Corvax-Wega-Add-start
75+
[DataField, AutoNetworkedField]
76+
public bool PossibilityWideAtack = true;
77+
78+
[DataField, AutoNetworkedField]
79+
public bool IgnoreAttempted;
80+
// Corvax-Wega-Add-end
7681

7782
/// <summary>
7883
/// Base damage for this weapon. Can be modified via heavy damage or other means.

Content.Shared/Weapons/Melee/SharedMeleeWeaponSystem.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private void OnMapInit(EntityUid uid, MeleeWeaponComponent component, MapInitEve
113113

114114
private void OnMeleeShotAttempted(EntityUid uid, MeleeWeaponComponent comp, ref ShotAttemptedEvent args)
115115
{
116-
if (comp.NextAttack > Timing.CurTime)
116+
if (comp.NextAttack > Timing.CurTime && !comp.IgnoreAttempted) // Corvax-Wega-Edit
117117
args.Cancel();
118118
}
119119

@@ -220,14 +220,16 @@ private void OnLightAttack(LightAttackEvent msg, EntitySessionEventArgs args)
220220

221221
private void OnHeavyAttack(HeavyAttackEvent msg, EntitySessionEventArgs args) // Corvax-Wega-Change
222222
{
223-
var weapon = GetEntity(msg.Weapon); // Corvax-Wega-Add
224-
if (args.SenderSession.AttachedEntity is not { } user // Corvax-Wega-Change
225-
|| TerminatingOrDeleted(user) || TerminatingOrDeleted(weapon)) // Corvax-Wega-Change
223+
// Corvax-Wega-Change-start
224+
var weapon = GetEntity(msg.Weapon);
225+
if (args.SenderSession.AttachedEntity is not { } user
226+
|| TerminatingOrDeleted(user) || TerminatingOrDeleted(weapon))
226227
return;
227228

228-
if (!TryGetWeapon(user, out var weaponUid, out var weaponComp) // Corvax-Wega-Change
229-
|| weaponUid != weapon || !weaponComp.PossibilityWideAtack) // Corvax-Wega-Change
229+
if (!TryGetWeapon(user, out var weaponUid, out var weaponComp)
230+
|| weaponUid != weapon || !weaponComp.PossibilityWideAtack)
230231
return;
232+
// Corvax-Wega-Change-end
231233

232234
AttemptAttack(user, weaponUid, weaponComp, msg, args.SenderSession);
233235
}

Content.Shared/_Wega/Lavaland/Components/Artefacts/VoiceOfGodComponent.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ namespace Content.Shared.Lavaland.Artefacts.Components;
55
[RegisterComponent]
66
public sealed partial class VoiceOfGodComponent : Component
77
{
8+
[DataField]
9+
public float GlobalCooldown = 30f;
10+
811
[ViewVariables(VVAccess.ReadOnly)]
912
public Dictionary<string, TimeSpan> CommandCooldowns = new();
13+
14+
[ViewVariables(VVAccess.ReadOnly)]
15+
public TimeSpan LastCommandUse = TimeSpan.Zero;
1016
}
1117

1218
[RegisterComponent]

Content.Shared/_Wega/Weapons/Misc/Upgrades/Components/CrusherWatcherWingUpgradeComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ namespace Content.Shared.Weapons.Misc.Upgrades;
66
public sealed partial class CrusherWatcherWingUpgradeComponent : Component
77
{
88
[DataField]
9-
public float ResetsTime = 1.5f;
9+
public float ResetsTime = 1f;
1010
}

Resources/Prototypes/Entities/Clothing/Belt/belts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
- type: Clothing
206206
sprite: Clothing/Belt/militarywebbing.rsi
207207
- type: ExplosionResistance
208-
damageCoefficient: 0.1
208+
damageCoefficient: 0 # Corvax-Wega-Edit
209209
- type: StaticPrice
210210
price: 500
211211
# Corvax-Wega-Dirtable-start

Resources/Prototypes/_Wega/Entities/Mobs/NPCs/lavaland_megafauna.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@
464464
sprite: _Wega/Mobs/Lavaland/colossus.rsi
465465
state: colossus
466466
- type: MeleeWeapon
467+
ignoreAttempted: true
467468
altDisarm: false
468469
attackRate: 0.25
469470
damage:
@@ -487,6 +488,7 @@
487488
showExamineText: false
488489
soundGunshot: null
489490
soundEmpty: null
491+
- type: VoiceOfGod # Maybe...
490492
- type: Pullable
491493
- type: MovementSpeedModifier
492494
baseWalkSpeed: 1.125
@@ -549,6 +551,7 @@
549551
Dead:
550552
Base: dragon_dead
551553
- type: MeleeWeapon
554+
ignoreAttempted: true
552555
altDisarm: false
553556
angle: 0
554557
animation: WeaponArcBite

Resources/Prototypes/_Wega/Entities/Objects/Specific/Lavaland/throphies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
tags: [ CrusherUpgradeWatcher ]
7979
examineText: crusher-upgrade-examine-text-ice-watcher
8080
- type: CrusherWatcherWingUpgrade
81-
resetsTime: 2.8
81+
resetsTime: 2
8282

8383
- type: entity
8484
parent: BaseTrophyLavaland

Resources/Prototypes/_Wega/Entities/Objects/Weapons/Guns/Projectiles/specific.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
ignoreTargeted: true
1010
damage:
1111
types:
12-
Blunt: 25 #JUDGEMENT!
12+
Blunt: 20 #JUDGEMENT!
1313
- type: Sprite
1414
sprite: _Wega/Objects/Weapons/Guns/Projectiles/projectiles2.rsi
1515
layers:

Resources/migration.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,3 +797,6 @@ HandheldHealthAnalyzerEmpty: HandheldHealthAnalyzer
797797

798798
#2026-01-09
799799
BorgModuleAdvancedChemical: BorgModuleAdvancedTopical
800+
801+
#2026-03-11 - CW
802+
SpawnMobSlimeGray: null

0 commit comments

Comments
 (0)