diff --git a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm index bb18855ece2..5c387450fd5 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm @@ -17,7 +17,6 @@ "[user.name] pulls you free from the gelatinous resin.",\ "You hear squelching...") buckled_mob.pixel_y = 0 - buckled_mob.old_y = 0 unbuckle() else if(world.time <= buckled_mob.last_special+NEST_RESIST_TIME) @@ -30,7 +29,6 @@ if(user && buckled_mob && user.buckled == src) buckled_mob.last_special = world.time buckled_mob.pixel_y = 0 - buckled_mob.old_y = 0 unbuckle() src.add_fingerprint(user) return diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index be27e8b22d3..1bd3ebac876 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1744,16 +1744,22 @@ stampvalue = input(src.owner, "Pick a stamp icon.", "Stamp Icon") as null|anything in list("cent","ok","deny","clown") else if(stamptype == "text") stampvalue = input(src.owner, "What should the stamp say?", "Stamp Text") as text|null - else + else if(stamptype == "none") stamptype = "" - sendername = input(src.owner, "What organization does the fax come from? This determines the prefix of the paper (i.e. Central Command- Title).", "Organization") as text|null + else + del(P) + return + + sendername = input(src.owner, "What organization does the fax come from? This determines the prefix of the paper (i.e. Central Command- Title). This is optional.", "Organization") as text|null if(sender) notify = alert(src.owner, "Would you like to inform the original sender that a fax has arrived?","Notify Sender","Yes","No") // Create the reply message - - P.name = "[sendername]- [customname]" + if(sendername) + P.name = "[sendername]- [customname]" + else + P.name = "[customname]" P.info = input P.update_icon() P.x = rand(-2, 0) @@ -1806,6 +1812,7 @@ A.message = P A.reply_to = reply_to A.sent_by = usr + A.sent_at = world.time src.owner << "\blue Message transmitted successfully." if(notify == "Yes") diff --git a/code/modules/paperwork/fax.dm b/code/modules/paperwork/fax.dm index b8bc551deb7..926463a7dca 100644 --- a/code/modules/paperwork/fax.dm +++ b/code/modules/paperwork/fax.dm @@ -9,6 +9,7 @@ var/list/adminfaxes = list() var/origin = null var/message = null var/sent_by = null + var/sent_at = null /datum/fax/New() faxes += src @@ -35,12 +36,13 @@ var/list/adminfaxes = list() html += "
" html += "

Admin Faxes

" html += "" - html += "" + html += "" for(var/datum/fax/admin/A in adminfaxes) html += "" html += "" html += "" html += "" + html += "" if(A.sent_by) var/mob/living/S = A.sent_by html += "" @@ -63,12 +65,13 @@ var/list/adminfaxes = list() html += "
" html += "

Departmental Faxes

" html += "
NameFrom DepartmentTo DepartmentSent ByViewReplyReplied To
NameFrom DepartmentTo DepartmentSent AtSent ByViewReplyReplied To
[A.name][A.from_department][A.to_department][worldtime2text(A.sent_at)][S.name]
" - html += "" + html += "" for(var/datum/fax/F in faxes) html += "" html += "" html += "" html += "" + html += "" if(F.sent_by) var/mob/living/S = F.sent_by html += "" @@ -79,7 +82,7 @@ var/list/adminfaxes = list() html += "
NameFrom DepartmentTo DepartmentSent ByView
NameFrom DepartmentTo DepartmentSent AtSent ByView
[F.name][F.from_department][F.to_department][worldtime2text(F.sent_at)][S.name]
" html += "
" - var/datum/browser/popup = new(user, "fax_panel", "Fax Panel", 900, 450) + var/datum/browser/popup = new(user, "fax_panel", "Fax Panel", 950, 450) popup.set_content(html) popup.open() \ No newline at end of file diff --git a/code/modules/paperwork/faxmachine.dm b/code/modules/paperwork/faxmachine.dm index 6c7b0e30314..98726004ea4 100644 --- a/code/modules/paperwork/faxmachine.dm +++ b/code/modules/paperwork/faxmachine.dm @@ -190,6 +190,7 @@ var/list/alldepartments = list() F.origin = src F.message = copyitem F.sent_by = sender + F.sent_at = world.time visible_message("[src] beeps, \"Message transmitted successfully.\"") //sendcooldown = 600 @@ -247,6 +248,7 @@ var/list/alldepartments = list() A.origin = src A.message = rcvdcopy A.sent_by = sender + A.sent_at = world.time //message badmins that a fax has arrived switch(destination)