mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Component safety (#11329)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a5d7de52ab
commit
e04f504437
@@ -92,7 +92,7 @@
|
||||
|
||||
/datum/component/shadekin/Initialize()
|
||||
//normal component bs
|
||||
if(!isliving(parent))
|
||||
if(!isliving(parent) || issilicon(parent))
|
||||
return COMPONENT_INCOMPATIBLE
|
||||
owner = parent
|
||||
if(ishuman(owner))
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
if(href_list[VV_HK_TAG])
|
||||
usr.client.tag_datum(target)
|
||||
if(href_list[VV_HK_ADDCOMPONENT])
|
||||
if(!check_rights(NONE))
|
||||
if(!check_rights(R_DEBUG))
|
||||
return
|
||||
var/list/names = list()
|
||||
var/list/componentsubtypes = sortList(subtypesof(/datum/component), GLOBAL_PROC_REF(cmp_typepaths_asc))
|
||||
@@ -95,7 +95,7 @@
|
||||
log_admin("[key_name(usr)] has added [result] [datumname] to [key_name(target)].")
|
||||
message_admins(span_notice("[key_name_admin(usr)] has added [result] [datumname] to [key_name_admin(target)]."))
|
||||
if(href_list[VV_HK_REMOVECOMPONENT] || href_list[VV_HK_MASS_REMOVECOMPONENT])
|
||||
if(!check_rights(NONE))
|
||||
if(!check_rights(R_DEBUG))
|
||||
return
|
||||
var/mass_remove = href_list[VV_HK_MASS_REMOVECOMPONENT]
|
||||
var/list/components = target._datum_components.Copy()
|
||||
|
||||
Reference in New Issue
Block a user