[MIRROR] Machinery can now also be anchored on any /turf/open/indestructible, instead of only /turf/open/plating (#5915)
* Machines can now be anchored on /turf/open/indestructible (#36311) * Machinery can now also be anchored on any /turf/open/indestructible, instead of only /turf/open/plating
This commit is contained in:
committed by
Poojawa
parent
36abdd0686
commit
6d1d678b3a
@@ -359,7 +359,7 @@ Class Procs:
|
||||
return 0
|
||||
|
||||
/obj/proc/can_be_unfasten_wrench(mob/user, silent) //if we can unwrench this object; returns SUCCESSFUL_UNFASTEN and FAILED_UNFASTEN, which are both TRUE, or CANT_UNFASTEN, which isn't.
|
||||
if(!isfloorturf(loc) && !anchored)
|
||||
if(!(isfloorturf(loc) || istype(loc, /turf/open/indestructible)) && !anchored)
|
||||
to_chat(user, "<span class='warning'>[src] needs to be on the floor to be secured!</span>")
|
||||
return FAILED_UNFASTEN
|
||||
return SUCCESSFUL_UNFASTEN
|
||||
|
||||
Reference in New Issue
Block a user