We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6a0fef commit 537ee14Copy full SHA for 537ee14
1 file changed
core/client/util/dicerollentry.cpp
@@ -67,8 +67,10 @@ DiceRollResult DiceRollEntry::roll(bool signOnPositive) const
67
int sum = 0;
68
for(int i=0;i<numDice_;i++)
69
{
70
- int rolledValue = static_cast<int>(Dice::roll(value_));
71
- rollList.append(QString::number(rolledValue));
+ int rolledValue = static_cast<int>(Dice::roll(std::abs(value_)));
+ if(value_ < 0)
72
+ rolledValue = - rolledValue;
73
+ rollList.append(QString::number(std::abs(rolledValue)));
74
sum += rolledValue;
75
}
76
text += rollList.join(',');
0 commit comments