mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
-Redid icons to be more optimized at compile by setting icon = 'icons/folder/icon.dmi' instead of just icon = 'icon.dmi', meaning that Dream Maker doesn't have to search through every single file for every single .dmi. This shouldn't lead to any errors because of how I went about it, plus the fact that Dream Maker would have freaked out if I screwed something up. Also moved around 2 icons that weren't sorted well. r4146 compile time: 1 minute, 40 seconds r4147 compile time: 45 seconds [VGTG] git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4147 316c924e-a436-60f5-8080-3fe189b3f50e
33 lines
839 B
Plaintext
33 lines
839 B
Plaintext
/obj/item/weapon/grenade/mustardbomb
|
|
desc = "It is set to detonate in 4 seconds."
|
|
name = "mustard gas bomb"
|
|
icon = 'icons/obj/grenade.dmi'
|
|
icon_state = "flashbang"
|
|
det_time = 40.0
|
|
item_state = "flashbang"
|
|
var/datum/effect/effect/system/mustard_gas_spread/mustard_gas
|
|
|
|
New()
|
|
..()
|
|
src.mustard_gas = new /datum/effect/effect/system/mustard_gas_spread
|
|
src.mustard_gas.attach(src)
|
|
src.mustard_gas.set_up(5, 0, usr.loc)
|
|
|
|
prime()
|
|
playsound(src.loc, 'smoke.ogg', 50, 1, -3)
|
|
spawn(0)
|
|
src.mustard_gas.start()
|
|
sleep(10)
|
|
src.mustard_gas.start()
|
|
sleep(10)
|
|
src.mustard_gas.start()
|
|
sleep(10)
|
|
src.mustard_gas.start()
|
|
for(var/obj/effect/blob/B in view(8,src))
|
|
var/damage = round(30/(get_dist(B,src)+1))
|
|
B.health -= damage
|
|
B.update_icon()
|
|
sleep(100)
|
|
del(src)
|
|
return
|