NHOrus
73af0e3a55
Fix for issue #21 , hopefully
2017-07-02 10:16:13 -04:00
Eric S. Raymond
4f08537e2d
More magic-number elimination.
2017-07-01 23:07:23 -04:00
Eric S. Raymond
5c2b76f762
Magic-number elimination.
2017-07-01 22:50:08 -04:00
Wayne Conrad
16688c6d8f
Fix typo in data comments
2017-07-01 19:12:05 -04:00
Eric S. Raymond
f1b37ea163
Supply missing implementation of nodwarf bit in travel rules.
2017-07-01 19:11:24 -04:00
Jason S. Ninneman
e05f959974
Refactor specials[] to have strings instead of enum references.
...
Clean up arbitrary_messages[] accordingly.
2017-07-01 11:53:54 -07:00
Eric S. Raymond
0d0b8df0a3
Ignore l g z i under oldstyle.
2017-07-01 12:35:31 -04:00
NHOrus
3c8482a613
Change state of vase
...
Clear temporary save where it needs to be cleared instead of random places
2017-07-01 18:25:39 +03:00
NHOrus
ab79fc7814
Do not compare state to magic numbers
2017-07-01 18:25:39 +03:00
Eric S. Raymond
f47f3a4603
Magic-number elimination for dragon and rug.
2017-07-01 10:01:39 -04:00
Eric S. Raymond
ab94051da1
Magic-number and state-arithmetic removal.
2017-07-01 09:21:47 -04:00
Eric S. Raymond
9714bf8c82
Magic-number elimination.
2017-07-01 01:59:06 -04:00
Jason S. Ninneman
8bc08773fa
Various cleanups.
...
* Remove disused macro.
* GCC doesn't seem to mind if IGNORE() is left off.
* Enumify phase codes.
* Use EXIT_* macros in all exit() calls.
* How did this even work without extern?
* Give advent.h a much-needed makeover.
* Use the chomp indicator in YAML string blocks to avoid code ugliness.
2017-07-01 03:19:33 +00:00
Eric S. Raymond
ba9e933f20
Use YAML block-literal syntax to avoid wrapped lines.
...
In vspeak(), andle text with extra trailing \n.
2017-06-30 16:33:31 -04:00
Eric S. Raymond
e10637c419
Implement and document %V escape so version only needs to be set once.
2017-06-30 14:35:18 -04:00
Eric S. Raymond
39a25f8ec7
Magic-number elimination.
2017-06-30 13:30:49 -04:00
Eric S. Raymond
1f45966dec
Magic-number ellimination, contiguity warnings, cleanup.
2017-06-30 12:06:41 -04:00
Eric S. Raymond
51a4d7bd3a
Remove gaps from arbitrary_messages, there are no more number sependencies.
...
Some spans within the list may still rely on contiguity.
2017-06-30 11:27:15 -04:00
Eric S. Raymond
46185a6e88
Magic-number elimination.
2017-06-30 11:03:57 -04:00
Eric S. Raymond
129226b58a
Implement 'version' command.
2017-06-29 17:52:26 -04:00
Eric S. Raymond
78eee015e3
Not the best idea to try to rewach Don Woods for help any more.
2017-06-29 16:59:27 -04:00
Eric S. Raymond
2bd3ea61c2
'd' had a collision; 'drop' vs ;down'. Remove from 'drop' synonyms.
2017-06-29 16:28:20 -04:00
Jason S. Ninneman
3f580acc05
Clean out the now-disused vocabulary structure.
2017-06-29 15:30:33 -04:00
Jason S. Ninneman
50435465a6
Completely wire vocab words in YAML to the code.
...
This massive patch:
* Finishes working all the vocab words into YAML structures.
* Adds vocab ID generator functions.
* Redoes the input-getting system, removing the need for GETIN(),
GETTXT(), etc.
* Changes advent<->ascii mapping to avoid the special 'shift'
character.
* Works around some bad behavior in the dragon attack logic.
* Handles the reservoir magic word without changing the database
contents.
2017-06-29 01:59:37 -07:00
Eric S. Raymond
d96d5db51f
More magic-number removal.
2017-06-28 17:29:33 -04:00
Eric S. Raymond
b5260417dd
Magic-number elimination.
2017-06-28 17:07:15 -04:00
Eric S. Raymond
1ed8126912
Implement and document state-changes messages in YAML.
...
Examples at the lamp and grate. This is a way to pull strings out of
arbitrary_messages and make them part of the object definition.
2017-06-28 16:14:23 -04:00
Eric S. Raymond
a1af74b534
Declare one-letter synonyms for some commands.
...
As issue #6 (Add single-letter verb synonyms) says:
Modern interactive fiction has converged on a fairly standard
vocabulary of one-letter abbreviations for common verbs. Besides
directional commands, they are:
d - drop
g - get
i - inventory
l - look
x - examine (synonymous in ADVENT with look)
z - wait
Open Adventure should implement these.
This commit doesn't make them work yet, but it declares them for when the
lexical analyzer is fully YAML-driven.
2017-06-28 12:05:41 -04:00
Eric S. Raymond
f5719f1aba
Magic-number elimination.
2017-06-28 11:45:53 -04:00
Eric S. Raymond
45384f6bf2
More use of state labels.
2017-06-27 20:10:59 -04:00
Eric S. Raymond
b3b6314fa4
More use of state labels.
2017-06-27 17:27:42 -04:00
Eric S. Raymond
ed4e6ad422
Allow state labels in not clauses.
2017-06-27 16:54:58 -04:00
Jason S. Ninneman
37373c5277
Documentation polishing.
2017-06-26 22:27:44 -07:00
Jason S. Ninneman
7dc8839249
Abolish VOCWRD().
...
Action word mnemonics are now enums from adventure.yaml.
2017-06-26 22:07:24 -07:00
Jason S. Ninneman
2aa5f1dd61
Remove actspk[].
2017-06-26 22:04:02 -07:00
Jason S. Ninneman
6d123b3fb1
Combine actspk and the action words into a single structure.
2017-06-26 21:36:24 -07:00
Jason S. Ninneman
f9edfc5151
Reexpress the motion words in adventure.yaml.
2017-06-26 22:22:51 -04:00
Eric S. Raymond
6b86811fbc
Repair variois problems in travel YAML.
2017-06-26 22:13:22 -04:00
Eric S. Raymond
0fad8a25ba
Repair a missing travel element it YAML.
...
Got left off due to an edge condition in travel.py.
2017-06-26 17:31:04 -04:00
Jason S. Ninneman
6ac098170c
Use enums for object number mnemonics instead of VOCWRD() calls.
2017-06-26 11:27:27 -07:00
Jason S. Ninneman
0bab67e106
Fold object vocab words into the objects[] structure.
2017-06-26 10:25:01 -07:00
Jason S. Ninneman
2fac8d1aef
object_descriptions[] is now objects[].
2017-06-26 09:43:11 -07:00
Eric S. Raymond
3025388932
Subsume Section 8 into YAML.
2017-06-25 23:41:36 -04:00
Jason S. Ninneman
7ee571d832
Inline the hint messages.
2017-06-25 18:50:47 -07:00
Eric S. Raymond
f165aabad8
Capture Section 3 in YAML.
...
The temporary script travel.py emitted this YAML from the Section 3 data.
It will be removed when the compilation from YAML to an initializer is done.
2017-06-25 19:22:46 -04:00
Eric S. Raymond
4821aeff60
Comment polishing.
2017-06-25 13:54:07 -04:00
Eric S. Raymond
8a3757df59
Change structure of vocabulary YAML to cope with multiply-loaded words.
2017-06-25 12:36:40 -04:00
Eric S. Raymond
23680e3441
Comment polishing in adventure.yaml.
2017-06-25 08:18:06 -04:00
Eric S. Raymond
71ebe01af7
Vocabulary (adventure.txt section 4) is now in YAML...
...
...but no code to use that structure yet.
2017-06-25 08:08:25 -04:00
Eric S. Raymond
8a6e6aae7d
Fully subsume section 7 into YAML.
2017-06-24 20:28:22 -04:00