From 0e311de08dd204822e8b513ab71bbc6d50a171d7 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 23 Apr 2018 17:46:23 +0200 Subject: [PATCH] sc: prefix mineral and gas classes, apply in legend --- sc.css | 6 +++--- sc.plp | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/sc.css b/sc.css index 2d73ee0..19b40b0 100644 --- a/sc.css +++ b/sc.css @@ -38,10 +38,10 @@ table h2 { .units td.unit + td.unit { padding-left: 0; } -.gas { +.unit-gas { color: #040; } -.min, .min a:not(:hover) { +.unit-min, .unit-min a:not(:hover) { color: #004; } .unit-supply { @@ -184,7 +184,7 @@ tbody .unit-shield { .units .hurtrel, .units .unit-pop, .units .unit-type, .units .unit-shield, - .units .gas { + .units .unit-gas { padding: 0; position: absolute; margin-top: 3.2ex; diff --git a/sc.plp b/sc.plp index 0a41018..6dfa65c 100644 --- a/sc.plp +++ b/sc.plp @@ -104,8 +104,8 @@ sub coltoggle { <:= coltoggle(exists $get{order} ? 'race' : 'source' => '') :> <:= coltoggle(name => 'name') :> - <:= coltoggle(cost => 'cost') :> - gas + <:= coltoggle(cost => 'cost') :> + gas <:= coltoggle(build => 'build') :> <:= coltoggle(qw'size size') :> attr @@ -264,8 +264,8 @@ sub showrangeint { $_->{hp} += $_->{shield} if $_->{shield}; return ( - '' . ($_->{min} // ''), - '' . ($_->{gas} || ''), + '' . ($_->{min} // ''), + '' . ($_->{gas} || ''), defined $_->{transform} ? sprintf('%.0f', $_->{transform}, ) : @@ -447,7 +447,8 @@ sub showrangeint {
cost -
minerals and gas required to create one unit +
minerals and + gas required to create one unit
includes total expenses if based on existing units
build
relative time needed to create at least one unit -- 2.30.0