mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
* 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>
23 lines
862 B
Plaintext
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)
|