mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 07:35:31 +01:00
Convert species, organ_data, and rlimb_data to TG (#19277)
* First test batch bulk change * remove desync'd old file * Small change
This commit is contained in:
@@ -394,10 +394,11 @@
|
||||
var/from_slot = ""
|
||||
from_slot = "You'll hatch using your current appearance"
|
||||
if(reload_slot == "From Slot" && client)
|
||||
if(client.prefs.species == SPECIES_PROTEAN) // Exploit protection
|
||||
if(client.prefs.read_preference(/datum/preference/choiced/species) == SPECIES_PROTEAN) // Exploit protection
|
||||
to_chat(src,span_warning("You cannot copy nanoform prosthetic limbs from this species. Please try another character."))
|
||||
return
|
||||
var/slot_is_synth = ((O_BRAIN in client.prefs.organ_data) && client.prefs.organ_data[O_BRAIN])
|
||||
var/list/organ_data = client.prefs.read_preference(/datum/preference/organ_data)
|
||||
var/slot_is_synth = (organ_data && (O_BRAIN in organ_data) && organ_data[O_BRAIN])
|
||||
if(slot_is_synth && !isSynthetic()) // Prevents some pretty weird situations
|
||||
to_chat(src,span_warning("Cannot apply character appearance. [slot_is_synth ? "The slot's character is synthetic." : "The slot's character is organic."] Slot must match the current body's synthetic state. Please try another character."))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user