mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-12 01:43:40 +00:00
## About The Pull Request I have attempted or otherwise started this project at least 4 times. I am sick of it being on my calendar. The code needs it. I need it. - This makes crew records a proper datum rather than assigning properties record.fields. - General, medical, and security records are merged. - Did some slight refactoring here and there for things that looked obvious. - Wanted states are now defined (and you can suspect someone through sechud) - pAI (unrelated but annoying) had some poorly named exported types that i made more specific - Job icons are moved back to the JS side (I wanted to get icons for initial rank without passing trim) <details> <summary>previews</summary> Editable fields & security console  Medical records  Look and feel of the more current version  </details> ## Why It's Good For The Game TGUI'd some of the worst UIs in the game. Creating new records is made much simpler. Manifest_inject is made readable. Probably bug fixes ## Changelog 🆑 refactor: Crew records have been refactored. refactor: Medical records -> TGUI refactor: Security records -> TGUI refactor: Warrants console -> TGUI qol: Players are now alerted when their fines are paid off. qol: Cleaned up sec hud examination text. qol: Adding and deleting crimes is easier. qol: Writing crimes in the console sets players to arrest. qol: You can now mark someone as a suspect through sec hud. /🆑 Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
24 lines
1.4 KiB
Plaintext
24 lines
1.4 KiB
Plaintext
/// Simple datum that holds the basic information associated with an ID card trim.
|
|
/datum/id_trim
|
|
/// Icon file for this trim.
|
|
var/trim_icon = 'icons/obj/card.dmi'
|
|
/// Icon state for this trim. Overlayed on advanced ID cards.
|
|
var/trim_state
|
|
/// Department color for this trim. Displayed in the box under the trim_state.
|
|
var/department_color = COLOR_ASSISTANT_GRAY
|
|
/// Department icon state, for differentiating between heads and normal crew and other use cases.
|
|
var/department_state = "department"
|
|
/// Subdepartment color for this trim. Displayed as a bar under the trim_state and department_color.
|
|
var/subdepartment_color = COLOR_ASSISTANT_OLIVE
|
|
/// Job/assignment associated with this trim. Can be transferred to ID cards holding this trim.
|
|
var/assignment
|
|
/// The name of the job for interns. If unset it will default to "[assignment] (Intern)".
|
|
var/intern_alt_name = null
|
|
/// The icon_state associated with this trim, as it will show on the security HUD.
|
|
var/sechud_icon_state = SECHUD_UNKNOWN
|
|
|
|
/// Accesses that this trim unlocks on a card it is imprinted on. These accesses never take wildcard slots and can be added and removed at will.
|
|
var/list/access = list()
|
|
/// Accesses that this trim unlocks on a card that require wildcard slots to apply. If a card cannot accept all a trim's wildcard accesses, the card is incompatible with the trim.
|
|
var/list/wildcard_access = list()
|