Fix master skew (#92568)

Yippee
This commit is contained in:
MrMelbert
2025-08-13 18:03:33 -05:00
committed by nevimer
parent 9a1584659b
commit f1234d1d3f
@@ -21,23 +21,23 @@
var/list/data = list()
data["points"] = points
data["status_report"] = status_report
data["id_inserted"] = computer.computer_id_slot
if(computer.computer_id_slot?.registered_account)
if(computer.computer_id_slot.registered_account.civilian_bounty)
data["id_bounty_info"] = computer.computer_id_slot.registered_account.civilian_bounty.description
data["id_bounty_num"] = computer.computer_id_slot.registered_account.bounty_num()
data["id_bounty_value"] = (computer.computer_id_slot.registered_account.civilian_bounty.reward) * (CIV_BOUNTY_SPLIT/100)
if(computer.computer_id_slot.registered_account.bounties)
data["id_inserted"] = computer.stored_id
if(computer.stored_id?.registered_account)
if(computer.stored_id.registered_account.civilian_bounty)
data["id_bounty_info"] = computer.stored_id.registered_account.civilian_bounty.description
data["id_bounty_num"] = computer.stored_id.registered_account.bounty_num()
data["id_bounty_value"] = (computer.stored_id.registered_account.civilian_bounty.reward) * (CIV_BOUNTY_SPLIT/100)
if(computer.stored_id.registered_account.bounties)
data["picking"] = TRUE
data["id_bounty_names"] = list(computer.computer_id_slot.registered_account.bounties[1].name,
computer.computer_id_slot.registered_account.bounties[2].name,
computer.computer_id_slot.registered_account.bounties[3].name)
data["id_bounty_infos"] = list(computer.computer_id_slot.registered_account.bounties[1].description,
computer.computer_id_slot.registered_account.bounties[2].description,
computer.computer_id_slot.registered_account.bounties[3].description)
data["id_bounty_values"] = list(computer.computer_id_slot.registered_account.bounties[1].reward * (CIV_BOUNTY_SPLIT/100),
computer.computer_id_slot.registered_account.bounties[2].reward * (CIV_BOUNTY_SPLIT/100),
computer.computer_id_slot.registered_account.bounties[3].reward * (CIV_BOUNTY_SPLIT/100))
data["id_bounty_names"] = list(computer.stored_id.registered_account.bounties[1].name,
computer.stored_id.registered_account.bounties[2].name,
computer.stored_id.registered_account.bounties[3].name)
data["id_bounty_infos"] = list(computer.stored_id.registered_account.bounties[1].description,
computer.stored_id.registered_account.bounties[2].description,
computer.stored_id.registered_account.bounties[3].description)
data["id_bounty_values"] = list(computer.stored_id.registered_account.bounties[1].reward * (CIV_BOUNTY_SPLIT/100),
computer.stored_id.registered_account.bounties[2].reward * (CIV_BOUNTY_SPLIT/100),
computer.stored_id.registered_account.bounties[3].reward * (CIV_BOUNTY_SPLIT/100))
else
data["picking"] = FALSE
@@ -54,7 +54,7 @@
///Here is where cargo bounties are added to the player's bank accounts, then adjusted and scaled into a civilian bounty.
/datum/computer_file/program/civilianbounties/proc/add_bounties(mob/user, cooldown_reduction = 0)
var/datum/bank_account/id_account = computer.computer_id_slot?.registered_account
var/datum/bank_account/id_account = computer.stored_id?.registered_account
if(!id_account)
return
if((id_account.civilian_bounty || id_account.bounties) && !COOLDOWN_FINISHED(id_account, bounty_timer))
@@ -76,7 +76,7 @@
* @param choice The index of the bounty in the list of bounties that the player can choose from.
*/
/datum/computer_file/program/civilianbounties/proc/pick_bounty(datum/bounty/choice)
var/datum/bank_account/id_account = computer.computer_id_slot?.registered_account
var/datum/bank_account/id_account = computer.stored_id?.registered_account
if(!id_account?.bounties?[choice])
playsound(computer.loc, 'sound/machines/synth/synth_no.ogg', 40 , TRUE)
return