summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add formatting fixes.David Lawrence Ramsey2009-10-301-4/+3
|
* Add minor cosmetic fixes.David Lawrence Ramsey2009-10-301-7/+9
|
* Attempt to make whips viable starting weapons:David Lawrence Ramsey2009-10-251-3/+3
| | | | | | | 1. Increase their damage from 4 to 6. 2. Reduce the probability for reaching a bit, and introduce the probability for pain. 3. Give (big) kobolds a small chance to start with whips.
* Extract newgame character restrictions from newgame.cc.Robert Vollmert2009-10-241-2/+2
| | | | | | | | | | | | | | | | | The functions in the new ng-restr.cc are "pure": They don't access global state; data is passed in via the new and incomplete newgame_def. Eventually, new_game should be split into something like newgame_def choose_game(); that doesn't access "you", and void setup_game(newgame_def); that sets up the player. Also get rid of player_size in favour of player::body_size. Rename player_size_type to size_part_type since it's not really player-specific (used in actor::body_size). Move parts of player_genus, player::has_claws, body_size out into species.cc.
* Do nothing if unwielding a non-weapon artefactMatthew Cline2009-10-241-0/+5
| | | | | | | Fix a bug where wielding a non-weapon artefact would do nothing, but unwielding it would could change your stats, leading to permanent stat loss (or permanent stat gain). Now unwielding an artefact armor/jewellery which you accidently wielded has no effect.
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* project-wide: implement use of platform.h detection macrosSteven Noonan2009-10-101-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* 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.
* Remove unnecessary includes of view.h.Robert Vollmert2009-10-091-1/+0
| | | | | Compilation of console crawl on Linux succeeds; please complain if other platforms break.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Reduce weight of large rocks, from 600 to 400.David Ploog2009-10-011-1/+1
|
* By popular demand and taking pointers from DC4.1 and DCSS0.1, reduce ACdploog2009-09-161-2/+2
| | | | | | | | of gold dragon armour (by 2) and of gold dragon hide (by 1) without any compensation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10686 c06c8d41-db1a-0410-9941-cceddc491573
* Change message about holy wrath weapons not being cursed as suggested byj-p-e-g2009-08-131-1/+1
| | | | | | | Rachel. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10539 c06c8d41-db1a-0410-9941-cceddc491573
* FR 2823234: Note getting the Blessed Blade right awayj-p-e-g2009-08-121-0/+12
| | | | | | | | FR 2433928: Holy wrath weapons cannot be cursed. The message could stand to be improved. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10530 c06c8d41-db1a-0410-9941-cceddc491573
* Use ETC_MAGIC for beam animations with unknown effect, so we don't j-p-e-g2009-07-201-1/+1
| | | | | | | | accidentally leak information about unID'd wands etc. Some additional space fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10358 c06c8d41-db1a-0410-9941-cceddc491573
* Spacing fixes.j-p-e-g2009-07-201-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10356 c06c8d41-db1a-0410-9941-cceddc491573
* Apply caotto's plant god patch, for now named "Feawn".j-p-e-g2009-07-201-0/+24
| | | | | | | 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
* Resort the maces and flails so that they're in ascending order of damage dolorous2009-07-121-3/+3
| | | | | | | again after the recent adjustments. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10188 c06c8d41-db1a-0410-9941-cceddc491573
* Some weapons stat tweaks as per FR#2793567 by Megane (with suggestions from ↵evktalo2009-07-101-10/+10
| | | | | | Lemuel). Whips are now faster, eveningstars are more powerful, blessed blades are always better than basic versions, giant maces and clubs are much improved. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10138 c06c8d41-db1a-0410-9941-cceddc491573
* Replace "is_random_artefact()" with "is_artefact()" in a few places wherezelgadis2009-06-251-7/+4
| | | | | | | | this was missed, and add checks for unrandart and special unrandarts where applicable. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10044 c06c8d41-db1a-0410-9941-cceddc491573
* First part of the merger of fixed artefacts into unrandom artefactszelgadis2009-06-251-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (further changes will be much smaller). Breaks savefile compatibility, and bumps the major savefile version up to 6. Some changes made to some tiles files, but it hasn't been tested with a tiles build. Overview of changes: * Unrand artefacts are now defined in art-data.txt and is turned into C code via util/art-data.pl. This has the dual advantage of being more readable by humans, and that if the unrand data structure changes then you can just change util/art-data.pl and regenerate the C code rather than having to change some 70 different C structs by hand. * util/art-data.pl automatically updates NO_UNRANDARTS, and also automatically generates an enumeration of all the unrands which are equal to their item.special field. * randart.cc and randart.h have been renamed to artefact.cc and artefact.h, since the files covers all types of artefacts, and the differences between randarts, unrandarts and (former) fixed arts have been minimized since the terms were introduced. Also renamed unrand.h to art-data.h * The brands and resistances of former fixed arts are now handled via artefact properties, but the rest of their special behaviours are still hardcoded. * Unrandarts are now distinguished between normal and "special", with the special ones currently just being identical to the list of the formed fixed arts. Special unrandarts are randomly generated less often than normal unrandarts, can be generated in the Abyss if they've been lost, can't be picked up by monsters, and can't be affected by Tukima's Dance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10035 c06c8d41-db1a-0410-9941-cceddc491573
* Since fixed artefacts are going to be folded into unrandarts, and unrandartszelgadis2009-06-081-6/+12
| | | | | | | | | | | have already become almost identical to randarts, change "randart" to "artefact" everywhere except for things that deal exclusively with randarts. Artefact related files will be renamed later. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9921 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2794986]: Special damage descriptions weren't being displayed for dolorous2009-06-011-6/+26
| | | | | | | weapons with multiple damage types. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9876 c06c8d41-db1a-0410-9941-cceddc491573
* Tutorial changes:zelgadis2009-05-241-61/+3
| | | | | | | | | | | | | * Note items which give abilities or resistances even if they're not equipped. * Don't give conjurers the item note about heavy armour for non-body armour, but do give a note about shields making casting harder. * Miscellaneous other improvements. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9812 c06c8d41-db1a-0410-9941-cceddc491573
* Change ankuses' vorpal type from crushing to piercing/bludgeoning, as dolorous2009-04-221-1/+1
| | | | | | | it's more appropriate given their description. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9678 c06c8d41-db1a-0410-9941-cceddc491573
* * Tweak Xom's ideas about what makes a funny or boring death.j-p-e-g2009-04-221-13/+13
| | | | | | | | | * Add another option (*sigh*) covering whether W=T and P=R. (Defaults to false.) * Various spacing and comment fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9675 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-04-191-30/+26
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9653 c06c8d41-db1a-0410-9941-cceddc491573
* Add more comment fixes.dolorous2009-04-191-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9648 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2009-04-191-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9647 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix Xom's piety wrapping around from 0 -> 255.j-p-e-g2009-04-181-2/+4
| | | | | | | | | | | | | | | | * Fix Xom piety 100 (initial state) favouring bad effects. * Limit tension bonus for good effects to 199. * Add penalty for tension 0, so bad effects become more likely without tension. * Revert order of Xom's amusement to actually match the amusement gain. (Was getting "roars with laughter" for gain of 2, etc.) * Add damage shaving to Deep Dwarf ghosts. * Add 'o' to pickup list commands -> stop prompting, start autoexplore. * Default menu_colour_item_class to true in initfile.cc. * Allow autopickup of chunks in Lich form. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9634 c06c8d41-db1a-0410-9941-cceddc491573
* * Add stair repelling as a bad Xom effect.j-p-e-g2009-04-131-13/+14
| | | | | | | * Experimentally make tension increase the odds for good effects. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9600 c06c8d41-db1a-0410-9941-cceddc491573
* * After some thought, remove the description toggle from the spell menu asj-p-e-g2009-04-061-9/+7
| | | | | | | | | | the double toggle makes everything much more complicated, and you can easily access the spell descriptions from the very similar 'I' menu. * Don't offer weapons of unknown brand types for ?recharging. I tested a few combination cases, but I might have overlooked something. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9589 c06c8d41-db1a-0410-9941-cceddc491573
* * Allow fleeing monster to push past higher ranked monsters of the samej-p-e-g2009-04-031-0/+3
| | | | | | | | | | | type. * Allow quivering of wielded missiles (stones for Sandblast etc.) and wielded weapons of returning if your throwing skill is > 0. * Add stairs/gates/shops to the 'V' command, mostly for the convenience of the easy travel feature. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9574 c06c8d41-db1a-0410-9941-cceddc491573
* * Merfolk may wear heavy armour while swimming, though their armourj-p-e-g2009-03-291-9/+0
| | | | | | | | | | | | penalty is doubled in deep water. * Change "zombified ally" -> "mindless thrall" (and only count friendly monsters). * Call trackers_init_new_level() earlier, in load(), so that TileNewLevel() can use the correct travel information when drawing exclusions on the minimap. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9566 c06c8d41-db1a-0410-9941-cceddc491573
* * Change size restrictions for banded, splint, plate and crystal platej-p-e-g2009-03-201-4/+4
| | | | | | | | | mail to [SIZE_SMALL, SIZE_MEDIUM] like for the other mails. (Fixes 2695530.) * There's a 50% chance of Xom being amused about former playthings dying. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9522 c06c8d41-db1a-0410-9941-cceddc491573
* Properly disallow randart versions of mundane items.dolorous2009-03-111-3/+21
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9417 c06c8d41-db1a-0410-9941-cceddc491573
* Add miscellaneous minor fixes.dolorous2009-02-251-3/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9224 c06c8d41-db1a-0410-9941-cceddc491573
* Lots more cleanups. haranp2009-02-151-1/+1
| | | | | | | | | Remove the sound-strength #defines because they're not used anymore (except for SL_SPLASH, which has been replaced by its value.) Change some #defines to const variables. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9087 c06c8d41-db1a-0410-9941-cceddc491573
* Make monster size checks for weapons and armor consistent with those for dolorous2009-02-061-2/+1
| | | | | | | | players: torso size, not body size, counts. This should fix [2508934], without having to fix any monster flags :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8928 c06c8d41-db1a-0410-9941-cceddc491573
* Move the wielding exception for staves and lajatangs into dolorous2009-02-061-0/+4
| | | | | | | check_weapon_wieldable_size(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8918 c06c8d41-db1a-0410-9941-cceddc491573
* After some thought, make quarterstaves and lajatangs large again, and dolorous2009-02-061-2/+2
| | | | | | | | put the wielding exception for them back in, since it's in multiple places already. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8917 c06c8d41-db1a-0410-9941-cceddc491573
* Fix previous change, so that e.g. kobolds can't wield two-handed weapons dolorous2009-02-061-2/+2
| | | | | | | anymore. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8916 c06c8d41-db1a-0410-9941-cceddc491573
* In check_weapon_wieldable_size(), adjust fit a bit depending on size. dolorous2009-02-061-4/+12
| | | | | | | | | | | To compensate for this, make quarterstaves and lajatangs medium instead of large, and dire flails large instead of medium. This eliminates the need for special cases when small races wield quarterstaves, lajatangs, or bows, and also hopefully restores 0.4's behavior regarding wieldable weapons, fixing [2569070]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8915 c06c8d41-db1a-0410-9941-cceddc491573
* Partially fix get_random_armour_type being completely broken (e.g. wizardharanp2009-02-041-18/+18
| | | | | | | | | hats and caps can get generated again.) get_random_armour_type makes assumptions about the order of armour_type, which were invalidated by r8681; I'm hesitant to touch the order again for fear of breaking something. dolorous, can you check? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8891 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up acquirement subtype determination code. (Another goto bites the dust.)haranp2009-02-041-1/+1
| | | | | | | Be a bit more generous regarding books for Evoc and Invoc types. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8890 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up item handling a bit, and don't give uniques potions if they dolorous2009-01-261-1/+47
| | | | | | | won't be able to drink them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8761 c06c8d41-db1a-0410-9941-cceddc491573
* Cleanup, again:dolorous2009-01-221-37/+20
| | | | | | | | Add a WPN_MAX_RACIAL parameter to the weapons enum, and make set_equip_race() use it. Also, reorganize the weapons list a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8688 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-01-221-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8687 c06c8d41-db1a-0410-9941-cceddc491573
* Various cleanups:dolorous2009-01-221-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | 1. Move the blessed eudemon blade down in the weapon_type enum so that it's with the other blessed weapons, add a WPN_MAX_NONBLESSED parameter to indicate where the non-blessed weapons end, and make weapon mimics use it. Mimics can now no longer imitate blessed weapons, which makes them less of a giveaway, since only the blessed eudemon blade shows up normally, and it's normally colored yellow, neither of which are true for mimic versions. 2. Since all non-racial armors are in one contiguous block at the end of the armour_type enum, and since very little code depends on the armors' being in a particular order, add an ARM_MAX_RACIAL parameter to indicate where the potentially racial weapons end, and make set_equip_race() use it. Also, rearrange the armors a bit in the enum. 3. Since no code depends on the missiles' being in a particular order, move the non-racial missiles down to the end of the missile_type enum, add a MI_MAX_RACIAL parameter to indicate where the potentially racial missiles end, and make set_equip_race() use it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8681 c06c8d41-db1a-0410-9941-cceddc491573
* Fix inverted logic that was allowing racial centaur/naga bardings to be dolorous2009-01-221-4/+4
| | | | | | | created. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8672 c06c8d41-db1a-0410-9941-cceddc491573