fixes one of my first ever coding sins here (#18412)

* fixes one of my first ever coding sins here

make it explicit

naming

fix that ancient bug too

confirm

sane

.

.

move it up

better

keep it there

only color objects

.

properly reset on bad values

.

urg

.

* ,

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Kashargul
2025-09-22 01:05:16 +02:00
committed by GitHub
co-authored by Cameron Lennox
parent 054345cd87
commit b0a8bfaec6
13 changed files with 524 additions and 353 deletions
@@ -912,11 +912,11 @@
set category = "Abilities.Settings"
set desc = "Allows to recolour once."
if(!has_recoloured)
var/datum/ColorMate/recolour = new /datum/ColorMate(src)
recolour.tgui_interact(src)
if(has_recoloured)
to_chat(src, "You've already recoloured yourself once. Ask for a module reset for another.")
return
to_chat(src, "You've already recoloured yourself once. Ask for a module reset for another.")
tgui_input_colormatrix(src, "Allows you to recolor yourself", "Robot Recolor", src, ui_state = GLOB.tgui_conscious_state)
/mob/living/silicon/robot/attack_hand(mob/user)
if(LAZYLEN(buckled_mobs))
@@ -424,11 +424,11 @@
set category = "Abilities.Settings"
set desc = "Allows to recolour once."
if(!has_recoloured)
var/datum/ColorMate/recolour = new /datum/ColorMate(src)
recolour.tgui_interact(src)
if(has_recoloured)
to_chat(src, "You've already recoloured yourself once. You are only allowed to recolour yourself once during a around.")
return
to_chat(src, "You've already recoloured yourself once. You are only allowed to recolour yourself once during a around.")
tgui_input_colormatrix(src, "Allows you to recolor yourself", "Animal Recolor", src, ui_state = GLOB.tgui_conscious_state)
//Thermal vision adding