mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
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:
@@ -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]'")
|
||||
|
||||
Reference in New Issue
Block a user