mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Fixed cyborgs not getting their names at round start
This commit is contained in:
@@ -195,7 +195,7 @@ Turf and target are separate in case you want to teleport some distance from a t
|
|||||||
var/safety = 0
|
var/safety = 0
|
||||||
|
|
||||||
while(loop && safety < 5)
|
while(loop && safety < 5)
|
||||||
if(C && C.prefs.custom_names[role] && !safety)
|
if(C && C.prefs.custom_names[role] && !safety && (!jobban_isbanned(src, "appearance")))
|
||||||
newname = C.prefs.custom_names[role]
|
newname = C.prefs.custom_names[role]
|
||||||
else
|
else
|
||||||
switch(role)
|
switch(role)
|
||||||
|
|||||||
@@ -170,8 +170,6 @@
|
|||||||
config_entry_value = -1
|
config_entry_value = -1
|
||||||
min_val = -1
|
min_val = -1
|
||||||
|
|
||||||
/datum/config_entry/flag/rename_cyborg
|
|
||||||
|
|
||||||
/datum/config_entry/flag/ooc_during_round
|
/datum/config_entry/flag/ooc_during_round
|
||||||
|
|
||||||
/datum/config_entry/flag/emojis
|
/datum/config_entry/flag/emojis
|
||||||
|
|||||||
@@ -434,12 +434,16 @@ SUBSYSTEM_DEF(job)
|
|||||||
to_chat(M, "<FONT color='blue'><B>As this station was initially staffed with a [CONFIG_GET(flag/jobs_have_minimal_access) ? "full crew, only your job's necessities" : "skeleton crew, additional access may"] have been added to your ID card.</B></font>")
|
to_chat(M, "<FONT color='blue'><B>As this station was initially staffed with a [CONFIG_GET(flag/jobs_have_minimal_access) ? "full crew, only your job's necessities" : "skeleton crew, additional access may"] have been added to your ID card.</B></font>")
|
||||||
|
|
||||||
if(job && H)
|
if(job && H)
|
||||||
|
<<<<<<< HEAD
|
||||||
if(job.dresscodecompliant)// CIT CHANGE - dress code compliance
|
if(job.dresscodecompliant)// CIT CHANGE - dress code compliance
|
||||||
equip_loadout(N, H) // CIT CHANGE - allows players to spawn with loadout items
|
equip_loadout(N, H) // CIT CHANGE - allows players to spawn with loadout items
|
||||||
job.after_spawn(H, M, joined_late)
|
job.after_spawn(H, M, joined_late)
|
||||||
equip_loadout(N, H, TRUE)//CIT CHANGE - makes players spawn with in-backpack loadout items properly. A little hacky but it works
|
equip_loadout(N, H, TRUE)//CIT CHANGE - makes players spawn with in-backpack loadout items properly. A little hacky but it works
|
||||||
|
|
||||||
//handle_roundstart_items(H, M.ckey, H.mind.assigned_role, H.mind.special_role) //CIT CHANGE - makes donators spawn with their items. This can safely be commented out when all of the donator items are migrated to the loadout system
|
//handle_roundstart_items(H, M.ckey, H.mind.assigned_role, H.mind.special_role) //CIT CHANGE - makes donators spawn with their items. This can safely be commented out when all of the donator items are migrated to the loadout system
|
||||||
|
=======
|
||||||
|
job.after_spawn(H, M, joined_late) // note: this happens before the mob has a key! M will always have a client, H might not.
|
||||||
|
>>>>>>> 501fd35... Fixed cyborgs not getting their names at round start (#38675)
|
||||||
|
|
||||||
return H
|
return H
|
||||||
|
|
||||||
|
|||||||
@@ -85,5 +85,4 @@ Cyborg
|
|||||||
return H.Robotize(FALSE, latejoin)
|
return H.Robotize(FALSE, latejoin)
|
||||||
|
|
||||||
/datum/job/cyborg/after_spawn(mob/living/silicon/robot/R, mob/M)
|
/datum/job/cyborg/after_spawn(mob/living/silicon/robot/R, mob/M)
|
||||||
if(CONFIG_GET(flag/rename_cyborg)) //name can't be set in robot/New without the client
|
R.rename_self("cyborg", M.client)
|
||||||
R.rename_self("cyborg", M.client)
|
|
||||||
|
|||||||
@@ -232,7 +232,8 @@
|
|||||||
if(custom_name)
|
if(custom_name)
|
||||||
changed_name = custom_name
|
changed_name = custom_name
|
||||||
if(changed_name == "" && client)
|
if(changed_name == "" && client)
|
||||||
changed_name = client.prefs.custom_names["cyborg"]
|
rename_self(src, client)
|
||||||
|
return //built in camera handled in proc
|
||||||
if(!changed_name)
|
if(!changed_name)
|
||||||
changed_name = get_standard_name()
|
changed_name = get_standard_name()
|
||||||
|
|
||||||
|
|||||||
@@ -381,8 +381,7 @@
|
|||||||
else if(transfer_after)
|
else if(transfer_after)
|
||||||
R.key = key
|
R.key = key
|
||||||
|
|
||||||
if (CONFIG_GET(flag/rename_cyborg))
|
R.rename_self("cyborg")
|
||||||
R.rename_self("cyborg")
|
|
||||||
|
|
||||||
if(R.mmi)
|
if(R.mmi)
|
||||||
R.mmi.name = "Man-Machine Interface: [real_name]"
|
R.mmi.name = "Man-Machine Interface: [real_name]"
|
||||||
|
|||||||
@@ -16,9 +16,6 @@ REVIVAL_BRAIN_LIFE -1
|
|||||||
|
|
||||||
## RENAMING ###
|
## RENAMING ###
|
||||||
|
|
||||||
## Uncomment to allow cyborgs to rename themselves at roundstart. Has no effect on roboticists renaming cyborgs the normal way.
|
|
||||||
#RENAME_CYBORG
|
|
||||||
|
|
||||||
## OOC DURING ROUND ###
|
## OOC DURING ROUND ###
|
||||||
## Comment this out if you want OOC to be automatically disabled during the round, it will be enabled during the lobby and after the round end results.
|
## Comment this out if you want OOC to be automatically disabled during the round, it will be enabled during the lobby and after the round end results.
|
||||||
OOC_DURING_ROUND
|
OOC_DURING_ROUND
|
||||||
|
|||||||
Reference in New Issue
Block a user