mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
[MIRROR] virtual pets (#26692)
Virtual pets Co-authored-by: Useroth <37159550+Useroth@users.noreply.github.com>
This commit is contained in:
@@ -89,9 +89,8 @@
|
||||
*/
|
||||
/datum/component/cleaner/proc/clean(datum/source, atom/target, mob/living/user, clean_target = TRUE)
|
||||
//make sure we don't attempt to clean something while it's already being cleaned
|
||||
if(HAS_TRAIT(target, TRAIT_CURRENTLY_CLEANING))
|
||||
if(HAS_TRAIT(target, TRAIT_CURRENTLY_CLEANING) || (SEND_SIGNAL(target, COMSIG_ATOM_PRE_CLEAN, user) & COMSIG_ATOM_CANCEL_CLEAN))
|
||||
return
|
||||
|
||||
//add the trait and overlay
|
||||
ADD_TRAIT(target, TRAIT_CURRENTLY_CLEANING, REF(src))
|
||||
// We need to update our planes on overlay changes
|
||||
|
||||
Reference in New Issue
Block a user