{{!-- SPDX-FileCopyrightText: 2021 Johannes Loher SPDX-FileCopyrightText: 2021 Gesina Schwalbe SPDX-License-Identifier: MIT --}} {{!-- ======================================================================== --}} {{!-- INLINE PARTIAL DEFINITIONS --}} {{!-- ======================================================================== --}} {{!-- !-- Render an input element for a rank value property of an item. !-- @param talentRank: The talentRank !-- @param property: The key of the property in item.data (if 'base', the max value is set automatically) !-- @param disabled: If given, is placed plainly into the input as HTML property; meant to be set to "disabled" to disable the input element !-- @param localizeString: The string to use as key for the localized tooltip --}} {{#*inline "talentRankValue"}} {{/inline}} {{!-- ======================================================================== --}} {{!-- !-- Render an input element for a rank value property of an item. !-- @param talentRank: The talent rank --}}
{{!-- acquired rank --}} {{> talentRankValue talentRank=talentRank property='base' localizeString='DS4.TalentRankBase'}}
( {{localize "DS4.TalentRankOf"}}
{{!-- maximum acquirable rank --}} {{> talentRankValue talentRank=talentRank property='max' localizeString='DS4.TalentRankMax'}}
) +
{{!-- additional ranks --}} {{> talentRankValue talentRank=talentRank property='mod' localizeString='DS4.TalentRankMod'}}
=
{{!-- derived total rank --}} {{> talentRankValue talentRank=talentRank property='total' localizeString='DS4.TalentRankTotal' disabled='disabled'}}