Commit graph

332 commits

Author SHA1 Message Date
NHOrus
a0a35d8c7b Improved docs, fixed identation 2017-06-17 11:09:55 -04:00
NHOrus
32fdd08d9b Little cleanup of variable names 2017-06-17 17:48:12 +03:00
NHOrus
300d246179 Resume from file on startup 2017-06-17 09:20:42 +03:00
Eric S. Raymond
1596e6d81e Code simplification. 2017-06-16 15:58:51 -04:00
Eric S. Raymond
59a558b762 Code simplification. 2017-06-16 15:08:21 -04:00
Eric S. Raymond
d97574d35c Magic-number elimination. 2017-06-16 08:55:53 -04:00
Eric S. Raymond
a57d93ce35 Magic-number elimination. 2017-06-16 07:00:57 -04:00
Eric S. Raymond
ec031b0417 Name another magic number. 2017-06-15 17:34:06 -04:00
Eric S. Raymond
fc7f52f83f Don't do dwarf moves after a fallback command.
Avoids a crash bug.
2017-06-15 16:54:29 -04:00
Eric S. Raymond
14486d67d4 Magic-numnber elimination. 2017-06-15 12:19:06 -04:00
Eric S. Raymond
49edca485d More use of manifeat constants. 2017-06-15 11:15:45 -04:00
Eric S. Raymond
0dc78b4221 More use of manifest constants. 2017-06-15 10:59:43 -04:00
Eric S. Raymond
1896e0f886 Use symbolic shortnames for locations. 2017-06-15 10:31:26 -04:00
NHOrus
f1f7cfd4e9 Localizing variables 2017-06-15 16:16:21 +03:00
Eric S. Raymond
e5f9c4fbea Use LOC_* constants for locations. Clean up some ARB_* constants. 2017-06-15 08:49:47 -04:00
Eric S. Raymond
a141f021d5 Meaningful shortnames for RSPEAK messages. 2017-06-15 07:35:03 -04:00
Eric S. Raymond
1d37262a16 More ARB tagging. 2017-06-15 07:16:39 -04:00
Bob Little
c4c28e10db dungeon now outputs just database.h
Added macro DEFINE_GLOBALS_FROM_INCLUDES to main.c
Makefile no longer has to deal with database.c and database.o
2017-06-14 21:54:49 -04:00
Jason S. Ninneman
1322a347ae Put the long and short location descriptions into a 'locations' data structure.
They're renamed 'small' and 'big' to avoid colliding with C reserved words.
2017-06-14 16:45:49 -07:00
Eric S. Raymond
fef9657e3e Move from random message numbers to ARB_* symbols generate from YAML. 2017-06-14 17:36:30 -04:00
NHOrus
46bb20deb3 Lowering the scope And cleaning up some warnings from static analysis 2017-06-14 15:17:02 -04:00
Eric S. Raymond
4993be4c08 Include LCG state in game saves. 2017-06-14 13:00:28 -04:00
Eric S. Raymond
7af0c7b059 Repair and simplify complicated pirare-robbery logic.
I think we previously mistranslated this in a way that didn't show up
because it would only manifest if you found the penultimare treasure
without encountering the pirate.

This version is much easier to understand.
2017-06-14 08:26:49 -04:00
Eric S. Raymond
473bdfaa2a Code simplification. 2017-06-13 20:06:07 -04:00
Eric S. Raymond
c3453db345 Use more C-like naming conventions for variables. 2017-06-13 19:17:24 -04:00
Eric S. Raymond
dc6a5751ed Magic-number elimination. 2017-06-13 18:54:53 -04:00
Eric S. Raymond
d61cab352e Makere magic numbers for cond bits into symbols. 2017-06-13 18:38:04 -04:00
Eric S. Raymond
bd35d47139 Fix compiler warnings. 2017-06-13 14:33:19 -04:00
Jason S. Ninneman
bfa06be62d Fix all the simple compiler warnings. 2017-06-13 11:19:58 -07:00
Eric S. Raymond
a3c14ba077 Abolish setup check, there's no possibility of restart.
Note, this silently breaks old saves.
2017-06-13 10:20:15 -04:00
Peje Nilsson
b373ba447d Cleanup leftover comments 2017-06-13 13:27:44 +00:00
Eric S. Raymond
43f0c07f1a Update docs to track Peje's latest patch. 2017-06-13 08:30:49 -04:00
Peje Nilsson
169c683e45 Refactor part of dwarfmove to remove goto jumpout 2017-06-13 14:18:06 +02:00
Eric S. Raymond
60ab7a63dc Comment polishing. 2017-06-13 08:15:01 -04:00
Peje Nilsson
a7c0f331d1 Remove L19999 2017-06-13 07:41:08 -04:00
Eric S. Raymond
3bdab31a0d Improve slightly on Peje's L12 patch, changing documentation to match. 2017-06-13 07:36:57 -04:00
Peje Nilsson
c366ddb733 Relocate L12
With a bit of code duplication the L12 label can be moved outside
the loop.
2017-06-13 07:41:09 +02:00
Eric S. Raymond
66c22301ed Add -s option.
Re-enables pasting multiline sequences to the > prompt (for making checkfiles).
2017-06-12 16:51:35 -04:00
Eric S. Raymond
a02b387999 FORTRAN line numbers returned from action() become action symbols. 2017-06-12 14:42:04 -04:00
Eric S. Raymond
d85ef403af Refactor main command loop to eliminate L2000. 2017-06-12 09:42:43 -04:00
Eric S. Raymond
1c4097314a Eliminare L8 label. 2017-06-12 09:28:11 -04:00
Eric S. Raymond
b560b0f597 Eliminate L8 label. 2017-06-12 09:24:11 -04:00
Eric S. Raymond
57f2dfb28f Factor out logic for listing objects at present location. 2017-06-12 09:01:21 -04:00
Eric S. Raymond
d7ae7efd30 Refactor hinting logic to pull more code out of mainline. 2017-06-12 08:31:32 -04:00
Eric S. Raymond
bd6e402512 Closing-time check factored out. 2017-06-12 08:15:58 -04:00
Eric S. Raymond
73d5310839 Reformat for readability. 2017-06-12 08:07:49 -04:00
Eric S. Raymond
b0eb54b125 More goto elimination. 2017-06-12 08:03:10 -04:00
Eric S. Raymond
c04fa7e446 Goto elimination. 2017-06-12 07:58:24 -04:00
Eric S. Raymond
696779d337 K successfully localized. 2017-06-12 06:47:10 -04:00
Eric S. Raymond
95f1548a10 Allow direct object to persist across turns. 2017-06-12 06:26:58 -04:00