mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
* Defines damage flags. (#53158) * Defines damage flags. (Hopefully without 50+ commits) Co-authored-by: TemporalOroboros <TemporalOroboros@gmail.com>
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
/**
|
|
*This is smoke bomb, mezum koman. It is a grenade subtype. All craftmanship is of the highest quality.
|
|
*It menaces with spikes of iron. On it is a depiction of an assistant.
|
|
*The assistant is bleeding. The assistant has a painful expression. The assistant is dead.
|
|
*/
|
|
/obj/item/grenade/smokebomb
|
|
name = "smoke grenade"
|
|
desc = "Real bruh moment if you ever see this. Probably tell a c*der or something."
|
|
icon = 'icons/obj/grenade.dmi'
|
|
icon_state = "smokewhite"
|
|
inhand_icon_state = "smoke"
|
|
slot_flags = ITEM_SLOT_BELT
|
|
///It's extremely important to keep this list up to date. It helps to generate the insightful description of the smokebomb
|
|
var/static/list/bruh_moment = list("Dank", "Hip", "Lit", "Based", "Robust", "Bruh", "Nyagger")
|
|
|
|
///Here we generate the extremely insightful description.
|
|
/obj/item/grenade/smokebomb/Initialize()
|
|
. = ..()
|
|
desc = "The word '[pick(bruh_moment)]' is scribbled on it in crayon."
|
|
|
|
///Here we generate some smoke and also damage blobs??? for some reason. Honestly not sure why we do that.
|
|
/obj/item/grenade/smokebomb/prime(mob/living/lanced_by)
|
|
. = ..()
|
|
update_mob()
|
|
playsound(src, 'sound/effects/smoke.ogg', 50, TRUE, -3)
|
|
var/datum/effect_system/smoke_spread/bad/smoke = new
|
|
smoke.set_up(4, src)
|
|
smoke.start()
|
|
qdel(smoke) //And deleted again. Sad really.
|
|
for(var/obj/structure/blob/B in view(8,src))
|
|
var/damage = round(30/(get_dist(B,src)+1))
|
|
B.take_damage(damage, BURN, MELEE, 0)
|
|
qdel(src)
|