more styling and gap removal

from here out, the commit names are going to get remarkably less useful
as i become more frustrated with krausus pointing things out
post-commit.
This commit is contained in:
FalseIncarnate
2016-07-13 22:46:43 -04:00
parent 7d8080e489
commit 0c4f898d95
2 changed files with 15 additions and 8 deletions

View File

@@ -291,7 +291,7 @@
if(reagents.total_volume)
var/image/filling = image('icons/obj/reagentfillings.dmi', src, "[icon_state]10")
switch(reagents.total_volume)
switch(round(reagents.total_volume))
if(0 to 9)
filling.icon_state = "[icon_state]-10"
if(10 to 19)

View File

@@ -205,13 +205,20 @@
var/percent = round((reagents.total_volume / volume) * 100)
switch(percent)
if(0 to 9) filling.icon_state = "[icon_state]-10"
if(10 to 24) filling.icon_state = "[icon_state]10"
if(25 to 49) filling.icon_state = "[icon_state]25"
if(50 to 74) filling.icon_state = "[icon_state]50"
if(75 to 79) filling.icon_state = "[icon_state]75"
if(80 to 90) filling.icon_state = "[icon_state]80"
if(91 to INFINITY) filling.icon_state = "[icon_state]100"
if(0 to 9)
filling.icon_state = "[icon_state]-10"
if(10 to 24)
filling.icon_state = "[icon_state]10"
if(25 to 49)
filling.icon_state = "[icon_state]25"
if(50 to 74)
filling.icon_state = "[icon_state]50"
if(75 to 79)
filling.icon_state = "[icon_state]75"
if(80 to 90)
filling.icon_state = "[icon_state]80"
if(91 to INFINITY)
filling.icon_state = "[icon_state]100"
filling.icon += mix_color_from_reagents(reagents.reagent_list)
overlays += filling