- add: new crafts (#5)
* - add: Chainsaw craft * - add: Machete and claymore craft * - add: Knifes and cleavers can now be researched and printed * - add: Improvised shotgun shell recipe
This commit is contained in:
18
Content.Shared/_White/Construction/AddTag.cs
Normal file
18
Content.Shared/_White/Construction/AddTag.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using Content.Shared.Construction;
|
||||||
|
using Content.Shared.Tag;
|
||||||
|
using JetBrains.Annotations;
|
||||||
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||||
|
|
||||||
|
namespace Content.Shared._White.Construction;
|
||||||
|
|
||||||
|
[UsedImplicitly, DataDefinition]
|
||||||
|
public sealed partial class AddTag : IGraphAction
|
||||||
|
{
|
||||||
|
[DataField(required: true, customTypeSerializer: typeof(PrototypeIdSerializer<TagPrototype>))]
|
||||||
|
public string Tag = default!;
|
||||||
|
|
||||||
|
public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager)
|
||||||
|
{
|
||||||
|
entityManager.System<TagSystem>().AddTag(uid, Tag);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -218,6 +218,10 @@
|
|||||||
qualities:
|
qualities:
|
||||||
- Sawing
|
- Sawing
|
||||||
speed: 1.5
|
speed: 1.5
|
||||||
|
- type: Construction
|
||||||
|
deconstructionTarget: null
|
||||||
|
graph: ChainsawGraph
|
||||||
|
node: circular
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: advanced circular saw
|
name: advanced circular saw
|
||||||
@@ -241,3 +245,7 @@
|
|||||||
qualities:
|
qualities:
|
||||||
- Sawing
|
- Sawing
|
||||||
speed: 2.0
|
speed: 2.0
|
||||||
|
- type: Construction
|
||||||
|
deconstructionTarget: null
|
||||||
|
graph: ChainsawGraph
|
||||||
|
node: circular
|
||||||
|
|||||||
@@ -149,6 +149,10 @@
|
|||||||
proto: PelletShotgunImprovised
|
proto: PelletShotgunImprovised
|
||||||
- type: SpentAmmoVisuals
|
- type: SpentAmmoVisuals
|
||||||
state: "improvised"
|
state: "improvised"
|
||||||
|
- type: Construction
|
||||||
|
deconstructionTarget: null
|
||||||
|
graph: ImprovisedShellGraph
|
||||||
|
node: shell
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: ShellShotgunUranium
|
id: ShellShotgunUranium
|
||||||
|
|||||||
@@ -47,3 +47,7 @@
|
|||||||
maxVol: 300
|
maxVol: 300
|
||||||
- type: UseDelay
|
- type: UseDelay
|
||||||
delay: 1
|
delay: 1
|
||||||
|
- type: Construction
|
||||||
|
deconstructionTarget: null
|
||||||
|
graph: ChainsawGraph
|
||||||
|
node: chainsaw
|
||||||
|
|||||||
@@ -44,6 +44,10 @@
|
|||||||
- type: GuideHelp
|
- type: GuideHelp
|
||||||
guides:
|
guides:
|
||||||
- Chef
|
- Chef
|
||||||
|
- type: Construction
|
||||||
|
deconstructionTarget: null
|
||||||
|
graph: SwordGraph
|
||||||
|
node: knife
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: butcher's cleaver
|
name: butcher's cleaver
|
||||||
@@ -100,6 +104,10 @@
|
|||||||
sprite: Objects/Weapons/Melee/combat_knife.rsi
|
sprite: Objects/Weapons/Melee/combat_knife.rsi
|
||||||
- type: DisarmMalus
|
- type: DisarmMalus
|
||||||
malus: 0.225
|
malus: 0.225
|
||||||
|
- type: Construction
|
||||||
|
deconstructionTarget: null
|
||||||
|
graph: SwordGraph
|
||||||
|
node: knife
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: survival knife
|
name: survival knife
|
||||||
|
|||||||
@@ -109,6 +109,10 @@
|
|||||||
size: Normal
|
size: Normal
|
||||||
sprite: Objects/Weapons/Melee/machete.rsi
|
sprite: Objects/Weapons/Melee/machete.rsi
|
||||||
- type: DisarmMalus
|
- type: DisarmMalus
|
||||||
|
- type: Construction
|
||||||
|
deconstructionTarget: null
|
||||||
|
graph: SwordGraph
|
||||||
|
node: machete
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: claymore
|
name: claymore
|
||||||
@@ -135,6 +139,10 @@
|
|||||||
slots:
|
slots:
|
||||||
- back
|
- back
|
||||||
- type: DisarmMalus
|
- type: DisarmMalus
|
||||||
|
- type: Construction
|
||||||
|
deconstructionTarget: null
|
||||||
|
graph: SwordGraph
|
||||||
|
node: sword
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: cutlass
|
name: cutlass
|
||||||
|
|||||||
@@ -318,6 +318,8 @@
|
|||||||
- FauxTileAstroIce
|
- FauxTileAstroIce
|
||||||
- OreBagOfHolding
|
- OreBagOfHolding
|
||||||
- ClothingEyesNightVisionGoggles # WD EDIT
|
- ClothingEyesNightVisionGoggles # WD EDIT
|
||||||
|
- KitchenKnife # WD EDIT
|
||||||
|
- ButchCleaver # WD EDIT
|
||||||
- DeviceQuantumSpinInverter
|
- DeviceQuantumSpinInverter
|
||||||
- type: EmagLatheRecipes
|
- type: EmagLatheRecipes
|
||||||
emagDynamicRecipes:
|
emagDynamicRecipes:
|
||||||
|
|||||||
@@ -65,6 +65,20 @@
|
|||||||
steps:
|
steps:
|
||||||
- tool: Welding
|
- tool: Welding
|
||||||
doAfter: 1
|
doAfter: 1
|
||||||
|
- to: pipe_cut
|
||||||
|
conditions:
|
||||||
|
- !type:EntityAnchored
|
||||||
|
anchored: false
|
||||||
|
steps:
|
||||||
|
- tool: Cutting
|
||||||
|
doAfter: 1
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: PipeCut
|
||||||
|
amount: 4
|
||||||
|
- !type:DeleteEntity
|
||||||
|
|
||||||
|
- node: pipe_cut
|
||||||
|
|
||||||
- node: bend
|
- node: bend
|
||||||
entity: GasPipeBend
|
entity: GasPipeBend
|
||||||
|
|||||||
@@ -50,6 +50,8 @@
|
|||||||
- ElectricGrillMachineCircuitboard
|
- ElectricGrillMachineCircuitboard
|
||||||
- BoozeDispenserMachineCircuitboard
|
- BoozeDispenserMachineCircuitboard
|
||||||
- SodaDispenserMachineCircuitboard
|
- SodaDispenserMachineCircuitboard
|
||||||
|
- KitchenKnife
|
||||||
|
- ButchCleaver
|
||||||
|
|
||||||
- type: technology
|
- type: technology
|
||||||
id: AudioVisualCommunication
|
id: AudioVisualCommunication
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
- type: entity
|
||||||
|
id: PipeCut
|
||||||
|
name: часть трубы
|
||||||
|
parent: BaseItem
|
||||||
|
components:
|
||||||
|
- type: Item
|
||||||
|
size: Tiny
|
||||||
|
- type: Sprite
|
||||||
|
sprite: White/Misc/improvised_shell.rsi
|
||||||
|
state: pipeCut
|
||||||
|
- type: Construction
|
||||||
|
deconstructionTarget: null
|
||||||
|
graph: ImprovisedShellGraph
|
||||||
|
node: pipe_cut
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
id: PipeCutClosed
|
||||||
|
parent: PipeCut
|
||||||
|
components:
|
||||||
|
- type: Sprite
|
||||||
|
state: pipeCutClosed
|
||||||
|
- type: Construction
|
||||||
|
node: pipe_cut_closed
|
||||||
|
- type: SolutionContainerManager
|
||||||
|
solutions:
|
||||||
|
sol:
|
||||||
|
maxVol: 5
|
||||||
|
- type: DrawableSolution
|
||||||
|
solution: sol
|
||||||
|
- type: RefillableSolution
|
||||||
|
solution: sol
|
||||||
|
- type: DrainableSolution
|
||||||
|
solution: sol
|
||||||
|
- type: Spillable
|
||||||
|
solution: sol
|
||||||
|
- type: SolutionTransfer
|
||||||
|
maxTransferAmount: 5
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
start: esword
|
start: esword
|
||||||
graph:
|
graph:
|
||||||
- node: esword
|
- node: esword
|
||||||
entity: EnergySword
|
|
||||||
edges:
|
edges:
|
||||||
- to: desword
|
- to: desword
|
||||||
steps:
|
steps:
|
||||||
@@ -16,29 +15,20 @@
|
|||||||
start: welder
|
start: welder
|
||||||
graph:
|
graph:
|
||||||
- node: welder
|
- node: welder
|
||||||
entity: Welder
|
|
||||||
edges:
|
|
||||||
- to: screwed-welder
|
|
||||||
steps:
|
|
||||||
- tool: Screwing
|
|
||||||
doAfter: 1
|
|
||||||
- node: screwed-welder
|
|
||||||
edges:
|
edges:
|
||||||
- to: no-igniter
|
- to: no-igniter
|
||||||
steps:
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 1
|
||||||
- material: MetalRod
|
- material: MetalRod
|
||||||
amount: 5
|
amount: 5
|
||||||
doAfter: 5
|
doAfter: 5
|
||||||
- node: no-igniter
|
- node: no-igniter
|
||||||
entity: WeaponFlamethrowerUnfinished
|
entity: WeaponFlamethrowerUnfinished
|
||||||
edges:
|
|
||||||
- to: unscrewed
|
|
||||||
steps:
|
|
||||||
- tag: Igniter
|
|
||||||
- node: unscrewed
|
|
||||||
edges:
|
edges:
|
||||||
- to: flamethrower
|
- to: flamethrower
|
||||||
steps:
|
steps:
|
||||||
|
- tag: Igniter
|
||||||
- tool: Screwing
|
- tool: Screwing
|
||||||
doAfter: 1
|
doAfter: 1
|
||||||
- node: flamethrower
|
- node: flamethrower
|
||||||
@@ -49,48 +39,28 @@
|
|||||||
start: stock
|
start: stock
|
||||||
graph:
|
graph:
|
||||||
- node: stock
|
- node: stock
|
||||||
entity: RifleStock
|
|
||||||
edges:
|
edges:
|
||||||
- to: unfinished
|
- to: unfinished
|
||||||
steps:
|
steps:
|
||||||
- material: MetalRod
|
- material: MetalRod
|
||||||
amount: 3
|
amount: 3
|
||||||
doAfter: 3
|
doAfter: 3
|
||||||
- node: unfinished
|
|
||||||
edges:
|
|
||||||
- to: rods
|
|
||||||
- node: unfinished
|
- node: unfinished
|
||||||
entity: WeaponPoweredCrossbowUnfinished
|
entity: WeaponPoweredCrossbowUnfinished
|
||||||
edges:
|
|
||||||
- to: welded
|
|
||||||
steps:
|
|
||||||
- tool: Welding
|
|
||||||
doAfter: 5
|
|
||||||
- node: welded
|
|
||||||
edges:
|
|
||||||
- to: cables
|
|
||||||
steps:
|
|
||||||
- material: Cable
|
|
||||||
amount: 5
|
|
||||||
doAfter: 0.5
|
|
||||||
- node: cables
|
|
||||||
edges:
|
|
||||||
- to: plastic
|
|
||||||
steps:
|
|
||||||
- material: Plastic
|
|
||||||
amount: 3
|
|
||||||
doAfter: 0.5
|
|
||||||
- node: plastic
|
|
||||||
edges:
|
|
||||||
- to: unscrewed
|
|
||||||
steps:
|
|
||||||
- material: Cable
|
|
||||||
amount: 5
|
|
||||||
doAfter: 0.5
|
|
||||||
- node: unscrewed
|
|
||||||
edges:
|
edges:
|
||||||
- to: crossbow
|
- to: crossbow
|
||||||
steps:
|
steps:
|
||||||
|
- tool: Welding
|
||||||
|
doAfter: 5
|
||||||
|
- material: Cable
|
||||||
|
amount: 5
|
||||||
|
doAfter: 0.5
|
||||||
|
- material: Plastic
|
||||||
|
amount: 3
|
||||||
|
doAfter: 0.5
|
||||||
|
- material: Cable
|
||||||
|
amount: 5
|
||||||
|
doAfter: 0.5
|
||||||
- tool: Screwing
|
- tool: Screwing
|
||||||
doAfter: 1
|
doAfter: 1
|
||||||
- node: crossbow
|
- node: crossbow
|
||||||
@@ -130,3 +100,77 @@
|
|||||||
- !type:SpawnPrototype
|
- !type:SpawnPrototype
|
||||||
prototype: Telecrystal1
|
prototype: Telecrystal1
|
||||||
- !type:EmptyAllContainers
|
- !type:EmptyAllContainers
|
||||||
|
|
||||||
|
- type: constructionGraph
|
||||||
|
id: ChainsawGraph
|
||||||
|
start: circular
|
||||||
|
graph:
|
||||||
|
- node: circular
|
||||||
|
edges:
|
||||||
|
- to: chainsaw
|
||||||
|
steps:
|
||||||
|
- material: Cable
|
||||||
|
amount: 3
|
||||||
|
doAfter: 0.5
|
||||||
|
- material: Plasteel
|
||||||
|
amount: 5
|
||||||
|
doAfter: 3
|
||||||
|
- tool: Welding
|
||||||
|
doAfter: 5
|
||||||
|
- node: chainsaw
|
||||||
|
entity: Chainsaw
|
||||||
|
|
||||||
|
- type: constructionGraph
|
||||||
|
id: SwordGraph
|
||||||
|
start: knife
|
||||||
|
graph:
|
||||||
|
- node: knife
|
||||||
|
edges:
|
||||||
|
- to: machete
|
||||||
|
steps:
|
||||||
|
- tool: Welding
|
||||||
|
doAfter: 5
|
||||||
|
completed:
|
||||||
|
- !type:AddTag
|
||||||
|
tag: "WeldedKnife"
|
||||||
|
- tag: WeldedKnife
|
||||||
|
- node: machete
|
||||||
|
entity: Machete
|
||||||
|
edges:
|
||||||
|
- to: sword
|
||||||
|
steps:
|
||||||
|
- tool: Welding
|
||||||
|
doAfter: 5
|
||||||
|
- tag: WeldedKnife
|
||||||
|
- node: sword
|
||||||
|
entity: Claymore
|
||||||
|
|
||||||
|
- type: constructionGraph
|
||||||
|
id: ImprovisedShellGraph
|
||||||
|
start: pipe_cut
|
||||||
|
graph:
|
||||||
|
- node: pipe_cut
|
||||||
|
edges:
|
||||||
|
- to: pipe_cut_closed
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 1
|
||||||
|
doAfter: 0.5
|
||||||
|
- node: pipe_cut_closed
|
||||||
|
entity: PipeCutClosed
|
||||||
|
edges:
|
||||||
|
- to: shell
|
||||||
|
conditions:
|
||||||
|
- !type:MinSolution
|
||||||
|
solution: sol
|
||||||
|
reagent:
|
||||||
|
ReagentId: WeldingFuel
|
||||||
|
quantity: 5
|
||||||
|
steps:
|
||||||
|
- material: Cable
|
||||||
|
amount: 1
|
||||||
|
doAfter: 0.5
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 1
|
||||||
|
- node: shell
|
||||||
|
entity: ShellShotgunImprovised
|
||||||
|
|||||||
@@ -45,3 +45,6 @@
|
|||||||
|
|
||||||
- type: Tag
|
- type: Tag
|
||||||
id: SurveillanceBodyCamera
|
id: SurveillanceBodyCamera
|
||||||
|
|
||||||
|
- type: Tag
|
||||||
|
id: WeldedKnife
|
||||||
|
|||||||
17
Resources/Textures/White/Misc/improvised_shell.rsi/meta.json
Normal file
17
Resources/Textures/White/Misc/improvised_shell.rsi/meta.json
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"license": "CC-BY-SA-3.0",
|
||||||
|
"copyright": "FDev",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "pipeCut"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pipeCutClosed"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
BIN
Resources/Textures/White/Misc/improvised_shell.rsi/pipeCut.png
Normal file
BIN
Resources/Textures/White/Misc/improvised_shell.rsi/pipeCut.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 220 B |
Binary file not shown.
|
After Width: | Height: | Size: 200 B |
Reference in New Issue
Block a user