-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19778cc
commit da07d91
Showing
14 changed files
with
190 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
Content.Server/Destructible/Thresholds/Behaviors/TriggerBehavior.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Content.Server.Destructible.Thresholds.Behaviors; | ||
|
||
[DataDefinition] | ||
public sealed class TriggerBehavior : IThresholdBehavior | ||
{ | ||
public void Execute(EntityUid owner, DestructibleSystem system) | ||
{ | ||
system.TriggerSystem.Trigger(owner); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
payload-case-not-close-enough = You need to get closer to determine if {THE($ent)} has a payload installed. | ||
payload-case-has-payload = {CAPITALIZE(THE($ent))} has a payload installed! | ||
payload-case-does-not-have-payload = {CAPITALIZE(THE($ent))} does not have a payload installed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
Resources/Prototypes/Recipes/Construction/Graphs/weapons/modular_mine.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
- type: constructionGraph | ||
id: ModularMineGraph | ||
start: start | ||
graph: | ||
|
||
- node: start | ||
edges: | ||
- to: emptyCase | ||
steps: | ||
- material: Steel | ||
amount: 5 | ||
doAfter: 1 | ||
|
||
- node: emptyCase | ||
entity: LandMineModular | ||
edges: | ||
- to: wiredCase | ||
steps: | ||
- material: Cable | ||
doAfter: 0.5 | ||
|
||
- node: wiredCase | ||
entity: LandMineModular | ||
actions: | ||
- !type:PlaySound | ||
sound: /Audio/Machines/button.ogg | ||
edges: | ||
- to: emptyCase | ||
steps: | ||
- tool: Cutting | ||
doAfter: 0.5 | ||
completed: | ||
- !type:SpawnPrototype | ||
prototype: CableApcStack1 | ||
- to: mine | ||
steps: | ||
- tag: Payload | ||
store: payload | ||
name: Payload | ||
doAfter: 0.5 | ||
|
||
- node: mine | ||
actions: | ||
- !type:PlaySound | ||
sound: /Audio/Machines/button.ogg | ||
- !type:AdminLog | ||
message: "A mine was crafted" | ||
edges: | ||
- to: wiredCase | ||
steps: | ||
- tool: Prying | ||
doAfter: 0.5 | ||
completed: | ||
- !type:EmptyContainer | ||
container: payload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
- type: construction | ||
name: Modular Grenade | ||
id: ModularGrenadeRecipe | ||
graph: ModularGrenadeGraph | ||
startNode: start | ||
targetNode: grenade | ||
category: Weapons | ||
description: Construct a grenade using a trigger and a payload. | ||
icon: | ||
sprite: Objects/Weapons/Grenades/modular.rsi | ||
state: complete | ||
objectType: Item | ||
|
||
- type: construction | ||
name: Modular Mine | ||
id: ModularMineRecipe | ||
graph: ModularMineGraph | ||
startNode: start | ||
targetNode: mine | ||
category: Weapons | ||
description: Construct a landmine using a payload. | ||
icon: | ||
sprite: Objects/Misc/uglymine.rsi | ||
state: uglymine | ||
objectType: Item |
Oops, something went wrong.