add(colormate): Ports recolouring for simple mobs and cyborgs

Original PR:
https://github.com/CHOMPStation2/CHOMPStation2/pull/7415
Original Author:
https://github.com/Kashargul
Personal Addition:
* Added config for letting simples/robots spawn with recolour verb
* Added verb for admins to temporarily edit the config on live.
This commit is contained in:
Runa-Dacino
2024-03-16 16:33:21 +01:00
parent 14e1f6abc4
commit 11c6c90c3b
9 changed files with 284 additions and 6 deletions
+8
View File
@@ -304,6 +304,10 @@ var/list/gamemode_cache = list()
var/static/invoke_youtubedl = null
//Enables/Disables the appropriate mob type from obtaining the verb on spawn. Still allows admins to manually give it to them.
var/static/allow_robot_recolor = FALSE
var/static/allow_simple_mob_recolor = FALSE
/datum/configuration/New()
var/list/L = subtypesof(/datum/game_mode)
for (var/T in L)
@@ -1047,6 +1051,10 @@ var/list/gamemode_cache = list()
if("loadout_whitelist")
config.loadout_whitelist = text2num(value)
if("allow_robot_recolor")
config.allow_robot_recolor = 1
if("allow_simple_mob_recolor")
config.allow_simple_mob_recolor = 1
else
log_misc("Unknown setting in configuration: '[name]'")