mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
Antag reputation rewards are now configurable
This commit is contained in:
@@ -288,6 +288,7 @@
|
||||
|
||||
/datum/config_entry/flag/shift_time_realtime
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
//Cit changes - Adds config options for crew objectives and miscreants
|
||||
/datum/config_entry/flag/allow_crew_objectives
|
||||
@@ -304,4 +305,11 @@
|
||||
|
||||
/datum/config_entry/number/nightshift_finish
|
||||
config_entry_value = 6
|
||||
//End of Cit changes
|
||||
//End of Cit changes
|
||||
=======
|
||||
/datum/config_entry/keyed_number_list/antag_rep
|
||||
|
||||
/datum/config_entry/number/monkeycap
|
||||
config_entry_value = 64
|
||||
min_val = 0
|
||||
>>>>>>> d060e4e... Antag reputation rewards are now configurable (#38077)
|
||||
|
||||
@@ -422,7 +422,7 @@ SUBSYSTEM_DEF(job)
|
||||
else
|
||||
M = H
|
||||
|
||||
SSpersistence.antag_rep_change[M.client.ckey] += job.antag_rep
|
||||
SSpersistence.antag_rep_change[M.client.ckey] += job.GetAntagRep()
|
||||
|
||||
to_chat(M, "<b>You are the [rank].</b>")
|
||||
if(job)
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
var/exp_type_department = ""
|
||||
|
||||
//The amount of good boy points playing this role will earn you towards a higher chance to roll antagonist next round
|
||||
//can be overriden by antag_rep.txt config
|
||||
var/antag_rep = 10
|
||||
|
||||
//Only override this proc
|
||||
@@ -67,6 +68,11 @@
|
||||
/datum/job/proc/special_check_latejoin(client/C)
|
||||
return TRUE
|
||||
|
||||
/datum/job/proc/GetAntagRep()
|
||||
. = CONFIG_GET(keyed_number_list/antag_rep)[lowertext(title)]
|
||||
if(. == null)
|
||||
return antag_rep
|
||||
|
||||
//Don't override this unless the job transforms into a non-human (Silicons do this for example)
|
||||
/datum/job/proc/equip(mob/living/carbon/human/H, visualsOnly = FALSE, announce = TRUE, latejoin = FALSE)
|
||||
if(!H)
|
||||
|
||||
5
config/antag_rep.txt
Normal file
5
config/antag_rep.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
## Custom antag reputation values
|
||||
## List of job titles followed by antag rep value, all prefixed with ANTAG_REP. See code/modules/jobs/job_types for titles
|
||||
## e.g.
|
||||
## ANTAG_REP Captain 10
|
||||
## ANTAG_REP Assistant 0
|
||||
@@ -3,6 +3,7 @@
|
||||
$include game_options.txt
|
||||
$include dbconfig.txt
|
||||
$include comms.txt
|
||||
$include antag_rep.txt
|
||||
|
||||
# You can use the @ character at the beginning of a config option to lock it from being edited in-game
|
||||
# Example usage:
|
||||
|
||||
Reference in New Issue
Block a user