mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 21:23:20 +00:00
Replaced some magic numbers.
This commit is contained in:
@@ -23,9 +23,8 @@
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
if(species_restricted && istype(M,/mob/living/carbon/human))
|
if(species_restricted && istype(M,/mob/living/carbon/human))
|
||||||
|
|
||||||
var/wearable = null
|
|
||||||
var/exclusive = null
|
var/exclusive = null
|
||||||
|
var/wearable = null
|
||||||
var/mob/living/carbon/human/H = M
|
var/mob/living/carbon/human/H = M
|
||||||
|
|
||||||
if("exclude" in species_restricted)
|
if("exclude" in species_restricted)
|
||||||
@@ -39,10 +38,9 @@
|
|||||||
if(H.species.name in species_restricted)
|
if(H.species.name in species_restricted)
|
||||||
wearable = 1
|
wearable = 1
|
||||||
|
|
||||||
if(!wearable && (slot != 15 && slot != 16)) //Pockets.
|
if(!wearable && !(slot in list(slot_l_store, slot_r_store, slot_s_store)))
|
||||||
M << "\red Your species cannot wear [src]."
|
H << "<span class='danger'>Your species cannot wear [src].</span>"
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
/obj/item/clothing/proc/refit_for_species(var/target_species)
|
/obj/item/clothing/proc/refit_for_species(var/target_species)
|
||||||
|
|||||||
Reference in New Issue
Block a user