From f69c7a581912c31681e3188f91f2b22656020ea3 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 22 Apr 2018 03:30:13 +0200 Subject: [PATCH] sc: special-case invulnerability for adept shades --- sc-units-lotv.inc.pl | 4 +--- sc.plp | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) 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} -- 2.30.0