Ore bags now automatically collect ores when you walk over them (#12313)

This commit is contained in:
Alberyk
2021-08-21 17:51:38 +02:00
committed by GitHub
parent e9aba8b98b
commit bce1a0cf0b
2 changed files with 16 additions and 0 deletions
+10
View File
@@ -8,6 +8,16 @@
var/datum/geosample/geologic_data
var/material
/obj/item/ore/Crossed(AM as mob|obj)
..()
if(ishuman(AM))
var/mob/living/carbon/human/H = AM
var/obj/item/storage/bag/ore/S = locate() in H
if(S && (S == H.l_store || S == H.r_store || S == H.l_hand || S == H.r_hand))
if(S.collection_mode)
attackby(S, H)
return
/obj/item/ore/uranium
name = "pitchblende"
icon_state = "ore_uranium"