Attack Chain Migration: /obj/item/card (#27556)

* the work so far

* She returns on my TRUE till I ITEM_INTERACT_SUCCESS

* do this too (rip good commit name)

* Did you know? You can stamp ID cards!
This commit is contained in:
Qwertytoforty
2024-12-15 21:06:48 +00:00
committed by GitHub
parent 87b91b1685
commit 0caf77d272
16 changed files with 84 additions and 69 deletions
+4 -3
View File
@@ -89,18 +89,19 @@
/obj/item/megaphone/cmag_act(mob/user)
if(HAS_TRAIT(src, TRAIT_CMAGGED))
return
return FALSE
if(user)
to_chat(user, "<span class='warning'>You drip some yellow ooze into [src]'s voice synthesizer, gunking it up.</span>")
playsound(src, "sparks", 75, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
ADD_TRAIT(src, TRAIT_CMAGGED, CLOWN_EMAG)
return TRUE
/obj/item/megaphone/emag_act(mob/user)
if(emagged)
return
return FALSE
if(HAS_TRAIT(src, TRAIT_CMAGGED)) // one at a time
to_chat(user, "<span class='warning'>You go to short out [src], but it's covered in yellow ooze! You don't want to gunk up your emag!</span>")
return
return FALSE
to_chat(user, "<span class='danger'>You short out [src]'s dampener circuits.</span>")
emagged = TRUE
span = "reallybig userdanger" // really obvious, but also really loud