mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-15 16:16:10 +09:00
Bug fix in LightmapRenderer — Now water attenuates sunlight, new creature attribution: religion sphere
Former-commit-id: fd200afabaf318bec060a8fea9eb82da6f105aad Former-commit-id: e035368f4d6d589bdb6822301fee763eb00df984
This commit is contained in:
@@ -12,7 +12,7 @@ public class FudgeDice {
|
||||
|
||||
/**
|
||||
* Define new set of fudge dice with given counts.
|
||||
* @param randfunc
|
||||
* @param randfunc java.util.Random or its extension
|
||||
* @param counts amount of die
|
||||
*/
|
||||
public FudgeDice(Random randfunc, int counts) {
|
||||
@@ -21,8 +21,8 @@ public class FudgeDice {
|
||||
}
|
||||
|
||||
/**
|
||||
* Roll dice and get result. Range: [-3, 3] for three dice
|
||||
* @return
|
||||
* Roll dice and get result.
|
||||
* @return Normal distributed integer [-N , N] for diceCount of N. 0 is the most frequent return.
|
||||
*/
|
||||
public int roll() {
|
||||
int diceResult = 0;
|
||||
@@ -34,7 +34,7 @@ public class FudgeDice {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return random [-1, 0, 1]
|
||||
* @return integer randomly picked from {-1, 0, 1}
|
||||
*/
|
||||
private int rollSingleDie() {
|
||||
return (randfunc.nextInt(3)) - 1;
|
||||
|
||||
Reference in New Issue
Block a user