mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Merge branch 'master' of https://github.com/Baystation12/Baystation12
This commit is contained in:
@@ -4,9 +4,11 @@ proc/random_hair_style(gender, species = "Human")
|
|||||||
var/list/valid_hairstyles = list()
|
var/list/valid_hairstyles = list()
|
||||||
for(var/hairstyle in hair_styles_list)
|
for(var/hairstyle in hair_styles_list)
|
||||||
var/datum/sprite_accessory/S = hair_styles_list[hairstyle]
|
var/datum/sprite_accessory/S = hair_styles_list[hairstyle]
|
||||||
if(gender != S.gender && S.gender != NEUTER)
|
if(gender == MALE && S.gender == FEMALE)
|
||||||
continue
|
continue
|
||||||
if(!(species in S.species_allowed))
|
if(gender == FEMALE && S.gender == MALE)
|
||||||
|
continue
|
||||||
|
if( !(species in S.species_allowed))
|
||||||
continue
|
continue
|
||||||
valid_hairstyles[hairstyle] = hair_styles_list[hairstyle]
|
valid_hairstyles[hairstyle] = hair_styles_list[hairstyle]
|
||||||
|
|
||||||
@@ -21,9 +23,11 @@ proc/random_facial_hair_style(gender, species = "Human")
|
|||||||
var/list/valid_facialhairstyles = list()
|
var/list/valid_facialhairstyles = list()
|
||||||
for(var/facialhairstyle in facial_hair_styles_list)
|
for(var/facialhairstyle in facial_hair_styles_list)
|
||||||
var/datum/sprite_accessory/S = facial_hair_styles_list[facialhairstyle]
|
var/datum/sprite_accessory/S = facial_hair_styles_list[facialhairstyle]
|
||||||
if(gender != S.gender && S.gender != NEUTER)
|
if(gender == MALE && S.gender == FEMALE)
|
||||||
continue
|
continue
|
||||||
if(!(species in S.species_allowed))
|
if(gender == FEMALE && S.gender == MALE)
|
||||||
|
continue
|
||||||
|
if( !(species in S.species_allowed))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
valid_facialhairstyles[facialhairstyle] = facial_hair_styles_list[facialhairstyle]
|
valid_facialhairstyles[facialhairstyle] = facial_hair_styles_list[facialhairstyle]
|
||||||
|
|||||||
@@ -350,20 +350,11 @@ Turf and target are seperate in case you want to teleport some distance from a t
|
|||||||
//When an AI is activated, it can choose from a list of non-slaved borgs to have as a slave.
|
//When an AI is activated, it can choose from a list of non-slaved borgs to have as a slave.
|
||||||
/proc/freeborg()
|
/proc/freeborg()
|
||||||
var/select = null
|
var/select = null
|
||||||
var/list/names = list()
|
|
||||||
var/list/borgs = list()
|
var/list/borgs = list()
|
||||||
var/list/namecounts = list()
|
|
||||||
for (var/mob/living/silicon/robot/A in player_list)
|
for (var/mob/living/silicon/robot/A in player_list)
|
||||||
var/name = A.real_name
|
if (A.stat == 2 || A.connected_ai || A.scrambledcodes)
|
||||||
if (A.stat == 2)
|
|
||||||
continue
|
continue
|
||||||
if (A.connected_ai)
|
var/name = "[A.real_name] ([A.modtype] [A.braintype])"
|
||||||
continue
|
|
||||||
else
|
|
||||||
if(A.module)
|
|
||||||
name += " ([A.module.name])"
|
|
||||||
names.Add(name)
|
|
||||||
namecounts[name] = 1
|
|
||||||
borgs[name] = A
|
borgs[name] = A
|
||||||
|
|
||||||
if (borgs.len)
|
if (borgs.len)
|
||||||
|
|||||||
@@ -80,12 +80,16 @@
|
|||||||
if(normaldoorcontrol)
|
if(normaldoorcontrol)
|
||||||
for(var/obj/machinery/door/airlock/D in range(range))
|
for(var/obj/machinery/door/airlock/D in range(range))
|
||||||
if(D.id_tag == src.id)
|
if(D.id_tag == src.id)
|
||||||
|
if(specialfunctions & OPEN)
|
||||||
|
if (D.density)
|
||||||
|
spawn(0)
|
||||||
|
D.open()
|
||||||
|
return
|
||||||
|
else
|
||||||
|
spawn(0)
|
||||||
|
D.close()
|
||||||
|
return
|
||||||
if(desiredstate == 1)
|
if(desiredstate == 1)
|
||||||
if(specialfunctions & OPEN)
|
|
||||||
if (D.density)
|
|
||||||
spawn( 0 )
|
|
||||||
D.open()
|
|
||||||
return
|
|
||||||
if(specialfunctions & IDSCAN)
|
if(specialfunctions & IDSCAN)
|
||||||
D.aiDisabledIdScanner = 1
|
D.aiDisabledIdScanner = 1
|
||||||
if(specialfunctions & BOLTS)
|
if(specialfunctions & BOLTS)
|
||||||
@@ -95,13 +99,7 @@
|
|||||||
D.secondsElectrified = -1
|
D.secondsElectrified = -1
|
||||||
if(specialfunctions & SAFE)
|
if(specialfunctions & SAFE)
|
||||||
D.safe = 0
|
D.safe = 0
|
||||||
|
|
||||||
else
|
else
|
||||||
if(specialfunctions & OPEN)
|
|
||||||
if (!D.density)
|
|
||||||
spawn( 0 )
|
|
||||||
D.close()
|
|
||||||
return
|
|
||||||
if(specialfunctions & IDSCAN)
|
if(specialfunctions & IDSCAN)
|
||||||
D.aiDisabledIdScanner = 0
|
D.aiDisabledIdScanner = 0
|
||||||
if(specialfunctions & BOLTS)
|
if(specialfunctions & BOLTS)
|
||||||
@@ -186,4 +184,4 @@
|
|||||||
icon_state = "launcherbtt"
|
icon_state = "launcherbtt"
|
||||||
active = 0
|
active = 0
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -822,7 +822,9 @@ datum/preferences
|
|||||||
var/list/valid_hairstyles = list()
|
var/list/valid_hairstyles = list()
|
||||||
for(var/hairstyle in hair_styles_list)
|
for(var/hairstyle in hair_styles_list)
|
||||||
var/datum/sprite_accessory/S = hair_styles_list[hairstyle]
|
var/datum/sprite_accessory/S = hair_styles_list[hairstyle]
|
||||||
if(gender != S.gender && S.gender != NEUTER)
|
if(gender == MALE && S.gender == FEMALE)
|
||||||
|
continue
|
||||||
|
if(gender == FEMALE && S.gender == MALE)
|
||||||
continue
|
continue
|
||||||
if( !(species in S.species_allowed))
|
if( !(species in S.species_allowed))
|
||||||
continue
|
continue
|
||||||
@@ -838,7 +840,9 @@ datum/preferences
|
|||||||
var/list/valid_facialhairstyles = list()
|
var/list/valid_facialhairstyles = list()
|
||||||
for(var/facialhairstyle in facial_hair_styles_list)
|
for(var/facialhairstyle in facial_hair_styles_list)
|
||||||
var/datum/sprite_accessory/S = facial_hair_styles_list[facialhairstyle]
|
var/datum/sprite_accessory/S = facial_hair_styles_list[facialhairstyle]
|
||||||
if(gender != S.gender && S.gender != NEUTER)
|
if(gender == MALE && S.gender == FEMALE)
|
||||||
|
continue
|
||||||
|
if(gender == FEMALE && S.gender == MALE)
|
||||||
continue
|
continue
|
||||||
if( !(species in S.species_allowed))
|
if( !(species in S.species_allowed))
|
||||||
continue
|
continue
|
||||||
@@ -921,7 +925,9 @@ datum/preferences
|
|||||||
var/list/valid_facialhairstyles = list()
|
var/list/valid_facialhairstyles = list()
|
||||||
for(var/facialhairstyle in facial_hair_styles_list)
|
for(var/facialhairstyle in facial_hair_styles_list)
|
||||||
var/datum/sprite_accessory/S = facial_hair_styles_list[facialhairstyle]
|
var/datum/sprite_accessory/S = facial_hair_styles_list[facialhairstyle]
|
||||||
if(gender != S.gender && S.gender != NEUTER)
|
if(gender == MALE && S.gender == FEMALE)
|
||||||
|
continue
|
||||||
|
if(gender == FEMALE && S.gender == MALE)
|
||||||
continue
|
continue
|
||||||
if( !(species in S.species_allowed))
|
if( !(species in S.species_allowed))
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user