From: Ian Jackson Date: Fri, 15 Apr 2022 17:47:14 +0000 (+0100) Subject: dice: Cooldown template: Use total_ms for duration variable X-Git-Tag: otter-1.1.0~576 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=90ac911c58ec84c2443a6ad8557ec7be5dfb3ed9;p=otter.git dice: Cooldown template: Use total_ms for duration variable Make the units clearer. We will provide a value for this from a Serialize context struct in the Rust code, which is still to come. Signed-off-by: Ian Jackson --- diff --git a/dice/cooldown-template-extractor b/dice/cooldown-template-extractor index b077dc5c..57e31ce0 100755 --- a/dice/cooldown-template-extractor +++ b/dice/cooldown-template-extractor @@ -57,7 +57,7 @@ process_node('timegrey', sub { filter_element('path'); $node->setAttribute('d', "{{path_d}}"); $node->setAttribute('id', "{{cd_elid}}"); - foreach my $d (qw(remprop total)) { + foreach my $d (qw(remprop total_ms)) { $node->setAttribute("data-$d", "{{$d}}"); } });