v0.7.0: fixes/adjustments:
- ballisticas now go through vision-blocking terrain, but not solid - bleeding is now floating-point internally - fixed hanging when caustic ooze is attached to a dead character - attached a check for shadowcaster crashes - fixed problematic interactions between traps, thrown items, and hourglass
This commit is contained in:
@@ -52,6 +52,11 @@ public class Random {
|
||||
public static float Float( float min, float max ) {
|
||||
return min + Float(max - min);
|
||||
}
|
||||
|
||||
//returns a triangularly distributed float in the range [min, max)
|
||||
public static float NormalFloat( float min, float max ) {
|
||||
return min + ((Float(max - min) + Float(max - min))/2f);
|
||||
}
|
||||
|
||||
//returns a uniformly distributed int in the range [0, max)
|
||||
public static int Int( int max ) {
|
||||
|
||||
Reference in New Issue
Block a user