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(check_target(AM))
|
||||
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)
|
||||
weightcheck = TRUE
|
||||
else
|
||||
weightcheck = FALSE
|
||||
if (AM.w_class < max_w_class)
|
||||
weightcheck = TRUE
|
||||
else
|
||||
if (AM.w_class < max_w_class)
|
||||
weightcheck = TRUE
|
||||
else
|
||||
weightcheck = FALSE
|
||||
weightcheck = FALSE
|
||||
if((contents.len < max_items) && (weightcheck))
|
||||
AM.forceMove(src)
|
||||
if(mode == 0)
|
||||
|
||||
Reference in New Issue
Block a user