mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
refactors most spans
This commit is contained in:
@@ -17,9 +17,9 @@
|
||||
vine.mature_time = 0
|
||||
vine.process()
|
||||
|
||||
message_admins("<span class='notice'>Event: Spacevines spawned at [T.loc] ([T.x],[T.y],[T.z])</span>")
|
||||
message_admins(span_notice("Event: Spacevines spawned at [T.loc] ([T.x],[T.y],[T.z])"))
|
||||
return
|
||||
message_admins("<span class='notice'>Event: Spacevines failed to find a viable turf.</span>")
|
||||
message_admins(span_notice("Event: Spacevines failed to find a viable turf."))
|
||||
|
||||
/obj/effect/dead_plant
|
||||
anchored = TRUE
|
||||
@@ -91,7 +91,7 @@
|
||||
if(!SSplants)
|
||||
sleep(250) // ugly hack, should mean roundstart plants are fine. TODO initialize perhaps?
|
||||
if(!SSplants)
|
||||
to_world("<span class='danger'>Plant controller does not exist and [src] requires it. Aborting.</span>")
|
||||
to_world(span_danger("Plant controller does not exist and [src] requires it. Aborting."))
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
@@ -247,16 +247,16 @@
|
||||
|
||||
if(W.has_tool_quality(TOOL_WIRECUTTER) || istype(W, /obj/item/surgical/scalpel))
|
||||
if(sampled)
|
||||
to_chat(user, "<span class='warning'>\The [src] has already been sampled recently.</span>")
|
||||
to_chat(user, span_warning("\The [src] has already been sampled recently."))
|
||||
return
|
||||
if(!is_mature())
|
||||
to_chat(user, "<span class='warning'>\The [src] is not mature enough to yield a sample yet.</span>")
|
||||
to_chat(user, span_warning("\The [src] is not mature enough to yield a sample yet."))
|
||||
return
|
||||
if(!seed)
|
||||
to_chat(user, "<span class='warning'>There is nothing to take a sample from.</span>")
|
||||
to_chat(user, span_warning("There is nothing to take a sample from."))
|
||||
return
|
||||
if(sampled)
|
||||
to_chat(user, "<span class='danger'>You cannot take another sample from \the [src].</span>")
|
||||
to_chat(user, span_danger("You cannot take another sample from \the [src]."))
|
||||
return
|
||||
if(prob(70))
|
||||
sampled = 1
|
||||
|
||||
@@ -68,21 +68,21 @@
|
||||
L.visible_message(\
|
||||
"<b>\The [user]</b> frees \the [L] from \the [src].",\
|
||||
"<b>\The [user]</b> frees you from \the [src].",\
|
||||
"<span class='warning'>You hear shredding and ripping.</span>")
|
||||
span_warning("You hear shredding and ripping."))
|
||||
else
|
||||
L.visible_message(\
|
||||
"<b>\The [L]</b> struggles free of \the [src].",\
|
||||
"<span class='notice'>You untangle \the [src] from around yourself.</span>",\
|
||||
"<span class='warning'>You hear shredding and ripping.</span>")
|
||||
span_notice("You untangle \the [src] from around yourself."),\
|
||||
span_warning("You hear shredding and ripping."))
|
||||
unbuckle()
|
||||
else
|
||||
user.setClickCooldown(user.get_attack_speed())
|
||||
health -= rand(1,5)
|
||||
var/text = pick("rip","tear","pull", "bite", "tug")
|
||||
user.visible_message(\
|
||||
"<span class='warning'>\The [user] [text]s at \the [src].</span>",\
|
||||
"<span class='warning'>You [text] at \the [src].</span>",\
|
||||
"<span class='warning'>You hear shredding and ripping.</span>")
|
||||
span_warning("\The [user] [text]s at \the [src]."),\
|
||||
span_warning("You [text] at \the [src]."),\
|
||||
span_warning("You hear shredding and ripping."))
|
||||
check_health()
|
||||
return
|
||||
|
||||
@@ -102,10 +102,10 @@
|
||||
if(istype(H.shoes, /obj/item/clothing/shoes/magboots) && (H.shoes.item_flags & NOSLIP))
|
||||
can_grab = 0
|
||||
if(can_grab)
|
||||
src.visible_message("<span class='danger'>Tendrils lash out from \the [src] and drag \the [victim] in!</span>")
|
||||
src.visible_message(span_danger("Tendrils lash out from \the [src] and drag \the [victim] in!"))
|
||||
victim.forceMove(src.loc)
|
||||
buckle_mob(victim)
|
||||
victim.set_dir(pick(cardinal))
|
||||
to_chat(victim, "<span class='danger'>Tendrils [pick("wind", "tangle", "tighten")] around you!</span>")
|
||||
to_chat(victim, span_danger("Tendrils [pick("wind", "tangle", "tighten")] around you!"))
|
||||
victim.Weaken(0.5)
|
||||
seed.do_thorns(victim,src)
|
||||
|
||||
Reference in New Issue
Block a user