diff --git a/code/modules/mining/ores_coins.dm b/code/modules/mining/ores_coins.dm index 8f50b608957..65336483486 100644 --- a/code/modules/mining/ores_coins.dm +++ b/code/modules/mining/ores_coins.dm @@ -40,6 +40,7 @@ points = 1 materials = list(MAT_GLASS=MINERAL_MATERIAL_AMOUNT) refined_type = /obj/item/stack/sheet/glass + w_class = 1 /obj/item/weapon/ore/glass/attack_self(mob/living/user) user << "You use the sand to make sandstone." @@ -60,6 +61,25 @@ qdel(src) return +/obj/item/weapon/ore/glass/throw_impact(atom/hit_atom) + if(..() || !ishuman(hit_atom)) + return + var/mob/living/carbon/human/C = hit_atom + if(C.head && C.head.flags_cover & HEADCOVERSEYES) + visible_message("[C]'s headgear blocks the sand!") + return + if(C.wear_mask && C.wear_mask.flags_cover & MASKCOVERSEYES) + visible_message("[C]'s mask blocks the sand!") + return + if(C.glasses && C.glasses.flags_cover & GLASSESCOVERSEYES) + visible_message("[C]'s glasses block the sand!") + return + C.adjust_blurriness(6) + C.adjustStaminaLoss(15)//the pain from your eyes burning does stamina damage + C.confused += 5 + C << "\The [src] gets into your eyes! The pain, it burns!" + qdel(src) + /obj/item/weapon/ore/glass/basalt name = "volcanic ash" icon_state = "volcanic_sand"