SAGA2: Rename class variables in dice.h

This commit is contained in:
Eugene Sandulenko 2022-09-25 20:26:40 +02:00
parent 2aefa6c30f
commit bdb5066b35
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -41,19 +41,19 @@ inline int32 diceRoll(int dice, int sides, int perDieMod, int base) {
} }
class RandomDice { class RandomDice {
int8 dice, side; int8 _dice, _side;
public: public:
RandomDice(int8 d, int8 s) { RandomDice(int8 d, int8 s) {
dice = d; _dice = d;
side = s; _side = s;
} }
RandomDice() { RandomDice() {
dice = 1; _dice = 1;
side = 1; _side = 1;
} }
int32 roll(int32 resist = 0) { int32 roll(int32 resist = 0) {
return diceRoll(dice, side, resist, 0); return diceRoll(_dice, _side, resist, 0);
} }
}; };