mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
Fixes the Impoverished Economic Status Not Saving Properly (#14329)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
--
|
||||
-- Implemented in PR #14329.
|
||||
-- Adds the impoverished option to the economic status in the database so it saves correctly.
|
||||
--
|
||||
|
||||
ALTER TABLE `ss13_characters` MODIFY COLUMN `economic_status` ENUM('Wealthy', 'Well-off', 'Average', 'Underpaid', 'Poor', 'Impoverished');
|
||||
@@ -581,15 +581,19 @@ proc/display_logout_report()
|
||||
to_chat(src,get_logout_report())
|
||||
|
||||
proc/get_poor()
|
||||
var/list/dudes = list()
|
||||
for(var/mob/living/carbon/human/man in player_list)
|
||||
if(man.client)
|
||||
if(man.client.prefs.economic_status == ECONOMICALLY_POOR)
|
||||
dudes += man
|
||||
else if(man.client.prefs.economic_status == ECONOMICALLY_POOR && prob(50))
|
||||
dudes += man
|
||||
if(dudes.len == 0) return null
|
||||
return pick(dudes)
|
||||
var/list/characters = list()
|
||||
|
||||
for(var/mob/living/carbon/human/character in player_list)
|
||||
if(character.client)
|
||||
if(character.client.prefs.economic_status == ECONOMICALLY_DESTITUTE) // Discrimination.
|
||||
characters += character
|
||||
else if(character.client.prefs.economic_status == ECONOMICALLY_POOR && prob(50)) // 50% discrimination.
|
||||
characters += character
|
||||
|
||||
if(!length(characters))
|
||||
return
|
||||
|
||||
return pick(characters)
|
||||
|
||||
//Announces objectives/generic antag text.
|
||||
/proc/show_generic_antag_text(var/datum/mind/player)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: SleepyGemmy
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- backend: "Adds the impoverished economic status as an option in the SQL database, so it can save properly."
|
||||
Reference in New Issue
Block a user