mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-08-25 21:56:13 +01:00
Adds configuration options to economy pay & prices
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
#define BASEPAY_ASSISTANT 1
|
||||
#define BASEPAY_ROOKIE 1.05 //rookies, chaplain, clown, curator, lawyer, etc that dont take much effort to be good in
|
||||
#define BASEPAY_DEFAULT 1.1
|
||||
#define BASEPAY_COMMAND 1.3
|
||||
#define BASEPAY_CAPTAIN 1.65
|
||||
#define ECONOMY_TYPE_ROOKIE "Rookie"
|
||||
#define ECONOMY_TYPE_DANGEROUS "Dangerous"
|
||||
#define ECONOMY_TYPE_COMMAND "Command"
|
||||
|
||||
|
||||
#define PRICE_BASE (BASEPAY_ASSISTANT * 32)
|
||||
#define PRICE_DEFAULT (PRICE_BASE * 0.5)
|
||||
#define PRICE_LOW (PRICE_DEFAULT * 0.75)
|
||||
#define PRICE_HIGH (PRICE_DEFAULT * 2)
|
||||
#define PRICE_EROTICA (PRICE_DEFAULT * 1.75)
|
||||
#define PRICE_EXPENSIVE (PRICE_HIGH * 2)
|
||||
#define ECONOY_PRICE_DEFAULT 0
|
||||
#define ECONOMY_PRICE_LOW 1
|
||||
#define ECONOMY_PRICE_HIGH 2
|
||||
#define ECONOMY_PRICE_EROTIC 3
|
||||
#define ECONOMY_PRICE_EXPENSIVE 4
|
||||
#define ECONOMY_PRICE_EXPENSIVE_AF 5
|
||||
|
||||
@@ -384,3 +384,51 @@
|
||||
min_val = 0
|
||||
|
||||
/datum/config_entry/flag/dynamic_mode
|
||||
|
||||
/datum/config_entry/number/economy_base_payment
|
||||
config_entry_value = 80
|
||||
min_val = 0
|
||||
|
||||
/datum/config_entry/number/economy_base_pay_ratio
|
||||
config_entry_value = 3
|
||||
min_val = 1
|
||||
|
||||
/datum/config_entry/number/economy_price_low
|
||||
config_entry_value = 8
|
||||
min_val = 0
|
||||
|
||||
/datum/config_entry/number/economy_price_default
|
||||
config_entry_value = 15
|
||||
min_val = 0
|
||||
|
||||
/datum/config_entry/number/economy_price_high
|
||||
config_entry_value = 30
|
||||
min_val = 0
|
||||
|
||||
/datum/config_entry/number/economy_price_erotic
|
||||
config_entry_value = 25
|
||||
min_val = 0
|
||||
|
||||
/datum/config_entry/number/economy_price_expensive
|
||||
config_entry_value = 60
|
||||
min_val = 0
|
||||
|
||||
/datum/config_entry/number/economy_price_expensive_af
|
||||
config_entry_value = 90
|
||||
min_val = 0
|
||||
|
||||
/datum/config_entry/number/economy_job_rate_default
|
||||
config_entry_value = 1.2
|
||||
min_val = 0
|
||||
|
||||
/datum/config_entry/keyed_list/economy_job_rate
|
||||
key_mode = KEY_MODE_TEXT
|
||||
value_mode = VALUE_MODE_NUM
|
||||
lowercase = FALSE
|
||||
splitter = ","
|
||||
|
||||
/datum/config_entry/keyed_list/economy_job_rate_area
|
||||
key_mode = KEY_MODE_TEXT
|
||||
value_mode = VALUE_MODE_NUM
|
||||
lowercase = FALSE
|
||||
splitter = ","
|
||||
|
||||
@@ -62,13 +62,16 @@
|
||||
var/list/alt_titles = list()
|
||||
|
||||
/// A multiplier for how much a person gets each paycheck
|
||||
var/base_paycheck_multiplier = BASEPAY_DEFAULT
|
||||
var/base_paycheck_multiplier = 1.2
|
||||
|
||||
var/override_roundstart_spawn = null //Where the player spawns at roundstart if defined
|
||||
|
||||
//whitelisting
|
||||
var/whitelist_type = ""
|
||||
|
||||
/datum/job/New()
|
||||
base_paycheck_multiplier = CONFIG_GET(number/economy_job_rate_default)
|
||||
|
||||
//Only override this proc
|
||||
//H is usually a human unless an /equip override transformed it
|
||||
/datum/job/proc/after_spawn(mob/living/H, mob/M, latejoin = FALSE)
|
||||
|
||||
Reference in New Issue
Block a user