Gives maint drones random designations (#78573)

## About The Pull Request
Right now, drone ghost spawners give all drones the name "drone." This
makes it difficult to differentiate drones, both as a drone in drone
chat and as a non-drone. This gives all drones a unique identifier like
posibrains.

Also changes a couple of 1s to TRUEs

## Why It's Good For The Game
It's good to be able to identify drones, and for drones to be able to
identify each other.

## Changelog
🆑 Tattle
qol: drones now have individual names, instead of just "drone"
/🆑

Co-authored-by: tattle <article.disaster@gmail.com>
This commit is contained in:
tattle
2023-09-26 19:24:09 -07:00
committed by GitHub
parent 365c0ea2f4
commit d436cf433d
4 changed files with 10 additions and 3 deletions
@@ -32,7 +32,7 @@
lighting_cutoff_red = 30
lighting_cutoff_green = 15
lighting_cutoff_blue = 50
unique_name = 1
unique_name = TRUE
gold_core_spawnable = NO_SPAWN
death_sound = 'sound/voice/hiss6.ogg'
death_message = "lets out a waning guttural screech, green blood bubbling from its maw..."
@@ -91,7 +91,7 @@
projectiletype = /obj/projectile/neurotoxin/damaging
projectilesound = 'sound/weapons/pierce.ogg'
status_flags = 0
unique_name = 0
unique_name = FALSE
var/sterile = 1
var/plants_off = 0
var/egg_cooldown = 30
@@ -28,7 +28,7 @@
maxbodytemp = INFINITY
faction = list(FACTION_CULT)
pressure_resistance = 100
unique_name = 1
unique_name = TRUE
AIStatus = AI_OFF //normal constructs don't have AI
loot = list(/obj/item/ectoplasm)
del_on_death = TRUE
@@ -0,0 +1,6 @@
/obj/effect/mob_spawn/ghost_role/drone/name_mob(mob/living/spawned_mob, forced_name)
if(!forced_name)
var/designation = pick(GLOB.posibrain_names)
forced_name = "Drone ([designation]-[rand(100, 999)])"
return ..()
+1
View File
@@ -4728,6 +4728,7 @@
#include "code\modules\mob_spawn\corpses\nonhuman_corpses.dm"
#include "code\modules\mob_spawn\corpses\species_corpses.dm"
#include "code\modules\mob_spawn\ghost_roles\away_roles.dm"
#include "code\modules\mob_spawn\ghost_roles\drone_roles.dm"
#include "code\modules\mob_spawn\ghost_roles\fugitive_hunter_roles.dm"
#include "code\modules\mob_spawn\ghost_roles\golem_roles.dm"
#include "code\modules\mob_spawn\ghost_roles\mining_roles.dm"