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