summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
Commit message (Collapse)AuthorAgeFilesLines
* Experimental kraken adjustments.Darshan Shaligram2009-12-291-0/+10
| | | | | | Boost kraken and tentacle damage. Force the tentacles to stay close to the body of the kraken to make the creature look more like a unit. Tentacles are now amphibious and can reach out onto land, although they cannot stray too far from the main body.
* Make item_is_mundane a method of item_def.Vsevolod Kozlov2009-12-271-0/+3
|
* Make item_is_critical a method of item_def.Vsevolod Kozlov2009-12-271-0/+3
|
* Customisable clouds!Jude Brown2009-12-281-1/+5
| | | | | | | | | | | | | | | | | | | | | cloud_struct now has members for colour, name, and tile; colour will be used instead of the default colour of the cloud type, and will be used to recolour the tile of the cloud (if it exists). Name will be used to rebrand the cloud's description, and also alter the message generate while standing in a cloud. Finally, tile can be used to completely customise the tile used for the cloud. The value is stored as a string in order to maintain save compatibility across ASCII and tiles. A random tile (found using tile_main_count) from that set will also be used, however, no duration effects will be applied. Recoloured cloud tiles using just the colour code should be possible, though aren't yet fully tested. This commit bumps TAG_MAJOR_VERSION: changing marshalling of the FogMachine Lua code causes nasty crashes on reloading saved games. Otherwise, I don't think I broke anything else. :-)
* Minor tweaks to TILE: specifier.Jude Brown2009-12-101-3/+2
|
* Massively expand tile functionality in vault definitions.Jude Brown2009-12-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This commit creates a new specifier for vaults: "TILE". Used much in the same way as COLOUR, it can apply any specific tile to a feature. Example syntax is specified in the syntax file, but copied here for clarity: TILE: x = wall_flesh Identical to FTILE and RTILE in syntax, but closer to COLOUR in functionality. Instead of replacing the floor or relevant rock tiles, this can be used to replace the tile used for any specific feature. This can be used in combination with FTILE and RTILE to change the appearance of features. It can only be used with previously specified tiles, however. Like COLOUR and FTILE, this should be used sparingly and to good effect. Please, feel free to update vaults to use this! We want to ensure that tiles players get the same experience as ASCII players do. This is only the first stage in a push for greater flexibiltiy through tiles, but hopefully it'll have a good impact.
* Add general formatted_string::add_glyph, remove others.Robert Vollmert2009-12-011-0/+1
|
* Reduce dependency on travel.hMatthew Cline2009-11-291-0/+60
| | | | | | | | Removed inclusion of travel.h from most .h files to reduce the number of .cc files dependant on it. This involved moving the level_pos declaration to externs.h, moving the flood_find template to it's own header file, and moving two typedefs from travel.h to travel_defs.h because typedefs can't be forward declared (argh).
* Move trap_def from externs.h to trap_def.h.Robert Vollmert2009-11-271-35/+6
|
* Fix information leakage in detect creatures.Robert Vollmert2009-11-161-2/+4
| | | | | | | | | | Also fix tiles giving more information than console version. There's now mons_detected_base, which assigns a base monster type to every monster type based on the default displayed glyph. It just takes the first entry for a given glyph based on the mon-data.h order, so this may need tweaking in some cases.
* Rename fixary.h and fixvec.h.Robert Vollmert2009-11-151-1/+1
|
* env_show_grid is now only used inside the LOS code.Robert Vollmert2009-11-081-2/+0
| | | | | It's also called los_grid, and is a SquareArray of boolean since it doesn't need to store "objects" any more.
* Add unary negation operator to coord_def.Robert Vollmert2009-11-081-0/+5
|
* externs.h: Move monsters class forward declareMatthew Cline2009-11-061-1/+1
| | | | | The forward declaration of the monsters class wasn't early enough in the file.
* Rename is_valid_item to item_def::is_valid.Vsevolod Kozlov2009-11-061-0/+2
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-15/+0
| | | | | | | | | | | | | env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects.
* Move feature_def and Feature array into feature.cc from view.cc.Robert Vollmert2009-11-041-22/+0
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-466/+0
|
* Splitting up stuff.cc.Robert Vollmert2009-10-301-9/+0
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* (MONS_PROGRAM_BUG || -1) --> MONS_NO_MONSTERMatthew Cline2009-10-271-1/+1
| | | | | | | | | 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.
* Split actors and env from externs.h.Robert Vollmert2009-10-211-1144/+39
|
* Split dgn_lib out of luadgn.cc; rename luadgn to dlua.Robert Vollmert2009-10-191-1/+1
|
* Fixing off-by-one issues in the tiles build due to the off-by-one fix to ↵Enne Walker2009-10-171-2/+2
| | | | crawl_view. (This was manifesting as weird artifacts or crashes.)
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-171-1/+1
|
* New option explore_delay, which lets you make the delay between auto-exploreMatthew Cline2009-10-131-0/+1
| | | | | | moves be different than the delay between the moves of other types of travel. By default (explore_delay == -1) the auto-explore delay is the same as travel_delay, preserving the old behaviour.
* Append currently processed init filename and line number to the end of initMatthew Cline2009-10-131-1/+3
| | | | file parsing error/warning messages.
* platform detection: clean up abuse of '_MSC_VER' macroSteven Noonan2009-10-131-3/+1
| | | | | | | Use TARGET_COMPILER_VC instead, unless you need to find the Visual C++ version information. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Merge branch 'trees'.Adam Borowski2009-10-131-1/+1
|\ | | | | | | | | There's still the issue of glyph choice, and cutting them down with an axe is not coded yet.
| * Bushes -- tree-like monsters than can be destroyed with any means of damage,Adam Borowski2009-10-121-1/+1
| | | | | | | | and are much easier to set on fire than trees.
* | Apply n78291's patch in [2877049], with a few tweaks, to expand Jiyva'sDavid Lawrence Ramsey2009-10-121-0/+1
|/ | | | | wrath, allow uncancelable transformations as part of it, and adjust his Slimify power.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Generalize the hydra targetting into multitargetting a bit. Extend it to ↵evktalo2009-10-031-0/+1
| | | | | | two-headed ogres, ettins, deep elf blademasters, tentacled monstrosities and electric golems. (Thanks, ##crawl!) Signed-off-by: evktalo <evktalo@users.sourceforge.net>
* Move 'FixAry.h' -> 'fixary.h', 'FixVec.h' -> 'fixvec.h' for file naming ↵Steven Noonan2009-09-291-1/+1
| | | | | | consistency Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* move 'Kills.h' -> 'kills.h', 'Kills.cc' -> 'kills.cc' for file naming ↵Steven Noonan2009-09-291-2/+2
| | | | | | consistency Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Make miasma and miasma resistance more consistent. It no longer dependsDavid Lawrence Ramsey2009-09-291-3/+3
| | | | on negative energy resistance, but on rotting resistance.
* Attempt to make monster attacks on submerged monsters consistent withDavid Lawrence Ramsey2009-09-281-4/+5
| | | | | player attacks on the same (aside from tentacle attacks, which only monsters can currently have and which work on all submerged monsters).
* Add yet more minor cosmetic fixes.David Lawrence Ramsey2009-09-281-3/+3
|
* Add more spelling fixes.David Lawrence Ramsey2009-09-241-4/+4
|
* Convert asphyxiation resistance to a boolean, since you can either be dolorous2009-09-201-3/+3
| | | | | | | asphyxiated or not. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10742 c06c8d41-db1a-0410-9941-cceddc491573
* Add monster-specific rotting resistance.dolorous2009-09-201-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10740 c06c8d41-db1a-0410-9941-cceddc491573
* Make (very) ugly things no longer heal all damage when they mutate.dolorous2009-09-191-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10734 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2009-09-181-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10720 c06c8d41-db1a-0410-9941-cceddc491573
* Fix polymorphing of (very) ugly things: When polymorphed, they now dolorous2009-09-181-0/+1
| | | | | | | | | mutate into (very) ugly things of a different color. Also, shapeshifters can no longer take their forms, and they can no longer be made shapeshifters themselves. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10718 c06c8d41-db1a-0410-9941-cceddc491573
* Implement part of [2837033]: Randomize colors, resistances, and attack dolorous2009-09-181-1/+2
| | | | | | | | types/flavors for ugly things. They now use the ghost_demon struct, expanded to account for these characteristics. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10709 c06c8d41-db1a-0410-9941-cceddc491573
* Adapt Matthew's new memorisation interface for tiles, using the samej-p-e-g2009-09-121-1/+1
| | | | | | | | display as for spellcasting. Also force a redraw() if the player clicked on a spell. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10661 c06c8d41-db1a-0410-9941-cceddc491573
* Add an inventory-like region for the Tiles version to make spellsj-p-e-g2009-09-101-1/+2
| | | | | | | | clickable. '_' toggles between inventory and spell display. Actual tiles are still missing, but everything works as it should. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10648 c06c8d41-db1a-0410-9941-cceddc491573
* Decouple monsters' item pickup ability from their eating ability, and dolorous2009-09-071-1/+0
| | | | | | | | | | | | properly generalize the checks for item-eating monsters. Currently, monsters' eating abilities are restricted to items (jelly types) and corpses (necrophagi, ghouls, and hungry ghosts; the last can eat corpses in some legends). It should probably be extended to harpies at some point, too. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10628 c06c8d41-db1a-0410-9941-cceddc491573
* Apply caotto's plant god patch, for now named "Feawn".j-p-e-g2009-07-201-0/+1
| | | | | | | Also fix potions of porridge's menu colour being yellow for Mummies. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10355 c06c8d41-db1a-0410-9941-cceddc491573
* Add yet more Jiyva-related cleanups. Make sure his altars are never dolorous2009-07-191-0/+1
| | | | | | | | | | | generated if the royal jelly is dead, you don't worship Jiyva, and you're not under penance from Jiyva; don't destroy Jiyva's altars if the royal jelly dies after you start worshipping him or go under penance from him; and clean up the alternate method for unlocking the Slime Pits. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10332 c06c8d41-db1a-0410-9941-cceddc491573
* * Open Zot for good the first time you enter (with three runes or more).j-p-e-g2009-07-191-0/+1
| | | | | | | | * Add tiles for Zot entrance (both closed and open). * Apply zebez' patch 2823787 to make Magic Mapping show altars/gates. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10303 c06c8d41-db1a-0410-9941-cceddc491573