]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Move pens out of paper.yml mess (#28044)
authorlzk <124214523+lzk228@users.noreply.github.com>
Sat, 18 May 2024 09:51:02 +0000 (11:51 +0200)
committerGitHub <noreply@github.com>
Sat, 18 May 2024 09:51:02 +0000 (12:51 +0300)
* Move pens out of paper.yml mess

* forgor

* fix tests

* fux

* fix 2

20 files changed:
Resources/Prototypes/Catalog/Cargo/cargo_service.yml
Resources/Prototypes/Catalog/uplink_catalog.yml
Resources/Prototypes/Entities/Objects/Misc/paper.yml
Resources/Prototypes/Entities/Objects/Misc/pen.yml [new file with mode: 0644]
Resources/Textures/Objects/Misc/bureaucracy.rsi/meta.json
Resources/Textures/Objects/Misc/pens.rsi/luxury_pen.png [moved from Resources/Textures/Objects/Misc/bureaucracy.rsi/luxury_pen.png with 100% similarity]
Resources/Textures/Objects/Misc/pens.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Misc/pens.rsi/overpriced_pen-inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/pens.rsi/overpriced_pen-inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/pens.rsi/overpriced_pen.png [moved from Resources/Textures/Objects/Misc/bureaucracy.rsi/overpriced_pen.png with 100% similarity]
Resources/Textures/Objects/Misc/pens.rsi/pen-inhand-left.png [moved from Resources/Textures/Objects/Misc/bureaucracy.rsi/pen-inhand-left.png with 100% similarity]
Resources/Textures/Objects/Misc/pens.rsi/pen-inhand-right.png [moved from Resources/Textures/Objects/Misc/bureaucracy.rsi/pen-inhand-right.png with 100% similarity]
Resources/Textures/Objects/Misc/pens.rsi/pen.png [moved from Resources/Textures/Objects/Misc/bureaucracy.rsi/pen.png with 100% similarity]
Resources/Textures/Objects/Misc/pens.rsi/pen_blue.png [moved from Resources/Textures/Objects/Misc/bureaucracy.rsi/pen_blue.png with 100% similarity]
Resources/Textures/Objects/Misc/pens.rsi/pen_cap.png [moved from Resources/Textures/Objects/Misc/bureaucracy.rsi/pen_cap.png with 100% similarity]
Resources/Textures/Objects/Misc/pens.rsi/pen_centcom-inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/pens.rsi/pen_centcom-inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/pens.rsi/pen_centcom.png [moved from Resources/Textures/Objects/Misc/bureaucracy.rsi/pen_centcom.png with 100% similarity]
Resources/Textures/Objects/Misc/pens.rsi/pen_hop.png [moved from Resources/Textures/Objects/Misc/bureaucracy.rsi/pen_hop.png with 100% similarity]
Resources/Textures/Objects/Misc/pens.rsi/pen_red.png [moved from Resources/Textures/Objects/Misc/bureaucracy.rsi/pen_red.png with 100% similarity]

index 267f706f3bd9d573bb4c27e8ccad05c458cb7db7..ebcd9dfc5e6e52e362f19b7e7da188f499f2012d 100644 (file)
@@ -61,7 +61,7 @@
 - type: cargoProduct
   id: ServiceBureaucracy
   icon:
-    sprite: Objects/Misc/bureaucracy.rsi
+    sprite: Objects/Misc/pens.rsi
     state: pen
   product: CrateServiceBureaucracy
   cost: 1000
index 747328f30534cb45d5c02c8b124c1f5afa5fb522..c8d6eb4f618f9769e50e4708a420e093eb5719ab 100644 (file)
   id: UplinkExplodingPen
   name: uplink-exploding-pen-name
   description: uplink-exploding-pen-desc
-  icon: { sprite: /Textures/Objects/Misc/bureaucracy.rsi, state: pen }
+  icon: { sprite: /Textures/Objects/Misc/pens.rsi, state: pen }
   productEntity: PenExplodingBox
   cost:
     Telecrystal: 4
   id: UplinkHypopen
   name: uplink-hypopen-name
   description: uplink-hypopen-desc
-  icon: { sprite: /Textures/Objects/Misc/bureaucracy.rsi, state: pen }
+  icon: { sprite: /Textures/Objects/Misc/pens.rsi, state: pen }
   productEntity: HypopenBox
   cost:
     Telecrystal: 6
   - !type:BuyerWhitelistCondition
     blacklist:
       components:
-      - SurplusBundle
\ No newline at end of file
+      - SurplusBundle
index 5fa341c976b3e08e315738f0abf0985dcb94e1e7..05a0b9d34551d57de4cdbcfc632bbaea3944ce94 100644 (file)
   components:
   - type: NukeCodePaper
 
-- type: entity
-  name: pen
-  parent: BaseItem
-  id: Pen
-  description: 'A dark ink pen.'
-  components:
-  - type: Tag
-    tags:
-    - Write
-    - Pen
-  - type: Sprite
-    sprite: Objects/Misc/bureaucracy.rsi
-    state: pen
-  - type: Item
-    sprite: Objects/Misc/bureaucracy.rsi
-    heldPrefix: pen
-    size: Tiny
-  - type: PhysicalComposition
-    materialComposition:
-      Steel: 25
-
-- type: entity
-  parent: Pen
-  id: PenEmbeddable
-  abstract: true
-  components:
-  - type: EmbeddableProjectile
-    offset: 0.3,0.0
-    removalTime: 0.0
-  - type: ThrowingAngle
-    angle: 315
-  - type: DamageOtherOnHit
-    damage:
-      types:
-        Piercing: 3
-
-#TODO: I want the luxury pen to write a cool font like Merriweather in the future.
-
-- type: entity
-  name: luxury pen
-  parent: Pen
-  id: LuxuryPen
-  description: A fancy and expensive pen that you only deserve to own if you're qualified to handle vast amounts of paperwork.
-  components:
-  - type: Sprite
-    state: luxury_pen
-  - type: Item
-    heldPrefix: luxury_pen
-
-- type: entity
-  name: Cybersun pen
-  parent: PenEmbeddable
-  id: CyberPen
-  description: A high-tech pen straight from Cybersun's legal department, capable of refracting hard-light at impossible angles through its diamond tip in order to write. So powerful, it's even able to rewrite officially stamped documents should the need arise.
-  components:
-  - type: Tag
-    tags:
-    - Write
-    - WriteIgnoreStamps
-    - Pickaxe
-  - type: Sprite
-    sprite: Objects/Misc/bureaucracy.rsi
-    state: overpriced_pen
-  - type: MeleeWeapon
-    wideAnimationRotation: -45
-    damage:
-      types:
-        Piercing: 15
-    soundHit:
-      path: /Audio/Weapons/bladeslice.ogg
-  - type: Tool
-    qualities:
-      - Screwing
-    useSound:
-      collection: Screwdriver
-  - type: Item
-    sprite: Objects/Misc/bureaucracy.rsi
-    heldPrefix: overpriced_pen
-    size: Tiny
-
-- type: entity
-  name: captain's fountain pen
-  parent: PenEmbeddable
-  id: PenCap
-  description: 'A luxurious fountain pen for the captain of the station.'
-  components:
-  - type: Sprite
-    sprite: Objects/Misc/bureaucracy.rsi
-    state: pen_cap
-
-- type: entity
-  name: CentCom pen
-  parent: CyberPen
-  id: PenCentcom
-  description: In an attempt to keep up with the "power" of the cybersun bureaucracy, NT made a replica of cyber pen, in their corporate style.
-  components:
-  - type: Sprite
-    sprite: Objects/Misc/bureaucracy.rsi
-    state: pen_centcom
-  - type: Item
-    sprite: Objects/Misc/bureaucracy.rsi
-    heldPrefix: pen_centcom
-
-- type: entity
-  name: hop's fountain pen
-  parent: PenEmbeddable
-  id: PenHop
-  description: 'A luxurious fountain pen for the hop of the station.'
-  components:
-  - type: Sprite
-    sprite: Objects/Misc/bureaucracy.rsi
-    state: pen_hop
-
 - type: entity
   id: BoxFolderBase
   parent: BoxBase
diff --git a/Resources/Prototypes/Entities/Objects/Misc/pen.yml b/Resources/Prototypes/Entities/Objects/Misc/pen.yml
new file mode 100644 (file)
index 0000000..635df23
--- /dev/null
@@ -0,0 +1,106 @@
+- type: entity
+  name: pen
+  parent: BaseItem
+  id: Pen
+  description: A dark ink pen.
+  components:
+  - type: Sprite
+    sprite: Objects/Misc/pens.rsi
+    state: pen
+  - type: Item
+    sprite: Objects/Misc/pens.rsi
+    heldPrefix: pen
+    size: Tiny
+  - type: Tag
+    tags:
+    - Write
+    - Pen
+  - type: PhysicalComposition
+    materialComposition:
+      Steel: 25
+
+- type: entity
+  parent: Pen
+  id: PenEmbeddable
+  abstract: true
+  components:
+  - type: EmbeddableProjectile
+    offset: 0.3,0.0
+    removalTime: 0.0
+  - type: ThrowingAngle
+    angle: 315
+  - type: DamageOtherOnHit
+    damage:
+      types:
+        Piercing: 3
+
+#TODO: I want the luxury pen to write a cool font like Merriweather in the future.
+
+- type: entity
+  name: luxury pen
+  parent: Pen
+  id: LuxuryPen
+  description: A fancy and expensive pen that you only deserve to own if you're qualified to handle vast amounts of paperwork.
+  components:
+  - type: Sprite
+    state: luxury_pen
+  - type: Item
+    heldPrefix: luxury_pen
+
+- type: entity
+  name: Cybersun pen
+  parent: PenEmbeddable
+  id: CyberPen
+  description: A high-tech pen straight from Cybersun's legal department, capable of refracting hard-light at impossible angles through its diamond tip in order to write. So powerful, it's even able to rewrite officially stamped documents should the need arise.
+  components:
+  - type: Tag
+    tags:
+    - Write
+    - WriteIgnoreStamps
+    - Pickaxe
+    - Pen
+  - type: Sprite
+    state: overpriced_pen
+  - type: Item
+    heldPrefix: overpriced_pen
+  - type: MeleeWeapon
+    wideAnimationRotation: -45
+    damage:
+      types:
+        Piercing: 15
+    soundHit:
+      path: /Audio/Weapons/bladeslice.ogg
+  - type: Tool
+    qualities:
+      - Screwing
+    useSound:
+      collection: Screwdriver
+
+- type: entity
+  name: captain's fountain pen
+  parent: PenEmbeddable
+  id: PenCap
+  description: A luxurious fountain pen for the captain of the station.
+  components:
+  - type: Sprite
+    state: pen_cap
+
+- type: entity
+  name: CentCom pen
+  parent: CyberPen
+  id: PenCentcom
+  description: In an attempt to keep up with the "power" of the cybersun bureaucracy, NT made a replica of cyber pen, in their corporate style.
+  components:
+  - type: Sprite
+    state: pen_centcom
+  - type: Item
+    heldPrefix: pen_centcom
+
+- type: entity
+  name: hop's fountain pen
+  parent: PenEmbeddable
+  id: PenHop
+  description: A luxurious fountain pen for the hop of the station.
+  components:
+  - type: Sprite
+    state: pen_hop
index 91602db51ecd074bc04c13788a4bdf807f9fd03b..d62baa885d753246cdc45554fa2be29eda26f3b7 100644 (file)
@@ -1,7 +1,7 @@
 {
   "version": 1,
   "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/e1142f20f5e4661cb6845cfcf2dd69f864d67432. paper_stamp-syndicate by Veritius. paper_receipt, paper_receipt_horizontal by eoineoineoin. pen_centcom is a resprited version of pen_cap by PuroSlavKing (Github). Luxury pen is drawn by Ubaser.",
+  "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/e1142f20f5e4661cb6845cfcf2dd69f864d67432. paper_stamp-syndicate by Veritius. paper_receipt, paper_receipt_horizontal by eoineoineoin.",
   "size": {
     "x": 32,
     "y": 32
     {
       "name": "paper_dotmatrix_words"
     },
-    {
-      "name": "pen"
-    },
-    {
-      "name": "pen_cap"
-    },
-    {
-      "name": "pen_centcom"
-    },
-    {
-      "name": "pen_hop"
-    },
-    {
-      "name": "overpriced_pen"
-    },
-    {
-      "name": "luxury_pen"
-    },
-    {
-      "name": "pen_blue"
-    },
-    {
-      "name": "pen_red"
-    },
-    {
-      "name": "pen-inhand-left",
-      "directions": 4
-    },
-    {
-      "name": "pen-inhand-right",
-      "directions": 4
-    },
     {
       "name": "scrap"
     },
diff --git a/Resources/Textures/Objects/Misc/pens.rsi/meta.json b/Resources/Textures/Objects/Misc/pens.rsi/meta.json
new file mode 100644 (file)
index 0000000..738bc09
--- /dev/null
@@ -0,0 +1,59 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/e1142f20f5e4661cb6845cfcf2dd69f864d67432. pen_centcom is a resprited version of pen_cap by PuroSlavKing (Github). Luxury pen is drawn by Ubaser.",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "pen"
+    },
+    {
+      "name": "pen_cap"
+    },
+    {
+      "name": "pen_centcom"
+    },
+    {
+      "name": "pen_hop"
+    },
+    {
+      "name": "overpriced_pen"
+    },
+    {
+      "name": "luxury_pen"
+    },
+    {
+      "name": "pen_blue"
+    },
+    {
+      "name": "pen_red"
+    },
+    {
+      "name": "pen-inhand-left",
+      "directions": 4
+    },
+    {
+      "name": "pen-inhand-right",
+      "directions": 4
+    },
+    {
+      "name": "overpriced_pen-inhand-left",
+      "directions": 4
+    },
+    {
+      "name": "overpriced_pen-inhand-right",
+      "directions": 4
+    },
+    {
+      "name": "pen_centcom-inhand-left",
+      "directions": 4
+    },
+    {
+      "name": "pen_centcom-inhand-right",
+      "directions": 4
+    }
+  ]
+}
diff --git a/Resources/Textures/Objects/Misc/pens.rsi/overpriced_pen-inhand-left.png b/Resources/Textures/Objects/Misc/pens.rsi/overpriced_pen-inhand-left.png
new file mode 100644 (file)
index 0000000..55b4fe1
Binary files /dev/null and b/Resources/Textures/Objects/Misc/pens.rsi/overpriced_pen-inhand-left.png differ
diff --git a/Resources/Textures/Objects/Misc/pens.rsi/overpriced_pen-inhand-right.png b/Resources/Textures/Objects/Misc/pens.rsi/overpriced_pen-inhand-right.png
new file mode 100644 (file)
index 0000000..22fd23b
Binary files /dev/null and b/Resources/Textures/Objects/Misc/pens.rsi/overpriced_pen-inhand-right.png differ
diff --git a/Resources/Textures/Objects/Misc/pens.rsi/pen_centcom-inhand-left.png b/Resources/Textures/Objects/Misc/pens.rsi/pen_centcom-inhand-left.png
new file mode 100644 (file)
index 0000000..2fee506
Binary files /dev/null and b/Resources/Textures/Objects/Misc/pens.rsi/pen_centcom-inhand-left.png differ
diff --git a/Resources/Textures/Objects/Misc/pens.rsi/pen_centcom-inhand-right.png b/Resources/Textures/Objects/Misc/pens.rsi/pen_centcom-inhand-right.png
new file mode 100644 (file)
index 0000000..f9286a2
Binary files /dev/null and b/Resources/Textures/Objects/Misc/pens.rsi/pen_centcom-inhand-right.png differ