[s] Fixes ore redemption exploit (#40454)

* Fixes bluespace crystal memes

* Generalizes refined type check

* generalizes here as well

* Now now, no need to be lazy.

* removes duplicate istype check
This commit is contained in:
Poojawa
2018-09-27 15:03:59 +02:00
committed by AnturK
parent f606c52727
commit d4ace6200f
+10
View File
@@ -52,6 +52,9 @@
var/datum/component/material_container/mat_container = materials.mat_container
if (!mat_container)
return
if(O.refined_type == null)
return
ore_buffer -= O
@@ -179,6 +182,13 @@
if(user.transferItemToLoc(W, src))
inserted_disk = W
return TRUE
var/obj/item/stack/ore/O = W
if(istype(O))
if(O.refined_type == null)
to_chat(user, "<span class='notice'>[O] has already been refined!</span>")
return
return ..()
/obj/machinery/mineral/ore_redemption/multitool_act(mob/living/user, obj/item/multitool/I)