Merge pull request #33820 from tgstation/Cyberboss-patch-4

Material containers only insert on help intent
This commit is contained in:
Leo
2017-12-26 13:24:22 -02:00
committed by CitadelStationBot
parent ab1965b3a2
commit 2da318a9a5

View File

@@ -51,7 +51,7 @@
/datum/component/material_container/proc/OnAttackBy(obj/item/I, mob/living/user)
var/list/tc = allowed_typecache
if(user.a_intent == INTENT_HARM)
if(user.a_intent != INTENT_HELP)
return
if((I.flags_2 & (HOLOGRAM_2 | NO_MAT_REDEMPTION_2)) || (tc && !is_type_in_typecache(I, tc)))
to_chat(user, "<span class='warning'>[parent] won't accept [I]!</span>")