From 8ca16ea8299364454a23748ba2e49383ee740722 Mon Sep 17 00:00:00 2001 From: As Date: Tue, 9 Jul 2024 13:03:37 +0300 Subject: [PATCH] Revert "Revert "last update"" This reverts commit b7dc9b7703294daae25a75494d26e052b42b4d35. --- .../Graphs/fun/Toy_Energy_Shield.yml | 19 +++++++++++++++++++ .../Prototypes/Recipes/Construction/fun.yml | 12 ++++++++++++ .../Starshine/Entities/Objects/Fun/toys.yml | 3 +++ 3 files changed, 34 insertions(+) create mode 100644 Resources/Prototypes/Recipes/Construction/Graphs/fun/Toy_Energy_Shield.yml diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/fun/Toy_Energy_Shield.yml b/Resources/Prototypes/Recipes/Construction/Graphs/fun/Toy_Energy_Shield.yml new file mode 100644 index 00000000000000..a1e11dffb3c6b1 --- /dev/null +++ b/Resources/Prototypes/Recipes/Construction/Graphs/fun/Toy_Energy_Shield.yml @@ -0,0 +1,19 @@ +- type: constructionGraph + id: ToyEnergyShield + start: start + graph: + - node: start + edges: + - to: ToyEnergyShield + steps: + - material: Cable + amount: 2 + doAfter: 1 + - material: Cloth + amount: 5 + doAfter: 2 + - material: WoodPlank + amount: 1 + doAfter: 2 + - node: ToyEnergyShield + entity: ToyEnergyShield diff --git a/Resources/Prototypes/Recipes/Construction/fun.yml b/Resources/Prototypes/Recipes/Construction/fun.yml index 46d43e73729c30..d832a6d3559797 100644 --- a/Resources/Prototypes/Recipes/Construction/fun.yml +++ b/Resources/Prototypes/Recipes/Construction/fun.yml @@ -8,3 +8,15 @@ description: An air horn made from bananium. icon: { sprite: Objects/Fun/bananiumhorn.rsi, state: icon } objectType: Item + +- type: construction + name: toy energy shield + id: ToyEnergyShield + graph: ToyEnergyShield + startNode: start + targetNode: ToyEnergyShield + category: construction-category-weapons + description: New Sandy-Cat plastic energy shield! Comes with realistic sound and full color! Looks almost like the real thing! + icon: { sprite: Objects/Weapons/Melee/e_shield.rsi, state: eshield-on } + objectType: Item + diff --git a/Resources/Prototypes/Starshine/Entities/Objects/Fun/toys.yml b/Resources/Prototypes/Starshine/Entities/Objects/Fun/toys.yml index 0e02cb70cba9fe..c2a11149fe99e7 100644 --- a/Resources/Prototypes/Starshine/Entities/Objects/Fun/toys.yml +++ b/Resources/Prototypes/Starshine/Entities/Objects/Fun/toys.yml @@ -152,6 +152,9 @@ - type: Appearance - type: Damageable damageContainer: Shield + - type: Construction + graph: ToyEnergyShield + node: ToyEnergyShield - type: Destructible thresholds: - trigger: