mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-16 02:32:55 +01:00
removes some legacy procs, adds some other procs
NUFC removed add_lspace — unused removed add_tspace — unused removed invertHTML — unused removed hsl2rgb — unimplemented removed hex2num — replaced with define removed num2hex — replaced with define removed add_zero — replaced with pad_left removed add_zero2 — replaced with pad_left removes hex2rgb — replaced with behavior of rgb2num() removes hex2rgb_r — replaced with behavior of rgb2num() removes hex2rgb_g — replaced with behavior of rgb2num() removes hex2rgb_b — replaced with behavior of rgb2num() removes assorted inline list(rgb) > hex — replaced with behavior of rgb() removes assorted inline rand > hex — replace with random_hex_text added hex2num define added num2hex define added random_hex_text added generate_padding added pad_left added pad_right
This commit is contained in:
@@ -158,12 +158,12 @@
|
||||
// This is done at the projector instead of the shields themselves to avoid needing to calculate this more than once every update.
|
||||
var/interpolate_weight = shield_health / max_shield_health
|
||||
|
||||
var/list/low_color_list = hex2rgb(low_color)
|
||||
var/list/low_color_list = rgb2num(low_color)
|
||||
var/low_r = low_color_list[1]
|
||||
var/low_g = low_color_list[2]
|
||||
var/low_b = low_color_list[3]
|
||||
|
||||
var/list/high_color_list = hex2rgb(high_color)
|
||||
var/list/high_color_list = rgb2num(high_color)
|
||||
var/high_r = high_color_list[1]
|
||||
var/high_g = high_color_list[2]
|
||||
var/high_b = high_color_list[3]
|
||||
|
||||
Reference in New Issue
Block a user