Skip to content

Commit

Permalink
make limb sever damage types use protoid (space-syndicate#1331)
Browse files Browse the repository at this point in the history
* make limb sever damage types use protoid

* how

* make base surgery step abstract too

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
  • Loading branch information
deltanedas authored Jan 5, 2025
1 parent 259542f commit a0f1766
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Robust.Shared.CPUJob.JobQueues;
using Robust.Shared.CPUJob.JobQueues.Queues;
using Robust.Shared.Network;
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using Robust.Shared.Timing;
using System.Linq;
Expand All @@ -34,7 +35,7 @@ public partial class SharedBodySystem
[Dependency] private readonly StandingStateSystem _standing = default!;

[Dependency] private readonly SharedPopupSystem _popup = default!;
private readonly string[] _severingDamageTypes = { "Slash", "Piercing", "Blunt" };
private readonly ProtoId<DamageTypePrototype>[] _severingDamageTypes = { "Slash", "Piercing", "Blunt" };
private const double IntegrityJobTime = 0.005;
private readonly JobQueue _integrityJobQueue = new(IntegrityJobTime);
public sealed class IntegrityJob : Job<object>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- type: entity
id: SurgeryStepBase
categories: [ HideSpawnMenu ]
abstract: true
components:
- type: SurgeryStep

Expand Down

0 comments on commit a0f1766

Please sign in to comment.