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:
Evan Debenham
2018-08-07 19:00:43 -04:00
parent b3431dd80c
commit 9337d28948
6 changed files with 34 additions and 16 deletions

View File

@@ -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 ) {