* MinSolution and SolutionEmpty construction conditions

* make ied sprites

* add ied

* ied crafting stuff

* deconstruct give cable yes

* fix

* tags

* tag

* 3x3

* sharing is caring

* buff damage

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-11-06 03:04:47 +00:00
committed by GitHub
parent 8302bef3e2
commit 96e27810cf
14 changed files with 385 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
- type: constructionGraph
id: ImprovisedExplosive
start: start
graph:
- node: start
edges:
- to: empty
steps:
- tag: DrinkCan
name: an empty can
icon:
sprite: Objects/Consumable/Drinks/cola.rsi
state: icon_open
doAfter: 1
- tag: Igniter
name: an igniter
icon:
sprite: Objects/Devices/igniter.rsi
state: icon
doAfter: 1
- node: empty
entity: ImprovisedExplosiveEmpty
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: DrinkColaCanEmpty
- !type:SpawnPrototype
prototype: Igniter
- !type:DeleteEntity {}
steps:
- tool: Prying
doAfter: 1
- to: fuel
conditions:
- !type:MinSolution
solution: drink
reagent:
ReagentId: WeldingFuel
quantity: 30
steps:
- tool: Screwing
doAfter: 1
- node: fuel
entity: ImprovisedExplosiveFuel
edges:
- to: empty
conditions:
- !type:SolutionEmpty
solution: drink
steps:
- tool: Screwing
doAfter: 1
- to: ied
conditions: # no dumping out 29u of the fuel then adding wires :)
- !type:MinSolution
solution: drink
reagent:
ReagentId: WeldingFuel
quantity: 30
steps:
- material: Cable
amount: 5
doAfter: 2
- node: ied
entity: ImprovisedExplosive
edges:
- to: fuel
completed:
- !type:SpawnPrototype
prototype: CableApcStack1
amount: 5
steps:
- tool: Cutting
doAfter: 2

View File

@@ -162,3 +162,16 @@
icon:
sprite: Objects/Misc/rifle_stock.rsi
state: icon
- type: construction
name: improvised explosive device
id: improvisedexplosive
graph: ImprovisedExplosive
startNode: start
targetNode: ied
category: construction-category-weapons
objectType: Item
description: A weak, improvised incendiary device.
icon:
sprite: Objects/Weapons/Bombs/ied.rsi
state: icon