mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Begins converting Ninjas into the new antagonist datum system. Does not compile. Work in progress. * More work towards datumizing ninjas. Still not finished. Now compiles. * Adds ninja to traitor panel. * Add objectives now takes an arg for number of objectives. * Event now actually ninjas the ninja. * Ninja suit initialization now works. * Cleans up the suit initialization code some. * Suit initialization is now action rather than verb based. * Now properly adds objectives and memories to the mind upon gaining datum. * Starts to replace ninja verbs with actions. * Hooks ninja abilities up to action buttons. * Whoops, missed a verb. Gloves are next. * Adds toggle ineraction type action button. * Changes icons as per ChanglingRain's suggestions. * Second round of changes for ChanglingRain * Replaces sleeps with addtimers. It's ugly, but more CPU efficient. * Fixes compile errors. * Fixes compile error, again.
15 lines
420 B
Plaintext
15 lines
420 B
Plaintext
|
|
|
|
//Smoke bomb
|
|
/obj/item/clothing/suit/space/space_ninja/proc/ninjasmoke()
|
|
|
|
if(!ninjacost(0,N_SMOKE_BOMB))
|
|
var/mob/living/carbon/human/H = affecting
|
|
var/datum/effect_system/smoke_spread/bad/smoke = new
|
|
smoke.set_up(4, H.loc)
|
|
smoke.start()
|
|
playsound(H.loc, 'sound/effects/bamf.ogg', 50, 2)
|
|
s_bombs--
|
|
to_chat(H, "<span class='notice'>There are <B>[s_bombs]</B> smoke bombs remaining.</span>")
|
|
s_coold = 1
|