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:
LordFowl
2016-12-22 18:00:04 -05:00
committed by skull132
parent c7e56daaa6
commit 51bd200d7c
41 changed files with 2056 additions and 156 deletions
+2 -2
View File
@@ -62,9 +62,9 @@
if (!istype(user))
return 0
var/list/permitted_locations = list("user_dashboard", "contract_overview", "contract_details")
var/list/permitted_locations = list("user_dashboard", "contract_overview", "contract_details", "security_incident")
if (!webint_validate_attributes(list("location" = permitted_locations, "contract"), attributes_text = attributes))
if (!webint_validate_attributes(list("location" = permitted_locations, "contract", "incident"), attributes_text = attributes))
return 0
var/token = ""