mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Adds tracking amount of time spent playing departments 2: The fall of the Assistants. (#29105)
* Ports Paradise Job exp system * changed to use json_decode and json_encode as recommended by oranges * updates changelog * Reee cyberboss * Changes to use a seperate table * Updates database changelog Changes to use mediumint * Back to wip we go. Changes sql stuff to how mso suggested Attempts the changes requested in the other pr. * work on stuff. * work on stuff. * Renamed proc for time remaining. Fixed updating time amounts. Added delay to fix firing at roundstart * exp is now stored in a global list, and only updated to the db at round end. * some stuff * Added button to toggle exempt status on a player. Still need to make it update the db * REEE Jordie. Undoes delaying exp updating to round end. Adds the updating filtering to the update_exp_client proc which is used again * Lowers a bunch of the times needed. * Makes tracking per job instead of per department. Department time is now calculated from job time. * Whoops forgot to update master first. Lemme save this Reverb should play cheeki breeki to people * I think I did this right. Too tired to test atm. Busy rewatching twintails ni narimasu * Removes var from proc arguments Fixes database stuff * Does some requested changes. Makes special_role be tracked instead of bundled under special. * Done, but need to refactor how it handles ghost roles. * Less false data wew * Changes * Updates db version More changes * More changes * More changes * revision fix * OOPS * fix schemas * Makes SQL error logging handled by Execute Gang role tracking now strips out the gang name and is generic.
This commit is contained in:
@@ -36,6 +36,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
var/tgui_lock = TRUE
|
||||
var/windowflashing = TRUE
|
||||
var/toggles = TOGGLES_DEFAULT
|
||||
var/db_flags
|
||||
var/chat_toggles = TOGGLES_DEFAULT_CHAT
|
||||
var/ghost_form = "ghost"
|
||||
var/ghost_orbit = GHOST_ORBIT_CIRCLE
|
||||
@@ -105,6 +106,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
|
||||
var/uplink_spawn_loc = UPLINK_PDA
|
||||
|
||||
var/list/exp
|
||||
var/list/menuoptions
|
||||
|
||||
/datum/preferences/New(client/C)
|
||||
@@ -132,7 +134,6 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
menuoptions = list()
|
||||
return
|
||||
|
||||
|
||||
/datum/preferences/proc/ShowChoices(mob/user)
|
||||
if(!user || !user.client)
|
||||
return
|
||||
@@ -536,6 +537,10 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
if(jobban_isbanned(user, rank))
|
||||
HTML += "<font color=red>[rank]</font></td><td><a href='?_src_=prefs;jobbancheck=[rank]'> BANNED</a></td></tr>"
|
||||
continue
|
||||
var/required_playtime_remaining = job.required_playtime_remaining(user.client)
|
||||
if(required_playtime_remaining)
|
||||
HTML += "<font color=red>[rank]</font></td><td><font color=red> \[ [get_exp_format(required_playtime_remaining)] as [job.get_exp_req_type()] \] </font></td></tr>"
|
||||
continue
|
||||
if(!job.player_old_enough(user.client))
|
||||
var/available_in_days = job.available_in_days(user.client)
|
||||
HTML += "<font color=red>[rank]</font></td><td><font color=red> \[IN [(available_in_days)] DAYS\]</font></td></tr>"
|
||||
|
||||
Reference in New Issue
Block a user