[PR]Add custom formula to weapon base attack (#964)

* Add custom formula to weapon base attack

* Remove log

* Update weapon custom damage formula label + update font-size in px
This commit is contained in:
Dapoulp 2025-08-23 14:54:57 +02:00 committed by GitHub
parent 471cbd55df
commit a72d4583cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 161 additions and 140 deletions

View file

@ -199,8 +199,8 @@ export default class DHWeapon extends AttachableItem {
];
for (const { value, type } of attack.damage.parts) {
const parts = [value.dice];
if (value.bonus) parts.push(value.bonus.signedString());
const parts = value.custom.enabled ? [game.i18n.localize("DAGGERHEART.GENERAL.custom")] : [value.dice];
if (!value.custom.enabled && value.bonus) parts.push(value.bonus.signedString());
if (type.size > 0) {
const typeTags = Array.from(type)