From a1daac239f9966fe3db374faccfe81eb470367a0 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Sun, 8 Mar 2026 21:17:22 +0100 Subject: [PATCH] Fixed error caused by missing damageMultiplier2 text in Book Of Virtues Wisp function --- descriptions/rep/cs_cz.lua | 1 + descriptions/rep/de.lua | 1 + descriptions/rep/en_us.lua | 1 + descriptions/rep/it.lua | 1 + descriptions/rep/ja_jp.lua | 1 + descriptions/rep/ko_kr.lua | 1 + descriptions/rep/spa.lua | 1 + descriptions/rep/zh_cn.lua | 1 + features/eid_modifiers.lua | 4 ++-- 9 files changed, 10 insertions(+), 2 deletions(-) diff --git a/descriptions/rep/cs_cz.lua b/descriptions/rep/cs_cz.lua index f8281e71..599d2d7d 100644 --- a/descriptions/rep/cs_cz.lua +++ b/descriptions/rep/cs_cz.lua @@ -1605,6 +1605,7 @@ EID.descriptions[languageCode].BookOfVirtuesWispTexts = { -- The placeholder therefore can be used in all parts that make up the wisp descriptions StatDescription = "{ringIcon}{{Wisp}} {amount}|{{Heart}} {health}|{{Damage}} {damage}", -- {ringIcon} will be replaced with an icon representing the wisp movement, {amount} with the number of wisps, {health} with the HP, {damage} with the damage or the "CantShoot" text Shotspeed = "{1}% Rychlost střely", -- {1} will be replaced with the shot speed changes in % + Damage = "{1}% Poškození", -- {1} will be replaced with the damage changes in % Chance = " ({1}% Šance)", -- {1} will be replaced with the chance SingleRoom = "Bludička pro jednu místnost", NoWisps = "Žádné bludičky", diff --git a/descriptions/rep/de.lua b/descriptions/rep/de.lua index 103060c6..66243503 100644 --- a/descriptions/rep/de.lua +++ b/descriptions/rep/de.lua @@ -525,6 +525,7 @@ EID.descriptions[languageCode].BookOfVirtuesWispTexts = { -- The placeholder therefore can be used in all parts that make up the wisp descriptions StatDescription = "{ringIcon}{{Wisp}} {amount}|{{Heart}} {health}|{{Damage}} {damage}", -- {ringIcon} will be replaced with an icon representing the wisp movement, {amount} with the number of wisps, {health} with the HP, {damage} with the damage or the "CantShoot" text Shotspeed = "{1}% Schussgeschwindigkeit", -- {1} will be replaced with the shot speed changes in % + Damage = "{1}% Schaden", -- {1} will be replaced with the damage changes in % Chance = " ({1}% Chance)", -- {1} will be replaced with the chance SingleRoom = "Einzelraum-Wisp{plural_s}", NoWisps = "Kein Wisp", diff --git a/descriptions/rep/en_us.lua b/descriptions/rep/en_us.lua index 48cf5aae..a2515907 100644 --- a/descriptions/rep/en_us.lua +++ b/descriptions/rep/en_us.lua @@ -485,6 +485,7 @@ EID.descriptions[languageCode].BookOfVirtuesWispTexts = { -- The placeholder therefore can be used in all parts that make up the wisp descriptions StatDescription = "{ringIcon}{{Wisp}} {amount}|{{Heart}} {health}|{{Damage}} {damage}", -- {ringIcon} will be replaced with an icon representing the wisp movement, {amount} with the number of wisps, {health} with the HP, {damage} with the damage or the "CantShoot" text Shotspeed = "{1}% Shot speed", -- {1} will be replaced with the shot speed changes in % + Damage = "{1}% Damage", -- {1} will be replaced with the damage changes in % Chance = " ({1}% Chance)", -- {1} will be replaced with the chance SingleRoom = "Single room wisp", NoWisps = "No Wisps", diff --git a/descriptions/rep/it.lua b/descriptions/rep/it.lua index 1c1771db..2e5dfbd4 100644 --- a/descriptions/rep/it.lua +++ b/descriptions/rep/it.lua @@ -485,6 +485,7 @@ EID.descriptions[languageCode].BookOfVirtuesWispTexts = { -- The placeholder therefore can be used in all parts that make up the wisp descriptions StatDescription = "{ringIcon}{{Wisp}} {amount}|{{Heart}} {health}|{{Damage}} {damage}", -- {ringIcon} will be replaced with an icon representing the wisp movement, {amount} with the number of wisps, {health} with the HP, {damage} with the damage or the "CantShoot" text Shotspeed = "{1}% Velocità Colpi", -- {1} will be replaced with the shot speed changes in % + Damage = "{1}% Danni", -- {1} will be replaced with the damage changes in % Chance = " ({1}% di chance)", -- {1} will be replaced with the chance SingleRoom = "Fiammella per una singola stanza", NoWisps = "Niente fiammelle", diff --git a/descriptions/rep/ja_jp.lua b/descriptions/rep/ja_jp.lua index f8626919..893034a3 100644 --- a/descriptions/rep/ja_jp.lua +++ b/descriptions/rep/ja_jp.lua @@ -493,6 +493,7 @@ EID.descriptions[languageCode].BookOfVirtuesWispTexts = { -- The placeholder therefore can be used in all parts that make up the wisp descriptions StatDescription = "{ringIcon}{{Wisp}} {amount}|{{Heart}} {health}|{{Damage}} {damage}", -- {ringIcon} will be replaced with an icon representing the wisp movement, {amount} with the number of wisps, {health} with the HP, {damage} with the damage or the "CantShoot" text Shotspeed = "弾速:{1}%", -- {1} will be replaced with the shot speed changes in % + Damage = "ダメージ: {1}%", -- {1} will be replaced with the damage changes in % Chance = "(確率{1}%)", -- {1} will be replaced with the chance SingleRoom = "その部屋でのみ有効", NoWisps = "ウィスプなし", diff --git a/descriptions/rep/ko_kr.lua b/descriptions/rep/ko_kr.lua index 23e3247f..215f550b 100644 --- a/descriptions/rep/ko_kr.lua +++ b/descriptions/rep/ko_kr.lua @@ -578,6 +578,7 @@ EID.descriptions[languageCode].BookOfVirtuesWispTexts = { -- The placeholder therefore can be used in all parts that make up the wisp descriptions StatDescription = "{ringIcon}{{Wisp}} {amount}|{{Heart}} {health}|{{Damage}} {damage}", -- {ringIcon} will be replaced with an icon representing the wisp movement, {amount} with the number of wisps, {health} with the HP, {damage} with the damage or the "CantShoot" text Shotspeed = "탄속 {1}%", -- {1} will be replaced with the shot speed changes in % + Damage = "피해 {1}%", -- {1} will be replaced with the damage changes in % Chance = " (확률 {1}%)", -- {1} will be replaced with the chance SingleRoom = "방을 나가면 사라집니다.", NoWisps = "위습 없음", diff --git a/descriptions/rep/spa.lua b/descriptions/rep/spa.lua index 392a8292..60660c8f 100644 --- a/descriptions/rep/spa.lua +++ b/descriptions/rep/spa.lua @@ -485,6 +485,7 @@ EID.descriptions[languageCode].BookOfVirtuesWispTexts = { -- The placeholder therefore can be used in all parts that make up the wisp descriptions StatDescription = "{ringIcon}{{Wisp}} {amount}|{{Heart}} {health}|{{Damage}} {damage}", -- {ringIcon} will be replaced with an icon representing the wisp movement, {amount} with the number of wisps, {health} with the HP, {damage} with the damage or the "CantShoot" text Shotspeed = "{1}% vel. de lágrimas", -- {1} will be replaced with the shot speed changes in % + Damage = "{1}% Daño", -- {1} will be replaced with the damage changes in % Chance = " ({1}% de probabilidad)", -- {1} will be replaced with the chance SingleRoom = "Fuego de una sola habitación", NoWisps = "No hay fuego", diff --git a/descriptions/rep/zh_cn.lua b/descriptions/rep/zh_cn.lua index 8b869e5a..ac4b124a 100644 --- a/descriptions/rep/zh_cn.lua +++ b/descriptions/rep/zh_cn.lua @@ -486,6 +486,7 @@ EID.descriptions[languageCode].BookOfVirtuesWispTexts = { -- The placeholder therefore can be used in all parts that make up the wisp descriptions StatDescription = "{ringIcon}{{Wisp}} {amount}|{{Heart}} {health}|{{Damage}} {damage}", -- {ringIcon} will be replaced with an icon representing the wisp movement, {amount} with the number of wisps, {health} with the HP, {damage} with the damage or the "CantShoot" text Shotspeed = "{1}%弹速", -- {1} will be replaced with the shot speed changes in % + Damage = "{1}%伤害", -- {1} will be replaced with the damage changes in % Chance = " ({1}%概率)", -- {1} will be replaced with the chance SingleRoom = "单房间魂火", NoWisps = "无魂火", diff --git a/features/eid_modifiers.lua b/features/eid_modifiers.lua index d7bae762..fbbdfde0 100644 --- a/features/eid_modifiers.lua +++ b/features/eid_modifiers.lua @@ -1195,8 +1195,8 @@ if EID.isRepentance then -- damage multiplier based on proc chance if damageMultiplier2 ~= 1 then - local damageText2 = EID:ReplaceVariableStr(EID:getDescriptionEntry("BookOfVirtuesWispTexts", "Damage"), damageMultiplier2) - descriptionText = descriptionText .. "#" .. textColor .. damageText2 .. GetChanceString(2, procChance, procChance, 0) + local damageText2 = EID:ReplaceVariableStr(EID:getDescriptionEntry("BookOfVirtuesWispTexts", "Damage"), damageMultiplier2 * 100) + descriptionText = descriptionText .. "#{{Damage}} " .. textColor .. damageText2 .. GetChanceString(2, procChance, procChance, 0) end -- create list of tear effect descriptions descriptionText = descriptionText .. GetFlagString(1, "TearFlagNames", "{{Shotspeed}} " .. textColor, tearFlags, procChance, procChance)