Files
nethack/dat
copperwater c4bb3c904f Implement dice and percent as global lua functions
Intended to simplify many of the math.random calls currently in use, and
make them more semantic and thus more readable.

The dice function d() takes either a two-argument form which is the same
as in the C source (number of dice, faces per die) or a one-argument
form that rolls a single die.

The percent(N) function returns true N% of the time.
2020-04-06 19:43:56 +03:00
..
2018-01-25 23:23:16 -05:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2020-02-24 19:08:58 +02:00
2020-02-24 19:08:58 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-22 09:24:19 +02:00
2020-03-14 21:49:18 +02:00
2020-02-24 19:08:58 +02:00
2020-02-24 19:08:58 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2016-06-11 15:35:35 -07:00
2020-04-03 21:05:49 +03:00
2020-02-01 18:31:39 +02:00
2019-11-06 18:43:20 +02:00
2018-04-25 16:54:50 -04:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-12-05 08:37:02 -05:00
2020-02-24 19:08:58 +02:00
2020-02-24 19:08:58 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-05-31 18:41:37 -07:00
2019-05-31 18:41:37 -07:00
2020-03-06 10:31:51 -05:00
2019-06-25 03:27:42 -07:00
2020-02-24 19:08:58 +02:00
2020-02-24 19:08:58 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2020-03-01 10:13:53 +02:00
2002-01-05 21:05:46 +00:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2020-02-24 19:08:58 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2020-02-07 14:37:51 -08:00
2020-02-21 21:32:18 +02:00
2015-03-17 18:45:58 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2020-02-24 19:08:58 +02:00
2020-01-29 17:25:16 +02:00
2020-02-24 19:08:58 +02:00
2020-02-24 19:08:58 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2015-12-13 13:34:47 -05:00
2019-10-20 11:21:47 -04:00
2020-02-24 19:08:58 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-04 10:42:14 -08:00
2020-02-24 19:08:58 +02:00
2020-02-24 19:08:58 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2020-02-24 19:08:58 +02:00
2020-02-24 19:08:58 +02:00
2020-02-24 19:08:58 +02:00
2020-02-24 19:08:58 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00
2019-11-06 18:43:20 +02:00