[Fix] Refactor project

This commit is contained in:
2026-03-02 12:49:12 +07:00
parent f65976796d
commit f52131f755
44 changed files with 449 additions and 404 deletions
@@ -19,10 +19,10 @@ namespace YachtDice.Modifiers.Effects
{
if (context.DiceValues == null) return UniTask.CompletedTask;
int count = 0;
for (int i = 0; i < context.DiceValues.Length; i++)
var count = 0;
foreach (var t in context.DiceValues)
{
if (targetDiceValue == 0 || context.DiceValues[i] == targetDiceValue)
if (targetDiceValue == 0 || t == targetDiceValue)
count++;
}
@@ -19,9 +19,9 @@ namespace YachtDice.Modifiers.Effects
{
if (context.DiceValues == null) return UniTask.CompletedTask;
for (int i = 0; i < context.DiceValues.Length; i++)
foreach (var t in context.DiceValues)
{
if (targetDiceValue == 0 || context.DiceValues[i] == targetDiceValue)
if (targetDiceValue == 0 || t == targetDiceValue)
context.Multiplier *= multiplierPerDice;
}