mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
Porting Apollo Infractions Computer (#1033)
Ports Apollo's infraction's system, creating a permanent criminal record for every character. Every minor or medium infraction accrued over the course of a round is added to the character's permanent security record which is available at vanilla records councils. Antagonists are automatically exempt from this process, and players can exercise control over what charges they consider canon or not. Brigging a person is now dependent on the criminal sentencing computer, which reads a person's ID and applies a brig timer automatically for the charges selected. Personnel without ID's will have to be brigged manually.
This commit is contained in:
@@ -32,6 +32,11 @@
|
||||
category_item_type = /datum/category_item/player_setup_item/player_global
|
||||
sql_role = SQL_PREFERENCES
|
||||
|
||||
/datum/category_group/player_setup_category/other_preferences
|
||||
name = "Other"
|
||||
sort_order = 6
|
||||
category_item_type = /datum/category_item/player_setup_item/other
|
||||
|
||||
/****************************
|
||||
* Category Collection Setup *
|
||||
****************************/
|
||||
@@ -131,6 +136,7 @@
|
||||
handle_sql_loading(SQL_CHARACTER)
|
||||
|
||||
for(var/datum/category_item/player_setup_item/PI in items)
|
||||
PI.load_special(S)
|
||||
PI.sanitize_character(config.sql_saves)
|
||||
|
||||
/datum/category_group/player_setup_category/proc/save_character(var/savefile/S)
|
||||
@@ -205,11 +211,17 @@
|
||||
return sort_order
|
||||
|
||||
/*
|
||||
* Called when the item is asked to load per character settings
|
||||
* Called when the item is asked to load per character settings - Only called when sql saves are disabled or unavailable
|
||||
*/
|
||||
/datum/category_item/player_setup_item/proc/load_character(var/savefile/S)
|
||||
return
|
||||
|
||||
/*
|
||||
* Called no matter if sql safes are enabled or disabled
|
||||
*/
|
||||
/datum/category_item/player_setup_item/proc/load_special(var/savefile/S)
|
||||
return
|
||||
|
||||
/*
|
||||
* Called when the item is asked to save per character settings
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user