mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-14 20:22:42 +00:00
161 lines
3.4 KiB
Plaintext
161 lines
3.4 KiB
Plaintext
/obj/item/ore
|
|
name = "small rock"
|
|
icon = 'icons/obj/mining.dmi'
|
|
icon_state = "ore2"
|
|
randpixel = 8
|
|
w_class = ITEMSIZE_SMALL
|
|
var/datum/geosample/geologic_data
|
|
var/material
|
|
|
|
/obj/item/ore/uranium
|
|
name = "pitchblende"
|
|
icon_state = "ore_uranium"
|
|
origin_tech = list(TECH_MATERIAL = 5)
|
|
material = "uranium"
|
|
|
|
/obj/item/ore/iron
|
|
name = "hematite"
|
|
icon_state = "ore_iron"
|
|
origin_tech = list(TECH_MATERIAL = 1)
|
|
material = "hematite"
|
|
|
|
/obj/item/ore/coal
|
|
name = "raw carbon"
|
|
icon_state = "ore_coal"
|
|
origin_tech = list(TECH_MATERIAL = 1)
|
|
material = "carbon"
|
|
|
|
/obj/item/ore/marble
|
|
name = "recrystallized carbonate"
|
|
icon_state = "ore_marble"
|
|
origin_tech = list(TECH_MATERIAL = 1)
|
|
material = "marble"
|
|
|
|
/obj/item/ore/glass
|
|
name = "sand"
|
|
icon_state = "ore_glass"
|
|
origin_tech = list(TECH_MATERIAL = 1)
|
|
material = "sand"
|
|
slot_flags = SLOT_HOLSTER
|
|
|
|
// POCKET SAND!
|
|
/obj/item/ore/glass/throw_impact(atom/hit_atom)
|
|
..()
|
|
var/mob/living/carbon/human/H = hit_atom
|
|
if(istype(H) && H.has_eyes() && prob(85))
|
|
to_chat(H, "<span class='danger'>Some of \the [src] gets in your eyes!</span>")
|
|
H.Blind(5)
|
|
H.eye_blurry += 10
|
|
spawn(1)
|
|
if(istype(loc, /turf/)) qdel(src)
|
|
|
|
|
|
/obj/item/ore/phoron
|
|
name = "phoron crystals"
|
|
icon_state = "ore_phoron"
|
|
origin_tech = list(TECH_MATERIAL = 2)
|
|
material = "phoron"
|
|
|
|
/obj/item/ore/silver
|
|
name = "native silver ore"
|
|
icon_state = "ore_silver"
|
|
origin_tech = list(TECH_MATERIAL = 3)
|
|
material = "silver"
|
|
|
|
/obj/item/ore/gold
|
|
name = "native gold ore"
|
|
icon_state = "ore_gold"
|
|
origin_tech = list(TECH_MATERIAL = 4)
|
|
material = "gold"
|
|
|
|
/obj/item/ore/diamond
|
|
name = "diamonds"
|
|
icon_state = "ore_diamond"
|
|
origin_tech = list(TECH_MATERIAL = 6)
|
|
material = "diamond"
|
|
|
|
/obj/item/ore/osmium
|
|
name = "raw platinum"
|
|
icon_state = "ore_platinum"
|
|
material = "platinum"
|
|
|
|
/obj/item/ore/hydrogen
|
|
name = "raw hydrogen"
|
|
icon_state = "ore_hydrogen"
|
|
material = "mhydrogen"
|
|
|
|
/obj/item/ore/verdantium
|
|
name = "verdantite dust"
|
|
icon_state = "ore_verdantium"
|
|
material = MAT_VERDANTIUM
|
|
origin_tech = list(TECH_MATERIAL = 7)
|
|
|
|
// POCKET ... Crystal dust.
|
|
/obj/item/ore/verdantium/throw_impact(atom/hit_atom)
|
|
..()
|
|
var/mob/living/carbon/human/H = hit_atom
|
|
if(istype(H) && H.has_eyes() && prob(85))
|
|
to_chat(H, "<span class='danger'>Some of \the [src] gets in your eyes!</span>")
|
|
H.Blind(10)
|
|
H.eye_blurry += 15
|
|
spawn(1)
|
|
if(istype(loc, /turf/)) qdel(src)
|
|
|
|
/obj/item/ore/lead
|
|
name = "lead glance"
|
|
icon_state = "ore_lead"
|
|
material = MAT_LEAD
|
|
origin_tech = list(TECH_MATERIAL = 3)
|
|
|
|
/obj/item/ore/copper
|
|
name = "raw copper"
|
|
icon_state = "ore_copper"
|
|
material = "copper"
|
|
|
|
/obj/item/ore/tin
|
|
name = "raw tin"
|
|
icon_state = "ore_tin"
|
|
material = "tin"
|
|
|
|
/obj/item/ore/bauxite
|
|
name = "raw bauxite"
|
|
icon_state = "ore_bauxite"
|
|
material = "bauxite"
|
|
|
|
/obj/item/ore/rutile
|
|
name = "raw rutile"
|
|
icon_state = "ore_rutile"
|
|
material = "rutile"
|
|
|
|
/obj/item/ore/magmellite
|
|
name = "impure magmellite"
|
|
icon_state = "ore_void_opal"
|
|
material = "magmellite"
|
|
|
|
/obj/item/ore/painite
|
|
name = "raw painite"
|
|
icon_state = "ore_painite"
|
|
material = "painite"
|
|
|
|
/obj/item/ore/quartz
|
|
name = "raw quartz"
|
|
icon_state = "ore_quartz"
|
|
material = "quartz"
|
|
|
|
/obj/item/ore/slag
|
|
name = "Slag"
|
|
desc = "Someone screwed up..."
|
|
icon_state = "slag"
|
|
material = null
|
|
|
|
/obj/item/ore/Initialize()
|
|
. = ..()
|
|
randpixel_xy()
|
|
|
|
/obj/item/ore/attackby(obj/item/W as obj, mob/user as mob)
|
|
if(istype(W,/obj/item/core_sampler))
|
|
var/obj/item/core_sampler/C = W
|
|
C.sample_item(src, user)
|
|
else
|
|
return ..()
|