mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-20 18:47:20 +01:00
* initial edits * initial edits * converting shit over to machinery/economy * vending and mapping fixes * vending fix pt.2 * Converts Supply Economy to Use Space Credits instead of Supply Points * Job Payment, NanoBank, and Paychecks * clothing type path fixes (damn merge conflicts) * fixes map typepath issues * adjusts supply prices * Vendor Price Adjustments * account uplink terminal tweaks * please pass tests * Apply suggestions from code review Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> * reviews and bug fixes * Review Suggestions/Fixes and Request Console Rewrite * edits * vending changes for merge * typepath fix * final tweaks * proc ref fixes * Fixes and Tweaks from 2nd TM * rebuild TGUI * final tweaks * Apply suggestions from code review Co-authored-by: Farie82 <farie82@users.noreply.github.com> * requested reviews * tweaks * updates slot machine winnings * fixes * GC fixes * fixes * oops. still need to deconflict this * Apply suggestions from code review Co-authored-by: Farie82 <farie82@users.noreply.github.com> Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * requested changes and bug fixes * atm runtime fix * requested reviews * vend act stuff * attempt to pass tests * supply packs fix * user tochat -> debug log * FINAL FIXES * removes CC db stuff * Apply suggestions from code review Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: Farie82 <farie82@users.noreply.github.com> Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
/mob/proc/get_worn_id_account()
|
|
if(!ishuman(src))
|
|
return
|
|
var/mob/living/carbon/human/H = src
|
|
var/obj/item/card/id/I = H.get_idcard()
|
|
if(!istype(I))
|
|
return null
|
|
var/datum/money_account/D = GLOB.station_money_database.find_user_account(I.associated_account_number)
|
|
return D
|
|
|
|
/datum/mind/proc/set_initial_account(datum/money_account/account) //needed for GC'ing
|
|
initial_account = account
|
|
RegisterSignal(initial_account, COMSIG_PARENT_QDELETING, PROC_REF(clear_initial_account))
|
|
|
|
/datum/mind/proc/clear_initial_account() //needed for GC'ing
|
|
UnregisterSignal(initial_account, COMSIG_PARENT_QDELETING)
|
|
initial_account = null
|
|
|
|
|
|
///matches a string job name to their department(s) and returns it as a list
|
|
/proc/get_departments_from_job(job_name)
|
|
if(!job_name)
|
|
return
|
|
var/list/found_departments = list()
|
|
for(var/datum/station_department/department as anything in SSjobs.station_departments)
|
|
for(var/job in department.department_roles)
|
|
if(job == job_name)
|
|
found_departments += department
|
|
return found_departments
|
|
|
|
/proc/get_department_from_name(name)
|
|
for(var/datum/station_department/department in SSjobs.station_departments)
|
|
if(department.department_name == name)
|
|
return department
|