summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-restr.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-05-31 03:44:13 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-05-31 03:44:13 +0200
commitc3093fb9953058cf00ec7631724313091a6be7bd (patch)
treee66aeabb71116334d79cbe5159e4471afc73dbf3 /crawl-ref/source/ng-restr.cc
parent707fcf7da8f5efc7e9e946b495dec7cea780c38c (diff)
downloadcrawl-ref-c3093fb9953058cf00ec7631724313091a6be7bd.tar.gz
crawl-ref-c3093fb9953058cf00ec7631724313091a6be7bd.zip
Djinn: weapon recommendations.
Diffstat (limited to 'crawl-ref/source/ng-restr.cc')
-rw-r--r--crawl-ref/source/ng-restr.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/ng-restr.cc b/crawl-ref/source/ng-restr.cc
index d4dd5bd75b..9f5cb52098 100644
--- a/crawl-ref/source/ng-restr.cc
+++ b/crawl-ref/source/ng-restr.cc
@@ -642,8 +642,12 @@ char_choice_restriction weapon_restriction(weapon_type wpn,
// Maces and hand axes usually share the same restrictions.
case WPN_MACE:
- if (ng.species == SP_TROLL || ng.species == SP_OGRE)
+ if (ng.species == SP_TROLL
+ || ng.species == SP_OGRE
+ || ng.species == SP_DJINNI)
+ {
return CC_UNRESTRICTED;
+ }
if (ng.species == SP_VAMPIRE)
return CC_RESTRICTED;
// else fall-through
@@ -687,6 +691,7 @@ char_choice_restriction weapon_restriction(weapon_type wpn,
case SP_MUMMY:
case SP_OCTOPODE:
case SP_BASE_DRACONIAN:
+ case SP_DJINNI:
return CC_UNRESTRICTED;
case SP_SPRIGGAN:
@@ -723,6 +728,7 @@ char_choice_restriction weapon_restriction(weapon_type wpn,
case SP_VAMPIRE:
case SP_OCTOPODE:
case SP_BASE_DRACONIAN:
+ case SP_DJINNI:
return CC_UNRESTRICTED;
default:
@@ -769,6 +775,7 @@ char_choice_restriction weapon_restriction(weapon_type wpn,
case SP_OCTOPODE:
case SP_SLUDGE_ELF:
case SP_BASE_DRACONIAN:
+ case SP_DJINNI:
return CC_UNRESTRICTED;
default:
@@ -806,6 +813,7 @@ char_choice_restriction weapon_restriction(weapon_type wpn,
case SP_HILL_ORC:
case SP_LAVA_ORC:
case SP_SLUDGE_ELF:
+ case SP_DJINNI:
return CC_RESTRICTED;
case SP_FELID:
return CC_BANNED;
@@ -846,6 +854,7 @@ char_choice_restriction weapon_restriction(weapon_type wpn,
switch (ng.species)
{
case SP_DEEP_DWARF:
+ case SP_DJINNI:
return CC_RESTRICTED;
case SP_SPRIGGAN:
case SP_FELID:
@@ -858,6 +867,7 @@ char_choice_restriction weapon_restriction(weapon_type wpn,
switch (ng.species)
{
case SP_DEEP_DWARF:
+ case SP_DJINNI:
return CC_RESTRICTED;
case SP_FELID:
return CC_BANNED;