Skip to content

Commit

Permalink
last changes hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed May 6, 2024
1 parent 6296969 commit c544da3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion code/modules/vehicles/hardpoints/hardpoint.dm
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,9 @@
var/is_broken = health <= 0
var/image/I = image(icon = disp_icon, icon_state = "[disp_icon_state]_[is_broken ? "1" : "0"]", pixel_x = x_offset, pixel_y = y_offset, dir = new_dir)
switch(round((health / initial(health)) * 100))
if(0 to 20)
if(0)
I.color = "#888888"
if(1 to 20)
I.color = "#4e4e4e"
if(21 to 40)
I.color = "#6e6e6e"
Expand Down
4 changes: 3 additions & 1 deletion code/modules/vehicles/hardpoints/support/antenna.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@

var/image/antenna_img = image(icon = disp_icon, icon_state = "[disp_icon_state]_[antenna_extended ? "extended" : "cover"]_[is_broken ? "1" : "0"]", pixel_x = x_offset, pixel_y = y_offset, dir = new_dir)
switch(round((health / initial(health)) * 100))
if(0 to 20)
if(0)
antenna_img.color = "#888888"
if(1 to 20)
antenna_img.color = "#4e4e4e"
if(21 to 40)
antenna_img.color = "#6e6e6e"
Expand Down

0 comments on commit c544da3

Please sign in to comment.