summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
Commit message (Collapse)AuthorAgeFilesLines
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-3525/+0
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Replace monsters::is_magic_user() withDavid Lawrence Ramsey2009-11-101-1/+1
| | | | | monsters::is_actual_spellcaster(), as it's simpler, and monsters with the "actual spells" flag should always have spells anyway.
* Replace mons_is_magic_user() with monsters::is_magic_user().David Lawrence Ramsey2009-11-101-1/+1
|
* Remove a few obsolete includes.Robert Vollmert2009-11-101-2/+0
| | | | Also add a few previously indirect includes.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-6/+6
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* Add an is_holy() function to the actor interface.David Lawrence Ramsey2009-11-091-1/+1
| | | | | | | | | | | | This is consistent with similar functions in that it checks not only for MH_HOLY holiness, but whether the monster is a priest of a good god (currently, there are none) and whether it uses holy spells (currently, there are none after the changes described below). Minor and Major Healing are now enchantments rather than holy spells. The beam code treats them as such; wands of healing aren't holy items the way e.g. wands of draining are evil items; and unholy monsters (among others, Lom Lobon!) can cast these spells.
* Replace mons_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-1/+1
|
* In Yred's retribution, replace forced Animate Dead with summoningDavid Lawrence Ramsey2009-11-081-3/+3
| | | | hostile zombified monsters.
* Split away monsters' starting gear from makeitem.cc to mon-gear.ccAdam Borowski2009-11-081-0/+1
|
* Move see_cell_no_trans into player.Robert Vollmert2009-11-081-1/+1
| | | | Also collect actor/player LOS code in actor-los.cc.
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-1/+2
| | | | | | | | map_cell no longer has the field "properties", which has been replaced by the unsigned long array env.pgrid. env.map has been renamed to env.map_knowledge. It should really be moved into player.
* Replace mons_cannot_move with monsters::cannot_move.Vsevolod Kozlov2009-11-081-1/+1
|
* New unique: Pikel, the big kobold slaver.Jude Brown2009-11-081-0/+10
| | | | | | | | | | | | Appears from D:4 through D:9, and comes with a band of human slaves. They will turn neutral (and be pacified, granting 1/2 EXP) if you destroy Pikel before destroying them. Pikel generates with a whip (either flaming or pain), and a black robe. The "pikel_band_neutralise()" function is quite hacky and assumes that all MONS_HUMANS with MF_BAND_MEMBER are part of Pikel's band. This should be changed as soon as there is a better way of tracking who is in what band.
* Remove mons_is_holy(), as it's redundant.David Lawrence Ramsey2009-11-071-1/+1
|
* Remove trailing whitespace.David Lawrence Ramsey2009-11-061-1/+1
|
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-2/+2
| | | | | | | Calls to plain see_cell(pos) were replaced with either observe_cell(pos) or you.see_cell(pos). observe_cell where related to drawing the interface and messaging, you.see_cell for game mechanics, and one or the other in less clear cases (targetting, say).
* Move mons_is_friendly to monsters::friendly.Vsevolod Kozlov2009-11-061-3/+3
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Since all unholy monsters are considered evil, removeDavid Lawrence Ramsey2009-11-051-1/+1
| | | | mons_is_evil_or_unholy(), and replace it with monsters::is_evil().
* Clean up flight status checks for monsters.David Lawrence Ramsey2009-11-051-2/+1
| | | | | In mon-data.h, remove the M_FLIES and M_LEVITATE flags, and instead use a flight_type variable indicating flight status.
* In is_evil(), mark player followers and monster priests of evil gods.David Lawrence Ramsey2009-11-051-1/+0
|
* Make many checks for monster (non)existence on squares use monster_at().David Lawrence Ramsey2009-11-051-1/+1
| | | | | | | 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().
* New monsters: golden eyes.Jude Brown2009-11-051-0/+9
| | | | | | | Small, blinking, and fast, these eyes come in packs and are found natively in Slime (though somewhat rarely). Their confusion ability does check MR before passing, however, and can be completely avoided by having Clarity.
* Rebalance dancing weapon statsStefan O'Rear2009-11-041-1/+4
| | | | | They now depend a great deal on the weapon and your skill; see the comments for details.
* Allow each dancing weapon to have its own statsStefan O'Rear2009-11-041-1/+12
|
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Allow vaults to override monster spells with spells:<xyz>Darshan Shaligram2009-11-041-64/+62
| | | | | | | | | | Vaults can now override monster spell sets, or give non-casting monsters spells, and mark monsters as wizard or priest types. The M_ACTUAL_SPELLS, M_SPELLCASTER and M_PRIEST monster class flags are converted into MF_* flags at monster creation/polymorph time, and only the per-monster flags are checked when determining wizard/priestliness. See caveats in level_design.txt.
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Add various color-related fixes.David Lawrence Ramsey2009-11-011-5/+0
|
* Move checks for a player or monster's being chaotic into anotherDavid Lawrence Ramsey2009-11-011-2/+2
| | | | convenience function in the actor interface.
* Split up monstuff.ccMatthew Cline2009-11-011-1/+2
| | | | | | | A lot of monstuff.cc was moved into mon-abil.cc (monster abilities), mon-act.cc (the main monster loop), mon-behv.cc (monster behaviour) and mon-cast.cc (monster spells). mstuff2.cc was completely merged into other files.
* Fix polymorphing monsters into slime creatures by setting the monsterDavid Lawrence Ramsey2009-10-311-6/+3
| | | | number properly in define_monster().
* Can specify size in slime creature monster specMatthew Cline2009-10-311-2/+12
| | | | | You can now use monster specs like "titanic slime creature". The initial HP given to them in _place_monster_aux() might need tweaking.
* Preliminary support for slime creatures merging and splitting.Charles Otto2009-10-301-0/+4
| | | | | | | | | | | | | | | | | | | | A slime creatures will merge onto an adjacent slime creature if the merge brings it closer to its target, merging only happens when slime creatures aren't wandering, sleeping, or fleeing. A slime creature will split (if it merged previously) if it is at full hp and is resting or wandering. I added a hack to make the experienced gained for merged slime creatures approximately equal to killing however many were merged individually, exp from merged slimes may be too low now. For now the number of slime creatures merged into one J is given explicitly in their description (one-blob slime creature), that should get changed at some point. Damage and maxHP for merged slime creatures are linear with the number merged, an arbitrary cap of 8 is currently in place.
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+1
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Slow down the monster spawn rate in the Abyss for worshippers of Cheibriados.Adam Borowski2009-10-291-1/+2
| | | | Currently, this god makes Abyss a hell, let's let him compensate a bit...
* (MONS_PROGRAM_BUG || -1) --> MONS_NO_MONSTERMatthew Cline2009-10-271-4/+4
| | | | | | | | | Change MONS_PROGRAM_BUG to MONS_NO_MONSTER when "no monster" is what was meant. Now all instances of MONS_PROGRAM_BUG should indicated some sort of failure or error. Also, fixed some places which were still using -1 instead of MONS_NO_MONSTER.
* Convert some ints to monster_type.Robert Vollmert2009-10-271-15/+15
| | | | | | | | | There's a whole lot of places that pass monster_type as int, often with varying meanings for the value -1. This moves some of these to monster_type, introducing MONS_NO_MONSTER and MONS_PLAYER as new invalid special values. Also improve on the autoexclude descriptions.
* For flavor, mark 6 out of 7 demons in the Abyss as belonging to Lugonu.David Lawrence Ramsey2009-10-251-0/+6
|
* Preliminarily add a new fungus species to replace fungus w.r.t. sporesCharles Otto2009-10-251-3/+2
| | | | | | | | Add a fungus species ('ballistomycete') to use in place of fungus in spores explosions etc. Fix a couple message leaks (wrong version of see_cell used in monaters::apply_enchantment)
* Get rid of player_monster_visible.Robert Vollmert2009-10-221-1/+1
| | | | | | The special casing for drowning monsters appears to have been obsoloted by checking ENCH_SUBMERGED instead of calling mons_is_submerged.
* Add minor cosmetic fixes.David Lawrence Ramsey2009-10-191-5/+3
|
* Naming monsters via MONS: rat name:Yves (Jude & Vsevolod).David Ploog2009-10-191-0/+5
|
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* [2881182] Fix being unable to place flying monsters over lava in maps (due).Darshan Shaligram2009-10-181-26/+14
|
* More renaming and reorganization of feature checks.Robert Vollmert2009-10-171-1/+1
| | | | | | | | | There were a couple of functions is_something(dgn_feature_type feat) defined in travel.cc that were otherwise independent of travel. For consistency, move these to terrain.cc and rename to feat_is_something. One might also consider renaming the various feat_is_whatever functions to just is_whatever.
* Naming consistency.Robert Vollmert2009-10-171-49/+49
| | | | | Mostly rename functions from terrain.h that accept features of typ dgn_feature_type from grid_is_* to feat_is_*.
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-171-4/+4
|
* fix compile errors on Intel C++ Compiler v10.1Steven Noonan2009-10-121-6/+6
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-1/+0
| | | | | | | The console version still compiles on Linux; both console and tiles version compile in OS X. I haven't been able to test the DOS and Windows compiles -- please fix or tell me about any errors that show up.