Files
Paradise/code/datums/spells/sentient_sword_lunge.dm
T
ad768f9ef5 Reworks sentient swords (#20585)
* initial changes

* fixes attack animations

* we lunging out here

* lunge sprite by ATP engineer

* rare oldcoder w

* more stuff

* polished

* removes testing stuff

* no longer works on backpack slot

* moving damage values around

* shawn reviews + cheese reduction

* Update code/game/objects/items/weapons/holy_weapons.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/game/objects/items/weapons/holy_weapons.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/game/objects/items/weapons/holy_weapons.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* reviews

* re-upload

* Update code/datums/spells/sentient_sword_lunge.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* Update code/game/objects/items/weapons/holy_weapons.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* merge conflict fix and readds debug spawn

* Update code/game/objects/items/weapons/holy_weapons.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* deconflict

* ryan's reviews

* improvements

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
2023-06-12 19:39:43 -05:00

23 lines
862 B
Plaintext

/obj/effect/proc_holder/spell/sentient_sword_lunge
name = "Lunge"
desc = "Lunge at something in your view range."
clothes_req = FALSE
base_cooldown = 15 SECONDS
invocation = "EN GARDE!"
invocation_type = "shout"
sound = 'sound/magic/repulse.ogg'
action_icon_state = "lunge"
/obj/effect/proc_holder/spell/sentient_sword_lunge/create_new_targeting()
return new /datum/spell_targeting/clicked_atom
/obj/effect/proc_holder/spell/sentient_sword_lunge/cast(list/targets, mob/user = usr)
if(!istype(user.loc, /obj/item/nullrod/scythe/talking))
to_chat(user, "<span class='warning'>You cannot use this ability if you're outside a blade!</span>")
return
var/obj/item/nullrod/scythe/talking/user_sword = user.loc
var/mob/living/carbon/holder = user_sword.loc
if(istype(holder))
holder.unEquip(user_sword)
user_sword.throw_at(targets[1], 10, 3, user)