mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-20 12:41:17 +01:00
Arbitrary maximum dice
This commit is contained in:
parent
71c2d26ebe
commit
3c8367240a
@ -2360,6 +2360,11 @@ function diceRoller($post) {
|
||||
$diceY = intval($diceY);
|
||||
$diceZ = intval($diceZ);
|
||||
|
||||
// Arbitrary maximum number of dice
|
||||
if ($diceX > 200) {
|
||||
$diceX = 200;
|
||||
}
|
||||
|
||||
// Continue only if we have valid values
|
||||
if($diceX > 0 && $diceY > 0) {
|
||||
$dicerolls = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user