[MIRROR] Pest mob has_trait (#12499)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-03-09 00:49:35 +01:00
committed by GitHub
co-authored by Will Kashargul
parent fbe6038e58
commit de2184e6cc
24 changed files with 58 additions and 43 deletions
+3 -3
View File
@@ -133,8 +133,8 @@
if (WEST)
add_overlay(image(icon, src, "[icon_modifier]mcorneroverlay", pixel_y = 32))
/obj/structure/railing/handle_rotation_verbs(angle)
if(!can_touch(usr))
/obj/structure/railing/handle_rotation_verbs(angle, mob/user)
if(!can_touch(user))
return FALSE
. = ..()
if(.)
@@ -148,7 +148,7 @@
if(usr.incapacitated())
return 0
if (!can_touch(usr) || ismouse(usr))
if (!can_touch(usr) || HAS_TRAIT(usr, TRAIT_AMBIENT_PEST_MOB))
return
if(anchored)
@@ -271,7 +271,7 @@
name = "near finished "
name += "[secure ? "secure " : ""]windoor assembly[created_name ? " ([created_name])" : ""]"
/obj/structure/windoor_assembly/handle_rotation_verbs(angle)
/obj/structure/windoor_assembly/handle_rotation_verbs(angle, mob/user)
if(state != "01")
update_nearby_tiles(need_rebuild=1) //Compel updates before
. = ..()
+1 -1
View File
@@ -355,7 +355,7 @@
take_damage(damage)
return
/obj/structure/window/handle_rotation_verbs(angle)
/obj/structure/window/handle_rotation_verbs(angle, mob/user)
if(is_fulltile())
return FALSE
update_nearby_tiles(need_rebuild=1) //Compel updates before