summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/jobs.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-03-11 22:57:13 +0100
committerRaphael Langella <raphael.langella@gmail.com>2011-03-11 22:57:13 +0100
commitc9a628a6d3a04977a901ed3b26f646d5698a154a (patch)
treeaf1a10e63260b6f56d75d9068e8bc1f5fa4b028f /crawl-ref/source/jobs.cc
parentc780e151004f78dc9f18274ac6467b88c491158b (diff)
downloadcrawl-ref-c9a628a6d3a04977a901ed3b26f646d5698a154a.tar.gz
crawl-ref-c9a628a6d3a04977a901ed3b26f646d5698a154a.zip
New background choice layout.
Grouped by category, as suggested on the tavern: https://crawl.develz.org/tavern/viewtopic.php?p=9905#p9905
Diffstat (limited to 'crawl-ref/source/jobs.cc')
-rw-r--r--crawl-ref/source/jobs.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/crawl-ref/source/jobs.cc b/crawl-ref/source/jobs.cc
index 841035dcc0..5cc6bb119c 100644
--- a/crawl-ref/source/jobs.cc
+++ b/crawl-ref/source/jobs.cc
@@ -4,38 +4,6 @@
#include "options.h"
-// First plain fighters, then religious fighters, then spell-casting
-// fighters, then primary spell-casters, then stabbers and shooters. (MM)
-static job_type jobs_order[] = {
- // fighters
- JOB_FIGHTER, JOB_GLADIATOR,
- JOB_MONK, JOB_BERSERKER,
- // religious professions (incl. Berserker above)
- JOB_CHAOS_KNIGHT, JOB_DEATH_KNIGHT,
- JOB_ABYSSAL_KNIGHT, JOB_PRIEST,
- JOB_HEALER, JOB_CRUSADER,
- // general and niche spellcasters (incl. Crusader above)
- JOB_WARPER,
- JOB_WIZARD, JOB_CONJURER,
- JOB_ENCHANTER, JOB_SUMMONER,
- JOB_NECROMANCER, JOB_TRANSMUTER,
- JOB_FIRE_ELEMENTALIST, JOB_ICE_ELEMENTALIST,
- JOB_AIR_ELEMENTALIST, JOB_EARTH_ELEMENTALIST,
- // poison specialists and stabbers
- JOB_VENOM_MAGE, JOB_STALKER,
- JOB_ASSASSIN,
- JOB_HUNTER, JOB_ARTIFICER,
- JOB_ARCANE_MARKSMAN, JOB_WANDERER
-};
-
-job_type get_job(const int index)
-{
- if (index < 0 || index >= ng_num_jobs())
- return (JOB_UNKNOWN);
-
- return (jobs_order[index]);
-}
-
static const char * Job_Abbrev_List[ NUM_JOBS ] =
{ "Fi", "Wz", "Pr",
"Gl", "Ne",
@@ -131,13 +99,6 @@ job_type get_job_by_name(const char *name)
return (cl);
}
-int ng_num_jobs()
-{
- // The list musn't be longer than the number of actual jobs.
- COMPILE_CHECK(ARRAYSZ(jobs_order) <= NUM_JOBS, c1);
- return ARRAYSZ(jobs_order);
-}
-
bool is_valid_job(job_type job)
{
return (job >= 0 && job < NUM_JOBS);