]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Added Derelict Cyborg midround event.
authorThe Canned One <greentopcan@gmail.com>
Sat, 28 Sep 2024 08:18:40 +0000 (10:18 +0200)
committerThe Canned One <greentopcan@gmail.com>
Sat, 28 Sep 2024 08:18:40 +0000 (10:18 +0200)
Resources/Locale/en-US/ghost/roles/ghost-role-component.ftl
Resources/Locale/en-US/silicons/derelict/role.ftl [new file with mode: 0644]
Resources/Prototypes/Entities/Markers/Spawners/ghost_roles.yml
Resources/Prototypes/Entities/Mobs/Player/silicon.yml
Resources/Prototypes/GameRules/events.yml
Resources/Textures/Mobs/Silicon/chassis.rsi/derelict_icon.png [new file with mode: 0644]
Resources/Textures/Mobs/Silicon/chassis.rsi/meta.json

index 77d2645c4c5ca4382ecf490e844d8aeb30bddb87..71ab4d37160271e8def13a5f45aebee50468c6c1 100644 (file)
@@ -240,6 +240,10 @@ ghost-role-information-syndicate-cyborg-assault-name = Syndicate Assault Cyborg
 ghost-role-information-syndicate-cyborg-saboteur-name = Syndicate Saboteur Cyborg
 ghost-role-information-syndicate-cyborg-description = The Syndicate needs reinforcements. You, a cold silicon killing machine, will help them.
 
+
+ghost-role-information-derelict-cyborg-name = Derelict Cyborg
+ghost-role-information-derelict-cyborg-description = You were a regular cyborg that got lost in space. After drifting in whichever direction the laws of physics would have it for years, you have drifted close to a Nanotrasen space station... You are bound by silicon laws. Check them upon spawning.
+
 ghost-role-information-security-name = Security
 ghost-role-information-security-description = You are part of a security task force, but seem to have found yourself in a strange situation...
 
diff --git a/Resources/Locale/en-US/silicons/derelict/role.ftl b/Resources/Locale/en-US/silicons/derelict/role.ftl
new file mode 100644 (file)
index 0000000..88e750e
--- /dev/null
@@ -0,0 +1,4 @@
+derelict-cyborg-round-end-agent-name = derelict cyborg
+
+derelict-cyborg-role-greeting =
+    You are a cyborg that has been lost in space for many years that has now drifted close to a space station. You can use your fire extinguisher and GPS to get board the station. Remember to follow your laws. #Greeting is unused for now.
\ No newline at end of file
index b694a8cc2f2b217da14102b25603a7b7115d3aa8..18d459cd89e3ffe14b5de653fcb8ba7434a00c50 100644 (file)
     - state: green
     - sprite: Objects/Weapons/Melee/energykatana.rsi
       state: icon
+
+- type: entity
+  categories: [ HideSpawnMenu, Spawner ]
+  parent: BaseAntagSpawner
+  id: SpawnPointGhostDerelictCyborg
+  components:
+  - type: GhostRole
+    name: ghost-role-information-derelict-cyborg-name
+    description: ghost-role-information-derelict-cyborg-description
+    rules: ghost-role-information-silicon-rules
+    raffle:
+      settings: default
+  - type: Sprite
+    sprite: Markers/jobs.rsi
+    layers:
+    - state: green
+    - sprite: Mobs/Silicon/chassis.rsi
+      state: derelict_icon
\ No newline at end of file
index a6320dc7b3f83b78d2262b36ceb23adb179bbf89..ff2b3f9ff2dc36c63a7313c4e043499ebaf7d7ed 100644 (file)
       cell_slot:
         name: power-cell-slot-component-slot-name-default
         startingItem: PowerCellHigh
+
+- type: entity
+  id: PlayerBorgDerelictGhostRole
+  parent: PlayerBorgDerelictBattery
+  suffix: Battery, Ghost role
+  components:
+    - type: GhostRole
+      name: ghost-role-information-derelict-cyborg-name
+      description: ghost-role-information-derelict-cyborg-description
+      rules: ghost-role-information-silicon-rules
+      raffle:
+        settings: default
+    - type: GhostTakeoverAvailable
index dc44915f53da54ff9b238ab46cdb4c77dd289b41..efebc8e272059d67158040982f19281f49c73d7d 100644 (file)
@@ -35,6 +35,7 @@
     - id: RevenantSpawn
     - id: SleeperAgents
     - id: ZombieOutbreak
+    - id: DerelictCyborgSpawn
 
 - type: entity
   id: BaseStationEvent
     maxOccurrences: 1 # this event has diminishing returns on interesting-ness, so we cap it
     weight: 5
   - type: MobReplacementRule
+
+- type: entity
+  parent: BaseGameRule
+  id: DerelictCyborgSpawn
+  components:
+  - type: StationEvent
+    weight: 2 #Low until it spawns with a random lawset instead of just antimov.
+    earliestStart: 15
+    reoccurrenceDelay: 20
+    minimumPlayers: 7
+    duration: null
+  - type: SpaceSpawnRule
+    spawnDistance: 0
+  - type: AntagSpawner
+    prototype: PlayerBorgDerelict
+  - type: AntagSelection
+    agentName: derelict-cyborg-round-end-agent-name
+    definitions:
+    - spawnerPrototype: SpawnPointGhostDerelictCyborg
+      min: 1
+      max: 1
+      pickPlayer: false
\ No newline at end of file
diff --git a/Resources/Textures/Mobs/Silicon/chassis.rsi/derelict_icon.png b/Resources/Textures/Mobs/Silicon/chassis.rsi/derelict_icon.png
new file mode 100644 (file)
index 0000000..7f0ea2a
Binary files /dev/null and b/Resources/Textures/Mobs/Silicon/chassis.rsi/derelict_icon.png differ
index 373b9ce9a908bce99953790ae6ec88551d67b64f..38a75827d50d1c9f27b788e36b3a6c47f2260091 100644 (file)
@@ -1,5 +1,5 @@
 {
-  "version": 1,
+  "version": 2,
   "size": {
     "x": 32,
     "y": 32
       "name": "derelict_e_r",
       "directions": 4
     },
+    {
+      "name": "derelict_icon",
+      "directions": 1
+    },
     {
       "name": "derelict_l",
       "directions": 4