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
+2 -1
View File
@@ -222,7 +222,8 @@ var/list/admin_verbs_server = list(
/client/proc/recipe_dump,
/client/proc/panicbunker,
/client/proc/paranoia_logging,
/client/proc/ip_reputation
/client/proc/ip_reputation,
/client/proc/toggle_spawning_with_recolour
)
var/list/admin_verbs_debug = list(
+17
View File
@@ -120,3 +120,20 @@
usr << browse(dat, "window=library")
onclose(usr, "library")
/client/proc/toggle_spawning_with_recolour()
set name = "Toggle Simple/Robot recolour verb"
set desc = "Makes it so new robots/simple_mobs spawn with a verb to recolour themselves for this round. You must set them separately."
set category = "Server"
if(!check_rights(R_SERVER))
return
var/which = tgui_alert(usr, "Which do you want to toggle?", "Choose Recolour Toggle", list("Robot", "Simple Mob"))
switch(which)
if("Robot")
config.allow_robot_recolor = !config.allow_robot_recolor
to_chat(usr, "You have [config.allow_robot_recolor ? "enabled" : "disabled"] newly spawned cyborgs to spawn with the recolour verb")
if("Simple Mob")
config.allow_simple_mob_recolor = !config.allow_simple_mob_recolor
to_chat(usr, "You have [config.allow_simple_mob_recolor ? "enabled" : "disabled"] newly spawned simple mobs to spawn with the recolour verb")