]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Reorganized Turret Prototypes (#37863)
authorSouthbridge <7013162+southbridge-fur@users.noreply.github.com>
Thu, 5 Jun 2025 23:24:02 +0000 (19:24 -0400)
committerGitHub <noreply@github.com>
Thu, 5 Jun 2025 23:24:02 +0000 (19:24 -0400)
* Reorganized turret prototypes

* Added circuit board to migrations

* Fixed frequencies

* Fixed typos and set the base control panel to abstract since it's technically not constructable yet

* Fixed the typo in the migrations

* Addressed changes

* Whitespace fixes

* Whitespace check fix

---------

Co-authored-by: chromiumboy <50505512+chromiumboy@users.noreply.github.com>
Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/turrets.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Turrets/turrets_energy.yml
Resources/Prototypes/Entities/Structures/Wallmounts/turret_controls.yml
Resources/migration.yml

index 5bbf2bb59646b3b3857fd7d7779819067530ec25..d9d8a848c38959da1a0f432434ac1bcb298df434 100644 (file)
@@ -1,6 +1,7 @@
 - type: entity
-  id: WeaponEnergyTurretStationMachineCircuitboard
+  abstract: true
   parent: BaseMachineCircuitboard
+  id: WeaponEnergyTurretStationMachineCircuitboardBase
   name: sentry turret machine board
   description: A machine printed circuit board for a sentry turret.
   components:
@@ -13,7 +14,7 @@
       TurretCompatibleWeapon:
         amount: 1
         defaultPrototype: WeaponLaserCannon
-        examineName: construction-insert-info-examine-name-laser-cannon 
+        examineName: construction-insert-info-examine-name-laser-cannon
       ProximitySensor:
         amount: 1
         defaultPrototype: ProximitySensor
       PowerCell:
         amount: 1
         defaultPrototype: PowerCellMedium
-        examineName: construction-insert-info-examine-name-power-cell 
-        
+        examineName: construction-insert-info-examine-name-power-cell
+
 - type: entity
+  parent: WeaponEnergyTurretStationMachineCircuitboardBase
   id: WeaponEnergyTurretAIMachineCircuitboard
-  parent: WeaponEnergyTurretStationMachineCircuitboard
-  name: AI sentry turret machine board
-  description: A machine printed circuit board for an AI sentry turret.
+  suffix: AI, Silicon
   components:
   - type: Sprite
     sprite: Objects/Misc/module.rsi
     state: command
   - type: MachineBoard
-    prototype: WeaponEnergyTurretAI
\ No newline at end of file
+    prototype: WeaponEnergyTurretAI
+
+- type: entity
+  parent: WeaponEnergyTurretStationMachineCircuitboardBase
+  id: WeaponEnergyTurretSecurityMachineCircuitboard
+  suffix: Security
+  components:
+  - type: Sprite
+    sprite: Objects/Misc/module.rsi
+    state: security
+  - type: MachineBoard
+    prototype: WeaponEnergyTurretSecurity
+
index a8b3c9a88ccde0a11c0d5f518420ff9e14ee29cb..077d5dc5fd00a97afe919547cd5b3e3515fa5c52 100644 (file)
@@ -1,7 +1,8 @@
 - type: entity
+  abstract: true
   parent: [BaseWeaponEnergyTurret, ConstructibleMachine]
-  id: WeaponEnergyTurretStation
-  name: security turret
+  id: WeaponEnergyTurretStationBase
+  name: sentry turret
   description: A high-tech autonomous weapons system designed to keep unauthorized personnel out of sensitive areas.
   components:
   - type: Fixtures
@@ -72,8 +73,6 @@
   - type: NpcFactionMember
     factions:
     - AllHostile
-  - type: AccessReader
-    access: [["Security"]]
   - type: ProjectileBatteryAmmoProvider
     proto: BulletEnergyTurretDisabler
     fireCost: 100
       fireCost: 100
     - proto: BulletEnergyTurretLaser
       fireCost: 100
-  - type: TurretTargetSettings
-    exemptAccessLevels:
-    - Security
-    - Borg
-    - BasicSilicon
   - type: DeployableTurret
     retractedDamageModifierSetId: Metallic
     deployedDamageModifierSetId: FlimsyMetallic
     locked: true
     unlockOnClick: false
   - type: LockedWiresPanel
-  - type: Machine
-    board: WeaponEnergyTurretStationMachineCircuitboard
   - type: UseDelay
     delay: 1.2
 
 - type: entity
-  parent: WeaponEnergyTurretStation
+  parent: WeaponEnergyTurretStationBase
   id: WeaponEnergyTurretAI
-  name: AI sentry turret
-  description: A high-tech autonomous weapons system under the direct control of a local artifical intelligence.
+  suffix: AI, Silicon
   components:
   - type: AccessReader
     access: [["StationAi"], ["ResearchDirector"]]
     receiveFrequencyId: TurretControlAI
     transmitFrequencyId: TurretAI
 
+- type: entity
+  parent: WeaponEnergyTurretStationBase
+  id: WeaponEnergyTurretSecurity
+  suffix: Security
+  components:
+  - type: AccessReader
+    access: [["StationAi"], ["Security"]]
+  - type: TurretTargetSettings
+    exemptAccessLevels:
+    - Security
+    - Borg
+    - BasicSilicon
+  - type: Machine
+    board: WeaponEnergyTurretSecurityMachineCircuitboard
+  - type: DeviceNetwork
+    receiveFrequencyId: TurretControl
+    transmitFrequencyId: Turret
+
+- type: entity
+  parent: WeaponEnergyTurretStationBase
+  id: WeaponEnergyTurretCommand
+  suffix: Command
+  components:
+  - type: AccessReader
+    access: [["StationAi"], ["Command"]]
+  - type: TurretTargetSettings
+    exemptAccessLevels:
+    - Command
+    - Borg
+    - BasicSilicon
+  - type: Machine
+    board: WeaponEnergyTurretSecurityMachineCircuitboard
+  - type: DeviceNetwork
+    receiveFrequencyId: TurretControl
+    transmitFrequencyId: Turret
index 95a3e74b1fd2e1e9c8969435b2ff06c2f3844af8..e65530509b55559145a42e572597f7f810ce96e9 100644 (file)
     - Wallmount
 
 - type: entity
+  abstract: true
   parent: WeaponEnergyTurretControlPanelFrame
-  id: WeaponEnergyTurretStationControlPanel
-  name: security turret control panel
-  description: A wall-mounted interface for remotely configuring the operational parameters of linked security turrets.
+  id: WeaponEnergyTurretStationControlPanelBase
+  name: sentry turret control panel
+  description: A wall-mounted interface for remotely configuring the operational parameters of linked sentry turrets.
   components:
   - type: Appearance
   - type: Sprite
           0: { state: stun }
           1: { state: lethal }
   - type: StationAiWhitelist
-  - type: AccessReader
-    access: [["Security"]]
-  - type: TurretTargetSettings
-    exemptAccessLevels:
-    - Security
-    - Borg
-    - BasicSilicon
   - type: DeployableTurretController
     accessGroups:
     - Cargo
   #  node: finish
 
 - type: entity
-  parent: WeaponEnergyTurretStationControlPanel
+  parent: WeaponEnergyTurretStationControlPanelBase
   id: WeaponEnergyTurretAIControlPanel
-  name: AI sentry turret control panel
-  description: A wall-mounted interface that allows a local artifical intelligence to adjust the operational parameters of linked sentry turrets.
+  suffix: AI, Silicon
   components:
   - type: AccessReader
     access: [["StationAi"], ["ResearchDirector"]]
     accessLevels:
     - BasicSilicon
     - Borg
+
+- type: entity
+  parent: WeaponEnergyTurretStationControlPanelBase
+  id: WeaponEnergyTurretSecurityControlPanel
+  suffix: Security
+  components:
+  - type: AccessReader
+    access: [["StationAi"], ["Security"]]
+  #- type: ContainerFill - Will be added in a later PR
+  #  containers:
+  #    board:
+  #    - WeaponEnergyTurretSecurityControlPanelElectronics
+  - type: TurretTargetSettings
+    exemptAccessLevels:
+    - Security
+    - BasicSilicon
+    - Borg
+
+- type: entity
+  parent: WeaponEnergyTurretStationControlPanelBase
+  id: WeaponEnergyTurretCommandControlPanel
+  suffix: Command
+  components:
+  - type: AccessReader
+    access: [["StationAi"], ["Command"]]
+  #- type: ContainerFill - Will be added in a later PR
+  #  containers:
+  #    board:
+  #    - WeaponEnergyTurretCommandControlPanelElectronics
+  - type: TurretTargetSettings
+    exemptAccessLevels:
+    - Command
+    - BasicSilicon
+    - Borg
index 73f52a34231bd32d2b757150a3360d2b5553b7d4..d560bf8d6b596acb7190ac949a24248f5c058518 100644 (file)
@@ -642,6 +642,11 @@ ClothingNeckCloakMiner: null
 MatterBinStockPart: MicroManipulatorStockPart
 CapacitorStockPart: MicroManipulatorStockPart
 
+# 2025-05-26 Turrets
+WeaponEnergyTurretStation: WeaponEnergyTurretSecurity
+WeaponEnergyTurretStationControlPanel: WeaponEnergyTurretSecurityControlPanel
+WeaponEnergyTurretStationMachineCircuitboard: WeaponEnergyTurretSecurityMachineCircuitboard
+
 # 2025-05-30
 SpawnHonkBot: SpawnMobHonkBot