Burning ores (from either fire or lava) now yields materials at a decreased rate. (#36521)
* Burning ores (from either fire or lava) now yields materials at a decreased rate. * Randomizes the returns!
This commit is contained in:
committed by
CitadelStationBot
parent
5dddb2db45
commit
fc9b02cbbb
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user