WIP New Smites

Pie and spice
This commit is contained in:
Razgriz
2022-09-26 17:16:36 -07:00
parent 16cdb0dd2f
commit 8b2a71586a
2 changed files with 18 additions and 1 deletions
+16 -1
View File
@@ -8,7 +8,7 @@
if(!istype(target))
return
var/list/smite_types = list(SMITE_BREAKLEGS,SMITE_BLUESPACEARTILLERY,SMITE_SPONTANEOUSCOMBUSTION,SMITE_LIGHTNINGBOLT)
var/list/smite_types = list(SMITE_PIE, SMITE_SPICE, SMITE_BREAKLEGS,SMITE_BLUESPACEARTILLERY,SMITE_SPONTANEOUSCOMBUSTION,SMITE_LIGHTNINGBOLT) //CHOMP Add pie and spicy air
var/smite_choice = tgui_input_list(usr, "Select the type of SMITE for [target]","SMITE Type Choice", smite_types)
if(!smite_choice)
@@ -40,6 +40,21 @@
target.electrocute_act(75,def_zone = BP_HEAD)
target.visible_message("<span class='danger'>[target] is struck by lightning!</span>")
if(SMITE_PIE) //CHOMP Add
var/obj/effect/decal/cleanable/pie_smudge = new(get_turf(target))
//WIP something needs to go here in order to actually spawn the smudge at the target. I need help.
playsound(target, 'sound/effects/slime_squish.ogg', 100, 1, get_rand_frequency(), falloff = 5)
target.Weaken(1)
target.visible_message("<span class='danger'>[target] is struck by pie!</span>")
if(SMITE_SPICE) //CHOMP Add
to_chat(target, "<span class='warning'>Spice spice baby!</span>")
target.eye_blurry = max(target.eye_blurry, 25)
target.Blind(10)
target.Stun(5)
target.Weaken(5)
playsound(target, 'sound/effects/spray2.ogg', 100, 1, get_rand_frequency(), falloff = 5)
else
return //Injection? Don't print any messages.