From be28ba91e71fb5566baea813a068838f3ceadfbd Mon Sep 17 00:00:00 2001 From: Ripmorld <60119809+UKNOWH@users.noreply.github.com> Date: Sat, 4 Jun 2022 14:30:36 +0800 Subject: [PATCH] Make shift laser gun (#8125) * Added the TechFabCircuitboards and made them spawn in the head's lockers * Added the construction graph for makeshift laser * Added the construction graph to the yml of makeshiftlaser * Resolving branching issues * resolving branching issues * resolving branching issues * Small fixes * Update battery_guns.yml * Update battery_guns.yml * Update battery_guns.yml Co-authored-by: wrexbe Co-authored-by: wrexbe <81056464+wrexbe@users.noreply.github.com> --- .../Weapons/Guns/Battery/battery_guns.yml | 3 +++ .../Graphs/weapons/makeshift laser gun.yml | 25 +++++++++++++++++++ .../Recipes/Construction/weapons.yml | 11 ++++++++ 3 files changed, 39 insertions(+) create mode 100644 Resources/Prototypes/Recipes/Construction/Graphs/weapons/makeshift laser gun.yml diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml index b61433d6a6..8f87f4c96d 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml @@ -73,6 +73,9 @@ - type: Battery maxCharge: 500 startingCharge: 500 + - type: Construction + graph: MakeshiftLaser + node: makeshiftLaser - type: entity name: cog laser carbine diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/weapons/makeshift laser gun.yml b/Resources/Prototypes/Recipes/Construction/Graphs/weapons/makeshift laser gun.yml new file mode 100644 index 0000000000..76cbe85b6c --- /dev/null +++ b/Resources/Prototypes/Recipes/Construction/Graphs/weapons/makeshift laser gun.yml @@ -0,0 +1,25 @@ +- type: constructionGraph + id: MakeshiftLaser + start: start + graph: + - node: start + edges: + - to: makeshiftLaser + steps: + - material: Cable + amount: 2 + doAfter: 2 + - material: Steel + amount: 10 + doAfter: 4 + - prototype: MaterialDiamond + name: refined diamond + icon: + sprite: Objects/Materials/materials.rsi + state: diamond + doAfter: 1 + - material: Glass + amount: 5 + doAfter: 5 + - node: makeshiftLaser + entity: WeaponMakeshiftLaser diff --git a/Resources/Prototypes/Recipes/Construction/weapons.yml b/Resources/Prototypes/Recipes/Construction/weapons.yml index 712d790c2c..e130075b8a 100644 --- a/Resources/Prototypes/Recipes/Construction/weapons.yml +++ b/Resources/Prototypes/Recipes/Construction/weapons.yml @@ -20,3 +20,14 @@ icon: Objects/Weapons/Throwable/bola.rsi/icon.png objectType: Item +- type: construction + name: makeshift laser + id: MakeshiftLaser + graph: MakeshiftLaser + startNode: start + targetNode: makeshiftLaser + category: Weapons + description: A make shift laser for the lasering enthusiast. + icon: Objects/Weapons/Guns/Battery/makeshift.rsi/icon.png + objectType: Item +