mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 00:20:42 +01:00
7a99813dd0
This adds the case dossier program. A program intended for investigators to use for their cases, with the ability to record evidence, photos, documents, people and their notes on a case. The rest of security is able to view cases in the program, but not edit them. Additionally, the forensic skill was added to evidence bags and photos, allowing a person to add the time, place and the person using them, mainly intended to be used with the case dossier program. Fibers and prints can now be gathered from objects inside evidence bags, to avoid contamination. Also fixed some bugs with taking photos of certain objects, such as airlocks. https://github.com/user-attachments/assets/92a880e9-9032-46d4-88c0-43d45b64f979
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
/datum/case_dossier_report
|
|
/// The id associated with the report
|
|
var/id
|
|
/// The report's title
|
|
var/title = "Untitled paperwork"
|
|
/// The report type.
|
|
var/evidence_type = "Scanned paper"
|
|
/// The author, mainly for future proofing
|
|
var/author
|
|
/// was created, for future proofing
|
|
var/created_at
|
|
/// Who collected it, for future proofing
|
|
var/collected_by
|
|
/// When it was collected, for future proofing
|
|
var/collected_at
|
|
/// Who scanned it
|
|
var/scanned_by
|
|
/// When it was scanned
|
|
var/scanned_at
|
|
/// What is written
|
|
var/content
|
|
/// Notes, for future proofing
|
|
var/notes
|
|
|
|
/datum/case_dossier_report/New(var/id_input, var/title_input, var/evidence_type_input = "Scanned paper", var/author_input = "Unknown", var/created_input = worldtime2text(), var/collected_by_input = "Unknown", var/collected_at_input = worldtime2text(), var/scanned_by_input = "Unknown", var/scanned_at_input)
|
|
..()
|
|
id = "R-[id_input]"
|
|
title = sanitize(title_input, MAX_NAME_LEN)
|
|
evidence_type = evidence_type_input
|
|
author = author_input
|
|
created_at = created_input
|
|
collected_by = collected_by_input
|
|
collected_at = collected_at_input
|
|
scanned_by = scanned_by_input
|
|
|
|
scanned_at = scanned_at_input ? scanned_at_input : collected_at
|
|
|
|
/datum/case_dossier_report/proc/tgui_data()
|
|
var/list/data = list()
|
|
|
|
data["id"] = "[id]"
|
|
data["title"] = title
|
|
data["type"] = evidence_type
|
|
data["author"] = author
|
|
data["created_at"] = created_at
|
|
data["collected_by"] = collected_by
|
|
data["collected_at"] = collected_at
|
|
data["scanned_by"] = scanned_by
|
|
data["scanned_at"] = scanned_at
|
|
data["content"] = content
|
|
data["notes"] = notes
|
|
|
|
return data
|