summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove level_type checks from set_level_type_* Lua wrapers.Jude Brown2009-11-061-19/+0
| | | | | | | These checks are used to ensure the functions are only called from Portal vaults. However, they cause errors in the initial Lua map validation, regardless of whether or not the functions are actually being used in a Portal vault.
* Change "hell-hog" to "hell hog".Jude Brown2009-11-061-2/+2
|
* Un-hyphenate "hell-hog", for consistency with other hell beings.David Lawrence Ramsey2009-11-052-3/+3
|
* Remove the M_EVIL flag from necromancers, as all of the spellbooks theyDavid Lawrence Ramsey2009-11-051-1/+1
| | | | can randomly get contain evil spells.
* Since all unholy monsters are considered evil, removeDavid Lawrence Ramsey2009-11-055-15/+8
| | | | mons_is_evil_or_unholy(), and replace it with monsters::is_evil().
* Simplify player::res_holy_energy() a bit.David Lawrence Ramsey2009-11-051-2/+2
|
* Remove unneeded comment.David Lawrence Ramsey2009-11-051-1/+0
|
* In is_evil(), mark monsters with evil attack flavors.David Lawrence Ramsey2009-11-052-1/+7
|
* Reorder a few functions.David Lawrence Ramsey2009-11-055-17/+17
|
* Make AF_HUNGER, AF_STEAL, and AF_STEAL_FOOD chaotic attack flavors.David Lawrence Ramsey2009-11-051-2/+5
| | | | | | Zin, as a lawful god, dislikes hunger-causing artefacts, so he would dislike hunger-causing effects as well. Also, he would probably frown on stealing in general.
* Mark (very) ugly things as having miscellaneous shapes.David Lawrence Ramsey2009-11-051-2/+2
|
* Clean up flight status checks for monsters.David Lawrence Ramsey2009-11-055-587/+575
| | | | | In mon-data.h, remove the M_FLIES and M_LEVITATE flags, and instead use a flight_type variable indicating flight status.
* Fix the DOS port.Adam Borowski2009-11-064-0/+8
|
* Standard <cmath> has no round().Adam Borowski2009-11-061-2/+2
|
* Revert erroneously committed bit.David Lawrence Ramsey2009-11-051-1/+1
|
* Name the checks for monsters with evil or chaotic spells consistently.David Lawrence Ramsey2009-11-052-11/+11
|
* In is_evil(), mark monsters with explicitly evil spells.David Lawrence Ramsey2009-11-053-37/+48
| | | | Unify checks for monsters with chaotic spells, and do the same for them.
* Restore genus check in beholder update.Robert Vollmert2009-11-051-1/+2
|
* Fix arena assert.Robert Vollmert2009-11-051-0/+8
|
* Fix map boundary not being drawn.Robert Vollmert2009-11-051-12/+4
|
* Properly mark Porkalator as a chaotic spell.David Lawrence Ramsey2009-11-051-1/+2
|
* In is_chaotic(), mark player followers/monster priests of chaotic gods.David Lawrence Ramsey2009-11-052-1/+8
|
* In is_evil(), mark player followers and monster priests of evil gods.David Lawrence Ramsey2009-11-054-11/+24
|
* Unify mesmerisation code.Robert Vollmert2009-11-0519-308/+248
| | | | | | | | There were several places that had copies of the same code, checking whether mesmerisation blocked movement to a given target. The various mesmerisation functions have become methods of player and were moved into behold.cc.
* Mark golden eyes as glowing, since it seems to fit their description.David Lawrence Ramsey2009-11-051-1/+1
|
* Create an is_evil() function in the actor interface.David Lawrence Ramsey2009-11-0510-121/+121
| | | | Currently, only unholy monsters are marked as evil this way.
* Replace mons_is_caught with monsters::caught.Vsevolod Kozlov2009-11-0515-30/+24
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace mons_is_paralysed with monsters::paralysed.Vsevolod Kozlov2009-11-0512-19/+13
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Use this instead of you in player::rot.Vsevolod Kozlov2009-11-051-4/+4
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Make many checks for monster (non)existence on squares use monster_at().David Lawrence Ramsey2009-11-0521-71/+67
| | | | | | | Not all are changed yet, as there are several index checks still needed for debugging purposes. Also, make many checks for player/monster (non)existence use actor_at().
* Fix compilation.David Lawrence Ramsey2009-11-051-0/+1
|
* Simplify setting kraken colors when placing one in wizard mode.David Lawrence Ramsey2009-11-051-4/+1
|
* Fix apparent typo in swap_features().David Lawrence Ramsey2009-11-051-1/+1
|
* Replace uses of player_in_water with you.in_water.Vsevolod Kozlov2009-11-055-15/+8
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace uses of player_is_swimming with you.swimming.Vsevolod Kozlov2009-11-059-21/+15
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Clean up random coordinate usage a bit.David Lawrence Ramsey2009-11-053-28/+14
| | | | | | | | Specifically, use random_in_bounds() in a few places instead of random ranges involving X_BOUND and Y_BOUND values. The former won't return any coordinates in the dungeon's map border (which acts as a wall), but the latter will, and all the changed places are looking for empty dungeon squares, so this should make these operations more efficient.
* Replace uses of player_is_airborne with you.airborne.Vsevolod Kozlov2009-11-0512-33/+27
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* A variety of changes to make the reflection code more robust.Robert Vollmert2009-11-051-20/+76
| | | | | In particular, round things to grid or corner when they're regarded as on the grid or corner, and normalize direction vectors.
* Move rot_player() to player::rot() (Zaba)Adam Borowski2009-11-054-35/+23
|
* Merge monsters,player::check_res_magic() (Zaba)Adam Borowski2009-11-056-60/+37
|
* Put lots of actor:: methods where they belong (Zaba)Adam Borowski2009-11-052-70/+64
|
* Another couple of yous busted (Zaba)Adam Borowski2009-11-051-2/+2
|
* Let clubs (small ordinary ones only) stun back-coshed targets for 1-3 turns.Adam Borowski2009-11-051-0/+13
|
* Give middling backstab bonus to ordinary clubs and spears.Adam Borowski2009-11-052-0/+9
| | | | Also, mention that daggers do awesome stab damage.
* Give OgEn, OgTh, OgAs, OgSt clubs instead of short swords.Adam Borowski2009-11-051-5/+14
| | | | | Same with trolls of these professions. Both races have abysmal aptitudes with short blades but are good with M&F.
* Convert all instances of "you" to "this" in player member functions.Vsevolod Kozlov2009-11-051-54/+54
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Move player_res_asphyx/rotting to player::res_asphyx/rotting.Vsevolod Kozlov2009-11-055-48/+30
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Combine player_knows_spell, player_has_spell into player::has_spell.Vsevolod Kozlov2009-11-059-40/+22
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* New monster spell: Summon Eyeballs.Jude Brown2009-11-055-4/+45
| | | | | | | | | | Summons from a (weighted) selection of: giant eyeballs, eyes of draining, golden eyes, shining eyes, great orbs of eyes, and eyes of devastation. Does not summon giant orange brains, as those aren't really eyeballs. Currently programmed only as a monster spell, and the only monsters who can get it are Pan Lords.
* Move *_res(ist)_magic to relevant classes, provide actor interface.Vsevolod Kozlov2009-11-0515-197/+190
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>