mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
incompatible species for ghostroles, and character pref for black market dealer (#16430)
* incompatible species for ghostroles * Update code/modules/mob_spawn/mob_spawn.dm adds a space? Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> * Update code/modules/mob_spawn/mob_spawn.dm add a space. Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
This commit is contained in:
co-authored by
GoldenAlpharex
parent
00b4151cee
commit
62345b01c1
@@ -162,8 +162,10 @@
|
||||
to_chat(user, "Error, you are banned from playing ghost roles!")
|
||||
return
|
||||
if(restricted_species && !(user.client?.prefs?.read_preference(/datum/preference/choiced/species) in restricted_species))
|
||||
balloon_alert(user, "incorrect species!")
|
||||
return
|
||||
var/incorrect_species = tgui_alert(user, "Current species preference incompatible, proceed with random appearance?", "Incompatible Species", list("Yes", "No"))
|
||||
if(incorrect_species != "Yes")
|
||||
return
|
||||
|
||||
// SKYRAT EDIT END
|
||||
if(prompt_ghost)
|
||||
var/ghost_role = tgui_alert(usr, "Become [prompt_name]? (Warning, You can no longer be revived!)",, list("Yes", "No"))
|
||||
@@ -188,16 +190,20 @@
|
||||
/obj/effect/mob_spawn/ghost_role/special(mob/living/spawned_mob, mob/mob_possessor)
|
||||
. = ..()
|
||||
// SKYRAT EDIT ADDITION
|
||||
if(!random_appearance && mob_possessor && ishuman(spawned_mob) && mob_possessor.client)
|
||||
var/appearance_choice = tgui_alert(mob_possessor, "Use currently loaded character preferences?", "Appearance Type", list("Yes", "No"))
|
||||
if(appearance_choice == "Yes")
|
||||
var/mob/living/carbon/human/spawned_human = spawned_mob
|
||||
mob_possessor?.client?.prefs?.safe_transfer_prefs_to(spawned_human)
|
||||
spawned_human.dna.update_dna_identity()
|
||||
if(quirks_enabled)
|
||||
SSquirks.AssignQuirks(spawned_human, mob_possessor.client)
|
||||
if(loadout_enabled)
|
||||
spawned_human.equip_outfit_and_loadout(outfit, mob_possessor.client.prefs)
|
||||
//if we can load our own appearance and its not restricted, try
|
||||
if(!random_appearance && mob_possessor?.client && ishuman(spawned_mob))
|
||||
//if we have gotten to this point, they have already waived their species pref.-- they were told they need to use the specific species already
|
||||
if((restricted_species && (mob_possessor?.client?.prefs?.read_preference(/datum/preference/choiced/species) in restricted_species)) || !restricted_species)
|
||||
var/appearance_choice = tgui_alert(mob_possessor, "Use currently loaded character preferences?", "Appearance Type", list("Yes", "No"))
|
||||
if(appearance_choice == "Yes")
|
||||
var/mob/living/carbon/human/spawned_human = spawned_mob
|
||||
mob_possessor?.client?.prefs?.safe_transfer_prefs_to(spawned_human)
|
||||
spawned_human.dna.update_dna_identity()
|
||||
if(quirks_enabled)
|
||||
SSquirks.AssignQuirks(spawned_human, mob_possessor.client)
|
||||
if(loadout_enabled)
|
||||
spawned_human.equip_outfit_and_loadout(outfit, mob_possessor.client.prefs)
|
||||
|
||||
// SKYRAT EDIT END
|
||||
if(mob_possessor)
|
||||
spawned_mob.ckey = mob_possessor.ckey
|
||||
|
||||
Reference in New Issue
Block a user