]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
All pens embed (#39104)
authorMehnix <56132549+Mehnix@users.noreply.github.com>
Sat, 18 Oct 2025 21:27:45 +0000 (22:27 +0100)
committerGitHub <noreply@github.com>
Sat, 18 Oct 2025 21:27:45 +0000 (21:27 +0000)
* Embed for all

* Unify all thrown pen damage

Removes PenEmbeddable Abstract Entity as it is redundant. Those that parented to it now just parent to Pen.

* Fancy Pens deserve that damage bonus

Keeps an abstract entity for fancier pens to parent off of. Someone might do different fonts in the future, and them doing more damage is funny.

Resources/Prototypes/Entities/Objects/Misc/pen.yml
Resources/Prototypes/Entities/Objects/Weapons/Bombs/pen.yml

index a9329b67829235d1644f6af82a7ebbf21f1b934d..0eede77db740318863a8ee866e89f68e520082d3 100644 (file)
         maxDistance: 2
   - type: UseDelay
     delay: 1.5
-
-- type: entity
-  parent: Pen
-  id: PenEmbeddable
-  abstract: true
-  components:
   - type: EmbeddableProjectile
     offset: 0.3,0.0
     removalTime: 0.0
@@ -41,7 +35,7 @@
   - type: DamageOtherOnHit
     damage:
       types:
-        Piercing: 3
+        Piercing: 1
   - type: Fixtures
     fixtures:
       fix1:
         restitution: 0.3
         friction: 0.2
 
+- type: entity
+  parent: Pen
+  id: BasePenFancy
+  abstract: true
+  components:
+  - type: DamageOtherOnHit
+    damage:
+      types:
+        Piercing: 3 #nothing shows luxury like inflicting injury
+
 #TODO: I want the luxury pen to write a cool font like Merriweather in the future.
 
 - type: entity
   name: luxury pen
-  parent: Pen
+  parent: BasePenFancy
   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:
@@ -72,7 +76,7 @@
 
 - type: entity
   id: BaseAdvancedPen
-  parent: PenEmbeddable
+  parent: BasePenFancy
   abstract: true
   components:
   - type: Tag
 
 - type: entity
   name: captain's fountain pen
-  parent: PenEmbeddable
+  parent: BasePenFancy
   id: PenCap
   description: A luxurious fountain pen for the captain of the station.
   components:
 
 - type: entity
   name: hop's fountain pen
-  parent: PenEmbeddable
+  parent: BasePenFancy
   id: PenHop
   description: A luxurious fountain pen for the hop of the station.
   components:
 
 - type: entity
   name: wizard's magical pen
-  parent: [ PenEmbeddable, BaseMagicalContraband ]
+  parent: [ BasePenFancy, BaseMagicalContraband ]
   id: PenWiz
   description: A luxurious fountain pen. Seems to have a magical crystal eraser.
   components:
index 8de013afff280228a9a12aa496f4002db657b57d..86e79160bda9c5b108256d5399ade2189c5e1bf3 100644 (file)
@@ -1,7 +1,7 @@
 - type: entity
   name: pen
   suffix: Exploding
-  parent: PenEmbeddable
+  parent: Pen
   description: A dark ink pen.
   id: PenExploding
   components: