Modular landmines (#8351)
This commit is contained in:
@@ -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
|
||||
25
Resources/Prototypes/Recipes/Construction/modular.yml
Normal file
25
Resources/Prototypes/Recipes/Construction/modular.yml
Normal file
@@ -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
|
||||
@@ -1,12 +0,0 @@
|
||||
- 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
|
||||
Reference in New Issue
Block a user