Replace all modular HTML spans with defines spans

In total:
- Adds span defines for `reallybig hypnophrase`, `big warning`, `header`
- Fixes a missing apostrophe for hypno stare
- Makes a special exception for cuddling.dm, which uses an irregular span
- Puts the spans file back
This commit is contained in:
Darius
2023-01-16 04:05:27 -05:00
parent 41e15dd097
commit ad0239b5de
108 changed files with 779 additions and 773 deletions
+6 -6
View File
@@ -12,7 +12,7 @@
if(!iscarbon(T)) //not carbon.
return
if(!T.is_chest_exposed())
to_chat(user, "<span class='warning'>You cannot write on someone with their clothes on.</span>")
to_chat(user, span_warning("You cannot write on someone with their clothes on."))
return
var/obj/item/G = user:pick_receiving_organ(T, NONE, "Pick a genital to write on", "Cancel to write on the targeted body part")
@@ -27,20 +27,20 @@
return
if(!(user==T))
src.visible_message("<span class='notice'>[user] begins to write on [T]'s [BP:name].</span>")
src.visible_message(span_notice("[user] begins to write on [T]'s [BP:name]."))
else
to_chat(user, "<span class='notice'>You begin to write on your [BP:name].</span>")
to_chat(user, span_notice("You begin to write on your [BP:name]."))
if(do_mob(user, T, 4 SECONDS))
if((length(BP:writtentext))+(length(writting)) < 100) //100 character limmit to stop spamming.
BP:writtentext += html_encode(writting) //you can add to text, not remove it.
else
to_chat(user, "<span class='notice'>There isnt enough space to write that on [T]'s [BP:name].</span>")
to_chat(user, span_notice("There isnt enough space to write that on [T]'s [BP:name]."))
return
if(!(user==T))
to_chat(user, "<span class='notice'>You write on [T]'s [BP:name].</span>")
to_chat(user, span_notice("You write on [T]'s [BP:name]."))
else
to_chat(user, "<span class='notice'>You write on your [BP:name].</span>")
to_chat(user, span_notice("You write on your [BP:name]."))
else
. = ..()