mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 03:56:47 +01:00
Pest mob has_trait (#19262)
* trait
* ignore this for now...
* text
* many mouse checks are just pest checks
* remove more manually done pronoun code
* Revert "remove more manually done pronoun code"
This reverts commit 3a6401f443.
* user should be passed
---------
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
. = ..()
|
||||
|
||||
@@ -349,7 +349,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