Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return dragons #1308

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Content.Server/Devour/DevourSystem.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Content.Server.Body.Components;
using Content.Server.Body.Systems;
using Content.Shared.Chemistry.Components;
using Content.Shared.Devour;
Expand All @@ -15,6 +16,7 @@ public override void Initialize()
base.Initialize();

SubscribeLocalEvent<DevourerComponent, DevourDoAfterEvent>(OnDoAfter);
SubscribeLocalEvent<DevourerComponent, BeingGibbedEvent>(OnGibContents); // Delta-V
}

private void OnDoAfter(EntityUid uid, DevourerComponent component, DevourDoAfterEvent args)
Expand Down Expand Up @@ -45,5 +47,17 @@ private void OnDoAfter(EntityUid uid, DevourerComponent component, DevourDoAfter

_audioSystem.PlayPvs(component.SoundDevour, uid);
}

// Delta-V begin
private void OnGibContents(EntityUid uid, DevourerComponent component, ref BeingGibbedEvent args)
{
if (!component.ShouldStoreDevoured)
return;

// For some reason we have two different systems that should handle gibbing,
// and for some another reason GibbingSystem, which should empty all containers, doesn't get involved in this process
ContainerSystem.EmptyContainer(component.Stomach);
}
// Delta-V end
}

58 changes: 29 additions & 29 deletions Resources/Prototypes/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,35 +79,35 @@
- type: RandomEntityStorageSpawnRule
prototype: MobSkeletonCloset

#- type: entity # DeltaV: remove space dragon spawn event
# parent: BaseGameRule
# id: DragonSpawn
# noSpawn: true
# components:
# - type: StationEvent
# weight: 1 # DeltaV - was 6.5
# earliestStart: 60 # DeltaV - was 40
# reoccurrenceDelay: 20
# minimumPlayers: 45 # DeltaV - was 20
# - type: AntagRandomSpawn
# - type: AntagSpawner
# prototype: MobDragon
# - type: AntagObjectives
# objectives:
# - CarpRiftsObjective
# - DragonSurviveObjective
# - type: AntagSelection
# agentName: dragon-round-end-agent-name
# definitions:
# - spawnerPrototype: SpawnPointGhostDragon
# min: 1
# max: 1
# pickPlayer: false
# mindComponents:
# - type: DragonRole
# prototype: Dragon
# - type: RoleBriefing
# briefing: dragon-role-briefing
- type: entity
parent: BaseGameRule
id: DragonSpawn
noSpawn: true
components:
- type: StationEvent
weight: 1 # DeltaV - was 6.5
earliestStart: 60 # DeltaV - was 40
reoccurrenceDelay: 20
minimumPlayers: 45 # DeltaV - was 20
- type: AntagRandomSpawn
- type: AntagSpawner
prototype: MobDragon
- type: AntagObjectives
objectives:
- CarpRiftsObjective
- DragonSurviveObjective
- type: AntagSelection
agentName: dragon-round-end-agent-name
definitions:
- spawnerPrototype: SpawnPointGhostDragon
min: 1
max: 1
pickPlayer: false
mindComponents:
- type: DragonRole
prototype: Dragon
- type: RoleBriefing
briefing: dragon-role-briefing

- type: entity
parent: BaseGameRule
Expand Down
10 changes: 5 additions & 5 deletions Resources/Prototypes/threats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
- type: weightedRandom
id: NinjaThreats
weights:
# Dragon: 1 # DeltaV
Dragon: 1
Revenant: 1

#- type: ninjaHackingThreat # DeltaV
# id: Dragon
# announcement: terror-dragon
# rule: DragonSpawn
- type: ninjaHackingThreat
id: Dragon
announcement: terror-dragon
rule: DragonSpawn

- type: ninjaHackingThreat
id: Revenant
Expand Down
Loading