SAGA2: Rename class variables in dice.h
This commit is contained in:
parent
2aefa6c30f
commit
bdb5066b35
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue