Ghost Role Accounts (#18004)

* The majority of ghost roles now spawn with an Idris account and some
funds.
This commit is contained in:
Geeves
2024-05-12 19:01:25 +00:00
committed by GitHub
parent 37c49194b3
commit 43cd06acf9
10 changed files with 58 additions and 27 deletions
@@ -35,6 +35,18 @@
mob_name = null
/// Determines whether the mob will have an Idris banking account when they spawn in
var/has_idris_account = TRUE
/// Determines whether the Idris banking account will be visible on the station's account terminal
var/is_idris_account_public = FALSE
/// The minimum amount of money the account can spawn with
var/idris_account_min = 100
/// The maximum amount of money the account can spawn with
var/idris_account_max = 500
//Return a error message if the user CANT spawn. Otherwise FALSE
/datum/ghostspawner/human/cant_spawn(mob/user)
//If whitelist is required, check if user can spawn in ANY of the possible species
@@ -144,6 +156,9 @@
age = rand(35, 50)
M.age = Clamp(age, 21, 65)
if(has_idris_account)
SSeconomy.create_and_assign_account(M, null, rand(idris_account_min, idris_account_max), is_idris_account_public)
//Setup the Outfit
if(picked_species in species_outfits)
var/obj/outfit/species_outfit = species_outfits[picked_species]