mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-03 14:12:29 +00:00
* datumized spells * finished * last changes * conflict * Update code/datums/spells/alien_spells/transfer_plasma.dm * conflicts * shitty runtime fix until i get to this tomorrow * Update code/datums/spell.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spell_handler/alien_spell_handler.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/alien_spells/regurgitate.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/alien_spells/regurgitate.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/bloodcrawl.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/bloodcrawl.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/antagonists/vampire/vampire_powers/hemomancer_powers.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/antagonists/vampire/vampire_powers/vampire_powers.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/awaymissions/mission_code/ruins/wizardcrash.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/research/xenobiology/xenobiology.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/carbon/superheroes.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/conjure.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/ethereal_jaunt.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/emplosion.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/turf_teleport.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/wizard_spells.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/wizard_spells.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/dna/mutations/mutation_powers.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/wizard_spells.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/wizard_spells.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/dna/mutations/mutation_powers.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/gamemodes/miniantags/revenant/revenant_abilities.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * guess who just rework the entire malf ai actionsf ai * gc better --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
53 lines
2.1 KiB
Plaintext
53 lines
2.1 KiB
Plaintext
|
|
/datum/spell/chaplain_bless
|
|
name = "Bless"
|
|
desc = "Blesses a single person."
|
|
|
|
school = "transmutation"
|
|
base_cooldown = 6 SECONDS
|
|
clothes_req = FALSE
|
|
invocation = "none"
|
|
invocation_type = "none"
|
|
|
|
selection_activated_message = "<span class='notice'>You prepare a blessing. Click on a target to start blessing.</span>"
|
|
selection_deactivated_message = "<span class='notice'>The crew will be blessed another time.</span>"
|
|
cooldown_min = 20
|
|
action_icon_state = "shield"
|
|
|
|
/datum/spell/chaplain_bless/create_new_targeting()
|
|
var/datum/spell_targeting/click/T = new()
|
|
T.range = 1
|
|
T.click_radius = -1
|
|
return T
|
|
|
|
/datum/spell/chaplain_bless/valid_target(mob/living/carbon/human/target, mob/user)
|
|
return target.mind && target.ckey && !target.stat
|
|
|
|
/datum/spell/chaplain_bless/cast(list/targets, mob/living/user = usr)
|
|
if(!istype(user))
|
|
to_chat(user, "Somehow, you are not a living mob. This should never happen. Report this bug.")
|
|
revert_cast()
|
|
return
|
|
|
|
if(!user.mind)
|
|
to_chat(user, "Somehow, you are mindless. This should never happen. Report this bug.")
|
|
revert_cast()
|
|
return
|
|
|
|
if(!HAS_MIND_TRAIT(user, TRAIT_HOLY))
|
|
to_chat(user, "Somehow, you are not holy enough to use this ability. This should never happen. Report this bug.")
|
|
revert_cast()
|
|
return
|
|
|
|
var/mob/living/carbon/human/target = targets[1]
|
|
|
|
spawn(0) // allows cast to complete even if recipient ignores the prompt
|
|
if(tgui_alert(target, "[user] wants to bless you, in the name of [user.p_their()] religion. Accept?", "Accept Blessing?", list("Yes", "No")) == "Yes") // prevents forced conversions
|
|
user.visible_message("[user] starts blessing [target] in the name of [SSticker.Bible_deity_name].", "<span class='notice'>You start blessing [target] in the name of [SSticker.Bible_deity_name].</span>")
|
|
if(do_after(user, 150, target = target))
|
|
user.visible_message("[user] has blessed [target] in the name of [SSticker.Bible_deity_name].", "<span class='notice'>You have blessed [target] in the name of [SSticker.Bible_deity_name].</span>")
|
|
if(!target.mind.isblessed)
|
|
target.mind.isblessed = TRUE
|
|
user.mind.num_blessed++
|
|
|