Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 8b74462

Browse files
authored
photo descriptions (#22602)
1 parent 68ccee3 commit 8b74462

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

code/modules/mob/living/living.dm

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,20 +180,17 @@
180180
return TRUE
181181

182182
/mob/living/get_photo_description(obj/item/camera/camera)
183-
var/list/mob_details = list()
184183
var/list/holding = list()
185184
var/len = length(held_items)
186185
if(len)
187186
for(var/obj/item/I in held_items)
188187
if(!holding.len)
189188
holding += "They are holding \a [I]"
190189
else if(held_items.Find(I) == len)
191-
holding += ", and \a [I]."
190+
holding += ", and \a [I]"
192191
else
193192
holding += ", \a [I]"
194-
holding += "."
195-
mob_details += "You can also see [src] on the photo[health < (maxHealth * 0.75) ? ", looking a bit hurt":""][holding ? ". [holding.Join("")]":"."]."
196-
return mob_details.Join("")
193+
return "You can also see [src] on the photo[health < (maxHealth * 0.75) ? ", looking a bit hurt":""][holding.len ? ". [holding.Join("")].":"."]"
197194

198195
//Called when we bump onto an obj
199196
/mob/living/proc/ObjBump(obj/O)

code/modules/photography/camera/camera.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
temp.Scale(psize_x, psize_y)
250250
temp.Blend(get_icon, ICON_OVERLAY)
251251

252-
var/datum/picture/P = new("picture", desc.Join(" "), minds_spotted, dead_spotted, temp, null, psize_x, psize_y, blueprints)
252+
var/datum/picture/P = new("picture", desc.Join("<br>"), minds_spotted, dead_spotted, temp, null, psize_x, psize_y, blueprints)
253253
after_picture(user, P, flag)
254254
blending = FALSE
255255

0 commit comments

Comments
 (0)