mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 06:07:22 +01:00
[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:
co-authored by
Will
Kashargul
parent
fbe6038e58
commit
de2184e6cc
@@ -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
|
||||
. = ..()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user