Commit Graph

10 Commits

Author SHA1 Message Date
Karolis
8b785b3815 New record consoles and removal of old datacore, adds SSrecords (#4878)
This PR is depending on #4868 for it's ui framework. This PR mostly makes new SSrecords subsystem responsible for storing records. This should replace old datacore.

Make new SSrecords.
Make things use SSrecords and whole code compile
Made VueUi button <vui-button> to push parameters as JSON, preserving client side data stricture.

    Add new records console and admin record management.

I am mostly looking for feedback regarding SSrecords and it's data storage mechanism criticism (It's using lists for storage)
2019-07-27 12:24:16 +03:00
Alberyk
c1de95f2e4 Updates the infactions in the security processing console (#6624)
This pr updates the infractions in the console in game, bringing them up to date with the wiki.
2019-07-04 17:07:18 +03:00
Werner
cfd1900ee4 Security Fines (#4634)
Allows security to fine criminals with the sentencing console
Prints a human readable copy of the charges and the applied sentence
2018-04-29 20:34:49 +03:00
Edward Lemon
2585982b67 Fixes name issue for sentencing machine (#4501)
Fixes #4492
2018-03-31 22:42:38 +03:00
Synnono
ba51e38391 Corrected charge title to reflect name on the wiki (#4470)
Changed "Severe Use of Excessive Force" to "Use of Excessive Force" in sentencing consoles to reflect the charge on the wiki.
2018-03-24 18:14:51 +02:00
Werner
1308048183 Adds the new regulation (#4458) 2018-03-22 06:57:25 +02:00
Werner
3142883948 Adds a new reg - i220 (#3816)
i220 - Fraud

To steal or use deliberate deception in order to obtain credits from someone. Applies to amounts greater than 500 credits.

For lesser amounts, see i102 - Petty Theft.
For items of equivalent value, see i215 - Grand Theft.

First offense: 15 minutes and/or demotion
Repeat: 30 minutes, immediate suspension
2017-11-05 17:43:13 +02:00
Alberyk
092a391a5f Fix More Baylore References (#3393)
Replaced some incorrect references to old baystation lorel, such as construct drones being from the sol central, tajaran slaves and thalers.
2017-09-08 10:31:16 -05:00
skull132
a3ec0cf45d Better SQL prepared statements (#2474)
The system used to be of complexity O(n^2). Essentially two for loops running per every argument. Which ended up being surprisingly slow (there were instances where I saw the argument parser as using quite a lot of CPU time).

This replaces it with a more linear algorithm. It's somewhere near O(n) where n is the length of the unparsed query. Which is more stable and faaaster. This comes with two changes, however:

Parameters inside the query now have to be delimited from both sides with : (colons). The alternative to this would be to use something like $n or just assume that space marks the end of a marker. Only the former is workable, the latter would break a few queries already.
Arguments in the argument array no longer have to be prefixed by : (colons). So, while in the query you would write :thing:, you'd initialize the array of args as: list("thing" = somevar). It could be made to work without it, but eh, I think this is fine.
Argument validation is slightly weaker. What I mean by this is that with the old system, unused keys would result in an error. This is no longer a thing. Missing keys will still result in an error, however.
One more improvement: double delimiting removes an edge case where if key A partially covers key B, depending on the order, key A would mangle key B.
Updated and tested all queries that I could find. So this should be good.
2017-05-29 21:17:41 +03:00
LordFowl
51bd200d7c 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.
2016-12-23 01:00:04 +02:00