]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Little rework of existing yaml flatpacks (#24814)
authorlzk <124214523+lzk228@users.noreply.github.com>
Thu, 22 Feb 2024 02:44:22 +0000 (03:44 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Feb 2024 02:44:22 +0000 (21:44 -0500)
* Little rework of existing yaml flatpacks

* comit 2

* 55

* 66

* 77

* WRAAAA

* done mr sloth

* Update flatpack.yml

* fix??

20 files changed:
Resources/Prototypes/Catalog/Cargo/cargo_engines.yml
Resources/Prototypes/Catalog/Fills/Crates/engines.yml
Resources/Prototypes/Entities/Objects/Devices/flatpack.yml
Resources/Prototypes/Entities/Objects/Power/antimatter_part.yml [deleted file]
Resources/Prototypes/Entities/Objects/Power/solar_parts.yml [deleted file]
Resources/Prototypes/Objectives/objectiveGroups.yml
Resources/Prototypes/Objectives/stealTargetGroups.yml
Resources/Prototypes/Objectives/thief.yml
Resources/Prototypes/Parallaxes/test.yml
Resources/Prototypes/Recipes/Construction/Graphs/utilities/ame_shielding.yml
Resources/Prototypes/Recipes/Construction/Graphs/utilities/solarpanel.yml
Resources/ServerInfo/Guidebook/Engineering/AME.xml
Resources/Textures/Objects/Devices/flatpack.rsi/ame-part.png [moved from Resources/Textures/Objects/Power/AME/ame_part.rsi/box.png with 100% similarity]
Resources/Textures/Objects/Devices/flatpack.rsi/meta.json
Resources/Textures/Objects/Devices/flatpack.rsi/solar-assembly-part.png [moved from Resources/Textures/Objects/Power/solar_parts.rsi/solar_assembly_parts.png with 100% similarity]
Resources/Textures/Objects/Power/AME/ame_part.rsi/inhand-left.png [deleted file]
Resources/Textures/Objects/Power/AME/ame_part.rsi/inhand-right.png [deleted file]
Resources/Textures/Objects/Power/AME/ame_part.rsi/meta.json [deleted file]
Resources/Textures/Objects/Power/solar_parts.rsi/meta.json [deleted file]
Resources/migration.yml

index 0ae1468bfa4cc3beed8f9d9502b2841ad3dbf941..1efa3973e5085a0ada7c235a45b17eb5d087199d 100644 (file)
@@ -63,8 +63,8 @@
 - type: cargoProduct
   id: EngineSolar
   icon:
-    sprite: Objects/Power/solar_parts.rsi
-    state: solar_assembly_parts
+    sprite: Objects/Devices/flatpack.rsi
+    state: solar-assembly-part
   product: CrateEngineeringSolar
   cost: 500
   category: Engineering
@@ -89,7 +89,7 @@
   cost: 1200
   category: Engineering
   group: market
-  
+
 - type: cargoProduct
   id: EngineTeslaGroundingRod
   icon:
index 3129e28b72d5622c7623316058188e40fe2d9a6b..315c4dda2c179f991334125d537ed34059a14e64 100644 (file)
@@ -8,7 +8,7 @@
   components:
   - type: StorageFill
     contents:
-      - id: AmePart
+      - id: AmePartFlatpack
         amount: 9
 
 - type: entity
   components:
   - type: StorageFill
     contents:
-      - id: SolarAssemblyPart
+      - id: SolarAssemblyFlatpack
         amount: 6
 
 - type: entity
index 39e94018329b4c3f95093c7a18e2ee2cf673e301..5ac66affdfb094474bd174d77c3549a862236508 100644 (file)
       cpu_supply: "#A46106"
   - type: StaticPrice
     price: 250
+
+- type: entity
+  parent: BaseFlatpack
+  id: SolarAssemblyFlatpack
+  name: solar assembly flatpack
+  description: A flatpack used for constructing a solar assembly.
+  components:
+  - type: Flatpack
+    entity: SolarAssembly
+  - type: Sprite
+    layers:
+    - state: solar-assembly-part
+  - type: StaticPrice
+    price: 75
+
+- type: entity
+  parent: BaseFlatpack
+  id: AmePartFlatpack
+  name: AME flatpack
+  description: A flatpack used for constructing an antimatter engine reactor.
+  components:
+  - type: Sprite
+    layers:
+    - state: ame-part
+  - type: Flatpack
+    entity: AmeShielding
+  - type: StaticPrice
+    price: 500
+  - type: GuideHelp
+    guides: [ AME, Power ]
+  - type: StealTarget
+    stealGroup: AmePartFlatpack
diff --git a/Resources/Prototypes/Entities/Objects/Power/antimatter_part.yml b/Resources/Prototypes/Entities/Objects/Power/antimatter_part.yml
deleted file mode 100644 (file)
index 9aa6014..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-- type: entity
-  parent: BaseItem
-  id: AmePart
-  name: AME flatpack
-  description: A flatpack used for constructing an antimatter engine reactor.
-  components:
-  - type: Item
-    size: Normal
-    sprite: Objects/Power/AME/ame_part.rsi
-  - type: Sprite
-    sprite: Objects/Power/AME/ame_part.rsi
-    state: box
-  - type: Flatpack
-    entity: AmeShielding
-  - type: StaticPrice
-    price: 500
-  - type: GuideHelp
-    guides: [ AME, Power ]
-  - type: StealTarget
-    stealGroup: AmePart
diff --git a/Resources/Prototypes/Entities/Objects/Power/solar_parts.yml b/Resources/Prototypes/Entities/Objects/Power/solar_parts.yml
deleted file mode 100644 (file)
index de8aef6..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-- type: entity
-  parent: BaseItem
-  id: SolarAssemblyPart
-  name: solar assembly flatpack
-  description: A flatpack used for constructing a solar assembly.
-  components:
-  - type: Item
-    size: Normal
-  - type: Flatpack
-    entity: SolarAssembly
-  - type: Sprite
-    sprite: Objects/Power/solar_parts.rsi
-    state: solar_assembly_parts
index aa443781cfd2e9e98c2bd024ce07be180d05dcf0..7100fc34f3ad98560d00f140cbd7281cde00da65 100644 (file)
@@ -84,7 +84,7 @@
     MedicalTechFabCircuitboardStealObjective: 1
     ClothingHeadsetAltMedicalStealObjective: 1
     FireAxeStealObjective: 1                            #eng
-    AmePartStealObjective: 1
+    AmePartFlatpackStealObjective: 1
     ExpeditionsCircuitboardStealObjective: 1            #sup
     CargoShuttleCircuitboardStealObjective: 1
     SalvageShuttleCircuitboardStealObjective: 1
index c6f6e6c8ca0fcbb1a84aa52d95821b3dbf9c7c91..028c7c1939704eb921d2f3e5e5c11b1e44e66fcf 100644 (file)
     state: icon
 
 - type: stealTargetGroup
-  id: AmePart
+  id: AmePartFlatpack
   name: AME part
   sprite:
-    sprite: Objects/Power/AME/ame_part.rsi
-    state: box
+    sprite: Objects/Devices/flatpack.rsi
+    state: ame-part
 
 - type: stealTargetGroup
   id: SalvageExpeditionsComputerCircuitboard
index db1eb3111eb2c2642aa35c333ecf895e17df7dd3..5ee8bd25d182ad32e40eb55ccf65359a14a5b188 100644 (file)
 - type: entity
   noSpawn: true
   parent: BaseThiefStealObjective
-  id: AmePartStealObjective
+  id: AmePartFlatpackStealObjective
   components:
   - type: NotJobRequirement
     job: StationEngineer
   - type: StealCondition
-    stealGroup: AmePart
+    stealGroup: AmePartFlatpack
   - type: Objective
     difficulty: 1
 
index b38182849f27f4dfe217b2c1564fcff2ecd54bc8..8a7a6e8310739f9e562999f681b5a5031872c22b 100644 (file)
@@ -17,7 +17,7 @@
       scale: "3, 3"
     - texture:
         !type:ImageParallaxTextureSource
-        path: "/Textures/Objects/Power/AME/ame_part.rsi/box.png"
+        path: "/Textures/Objects/Devices/flatpack.rsi/ame-part.png"
       slowness: 0.995
       tiled: false
       controlHomePosition: "-128, -128"
@@ -38,7 +38,7 @@
       scale: "1, 1"
     - texture:
         !type:ImageParallaxTextureSource
-        path: "/Textures/Objects/Power/AME/ame_part.rsi/box.png"
+        path: "/Textures/Objects/Devices/flatpack.rsi/ame-part.png"
       slowness: 0.0
       tiled: false
       controlHomePosition: "0, 32"
index 98a4857be6180f5b973c62d72f9ffa85f9a9e3c2..cf2bf9aaf7f04c5263ff7983df2f69fdfe132f93 100644 (file)
@@ -12,7 +12,7 @@
             - !type:AdminLog  # I don't like logging it like this. The log should include the user, AMEShielding EntityID, and AMEPart EntityID, and there should also be a start of attempt log.
               message: "An AME shielding was deconstructed"
             - !type:SpawnPrototype
-              prototype: AmePart
+              prototype: AmePartFlatpack
               amount: 1
             - !type:DeleteEntity
           steps:
index cf6d75f46d80e0ddfb650a144e2ac99d19f88ac7..0914ae46e5646ea7bde90ab789bdd59bc18db709 100644 (file)
@@ -6,11 +6,11 @@
       edges:
         - to: solarassembly
           steps:
-            - tag: SolarAssemblyPart
+            - tag: SolarAssemblyFlatpack
               name: Solar Assembly Parts
               icon:
-                sprite: Objects/Power/solar_parts.rsi
-                state: solar_assembly_parts
+                sprite: Objects/Devices/flatpack.rsi
+                state: solar-assembly-part
               doAfter: 1
 
     - node: solarassembly
@@ -19,7 +19,7 @@
         - to: start
           completed:
             - !type:SpawnPrototype
-              prototype: SolarAssemblyPart
+              prototype: SolarAssemblyFlatpack
               amount: 1
             - !type:DeleteEntity {}
           steps:
index a0bcb44a4454494f77618451b56156f663dd76a8..202ed16d3d849458e5bc618581ab8c0ec99cdfaa 100644 (file)
@@ -7,7 +7,7 @@ The AME is one of the simplest engines available. You put together the multi-til
 <Box>Required parts:</Box>
 <Box>
 <GuideEntityEmbed Entity="AmeController"/>
-<GuideEntityEmbed Entity="AmePart"/>
+<GuideEntityEmbed Entity="AmePartFlatpack"/>
 <GuideEntityEmbed Entity="AmeJar"/>
 </Box>
 
index 6381b5c80b3f17698973c130c1147d9954f9863b..8e573c2adec542d1de77eed3afe299ccc79e7fb0 100644 (file)
@@ -1,7 +1,7 @@
 {
     "version": 1,
     "license": "CC0-1.0",
-    "copyright": "Created by EmoGarbage404 (github) for SS14",
+    "copyright": "Created by EmoGarbage404 (github) for SS14, solar-assembly-part taken from tgstation and modified at https://tgstation13.org/wiki/Guide_to_construction#Solar_Panels_and_Trackers, ame-part taken from vgstation at https://github.com/vgstation-coders/vgstation13/commit/1b7952787c06c21ef1623e494dcfe7cb1f46e041",
     "size": {
         "x": 32,
         "y": 32
         },
         {
             "name": "icon-default"
+        },
+        {
+            "name": "solar-assembly-part"
+        },
+        {
+            "name": "ame-part"
         }
     ]
 }
diff --git a/Resources/Textures/Objects/Power/AME/ame_part.rsi/inhand-left.png b/Resources/Textures/Objects/Power/AME/ame_part.rsi/inhand-left.png
deleted file mode 100644 (file)
index a45ce6c..0000000
Binary files a/Resources/Textures/Objects/Power/AME/ame_part.rsi/inhand-left.png and /dev/null differ
diff --git a/Resources/Textures/Objects/Power/AME/ame_part.rsi/inhand-right.png b/Resources/Textures/Objects/Power/AME/ame_part.rsi/inhand-right.png
deleted file mode 100644 (file)
index bc2f8c7..0000000
Binary files a/Resources/Textures/Objects/Power/AME/ame_part.rsi/inhand-right.png and /dev/null differ
diff --git a/Resources/Textures/Objects/Power/AME/ame_part.rsi/meta.json b/Resources/Textures/Objects/Power/AME/ame_part.rsi/meta.json
deleted file mode 100644 (file)
index c36b2d3..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-{
-  "version": 1,
-  "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from vgstation at https://github.com/vgstation-coders/vgstation13/commit/1b7952787c06c21ef1623e494dcfe7cb1f46e041",
-  "size": {
-    "x": 32,
-    "y": 32
-  },
-  "states": [
-    {
-      "name": "box"
-    },
-    {
-      "name": "inhand-left",
-      "directions": 4
-    },
-    {
-      "name": "inhand-right",
-      "directions": 4
-    }
-  ]
-}
diff --git a/Resources/Textures/Objects/Power/solar_parts.rsi/meta.json b/Resources/Textures/Objects/Power/solar_parts.rsi/meta.json
deleted file mode 100644 (file)
index 5379dae..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-  "version": 1,
-  "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from tgstation and modified at https://tgstation13.org/wiki/Guide_to_construction#Solar_Panels_and_Trackers",
-  "size": {
-    "x": 32,
-    "y": 32
-  },
-  "states": [
-    {
-      "name": "solar_assembly_parts"
-    }
-  ]
-}
index e2ef8c0c69880a4a9d23a1e4e1e1fc3fb24f4356..09a2fdd70c9f79118cfd392718ef513851fbaf06 100644 (file)
@@ -219,3 +219,8 @@ YellowOxygenTankFilled: OxygenTankFilled
 Drone: null
 SpawnMobDrone: null
 Onestar: null # I dont think this is even mapped, but just in case
+
+# 2024-02-22
+SolarAssemblyPart: SolarAssemblyFlatpack
+AmePart: AmePartFlatpack
+AmePartStealObjective: AmePartFlatpackStealObjective