summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/species.h
Commit message (Collapse)AuthorAgeFilesLines
* Pull some functions into species.ccNicholas Feinberg2014-07-161-0/+3
|
* Merge branch 'master' into dwantsAdam Borowski2013-11-011-0/+4
|\
| * Clean up checks for disabled species/jobs when starting a new game.elliptic2013-10-141-0/+4
| | | | | | | | | | | | | | It was possible to get around these checks in various ways. Hopefully this stops all of those ways and will make it easier to maintain this code in the future, since only is_species_valid_choice and is_job_valid_choice need to be modified now.
* | Merge branch 'master' into dwantspubby2013-10-011-0/+1
|/ | | | | | | | | | | | | | | | | Conflicts: crawl-ref/source/dat/des/variable/mini_monsters.des crawl-ref/source/enum.h crawl-ref/source/itemprop.cc crawl-ref/source/main.cc crawl-ref/source/mutation-data.h crawl-ref/source/mutation.cc crawl-ref/source/newgame.cc crawl-ref/source/ng-restr.cc crawl-ref/source/rltiles/dc-player.txt crawl-ref/source/spl-selfench.cc crawl-ref/source/throw.cc crawl-ref/source/tilepick-p.cc crawl-ref/source/wiz-you.cc
* Lava orcs can swim in lava unless it is flagged as dangerous to them.Eronarn Palazzo2013-01-081-0/+1
| | | | Being immersed in lava maxes temperature and prevents any decline.
* Initial implementation of lava orcs.Eronarn Palazzo2013-01-071-0/+1
| | | | | | | | | | | This includes their: * starting screen description * starting mutations * restricted classes/gear * aptitudes * orcishness (genus) * monster version
* Use std namespace.Raphael Langella2012-08-261-2/+2
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Clean up genuses of removed species.Adam Borowski2011-10-251-2/+0
|
* Get rid of strlwr().Adam Borowski2011-09-071-2/+0
| | | | | | Besides being non-standard and present only on some platforms, it cannot be extended to Unicode as some characters expand or contract while being upper/lowercased.
* List HP and MP mods in aptitudes.txtAdam Borowski2011-06-211-0/+1
|
* Change racial MP mods to aptitude style numbers.Adam Borowski2011-06-211-0/+1
| | | | | | The actual scale is not lineral, as there'd be a large change for some species. It's (mostly) -1, -2/3, -1/2, -1/3, 0, +1/3, +1/2, +2/3, +1, making that x/4 would be a *1.5 difference in some cases.
* Don't treat species HP modifier as a frail/robust mutation.Raphael Langella2011-06-121-1/+1
| | | | | | | | This partially reverts commit d435634b5563e69b0c64a9c3b44060b4271a5d05. HP modifier isn't shown in the A screen anymore and it isn't treated like a mutation. It also fixes the fact that frail were nastier for already frail races.
* Move species_likes_water() from player.cc to species.cc.David Lawrence Ramsey2011-02-081-0/+1
|
* Fold claws_level() into species_has_claws().David Lawrence Ramsey2010-10-121-1/+1
| | | | | | They do much the same thing, except that claws_level() only deals with the claws mutation, so allow controlling that with a parameter in species_has_claws().
* Move conversion of player to monster species to its own function.David Lawrence Ramsey2010-10-111-0/+1
| | | | | Also, use it to get the species of draconian player illusions in mon-util.cc.
* Bring sanity to enums by making them diffable/patchable.Adam Borowski2010-06-081-1/+1
|
* Simplify species_name() now that draconian hacks are not needed.Adam Borowski2010-06-081-2/+1
|
* For consistency, rename GENPC_OGRE to GENPC_OGREISH.David Lawrence Ramsey2010-04-041-1/+1
| | | | The genus enum uses adjectives in all other cases.
* Fix newlines at end of file.Adam Borowski2010-01-211-1/+0
|
* Extract newgame character restrictions from newgame.cc.Robert Vollmert2009-10-241-0/+18
| | | | | | | | | | | | | | | | | The functions in the new ng-restr.cc are "pure": They don't access global state; data is passed in via the new and incomplete newgame_def. Eventually, new_game should be split into something like newgame_def choose_game(); that doesn't access "you", and void setup_game(newgame_def); that sets up the player. Also get rid of player_size in favour of player::body_size. Rename player_size_type to size_part_type since it's not really player-specific (used in actor::body_size). Move parts of player_genus, player::has_claws, body_size out into species.cc.
* Use species_type/job_type instead of int.Robert Vollmert2009-10-231-5/+5
|
* Moving data out of newgame.cc.Robert Vollmert2009-10-231-0/+19
Also move species<->string translation from player.cc to species.cc.