diff options
author | pubby <pubby8@gmail.com> | 2013-06-12 02:34:30 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-08-25 00:12:25 -0400 |
commit | 2211e5ff2f25adfb931eb0ff32b274afa7eb7ed5 (patch) | |
tree | 4568295ed3a6c1bd2c0df4bc8db167db1809c043 /crawl-ref/source/tilepick-p.cc | |
parent | 9c1491e134d7c43d0ad2c4ebd444a3a2199b457b (diff) | |
download | crawl-ref-2211e5ff2f25adfb931eb0ff32b274afa7eb7ed5.tar.gz crawl-ref-2211e5ff2f25adfb931eb0ff32b274afa7eb7ed5.zip |
Create Formicid species and monsters.
Tavern post:
https://crawl.develz.org/tavern/viewtopic.php?f=8&t=8298
Wierdness & mutations:
- poison weakness
- retractable antennae (can wear headgear and ignore mutation)
- chitin skin (+3 AC)
- most weapons 1-handed, big weapons 2-handed
- permanent stasis
- ability to shaft self
- ability to dig
- Starts with 2 curing pots
3 monster versions of formicids were added:
formicid, a weak fighter
formicid drone, a stronger fighter
formicid venom mage, a magician with olgreb's and mass cure poison
[ Pushing to a branch for experimental playtesting on CSZO.
Also optimised the new tiles. -nfm ]
Diffstat (limited to 'crawl-ref/source/tilepick-p.cc')
-rw-r--r-- | crawl-ref/source/tilepick-p.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/crawl-ref/source/tilepick-p.cc b/crawl-ref/source/tilepick-p.cc index 80bab0a820..9cf3e7bad3 100644 --- a/crawl-ref/source/tilepick-p.cc +++ b/crawl-ref/source/tilepick-p.cc @@ -676,6 +676,8 @@ tileidx_t tilep_species_to_base_tile(int sp, int level) return TILEP_BASE_OCTOPODE; case SP_DJINNI: return TILEP_BASE_DJINNI; + case SP_FORMICID: + return TILEP_BASE_FORMICID; default: return TILEP_BASE_HUMAN; } @@ -804,6 +806,22 @@ void tilep_race_default(int sp, int level, dolls_data *doll) hair = 0; beard = TILEP_BEARD_MEDIUM_GREEN; break; + case SP_FORMICID: + hair = 0; + // Three levels of antennae retraction + // and one with no antennae. + if (player_wearing_slot(EQ_HELMET)) + { + result = TILEP_BASE_FORMICID; + } + else + { + result = TILEP_BASE_FORMICID + + ((you.duration[DUR_ANTENNAE_EXTEND] + * player_mutation_level(MUT_ANTENNAE)) + / ANTENNAE_EXTEND_TIME); + } + break; default: // nothing to do break; |