git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a6782d3
)
sc: restyle massive indicator (append to suit char)
author
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 15 Jun 2015 22:45:55 +0000
(
00:45
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 15 Jun 2015 22:45:55 +0000
(
00:45
+0200)
sc.css
patch
|
blob
|
history
sc.plp
patch
|
blob
|
history
diff --git
a/sc.css
b/sc.css
index f7249cbbe6b8829cf5bb524bacc6fdc1d7a1c404..0b83d6b5c0680ec981101d2e43f9e95119ff1a73 100644
(file)
--- a/
sc.css
+++ b/
sc.css
@@
-56,7
+56,7
@@
table h2 {
content: '*';
color: #C66;
}
content: '*';
color: #C66;
}
-.unit-massive,
+
td
.unit-massive,
.hurt .unit-splash {
position: absolute;
}
.hurt .unit-splash {
position: absolute;
}
@@
-69,7
+69,7
@@
table h2 {
color: #4A0;
}
.unit-massive {
color: #4A0;
}
.unit-massive {
- color: #
A76
;
+ color: #
D88
;
}
.unit-detect::before {
content: '!';
}
.unit-detect::before {
content: '!';
diff --git
a/sc.plp
b/sc.plp
index 840e08208e7dc3e166d5e8ae02c902040ed63209..7f927cacef87c449356b996d70f61a272f9190d4 100644
(file)
--- a/
sc.plp
+++ b/
sc.plp
@@
-211,7
+211,11
@@
sub showval {
!!$_->{base} && '<span class="unit-composed">+</span>',
$_->{build} || '0',
),
!!$_->{base} && '<span class="unit-composed">+</span>',
$_->{build} || '0',
),
- !$suitchar ? '<td>' : sprintf('<td class="unit unit-%s">%s', $suitchar, ucfirst $suitchar),
+ !$suitchar ? '<td>' : sprintf('<td class="unit unit-%s">%s%s',
+ $suitchar, ucfirst $suitchar,
+ $_->{attr}->{massive}
+ && '<span class="unit-massive" title="massive">⚓</span>',
+ ),
'<td class="val unit">' . (
defined $_->{unit} && $_->{unit} == .5 ? '½' : $_->{unit}
),
'<td class="val unit">' . (
defined $_->{unit} && $_->{unit} == .5 ? '½' : $_->{unit}
),
@@
-242,8
+246,6
@@
sub showval {
showval($_, 'sight')
),
'<td class="val unit-speed">' . showval($_, 'speed'),
showval($_, 'sight')
),
'<td class="val unit-speed">' . showval($_, 'speed'),
- $_->{attr}->{massive}
- && '<span class="unit-massive" title="massive">⚓</span>',
'<td class="unit-magic">' . showmagic($_),
"\n"
);
'<td class="unit-magic">' . showmagic($_),
"\n"
);
@@
-312,7
+314,8
@@
if ($scver{major} > 1) {
:>transports can fit 8 <span class="unit unit-s">S</span>mall,
4 <span class="unit unit-m">M</span>edium,
2 <span class="unit unit-l">L</span>arge,
:>transports can fit 8 <span class="unit unit-s">S</span>mall,
4 <span class="unit unit-m">M</span>edium,
2 <span class="unit unit-l">L</span>arge,
- or a single <span class="unit unit-h">H</span>uge unit<:
+ or a single <span class="unit unit-h">H</span>uge unit
+ <dd>massive <span class="unit-massive">⚓</span> units are immune to certain spells<:
} else {
:>affected by <span class="unit unit-s">S</span>mall,
<span class="unit unit-m">M</span>edium, or
} else {
:>affected by <span class="unit unit-s">S</span>mall,
<span class="unit unit-m">M</span>edium, or