summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
Commit message (Collapse)AuthorAgeFilesLines
* Trim unnecessary #includes.Adam Borowski2010-01-131-2/+0
|
* Remove resist slowing, increment tag major version.Darshan Shaligram2010-01-101-26/+14
|
* Make seen weapon/armour load conditional on v>=15.1 (rob).Darshan Shaligram2010-01-051-11/+14
|
* Fix marshalling of beholders and unrandarts (#338)Stefan O'Rear2010-01-051-7/+16
| | | | | | | | Beholders were getting saved as signed bytes, so any mermaid with a monster index higher than 127 would come out as a negative number, crashes ensuing. Only the first 50 unrandart existance entries were getting saved, allowing roughly 1/3 of the unrandarts to be created multiple times.
* Remove some old save codeStefan O'Rear2010-01-041-8/+0
| | | | | | | I would appreciate it if people would use TAG_MINOR constants instead of just sprinkling magic numbers in the save code. Stuff like this makes it impossible to systematically expunge old minor code, since we do that by looking for uses of the removed TAG_MINOR constants.
* Track all seen weapon/armour base types and their brands, for acq purposes.Adam Borowski2010-01-041-0/+30
|
* Rename MF_CREATED_FRIENDLY to MF_NO_REWARD, since that's all it's used for ↵Stefan O'Rear2009-12-281-1/+1
| | | | these days.
* Reset tag minor version, since major version has been incremented (due).Darshan Shaligram2009-12-271-9/+6
|
* Customisable clouds!Jude Brown2009-12-281-0/+6
| | | | | | | | | | | | | | | | | | | | | 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. :-)
* Save Shoals heightmap in level tag, increment tag minor version.Darshan Shaligram2009-12-271-0/+24
|
* Replace static snprintf() with make_sprintf() where the result is ↵Adam Borowski2009-12-171-7/+2
| | | | | | immediately cast to std::string.
* remove code for old minor tagsJesse Luehrs2009-12-121-32/+4
|
* Minor tweaks to TILE: specifier.Jude Brown2009-12-101-2/+2
|
* Massively expand tile functionality in vault definitions.Jude Brown2009-12-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Get rid of you.synch_time.Robert Vollmert2009-12-021-2/+2
| | | | | Also, the check for whether to do the corresponding effects has been moved into effects.cc:handle_time.
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* Remove a save compat hack for major tag 6 (we're in tag 8 already).Adam Borowski2009-11-251-12/+0
|
* Reading and writing of extended show_type.Robert Vollmert2009-11-201-2/+27
| | | | Also bumped minor version number.
* Remove obsolete TAG_MINOR_PATHFIND comment.Robert Vollmert2009-11-161-1/+0
|
* Remove map_cell::colour.Robert Vollmert2009-11-161-2/+2
|
* Delay adjustment for sicknessCharles Otto2009-11-151-2/+7
| | | | | | Store total time to recovery instead of turns in you.disease, change you.disease to an integer, update tags and bump TAG_MINOR_VERSION accordingly.
* Reset tag_minor_version to 0Matthew Cline2009-11-141-62/+24
|
* Move mtransit to mon-transit.Vsevolod Kozlov2009-11-141-1/+1
|
* Add new, futureproof enum serialization primitivesStefan O'Rear2009-11-131-0/+106
|
* store: can now handle monsters and Lua chunksMatthew Cline2009-11-121-9/+6
| | | | | CrawlHashTables and CrawlVectors can now contain monsters and Lua chunks.
* Add a CrawlHashTable to monster objectsStefan O'Rear2009-11-121-0/+8
|
* 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
|
* tags: Store minorVersion in reader classMatthew Cline2009-11-101-2/+7
| | | | | | Store the minor version of a savefile being read into the reader class, so that it doesn't need to be passed around as a method/function parameter everywhere.
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-10/+11
| | | | | | | | 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.
* Relax the one mutation per level rule for DSStefan O'Rear2009-11-081-4/+11
| | | | Breaks saves.
* Add actor::set_position.Robert Vollmert2009-11-061-2/+3
| | | | | | | | | | | | This should be used instead of setting position directly. actor::position could be made "protected" except for the arena's unwind_var(you.position), which is too difficult for me to fix. The reason behind this change is that actors should get their own LOS, whose origin should be synchronized with the actor's position. This change also removes the non-const "coord_def& actor::pos()" (yuk).
* Unify mesmerisation code.Robert Vollmert2009-11-051-4/+4
| | | | | | | | 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.
* 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, with a confuse ability.Jude Brown2009-11-051-10/+0
| | | | | | | 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.
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-2/+18
| | | | | | | | | | | | | 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.
* Fixed MONS_NO_MONSTER == NUM_MONSTERS + 1Matthew Cline2009-11-031-0/+10
| | | | | | | | | | Fixed MONS_NO_MONSTER == NUM_MONSTERS + 1, which was a problem because MONS_NO_MONSTER can end up in savefiles, meaning that when NUM_MONSTERS increased old save files would become broken. unmarshall_monster() has a temporary hack to preserve compatibility with old save files, and will fail a COMPILE_CHECK() when NUM_MONSTERS increases beyond its current value.
* tags.cc: Debug msgs for invalid, !in_bounds monsMatthew Cline2009-11-031-1/+39
| | | | | With DEBUG or DEBUG_MONS_SCAN, give error messages if marshalling or unmarshalling a monster with an invalid type or which is out of bounds.
* tags.cc: fix msvc precompiled header placementSteven Noonan2009-10-301-2/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Convert some ints to monster_type.Robert Vollmert2009-10-271-2/+2
| | | | | | | | | 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.
* FR 1837856: note vaults generated in dumpMatthew Cline2009-10-261-0/+8
| | | | | | | | | | Include new dump section "vaults", which for game-end dumps (or any wizard-mode dumps) will include a list (by place) of all the vaults generated in the game. The savefile now includes a player-associated CrawlHashTable (you.props), which can be used for storing player information which doesn't need to be accessed efficiently.
* Roll demonspawn mutations at the start of the game.Stefan O'Rear2009-10-241-0/+13
| | | | | | | All demonspawn mutations are now stored in the player data, and are determined at the same time. This makes a lot of things a lot simpler. On the other hand, it means that the influence of skills and gods on demonspawn mutations is now broken.
* Convert player::your_name to std::string.Robert Vollmert2009-10-241-2/+2
| | | | Doesn't seem to break anything...
* Removed 0.5 savefile minor versions, renumberedMatthew Cline2009-10-231-67/+34
| | | | | | | | | Removed the savefile minor versions which were introducded in 0.5, since bumping the major version from 5 to 6 breaks compatibility with 0.5 savefiles. Renumbered the 0.6 minor versions to start with 0. This contains a hack to maintain compatibility with 0.6 savefiles before the renumbering, a hack which should be removed before 0.6 is released.
* Swap transform_cancellable into transform_uncancellable, since that's the ↵Adam Borowski2009-10-221-2/+2
| | | | | | default. It broken normal transformations...
* Remove tabs, and add minor cosmetic fixes.David Lawrence Ramsey2009-10-201-5/+5
|
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-8/+11
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Apply n78291's patch in [2877049], with a few tweaks, to expand Jiyva'sDavid Lawrence Ramsey2009-10-121-0/+4
| | | | | wrath, allow uncancelable transformations as part of it, and adjust his Slimify power.
* Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-2/+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.