mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-28 02:52:28 +00:00
18 lines
412 B
Plaintext
18 lines
412 B
Plaintext
var/global/datum/repository/ammomaterial/ammo_repository = new()
|
|
|
|
/datum/repository/ammomaterial
|
|
var/list/ammotypes
|
|
|
|
/datum/repository/ammomaterial/New()
|
|
ammotypes = list()
|
|
..()
|
|
|
|
/datum/repository/ammomaterial/proc/get_materials_from_object(obj/item/ammo_casing/I)
|
|
|
|
if(!(I in ammotypes))
|
|
ammotypes += I
|
|
var/obj/item/ammo_casing/temp = new I
|
|
ammotypes[I] = temp.matter
|
|
qdel(temp)
|
|
|
|
return ammotypes[I] |