mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 10:14:37 +01:00
Show the modifier in the result string
This commit is contained in:
parent
f19d0cdda6
commit
4f201537b2
3
post.php
3
post.php
@ -533,7 +533,8 @@ if (isset($_POST['delete'])) {
|
||||
}
|
||||
|
||||
// Prepend the result to the post body
|
||||
$post['body'] = 'Rolled ' . implode(', ', $dicerolls) . ' = ' . $dicesum . "\r\n" . $post['body'];
|
||||
$modifier = ($diceZ != 0) ? ((($diceZ < 0) ? ' - ' : ' + ') . abs($diceZ)) : '';
|
||||
$post['body'] = 'Rolled ' . implode(', ', $dicerolls) . $modifier . ' = ' . $dicesum . "\r\n" . $post['body'];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user