Grabbers can now only contain things smaller than the assembly. (#35462)
* Grabbers can now only contain things smaller than the assembly * Good suggestion buggy * fucking github broke
This commit is contained in:
committed by
CitadelStationBot
parent
7f7bea7468
commit
7992256bcb
@@ -315,16 +315,10 @@
|
|||||||
if(mode == 1)
|
if(mode == 1)
|
||||||
if(check_target(AM))
|
if(check_target(AM))
|
||||||
var/weightcheck = FALSE
|
var/weightcheck = FALSE
|
||||||
if ((!istype(AM,/obj/item/device/electronic_assembly/)) && (!istype(AM,/obj/item/device/transfer_valve)))
|
if (AM.w_class < max_w_class)
|
||||||
if (AM.w_class <= max_w_class)
|
weightcheck = TRUE
|
||||||
weightcheck = TRUE
|
|
||||||
else
|
|
||||||
weightcheck = FALSE
|
|
||||||
else
|
else
|
||||||
if (AM.w_class < max_w_class)
|
weightcheck = FALSE
|
||||||
weightcheck = TRUE
|
|
||||||
else
|
|
||||||
weightcheck = FALSE
|
|
||||||
if((contents.len < max_items) && (weightcheck))
|
if((contents.len < max_items) && (weightcheck))
|
||||||
AM.forceMove(src)
|
AM.forceMove(src)
|
||||||
if(mode == 0)
|
if(mode == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user