-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- set a limit for line width to 70 chars, implement word wrap
- refactor command processing: first search for custom action, then for message (basically an action that just says something, it will save a lot of typing), then send to command-name method or print an error - print custom message automatically for custom actions - remove duplicit say method and refactor Player.say method
- Loading branch information
Showing
3 changed files
with
57 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,18 @@ | ||
--- | ||
|
||
look_at_rubble: | ||
- say | ||
- verify location gemstone mountain | ||
- visible gemstone | ||
- say look_at_rubble_hidden | ||
|
||
give_gemstone_to_wizard: | ||
- remove gemstone | ||
- visible gemstone_shards | ||
- say | ||
|
||
give_gemstone_to_blacksmith: | ||
- say | ||
|
||
give_gemstone_shards_to_blacksmith: | ||
- remove gemstone_shards | ||
- remove rusty_sword | ||
- add shining_sword | ||
- say | ||
|
||
use_rusty_sword_on_grelok: | ||
- say | ||
|
||
use_shining_sword_on_grelok: | ||
- say | ||
- exit | ||
|
||
use_rusty_sword_on_zombie: | ||
- say | ||
|
||
use_shining_sword_on_zombie: | ||
- alias use_rusty_sword_on_zombie | ||
|
||
talk_to_blacksmith: | ||
- say | ||
|
||
talk_to_wizard: | ||
- say | ||
|
||
talk_to_grelok: | ||
- say | ||
|
||
ask_blacksmith_about_grelok: | ||
- say | ||
|
||
ask_blacksmith_about_anything: | ||
- say | ||
|
||
ask_wizard_about_anything: | ||
- say | ||
|
||
ask_grelok_about_anything: | ||
- say |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters