Files
Aurora.3/code/modules/psionics/abilities/psi_punch.dm
T
06601c9ec3 Split up and rename var/flags (#17794)
* Split up and rename `var/flags`

* Various fixes

* CL

* Don't rename Phoron Guard phoron preset

---------

Co-authored-by: Cody Brittain <cbrittain10@live.com>
2023-11-22 16:27:51 +00:00

32 lines
843 B
Plaintext

/singleton/psionic_power/punch
name = "Psi-Punch"
desc = "Imbue your fists with psionic power."
icon_state = "const_fist"
point_cost = 2
ability_flags = PSI_FLAG_ANTAG
spell_path = /obj/item/spell/punch
/obj/item/spell/punch
name = "psi-punch"
icon_state = "generic"
cast_methods = CAST_MELEE
aspect = ASPECT_PSIONIC
force = 20
armor_penetration = 20
cooldown = 0
psi_cost = 3
item_flags = 0
hitsound = 'sound/weapons/resonator_blast.ogg'
/obj/item/spell/punch/on_melee_cast(atom/hit_atom, mob/living/user, def_zone)
if(!isliving(hit_atom))
return
. = ..()
if(!.)
return
var/mob/living/M = hit_atom
if(prob(15))
M.throw_at(get_edge_target_turf(loc, loc.dir), 2, 7)
M.visible_message(SPAN_DANGER("[M] is floored by psychic energy!"), SPAN_DANGER("You are floored by psychic energy!"))
M.apply_effect(2, WEAKEN)