Clowns and Mimes acts no longer get ruined when you examine their ID cards (#40655)

cl Floyd / Qustinnus
fix: Clown and Mimes their ID cards no longer show the name of some random weirdo.
/cl

fixes #40560

also removed some operations that dont need to happen in the first place
This commit is contained in:
Qustinnus
2018-10-17 12:18:36 +02:00
committed by oranges
parent a3ecb13076
commit 81d452d697
2 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -9,7 +9,8 @@
/datum/bank_account/New(newname, job)
if(add_to_accounts)
SSeconomy.bank_accounts += src
account_holder = newname
if(newname)
account_holder = newname
account_job = job
account_id = rand(111111,999999)
+6 -4
View File
@@ -81,10 +81,12 @@
if(!H)
return FALSE
if(!visualsOnly)
var/datum/bank_account/bank_account = new(H.real_name, src)
bank_account.account_holder = H.real_name
bank_account.account_job = src
bank_account.account_id = rand(111111,999999)
var/obj/item/card/id/I = H.wear_id ? H.wear_id.GetID() : null
var/datum/bank_account/bank_account
if(I)
bank_account = new(I.registered_name, src)
else
bank_account = new(H.real_name, src)
bank_account.payday(STARTING_PAYCHECKS, TRUE)
H.account_id = bank_account.account_id
if(CONFIG_GET(flag/enforce_human_authority) && (title in GLOB.command_positions))