mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Fix for unremovable photos and default photo names if no photo name is provided (#15671)
* Update photography.dm If no photo name is provided a default name will be assigned with an int incrementor which makes navigation through the photos a bit easier. * Update code/modules/paperwork/photography.dm Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> * Update code/modules/paperwork/photography.dm Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>
This commit is contained in:
co-authored by
AffectedArc07
SabreML
parent
e201eb05c1
commit
b6417a1689
@@ -167,6 +167,7 @@
|
||||
var/icon_off = "camera_off"
|
||||
var/size = 3
|
||||
var/see_ghosts = 0 //for the spoop of it
|
||||
var/current_photo_num = 1
|
||||
|
||||
|
||||
/obj/item/camera/spooky/CheckParts(list/parts_list)
|
||||
@@ -386,7 +387,10 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
var/datum/picture/P = new()
|
||||
if(istype(src,/obj/item/camera/digital))
|
||||
P.fields["name"] = input(user,"Name photo:","photo")
|
||||
P.name = P.fields["name"]//So the name is displayed on the print/delete list.
|
||||
if(!P.fields["name"])
|
||||
P.fields["name"] = "Photo [current_photo_num]"
|
||||
current_photo_num++
|
||||
P.name = P.fields["name"] //So the name is displayed on the print/delete list.
|
||||
else
|
||||
P.fields["name"] = "photo"
|
||||
P.fields["author"] = user
|
||||
|
||||
Reference in New Issue
Block a user