copperwater
cba85d2314
Allow des.object "trapped" field to be a boolean
...
I thought there were more object fields that currently only accept ints
but ought to accept booleans, but when I checked I found that most of
them do already, and the ones that take ints are the ones that the
number carries meaning (spe, recharged, etc).
Except for trapped. In struct obj, otrapped is a 1-bit flag, so there's no
good reason for the level parser to treat it as a type error if someone
intuitively makes a des.object call with trapped=true or trapped=false.
Change it to an optional boolean argument, like the other boolean flags
(locked, greased, etc).
Note that get_table_boolean_opt still accepts ints, so existing uses of
trapped=0 or trapped=1 won't be affected.
2023-07-04 15:38:26 -07:00
..
2022-02-04 09:41:30 -05:00
2023-02-08 17:17:43 -05:00
2023-07-03 13:24:56 -07:00
2023-06-21 03:31:41 -07:00
2023-05-27 08:47:26 -07:00
2023-06-28 07:56:34 -07:00
2023-04-27 14:53:28 -07:00
2023-06-14 06:13:11 -07:00
2023-06-09 16:09:26 -07:00
2023-06-04 00:22:14 -07:00
2023-05-22 14:43:01 -07:00
2022-12-05 13:39:46 -05:00
2023-04-16 09:57:41 +03:00
2023-06-16 21:19:43 -07:00
2023-04-30 00:38:40 -07:00
2023-06-14 06:13:11 -07:00
2023-04-29 01:48:11 -07:00
2022-10-29 10:54:25 -04:00
2023-04-06 01:56:08 -07:00
2023-06-14 16:14:18 -07:00
2023-07-03 13:24:56 -07:00
2023-06-27 08:51:29 -07:00
2023-05-20 15:34:32 -07:00
2023-03-19 12:19:34 -04:00
2023-06-14 15:54:04 -07:00
2022-09-06 10:00:07 -04:00
2023-06-03 16:39:12 -07:00
2023-04-27 14:53:28 -07:00
2023-06-04 00:22:14 -07:00
2023-05-04 06:02:23 -07:00
2023-03-16 22:27:01 -04:00
2023-05-01 17:46:16 +03:00
2022-11-29 21:53:21 -05:00
2023-05-31 22:17:07 -04:00
2023-06-17 20:28:07 -07:00
2023-06-14 06:13:11 -07:00
2023-03-16 22:27:01 -04:00
2023-05-10 02:23:57 -07:00
2023-04-08 16:40:21 -07:00
2022-09-19 17:32:42 -04:00
2023-04-21 14:32:43 -07:00
2023-04-27 14:53:28 -07:00
2023-04-21 08:25:53 -04:00
2023-06-16 21:19:43 -07:00
2023-03-19 12:19:34 -04:00
2023-05-29 22:39:43 -04:00
2023-06-16 21:19:43 -07:00
2023-06-14 06:13:11 -07:00
2023-04-11 14:21:06 +03:00
2023-06-12 15:07:34 -07:00
2022-11-29 21:53:21 -05:00
2023-06-12 15:07:34 -07:00
2023-06-14 15:54:04 -07:00
2023-03-19 13:03:22 +02:00
2023-07-02 14:43:29 -07:00
2023-05-28 13:19:53 -07:00
2023-06-16 21:19:43 -07:00
2023-04-22 16:10:37 -07:00
2023-02-07 00:44:36 -05:00
2023-04-27 14:53:28 -07:00
2023-06-14 06:13:11 -07:00
2023-05-06 23:12:59 +03:00
2023-04-21 14:32:43 -07:00
2023-07-04 14:53:16 -07:00
2023-06-24 13:18:16 -04:00
2023-01-28 13:02:46 -08:00
2022-09-13 10:27:53 -07:00
2023-06-14 15:54:04 -07:00
2023-06-30 16:54:43 -07:00
2023-03-16 22:27:01 -04:00
2023-06-24 16:12:54 -07:00
2023-04-24 16:34:48 -07:00
2023-06-16 21:19:43 -07:00
2023-06-15 02:29:51 -07:00
2023-06-24 16:12:54 -07:00
2023-04-19 14:37:55 +03:00
2023-06-17 14:15:49 -07:00
2023-06-17 14:15:49 -07:00
2023-06-14 06:13:11 -07:00
2023-03-16 22:27:01 -04:00
2023-05-11 12:12:12 -07:00
2023-06-14 00:04:21 -07:00
2022-11-29 21:53:21 -05:00
2022-11-19 00:49:11 -08:00
2022-12-22 15:07:33 -08:00
2023-04-01 10:13:01 +03:00
2023-06-14 00:04:21 -07:00
2023-03-01 12:01:43 -05:00
2023-05-04 06:02:23 -07:00
2023-04-15 14:25:52 +03:00
2023-04-27 14:53:28 -07:00
2023-05-15 23:14:26 -04:00
2023-07-04 15:38:26 -07:00
2023-04-29 02:18:29 -07:00
2022-12-31 11:25:53 -08:00
2023-04-17 18:47:05 +03:00
2023-06-30 12:55:33 -07:00
2022-11-18 17:54:17 -08:00
2023-06-09 00:56:53 -07:00
2023-05-08 15:21:03 -07:00
2023-07-02 14:58:11 -07:00
2023-03-11 15:12:02 -05:00
2023-07-02 15:27:58 -07:00
2023-04-27 14:53:28 -07:00
2023-05-28 15:22:43 -07:00
2023-06-06 17:50:08 -04:00
2023-05-04 06:02:23 -07:00
2022-11-29 21:53:21 -05:00
2023-02-06 19:23:42 +02:00
2023-02-19 15:56:18 +02:00
2023-05-11 18:48:02 +03:00
2023-03-18 21:47:34 -07:00
2023-04-21 08:25:53 -04:00
2023-03-19 19:36:52 +02:00
2023-03-16 22:27:01 -04:00
2023-04-27 14:53:28 -07:00
2022-11-29 21:53:21 -05:00
2023-06-14 15:54:04 -07:00