[MIRROR] Fixes blackbox artifact exploits (#2845)

* Fixes blackbox artifact exploits

* Update colossus.dm

* Update colossus.dm
This commit is contained in:
CitadelStationBot
2017-09-17 22:15:45 -05:00
committed by Poojawa
parent ceff086128
commit 55294bfb2a
@@ -258,7 +258,8 @@ Difficulty: Very Hard
/obj/machinery/smartfridge/black_box/accept_check(obj/item/O)
if(!istype(O))
return FALSE
if(is_type_in_typecache(O, blacklist))
if(blacklist[O])
visible_message("<span class='boldwarning'>[src] ripples as it rejects [O]. The device will not accept items that have been removed from it.</span>")
return FALSE
return TRUE
@@ -304,7 +305,8 @@ Difficulty: Very Hard
//in it's own proc to avoid issues with items that nolonger exist in the code base.
//try catch doesn't always prevent byond runtimes from halting a proc,
/obj/machinery/smartfridge/black_box/proc/create_item(item_type)
new item_type(src)
var/obj/O = new item_type(src)
blacklist[O] = TRUE
/obj/machinery/smartfridge/black_box/Destroy(force = FALSE)
if(force)
@@ -787,4 +789,4 @@ Difficulty: Very Hard
#undef ACTIVATE_WEAPON
#undef ACTIVATE_MAGIC
#undef MEDAL_PREFIX
#undef MEDAL_PREFIX