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:
c09dbeb
)
sc: describe hots vulnerabilities attributes
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 13 Jun 2015 04:42:56 +0000
(06:42 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 13 Jun 2015 04:42:56 +0000
(06:42 +0200)
sc.css
patch
|
blob
|
history
sc.plp
patch
|
blob
|
history
diff --git
a/sc.css
b/sc.css
index b8e3981e8fa188515f1d277967f4473489c65a63..f7249cbbe6b8829cf5bb524bacc6fdc1d7a1c404 100644
(file)
--- a/
sc.css
+++ b/
sc.css
@@
-47,6
+47,7
@@
table h2 {
.unit.unit-s {color: #770}
.unit.unit-m {color: #C70}
.unit.unit-l {color: #D22}
.unit.unit-s {color: #770}
.unit.unit-m {color: #C70}
.unit.unit-l {color: #D22}
+.unit.unit-h {color: #804}
.hurt.unit-s::before {
content: '~';
color: #773;
.hurt.unit-s::before {
content: '~';
color: #773;
diff --git
a/sc.plp
b/sc.plp
index 0534c04ed3659278b6e51ed6b01d4c96cf9a353e..fc3156c9cf1e540a4da4d008a9e72d37b68ccc11 100644
(file)
--- a/
sc.plp
+++ b/
sc.plp
@@
-206,10
+206,10
@@
sub showval {
defined $_->{unit} && $_->{unit} == .5 ? '½' : $_->{unit}
),
'<td class="unit unit-type">' . join('', grep { $_ }
defined $_->{unit} && $_->{unit} == .5 ? '½' : $_->{unit}
),
'<td class="unit unit-type">' . join('', grep { $_ }
- (defined $_->{organic} || $_->{attr}->{organic})
- && '<span class="unit-o" title="organic">o</span>',
(defined $_->{organic} ? !$_->{organic} : $_->{attr}->{mech})
&& '<span class="unit-u" title="mechanic">m</span>',
(defined $_->{organic} ? !$_->{organic} : $_->{attr}->{mech})
&& '<span class="unit-u" title="mechanic">m</span>',
+ ($_->{organic} || $_->{attr}->{organic})
+ && '<span class="unit-o" title="organic">o</span>',
$_->{attr}->{psionic}
&& '<span class="unit-p" title="psionic">ψ</span>',
),
$_->{attr}->{psionic}
&& '<span class="unit-p" title="psionic">ψ</span>',
),
@@
-304,11
+304,22
@@
if ($scver{major} > 1) {
or a single <span class="unit unit-h">H</span>uge unit<:
} else {
:>affected by <span class="unit unit-s">S</span>mall,
or a single <span class="unit unit-h">H</span>uge unit<:
} else {
:>affected by <span class="unit unit-s">S</span>mall,
- <span class="unit unit-m">M</span>edium,
-
or
<span class="unit unit-l">L</span>arge unit damage<:
+ <span class="unit unit-m">M</span>edium,
or
+ <span class="unit unit-l">L</span>arge unit damage<:
} :>
<dd>number of command points taken per unit
} :>
<dd>number of command points taken per unit
- <dd><span class="unit unit-o">o</span>rganic/<span class="unit unit-u">m</span>echanic unit
+ <dd><:
+if ($scver{major} > 1) {
+ :>received damage depends on
+ <span class="unit unit-o">o</span>rganic,
+ <span class="unit unit-u">m</span>echanic,
+ <span class="unit unit-p">ψ</span>(ps)ionic,
+ <span class="unit unit-s">L</span>ight, and
+ <span class="unit unit-l">A</span>rmored
+ attributes<:
+} else {
+ :><span class="unit unit-o">o</span>rganic/<span class="unit unit-u">m</span>echanic unit<:
+} :>
<dt>HP<dd>
total number of hitpoints (including shields)
<dt>shield
<dt>HP<dd>
total number of hitpoints (including shields)
<dt>shield