mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-30 20:22:32 +00:00
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
/obj/effect/proc_holder/spell/alien_spell/plant_weeds
|
|
name = "Plant weeds"
|
|
desc = "Allows you to plant some alien weeds on the floor below you. Does not work while in space."
|
|
plasma_cost = 50
|
|
var/weed_type = /obj/structure/alien/weeds/node
|
|
var/weed_name = "alien weed node"
|
|
action_icon_state = "alien_plant"
|
|
|
|
/obj/effect/proc_holder/spell/alien_spell/plant_weeds/create_new_targeting()
|
|
return new /datum/spell_targeting/self
|
|
|
|
/obj/effect/proc_holder/spell/alien_spell/plant_weeds/cast(list/targets, mob/living/carbon/user)
|
|
var/turf/T = user.loc
|
|
if(locate(weed_type) in T)
|
|
to_chat(user, "<span class='noticealien'>There's already \a [weed_name] here.</span>")
|
|
revert_cast()
|
|
return
|
|
|
|
if(isspaceturf(T))
|
|
to_chat(user, "<span class='noticealien'>You cannot plant [weed_name]s in space.</span>")
|
|
revert_cast()
|
|
return
|
|
|
|
if(!isturf(T))
|
|
to_chat(user, "<span class='noticealien'>You cannot plant [weed_name]s inside something!</span>")
|
|
revert_cast()
|
|
return
|
|
|
|
user.visible_message("<span class='alertalien'>[user] has planted \a [weed_name]!</span>")
|
|
new weed_type(T)
|