]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
add more logic gates prototypes for mapping (#30385)
authorlzk <124214523+lzk228@users.noreply.github.com>
Tue, 30 Jul 2024 13:55:21 +0000 (15:55 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Jul 2024 13:55:21 +0000 (09:55 -0400)
* Add more logic gates types for mapping

* i forgor

* me stupid

* nuh

Resources/Prototypes/Entities/Structures/gates.yml
Resources/Prototypes/Recipes/Construction/Graphs/tools/logic_gate.yml
Resources/migration.yml

index 22ab745a1eec88691a6e28be5d67d6a34d7e3b74..6b02840ba0b8f45c714af0e41f2b169324b20940 100644 (file)
 
 - type: entity
   parent: BaseLogicItem
-  id: LogicGate
+  id: LogicGateOr
   name: logic gate
   description: A logic gate with two inputs and one output. Technicians can change its mode of operation using a screwdriver.
+  suffix: Or
   components:
   - type: Sprite
     layers:
           Nand: { state: nand }
           Xnor: { state: xnor }
 
+- type: entity
+  parent: LogicGateOr
+  id: LogicGateAnd
+  suffix: And
+  components:
+  - type: Sprite
+    layers:
+    - state: base
+    - state: and
+      map: [ "enum.LogicGateLayers.Gate" ]
+  - type: LogicGate
+    gate: And
+
+- type: entity
+  parent: LogicGateOr
+  id: LogicGateXor
+  suffix: Xor
+  components:
+  - type: Sprite
+    layers:
+    - state: base
+    - state: xor
+      map: [ "enum.LogicGateLayers.Gate" ]
+  - type: LogicGate
+    gate: Xor
+
+- type: entity
+  parent: LogicGateOr
+  id: LogicGateNor
+  suffix: Nor
+  components:
+  - type: Sprite
+    layers:
+    - state: base
+    - state: nor
+      map: [ "enum.LogicGateLayers.Gate" ]
+  - type: LogicGate
+    gate: Nor
+
+- type: entity
+  parent: LogicGateOr
+  id: LogicGateNand
+  suffix: Nand
+  components:
+  - type: Sprite
+    layers:
+    - state: base
+    - state: nand
+      map: [ "enum.LogicGateLayers.Gate" ]
+  - type: LogicGate
+    gate: Nand
+
+- type: entity
+  parent: LogicGateOr
+  id: LogicGateXnor
+  suffix: Xnor
+  components:
+  - type: Sprite
+    layers:
+    - state: base
+    - state: xnor
+      map: [ "enum.LogicGateLayers.Gate" ]
+  - type: LogicGate
+    gate: Xnor
+
 - type: entity
   parent: BaseLogicItem
   id: EdgeDetector
index 6e64f061eb9838cd8e61caba0139ac54d8c068c4..d366a2ea59a48bb39017b8c5af6edcbc73fbbf1c 100644 (file)
@@ -34,7 +34,7 @@
           state: icon
         name: a multitool
   - node: logic_gate
-    entity: LogicGate
+    entity: LogicGateOr
   - node: edge_detector
     entity: EdgeDetector
   - node: power_sensor
index a4276c7f105e3671589a4046e465f71e6c237095..92b2ca6d3b9393fce1c9c859ac5026160d83f566 100644 (file)
@@ -377,3 +377,6 @@ SignDrones: SignMaterials
 SignShield: null # what was this even for?
 SignHydro2: SignHydro1
 SignHydro3: SignHydro1
+
+# 2024-07-27
+LogicGate: LogicGateOr