diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-22 09:29:21 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-22 09:30:43 +0200 |
commit | 1279846ae6b7d7601195427fbb0f6ab27e512296 (patch) | |
tree | 69eda5197d5d484c96197e4e69a3170e3623161a /crawl-ref/source/ctest.cc | |
parent | 42581a30c4e87fcafaef7c66660f277fa9c134d5 (diff) | |
download | crawl-ref-1279846ae6b7d7601195427fbb0f6ab27e512296.tar.gz crawl-ref-1279846ae6b7d7601195427fbb0f6ab27e512296.zip |
Set job and species in test.
Diffstat (limited to 'crawl-ref/source/ctest.cc')
-rw-r--r-- | crawl-ref/source/ctest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/ctest.cc b/crawl-ref/source/ctest.cc index 054cebfc2e..b96bdd0491 100644 --- a/crawl-ref/source/ctest.cc +++ b/crawl-ref/source/ctest.cc @@ -30,6 +30,8 @@ namespace crawl_tests { const std::string test_dir = "test"; const std::string test_player_name = "Superbug99"; + const species_type test_player_species = SP_HUMAN; + const job_type test_player_job = JOB_FIGHTER; int ntests = 0; int nsuccess = 0; @@ -45,6 +47,8 @@ namespace crawl_tests // XXX: Good grief, you.your_name is still not a C++ string?! strncpy(you.your_name, test_player_name.c_str(), kNameLen); you.your_name[kNameLen - 1] = 0; + you.species = test_player_species; + you.char_class = test_player_job; } int crawl_begin_test(lua_State *ls) |