mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
Ore bags now automatically collect ores when you walk over them (#12313)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user