Skip to content

Commit

Permalink
fix: add tooltip to block/parry symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin9257 committed Sep 24, 2024
1 parent 0ad25a3 commit b6b65dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion static/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
"CharacterIsDead": "Character is dead",
"DealDamageTo": "Deal damage to _ACTOR_NAME_",
"DamageFormula": "Damage Formula",
"NoRegularDamage": "No Regular Damage"
"NoRegularDamage": "No Regular Damage",
"CanBeBlocked": "Can be blocked",
"CanBeParried": "Can be parried"
},
"DamageType": {
"Acid": "Acid",
Expand Down
4 changes: 2 additions & 2 deletions static/templates/chat/damage-message.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ <h4 class="dice-total">{{radDamage}}</h4>
<footer class="damage-footer">
<span> {{localize "TWODSIX.Items.Weapon.ArmorPiercing"}}: {{armorPiercingValue}}</span>
{{#iff damageLabel "!==" ""}}<span>{{localize "TWODSIX.Items.Weapon.damageType"}}: {{localize damageLabel}}
{{#if canBeParried}} <i class="fa-solid fa-down-left-and-up-right-to-center"></i>
{{else if canBeBlocked}} <i class="fa-solid fa-shield"></i>{{/if}}</span>{{/iff}}
{{#if canBeParried}} <i class="fa-solid fa-down-left-and-up-right-to-center" data-tooltip='{{localize "TWODSIX.Damage.CanBeParried"}}'></i>
{{else if canBeBlocked}} <i class="fa-solid fa-shield" data-tooltip='{{localize "TWODSIX.Damage.CanBeBlocked"}}'></i>{{/if}}</span>{{/iff}}
</footer>

0 comments on commit b6b65dc

Please sign in to comment.