sc: describe hots vulnerabilities attributes
[sheet.git] / sc.plp
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