Skip to content

Commit

Permalink
feat: localize effect name
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosFdez committed Mar 22, 2022
1 parent f28d2db commit a46ddb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module/persistent-effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export function createPersistentTitle(data: PersistentData) {
const { damageType, value, dc } = data;
const typeName = game.i18n.localize(CONFIG.PF2E.damageTypes[damageType]);
const dcStr = dc === 15 ? "" : ` DC${String(dc)}`;
return `Persistent Damage [${typeName} ${String(value)}${dcStr}]`;
const conditionName = game.i18n.localize("PF2E.condition.persistent-damage.name");
return `${conditionName} [${typeName} ${String(value)}${dcStr}]`;
}

/**
Expand Down

0 comments on commit a46ddb4

Please sign in to comment.