Replace /proc/num2hex with a much faster macro. (#19600)

This commit is contained in:
warriorstar-orion
2022-11-06 13:11:32 +00:00
committed by GitHub
parent a6b453942e
commit 7867c51b52
6 changed files with 6 additions and 23 deletions
@@ -329,7 +329,7 @@
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(!(NO_BLOOD in H.dna.species.species_traits) && !H.dna.species.exotic_blood)
H.dna.species.blood_color = "#[num2hex(rand(0, 255))][num2hex(rand(0, 255))][num2hex(rand(0, 255))]"
H.dna.species.blood_color = "#[num2hex(rand(0, 255), 2)][num2hex(rand(0, 255), 2)][num2hex(rand(0, 255), 2)]"
return ..()
/datum/reagent/colorful_reagent/reaction_mob(mob/living/simple_animal/M, method=REAGENT_TOUCH, volume)