summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/attitude-change.cc
Commit message (Collapse)AuthorAgeFilesLines
* Separate 'permanent' and 'temporary' monster hit diceNicholas Feinberg2014-07-131-3/+3
| | | | As part of a wider scheme to make draining temporary.
* The great mon-stuff migration.Shmuale Mark2014-06-221-1/+37
| | | | | | | | | A good deal of functions move to the two new files, mon-poly and mon-message. Of the others, some go to where they are used, some to mon-util, and a few are made member methods of monster. This probably breaks Xcode compilation, and I'm not able to test the changes I made to MSVC that will (hopefully) keep it working.
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+2
| | | | This fixes all the instances caught by unbrace.
* Don't bribe branch-native monsters when not in that branchChris Campbell2014-05-111-1/+5
|
* Fix bribing of bands.Steve Melenchuk2014-05-071-3/+2
| | | | | | | The chance should be rolled just for the leader, i.e. you get all of a band or none of it. This wasn't the case previously; instead everything got a chance roll, and members of bands were therefore unnaturally unlikely to get bribed (relevant for draconians).
* Fixes for Gozag bugs related to level generation.Steve Melenchuk2014-05-071-0/+51
| | | | | | | | * Properly unmark off-level shops (#8498). * Don't deduct bribes for vetoed levels (if, say, Elf:3 vetoed a lot you'd notice your bribe running out immediately on entering the level).
* Handling for attacking bribed creatures.Steve Melenchuk2014-05-071-0/+30
| | | | | | They become un-bribed, and other bribed creatures that can see them also become un-bribed; a permabribe increment for the creature is deducted against the branch bribe score for this action.
* Gozag: Don't let bribes take effect until the player spots the monster.Steve Melenchuk2014-05-071-0/+31
| | | | | Prevents abuses like clearing out the Orc:$ end entirely offscreen; also gives the opportunity for some nice dialogue.
* Don't turn holies neutral when worshipping a good godChris Campbell2014-04-281-127/+0
| | | | | | | | | | | | | | It's almost never relevant (with Mennas being possibly the only edge case), and has a number of negative effects: dungeon generation depending on the player's god in Pan, strange interactions with getting additional chances to convert on piety breakpoints, and generally a lot of code for a pretty questionable gain. Flavour-wise it seems perfectly reasonable that the holies in the dungeon just all see you as insufficiently pious, or some kind of a heretic (as is the case for non-holy religious monsters). Kept some of the holy speech for the case where an Elyvilon worshipper pacifies a holy.
* Move mon death stuff from mon-stuff.cc to mon-death.cc.Shmuale Mark2014-04-121-0/+1
| | | | | | | Touches a lot of files since their #includes have to be edited. (Pushing now since it shouldn't break anything and keeping it updated is nasty.)
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-2/+2
| | | | | | | | | Also simplify quite a few cases. It turns out in >90% cases of non-literals the argument had .c_str(), which meant it was pointlessly malloc()ed and converted from and to std::string. I believe a sprintf is faster, so even the argument of miniscule speed-up doesn't apply.
* Get rid of the radius_iterator "legacy" constructor.Adam Borowski2013-11-051-2/+2
| | | | | | | | | | It was really weird: working on a square, but in almost all cases restricting it to your view (a circle). Note this is _your_ view rather than from the iterator's center -- which hasn't been used once in the obvious interesting way. As usual, this commit fixes a load of "act through glass" bugs, ando/or using los modes that don't make sense in the context.
* Axe a buttload of useless #includes.Adam Borowski2013-11-031-1/+0
| | | | | Can't test Android, MSVC or Mac, but a very brief glance at the diff suggests it's unlikely they're affected.
* Rewrite monster_iterator.Adam Borowski2013-10-311-1/+1
| | | | | It degenerated to a simple loop over menv, hardly worth any syntactic sugar. I kept it for now, though.
* Always turn slimes neutral for Jiyva worshippers when they enter LOSChris Campbell2013-10-201-3/+3
| | | | Waking them up if necessary.
* Heal forcibly converted orcs before registering them as companions.Adam Borowski2013-10-111-3/+3
| | | | Also, add some assertions, just in case.
* Refactor 'you.religion' checks.Brendan Hickey2013-07-281-3/+3
| | | | | Pull 'you.religion [!=]= FOO' checks into a function: you_worship(FOO). This change is part of a large plan to clean up religion.
* Remove the orc slaying brandChris Campbell2013-07-101-10/+0
| | | | | It only ever generates on artefacts and is very unlikely to be relevant even when it does.
* Merge branch 'master' into lava_orcsAdam Borowski2013-05-291-2/+2
|\
| * Don't warn Jiyvaites when attacking slimes that are known shapeshifters.elliptic2013-03-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | Since killing shifters in slime form doesn't give penance. A couple related changes: * Let Jiyvaites convert summoned slimes (they are still slimes, after all, just slimes from elsewhere). This means that shapeshifters are really the only exception (which makes sense since they are not really slimes). * Don't let Jiyva prayer paralyse shapeshifters in slime form.
| * Interlevel recall for Yred and BeoghDracoOmega2013-03-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow the god-given recall abilities for Yred and Beogh to recall all god-associated permenant allies, regardless of where in the dungeon they reside. (Note that this only includes Yred gifts and not zombies; ie: things that could already follow you between levels) This is done by actively tracking all of these allies in a seperate list which is updated whenever a tracked ally is gained, dies, changes level, or the player changes level. The fact that permanent allies from these gods make interlevel travel unusable is one of the largest sources of tedium associated with those gods, and a major reason for their lack of popularity. Being able to recall from previous levels means you no longer have to manually herd and count allies at the top and bottom of every stair, sometimes having to make multiple trips if the terrain surrounding the stair is too confined. This should make these gods much more playable (and if their power level is now more obvious and considered too high, it can be adjusted in other ways than via tedium)
| * Remove unneeded blank line.David Lawrence Ramsey2013-02-231-1/+0
| |
* | Lava orc BeoghishnessEronarn Palazzo2013-01-071-1/+1
|/
* Separate speech strings for humanoid and non-humanoid holies being convertedChris Campbell2012-10-191-2/+16
|
* Use std namespace.Raphael Langella2012-08-261-10/+10
| | | | | | | | | | | | | 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.
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-5/+5
|
* Cut down on transitively including directn.hAdam Borowski2012-06-201-0/+1
| | | | | It's a big header, hardly ever needed, yet it was pulled even for low-level files that don't deal with the game itself like lib${UI}.cc
* Mindexicide: behaviour_event().Adam Borowski2012-04-211-4/+4
| | | | | This also reveals how bad the beam blaming code is, need to rewrite that soon -- mostly because of problems with reflection.
* Make another bunch of functions static or deleted.Adam Borowski2012-03-211-3/+4
| | | | | Looks like get_XXX_path and the like in files.cc could use some drastic simplification, or perhaps even a nuking and rewrite.
* Fix Mantis 5087: Strip channel prefix from monster speech, as is done elsewhere.David Lawrence Ramsey2011-12-181-0/+2
|
* Merge branch 'master' into unified_combat_controlRobert Burnham2011-10-251-5/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: crawl-ref/source/Makefile.obj crawl-ref/source/dbg-scan.cc crawl-ref/source/decks.cc crawl-ref/source/describe.cc crawl-ref/source/directn.cc crawl-ref/source/evoke.cc crawl-ref/source/fight.cc crawl-ref/source/fight.h crawl-ref/source/ghost.cc crawl-ref/source/ghost.h crawl-ref/source/item_use.cc crawl-ref/source/items.cc crawl-ref/source/map_knowledge.cc crawl-ref/source/melee_attack.h crawl-ref/source/mon-abil.cc crawl-ref/source/mon-act.cc crawl-ref/source/mon-stuff.cc crawl-ref/source/monster.cc crawl-ref/source/monster.h crawl-ref/source/player.cc crawl-ref/source/player.h crawl-ref/source/shopping.cc crawl-ref/source/spl-damage.cc crawl-ref/source/spl-summoning.cc crawl-ref/source/spl-transloc.cc crawl-ref/source/stairs.cc crawl-ref/source/stuff.cc crawl-ref/source/tags.cc crawl-ref/source/traps.cc crawl-ref/source/xom.cc
| * Really fix LOS radius checks relative to 015c095; LOS radius, not actual LOS.David Lawrence Ramsey2011-06-071-4/+2
| |
| * Fix LOS radius checks for Yred/Beogh/Jiyva follower abandonment.David Lawrence Ramsey2011-06-071-4/+6
| | | | | | | | Also, use this for Zin's Recite instead of hardcoding an LOS of 8.
| * Gut and parcel out most of stuff.ccAdam Borowski2011-06-041-1/+0
| |
* | Merge branch 'master' into unified_combat_controlRobert Burnham2011-04-261-7/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: crawl-ref/source/actor.cc crawl-ref/source/delay.cc crawl-ref/source/directn.cc crawl-ref/source/directn.h crawl-ref/source/fight.cc crawl-ref/source/files.cc crawl-ref/source/mon-act.cc crawl-ref/source/monster.cc crawl-ref/source/mpr.h crawl-ref/source/player.cc crawl-ref/source/shopping.cc
| * Don't let Mennas speak when turning neutralChris Campbell2011-04-231-2/+6
| |
| * Only let holies which can speak say things when convertedChris Campbell2011-04-071-2/+2
| | | | | | | | | | | | This fixes monsters such as Pearl Dragons, Apises, Shedu etc speaking to you when they turn neutral, but unfortunately doesn't fix Mennas yet as he has M_SPEAKS for his visual speech.
| * Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-3/+4
| | | | | | | | | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
| * Fix new Ashenzari passive boost to low skills.Raphael Langella2011-03-221-2/+2
| |
* | Replace DESC_CAP_THE with DESC_THERobert Burnham2011-03-251-5/+5
|/ | | | | Also makes some replacements for DESC_CAP_YOUR, DESC_NOCAP_YOUR, DESC_CAP_A, DESC_NOCAP_A as was convenient...so don't expect this to compile...at all.
* Axe the ring of Charms. Those damn witches hexed it!Adam Borowski2011-01-141-71/+0
| | | | | | | | | | | | After several attempts to balance it, it was always either overpowered or useless. No wonders, we have such diverse races as kobolds, orcs, merfolk, mummies and draconians -- it's hard to come up with a formula that matches monsters of that races well. There's a minor save breakage: brooch of Shielding, robe of Clouds and hat of Pondering have their descriptions shifted by one, the hat of Pondering causes rain clouds. We don't have any ifdefs for art-data.txt, the breakage is small enough I didn't bother with shims.
* Remove an obsolete parameter from form_changed_physiology().Raphael Langella2010-12-061-1/+1
| | | | It was never used.
* Clean up transform.cc.Raphael Langella2010-12-041-1/+1
| | | | | | Renamed all the transform_can_foo functions into form_can_foo. Give default argument to each function to check the player's form. Some simplifying and consistency.
* Fix inconsistencies regarding genus vs. species for orcs and draconians.David Lawrence Ramsey2010-10-041-2/+2
| | | | | | They both consistently check for the genus now, as the species check does, since the two are currently equivalent. If there are any subspecies added, they should be covered by this.
* Remove now-unnecessary checks regarding mons_make_god_gift().David Lawrence Ramsey2010-10-031-14/+1
| | | | | It no longer asserts, so e.g. the monster's god no longer needs to be manually unset before calling it.
* Ring of charms: disallow transforms, try another formula for success.Adam Borowski2010-09-191-3/+5
| | | | | | | | | | The former would allow charming spiders while in spider form, liches while necromutated, and so on. The latter in turn made the ring useless for any monster with non-negligible HD. Even an xl 27 merfolk had minimal changes with base 9 HD merfolk. This formula is perhaps way too generous, but it includes a hard cap. Improvements welcome.
* Add blue-anna's ring of charms.Roberto2010-09-181-0/+70
|
* Rename class "monsters" to "monster".Robert Vollmert2010-09-051-15/+15
|
* Rename variables named "monster" to "mons" or similar.Robert Vollmert2010-09-051-62/+62
|
* Trim unused #includes somewhat.Adam Borowski2010-08-231-2/+0
|