summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix compilation (geekosaur)Neil Moore2014-08-031-1/+1
| | | | | Using int here because an optimizing compiler is allowed to assume that an unrand_type will never be zero.
* Hide a hack better.Shmuale Mark2014-08-031-1/+1
| | | | | | | Ideally, we wouldn't be using special for unrands totally different from how items of the same type do, but that's less trivial than this commit. A centralised place to check for being an unrand should at least make such a change easier.
* Hacks to get Hellfire working as intended.Steve Melenchuk2014-05-051-0/+2
| | | | | | About half of this code is to get the attack to show the flavour as "hellfire bolt". This could probably be redone by having the attack class have some kind of projectile name field.
* Make clang sated and old gcc intact.Adam Borowski2013-11-021-9/+4
|
* Allow unrands to have a special string added to their inscription.Steve Melenchuk2013-10-291-0/+1
| | | | For example, Hellfire gains a fake "hellfire" brand inscription.
* Update unrands on game load.Adam Borowski2013-10-291-0/+1
| | | | It's frustrating to recreate them over and over when you're messing with one.
* Remove unnecessary includes from header files.Jay3.14152012-10-231-2/+0
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Make some of big global data arrays const.Adam Borowski2012-10-211-3/+3
| | | | | | Two big offenders are mut_data and mondata, they are modified by fixup_mutations() and Mara's clone spell, respectively. The former is even not restored back!
* Use std namespace.Raphael Langella2012-08-261-5/+5
| | | | | | | | | | | | | 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.
* Show custom weapon types in action_counts dumps.Adam Borowski2012-07-281-0/+1
| | | | | | It's arguable what is a "custom type" in some cases. A "katana" obviously differs from an European-style long sword, but I left "sceptre" merely as a name for a mace (ie, it counts as one).
* Make some functions static/gone.Adam Borowski2012-06-021-3/+0
|
* Declare an explicit type for colours.Adam Borowski2012-03-131-1/+1
| | | | | | | | | | An imperial buttload of places assumes these to be 8 bits, which makes it impossible to add support for 256 (or more!) colours. This commit tries to allow expanding it in the future; sadly, it is badly incomplete. At least, new code can use the new type. Also, beware of "branded" colours which use bits above 8 for inverse, underline, etc.
* Evict unrand descriptions into the database.Adam Borowski2012-03-081-7/+0
|
* Identify unrands held by monsters when they die or drop them.Adam Borowski2012-02-251-0/+2
| | | | | | This is to avoid redundancy is messages. Individual unrands can opt-out by setting "unided".
* Replace a no longer valid comment.Adam Borowski2011-10-191-2/+1
|
* Make Cheibriados' slowness passive.Adam Borowski2011-09-161-1/+0
| | | | | | | | | | | | | | | | | This deals with problems with races with few or no slots that can be ponderified, removes the problem of Octopodes shedding all their slowness in 20 aut, and fixes the issue of losing +5 to all stats just to bad luck hunting for that glove or hat. There's a buff in that Cheibriadites may now use randarts, and nerf in that they can no longer disrobe to gain speed. Items ponderified with the ability is reverted to their normal state (enchantable, corrodeable, ...), ponderousness goes back to its old status of a very bad platemail brand / unrand property. You may at most use it for a miniscule speed-up in gaining Chei's piety -- and even that I consider to be bad. After all, a lazy person would do anything but exercise wearing overencumbering armour.
* cppcheck: pass const strings by reference. Alloc + copy less.Adam Borowski2011-07-051-1/+1
|
* Boost Undeadhunter to the old disruption brand levels.Adam Borowski2011-06-041-1/+1
| | | | | | | | | An estimate of avg damage with no slaying but high skills: * holy wrath: +19 * before: + 6.6 * after: +24.3 It doesn't affect demons, so outside of Crypt and Tomb it is still inferior.
* Purge some comments about "new" stuff.Adam Borowski2011-06-041-3/+0
|
* Make the Singing Sword spammier when in high tension, change its name.Adam Borowski2011-05-261-1/+1
| | | | | Dpeg made the mistake of volunteering to sort out the speech into tiers, let's unleash him on the db!
* s/artefact_name()/make_artefact_name()/ to reduce confusion.Adam Borowski2011-05-261-1/+1
| | | | | There are several functions with similar names, it's hard to tell this one generates a new one rather than querying the current.
* Don't use random excursions for randarts.Adam Borowski2011-04-291-3/+0
| | | | | This was an ugly hack; it also allowed only a limited amount of randarts ever. And we don't even ever use the saved value anymore.
* Give the robe of misfortune, robe of folly and Lear's chain mail random ↵Adam Borowski2011-04-291-1/+4
| | | | appearance.
* Toss unrand_reacts() away from it_use3.ccAdam Borowski2011-04-141-0/+1
| | | | Big numbered source files are bad, mm'kay?
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+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 placeholders in Xom's book gift names.Adam Borowski2011-03-211-0/+1
| | | | | | It might be better to process these in other messages, but I'm currently afraid of possibly tainted strings (weird player names, etc) so for now I tried to go the safest but least general way.
* Make some functions static, remove unused among those.Adam Borowski2010-10-271-4/+0
|
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-33/+33
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* Remove obsolete special unrand code.Robert Vollmert2010-08-241-11/+0
|
* Rename chars used as numbers to int8_t/uint8_t. Fix some other type usage.Adam Borowski2010-07-301-4/+4
| | | | | | | | | | This should help against the signed char problems, and is good for code readability. Now, if you have a char, it's either an untyped in-memory byte, or a symbol inside a string. Small numbers are instead [u]int8_t, ints, an enum type, or, in so many cases, bools. I didn't touch any of the tiles code, as it's currently broken and I don't want to risk making it unbroken harder.
* Bring sanity to enums by making them diffable/patchable.Adam Borowski2010-06-081-3/+3
|
* Fix wording.David Lawrence Ramsey2010-05-281-1/+1
|
* Make "disallowed for generation" a proper fixedart flag.Adam Borowski2010-05-281-9/+10
|
* Che ponderousness: ponderousness is now an artefact property in addition to ↵Darshan Shaligram2010-02-121-1/+6
| | | | | | | | an ego type, and the Che ability converts the target item into a randart. The -2 EV for each worn item of ponderousness is gone. We need more Che ponderous randart names in randname.txt.
* Artefact name wrapper for dLua items.Jude Brown2010-02-111-1/+1
|
* Remove autogenerated art-data.h, rltiles/dc-unrand.txt and ↵Darshan Shaligram2010-02-111-92/+1
| | | | | | rltiles/tiledef-unrand.cc from repository. art-data.pl no longer modifies artefact.h, but writes a new file called art-enum.h.
* Make Fedhas only care about necromancy that affects corpses/chunksCharles Otto2010-02-071-7/+8
| | | | | Alter Fedhas' necromancy conduct, now Fedhas only cares about a necromancy effects that involve corpses or chunks.
* headers: fix inconsistent struct/class forward declarationsSteven Noonan2009-12-291-1/+1
| | | | | | | Some classes were erroneously referred to as 'struct' in forward declarations, and vice versa. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Add the unrandart "hat of Pondering" (ponderousness).Johanna Ploog2009-12-151-1/+2
|
* New unrand: +3 robe of Clouds (rElec, +Lev)Jude Brown2009-11-281-1/+2
| | | | | | It creates clouds of rain and thin mist around the player (very occasionally). Provides insulation and evocable levitation. Also has a tile!
* Split chaotic things into unclean and chaotic things.David Lawrence Ramsey2009-11-191-1/+2
| | | | | | | | | | Chaotic things are now shapeshifters, mutators, etc., while unclean things are diseasing things, rotting things, etc. Zin still hates both. As good gods treat both unholy and evil monsters as evil, he'll treat both unclean and chaotic monsters as chaotic. Note that silver will only do extra damage to chaotics, as before.
* Give giant spiked clubs a nonzero acquirement weightStefan O'Rear2009-11-131-1/+1
| | | | | | | | They're the best weapon in the game for the races that can weild them, it makes no sense to exclude them from acquirements. Also give mundane items generated by acquirement enchantments and artifact status.
* Fixedart: shield of the gong. Wakes up everyone in a large radius on being ↵Adam Borowski2009-11-131-1/+2
| | | | | | | struck. The exact resists are not yet filled in, we'd need to interrogate zelgadis who provided the idea.
* Autogenerated changes to junk which shouldn't be under version control.Adam Borowski2009-11-121-1/+3
|
* Properly split up unholy and evil items, reworking is_(unholy|evil)().David Lawrence Ramsey2009-11-101-2/+3
| | | | This is mainly for Fedhas, who hates the latter but not the former.
* Remove "called from:" comments.Vsevolod Kozlov2009-11-031-33/+0
| | | | | | These were of questionable use and freshness. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Blessed Blades created the round before shouldn't be "ancient artifacts".Adam Borowski2009-10-301-1/+0
| | | | I didn't make them "new artifacts" either -- they're enchantable now.
* gods: added "Chronos", the slow godSteven Noonan2009-10-201-0/+5
| | | | | Signed-off-by: Brendan Hickey <brendan@bhickey.net> Acked-by: Steven Noonan <steven@uplinklabs.net>
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* autogenerated art data needed by the Windows buildAdam Borowski2009-10-051-1/+2
|