mirror of
https://github.com/cybergirlvannie/OpenSS13.git
synced 2026-02-09 19:07:44 +00:00
Added canReach to Cryocells, as per #1939088.
This commit is contained in:
@@ -202,8 +202,11 @@ obj/machinery/cryo_cell
|
||||
attackby(obj/item/weapon/grab/G, mob/user)
|
||||
|
||||
if (stat & NOPOWER) return
|
||||
|
||||
if ((!( istype(G, /obj/item/weapon/grab) ) || !( ismob(G.affecting) )))
|
||||
return
|
||||
var/result = src.canReach(user, null, 1)
|
||||
if (result==0)
|
||||
user.client_mob() << "You can't reach [src]."
|
||||
return
|
||||
if (src.occupant)
|
||||
user.client_mob() << "\blue <B>The cell is already occupied!</B>"
|
||||
@@ -470,4 +473,4 @@ obj/machinery/cryo_cell
|
||||
allow_drop()
|
||||
return 0
|
||||
|
||||
*/
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user