Merge pull request #6271 from Citadel-Station-13/upstream-merge-36521

[MIRROR] Burning ores (from either fire or lava) now yields materials at a decreased rate.
This commit is contained in:
deathride58
2018-04-04 21:02:05 +00:00
committed by GitHub
+10
View File
@@ -49,6 +49,16 @@
return TRUE
/obj/item/stack/ore/burn()
if(!refined_type)
return ..()
var/obj/item/stack/sheet/S = new refined_type(drop_location())
var/percent = rand(0.3,0.7)
var/amountrefined = round(amount*percent)
S.amount = amountrefined
S.update_icon()
qdel(src)
/obj/item/stack/ore/uranium
name = "uranium ore"
icon_state = "Uranium ore"