From: Mischa POSLAWSKY Date: Sun, 22 Apr 2018 01:30:13 +0000 (+0200) Subject: sc: special-case invulnerability for adept shades X-Git-Tag: v1.12~61 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/f69c7a581912c31681e3188f91f2b22656020ea3?hp=be9d4788815fac719e6aab8cdcf7ac35183eea7c sc: special-case invulnerability for adept shades --- diff --git a/sc-units-lotv.inc.pl b/sc-units-lotv.inc.pl index 9d99fcc..dfa9748 100644 --- a/sc-units-lotv.inc.pl +++ b/sc-units-lotv.inc.pl @@ -118,9 +118,7 @@ $unit{sentry}, build => 0, size => 0, cargo => 0, - attr => { - trans => 1, - }, + hp => -1, attack => [], #TODO: indicate diff from parent speed => 5, #XXX: faster than 3.5 range => 7, #XXX: calculate from speed diff --git a/sc.plp b/sc.plp index bbcd9c9..53934f2 100644 --- a/sc.plp +++ b/sc.plp @@ -318,6 +318,7 @@ sub showrangeint { $_->{attr}->{massive} && '⚓', ), + $_->{hp} < 0 ? '∞' : '' . $_->{hp} // '', $_->{shield} ? sprintf('%.0f%%{shield} / $_->{hp}