@@ -748,80 +748,6 @@ var/list/blood_decal_violent_icon_states = list("floor1", "floor2", "floor3", "f
748748 invisibility = INVIS_INFRA
749749 font_color = " #D20040"
750750
751- / obj / decal/ cleanable/ writing/ postit
752- name = " sticky note"
753- desc = " Someone's stuck a little note here."
754- icon_state = " postit"
755- random_icon_states = list ()
756- color = null
757- words = " "
758- var /max_message = 128
759-
760- New ()
761- .. ()
762- pixel_y += rand(- 12 ,12 )
763- pixel_x += rand(- 12 ,12 )
764-
765- attackby ( obj / item/ W, mob / living/ user)
766- if (istype(W, / obj / item/ stamp))
767-
768- var /obj /item/stamp/S = W
769- switch (S. current_mode)
770- if (" Granted" )
771- src . icon_state = " postit-approved"
772- if (" Denied" )
773- src . icon_state = " postit-rejected"
774- if (" Void" )
775- src . icon_state = " postit-void"
776- if (" X" )
777- src . icon_state = " postit-x"
778- else
779- boutput (user, " It doesn't look like that kind of stamp fits here..." )
780- return
781-
782- // words here, info there, result is same: SCREEAAAAAAAMMMMMMMMMMMMMMMMMMM
783- src . words += " <br>\[ [ S. current_mode] \] <br>"
784- boutput (user, SPAN_NOTICE (" You stamp \the [ src ] ." ))
785-
786-
787- else if (istype(W, / obj / item/ pen))
788- if (! user. literate)
789- boutput (user, SPAN_ALERT (" You don't know how to write." ))
790- return .. ()
791- var /obj /item/pen/pen = W
792- pen. in_use = 1
793- var /t = input (user, " What do you want to write?" , null , null ) as null | text
794- if (! t)
795- pen. in_use = 0
796- return
797- if ((length(src . words) + length(t)) > src . max_message)
798- user. show_text(" All that won't fit on [ src ] !" , " red" )
799- pen. in_use = 0
800- return
801- logTheThing (LOG_STATION , user, " writes on [ src ] with [ pen] at [ log_loc(src )] : [ t] " )
802- t = copytext(html_encode(t), 1 , MAX_MESSAGE_LEN )
803- if (pen. uses_handwriting && user?. mind?. handwriting)
804- src . font = user. mind. handwriting
805- src . webfont = 1
806- else if (pen. font)
807- src . font = pen. font
808- if (pen. webfont)
809- src . webfont = 1
810- if (src . words)
811- src . words += " <br>"
812- if (src . icon_state == initial(src . icon_state))
813- var /search_t = lowertext(t)
814- if (copytext(search_t, - 1 ) == " ?" )
815- src . icon_state = " postit-quest"
816- else if (copytext(search_t, - 1 ) == " !" )
817- src . icon_state = " postit-excl"
818- else
819- src . icon_state = " postit-writing"
820- src . words += " [ t] "
821- pen. in_use = 0
822- else
823- return .. ()
824-
825751/ obj / decal/ cleanable/ water
826752 name = " water"
827753 desc = " Water, on the floor. Amazing!"
0 commit comments