Files
Aurora.3/code/modules/spells/targeted/entangle.dm
Alberyk ed6dbee896 Bay wizard port/rework (#1635)
Ports the newest bay wizard version, with some additions and changes.

General changes:
-ported the newest bay wizard
-wizards can select some school of magic, which also changes their spell selection as whole.
-added several new spells, like raise dead, contracts that bind the person with the wizard, and more.
-added wands, limited sources of certain types of effects/spell, also with their own bad effects for non wizards
-changed the wizard checks to a faction check instead of a mind check
-fixed wizards without certain slots due to race being fucked over due to it
-added new artifacts
-balanced some spells like the emp
-added a lot of new sounds to spell, mostly from tg
-remove horse mask from spell selection, also, you can melt the mask with acid now
-wizard's spell are now displayed at round end like traitors and what they did buy
-also fixes vaurca, and vox, antags spawning without a mask by default
2017-02-07 18:45:42 +02:00

52 lines
1.4 KiB
Plaintext

/spell/targeted/entangle
name = "Entangle"
desc = "This spell creates vines that immediately entangle a nearby victim."
feedback = "ET"
school = "conjuration"
charge_max = 600
spell_flags = NEEDSCLOTHES | SELECTABLE | IGNOREPREV
invocation = "BU EKEL 'INAS"
invocation_type = SpI_SHOUT
range = 3
max_targets = 1
cast_sound = 'sound/species/diona/gestalt_split.ogg'
level_max = list(Sp_TOTAL = 2, Sp_SPEED = 2, Sp_POWER = 2)
cooldown_min = 300
duration = 30
hud_state = "wiz_entangle"
var/datum/seed/seed
/spell/targeted/entangle/New()
..()
seed = new()
seed.set_trait(TRAIT_PLANT_ICON,"flower")
seed.set_trait(TRAIT_PRODUCT_ICON,"flower2")
seed.set_trait(TRAIT_PRODUCT_COLOUR,"#4d4dff")
seed.set_trait(TRAIT_SPREAD,2)
seed.name = "heirlooms"
seed.seed_name = "heirloom"
seed.display_name = "vines"
seed.chems = list("nutriment" = list(1,20))
/spell/targeted/entangle/cast(var/list/targets)
for(var/mob/M in targets)
var/turf/T = get_turf(M)
var/obj/effect/plant/single/P = new(T,seed)
P.can_buckle = 1
P.health = P.max_health
P.mature_time = 0
P.process()
P.buckle_mob(M)
M.set_dir(pick(cardinal))
M.visible_message("<span class='danger'>[P] appear from the floor, spinning around \the [M] tightly!</span>")
/spell/targeted/entangle/empower_spell()
if(!..())
return 0
max_targets++
return "This spell will now entangle [max_targets] people at the same time."