more src memery

This commit is contained in:
DragonTrance
2022-06-08 12:35:12 -04:00
parent 3f76c507e4
commit f889a49ab1
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -118,19 +118,19 @@
/// Generates a bank account for the person who's getting this job datum
/datum/job/proc/generate_bank_account(mob/living/carbon/human/reciever)
var/datum/bank_account/bank_account = new(H.real_name, src)
var/datum/bank_account/bank_account = new(reciever.real_name, src)
return bank_account
/datum/job/proc/get_access()
if(!config) //Needed for robots.
return src.minimal_access.Copy()
return minimal_access.Copy()
. = list()
if(CONFIG_GET(flag/jobs_have_minimal_access))
. = src.minimal_access.Copy()
. = minimal_access.Copy()
else
. = src.access.Copy()
. = access.Copy()
if(CONFIG_GET(flag/everyone_has_maint_access)) //Config has global maint access set
. |= list(ACCESS_MAINT_TUNNELS)
@@ -15,9 +15,9 @@ SUBSYSTEM_DEF(economy)
/**
* Returns a value of the amount of money a bank account would be getting. It's just some simple multiplication.
* Both the bank account and job is allowed to be null here.
*
* Thanks to the ultimate nature of byond, double-colon accessors, ::, get the default values of the bank account and
*
* Thanks to the ultimate nature of byond, colon accessors, :, get the default values of the bank account and
* job datums if the respective one is null. You can pass zero arguments here and you'd get the "default" amount of a paycheck.
*/
/datum/controller/subsystem/economy/proc/GetPaycheck(datum/bank_account/account, datum/job/job, multiplier=1)
return account::base_pay * job::base_paycheck_multiplier * multiplier
return account:base_pay * job:base_paycheck_multiplier * multiplier