summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-item.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove 2 more parameters from items()reaverb2014-08-081-1/+1
| | | | | They were only used in one place, and the relevant code was moved to that one place in the previous commit.
* don't generate war chants or stalking when generating books in wizmodeJesse Luehrs2014-08-031-0/+4
|
* Remove stuffNicholas Feinberg2014-07-291-0/+2
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Create prompt.ccNicholas Feinberg2014-07-271-1/+1
|
* Move get_ch() from stuff.cc to macro.ccNicholas Feinberg2014-07-271-0/+1
|
* Remove an unused argument from the items() functiongammafunk2014-06-291-1/+1
|
* Rename 'mesclr()' to 'clear_messages()'reaverb2014-06-221-4/+4
|
* The great mon-stuff migration.Shmuale Mark2014-06-221-1/+0
| | | | | | | | | 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.
* Remove some more references to dragon slaying (DrKe)reaverb2014-06-191-1/+1
|
* Rename "vampiricism" to "vampirism" (ChrisOelmueller, #8435)reaverb2014-06-151-1/+1
| | | | | | | Chris Oelmueller made an excellent patch for this, but unfortunately it was rather rotted by the time somebody decided to look at it. It was easier to recreate than update. I've also added some tiles stuff which was missed in the original patch.
* Combine plus/plus2 for rings of slaying, and Acc+/Dam+ on artefactsChris Oelmueller2014-06-131-3/+9
| | | | | | | | | | Phase out ARTP_ACCURACY, rename ARTP_DAMAGE to ARTP_SLAYING which now combines both Acc+ and Dam+ bonuses. Bracers of archery are +4 now instead of +5,+3. [Committer's note: fixed a description and cleaned up various other small issues.]
* Remove jewelry and armour sources of conservationgammafunk2014-05-281-0/+2
| | | | | | The amulet of conservation and cloaks of preservation are no longer necessary without item destruction. Maxwell's patent armour now has the resistance ego and grants rF+ and rC+.
* Chance function(void) to function()reaverb2014-05-241-2/+2
|
* Fix some more TAG_MAJOR_VERSION > 34 hiccups.Steve Melenchuk2014-05-141-0/+4
|
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+2
| | | | This fixes all the instances caught by unbrace.
* Standardize some save compact codereaverb2014-05-101-3/+3
|
* Add orange crystal plate armour unrandNicholas Feinberg2014-05-091-0/+4
| | | | | Adds a new artefact designed to encourage players to cast in ultra-heavy armour.
* Abstractify.Shmuale Mark2014-05-051-1/+1
|
* Remove ARTP_METABOLISMChris Oelmueller2014-04-301-0/+4
| | | | | Convert existing ones into a negative level of ARTP_STEALTH, or in the case of Black Knight's barding, to rPois (mostly for flavor reasons).
* 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.)
* Don't generate racial armourChris Oelmueller2014-03-061-2/+1
| | | | | | | | [It had much the same problems as racial weapons, with only very slightly more significant effects. Some of the old effects of racial armour could potentially be rethought and made into a new armour ego. Beogh still gives a (slightly smaller than before) bonus for armour use, without the orcish requirement. -MarvinPA]
* Add Wizard mode commands to identify/unidentify item types and level items.gammafunk2014-01-301-0/+39
| | | | | | | | | | This binds the commands to & y/Y. We have & i/I, but that only affects inventory items. For various testing purposes, it's nice to be able to mass-identify/unidentify all item types. This command also identifies/unidentifies all inventory items on the level, since items can refuse to unidentify if they exist on the floor, and because level-item identification is also a convenient thing to have. We don't change the identification status of off-level items.
* Fix spelling of "targeting" (#7837)Chris Campbell2013-12-101-1/+1
| | | | See Mantis for discussion.
* Remove mpr_nocap().Adam Borowski2013-11-291-2/+2
| | | | | No particular reason, other than consistency. And all but two used wasteful double-conversion, so this is not a speed regression.
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-27/+14
| | | | | | | | | 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.
* Revert "Replace `mprf(ch, s)` with `mpr(s, ch)`"Adam Borowski2013-11-291-1/+1
| | | | | | | | It trades readability and consistency for an utterly negligible bit of speed. With the amount of further processing mpr() does, a single sprintf is nothing. This reverts commit d9dfa8fc9755fb0a4e8954c7eb94f32fe97b82e0.
* Replace `mprf(ch, s)` with `mpr(s, ch)`Chris Oelmueller2013-11-281-1/+1
| | | | Scripted, then manually reviewed.
* Fix setting {Regen} randart property in wizmodeChris Oelmueller2013-11-161-1/+1
| | | | | | | | | This was changed from bool (add 40 to rate or not) to a number in 180ebbfc23cde438bae5f78af1c326cab8ce24a5. Not changing the property type (from bool) however meant this number was either 0 or 1 up until now, which is rather different from 40. Why does this property never generate "in the wild" by the way?
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-4/+4
|
* Fix a number of inconsistencies in wizmode artefact handling.Adam Borowski2013-11-121-11/+21
| | | | | Also add a couple of asserts so these are less likely to go out of sync in the future.
* 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/+0
| | | | | It degenerated to a simple loop over menv, hardly worth any syntactic sugar. I kept it for now, though.
* monster_near_iteratorAdam Borowski2013-10-311-2/+2
| | | | | | | | | | | | Does the "in view" part of functionality of monster_iterator, is simpler, allows using los models other than LOS_DEFAULT, and gets rid of a lot of uses of get_los(). The code is nearly identical as actor_near_iterator, but the old delegation used more code than either of those. Still, perhaps templating could work? This commit also fixes a buttload of ignoring invis / see invis / sense invis (ie, visible_to()) and act-through-glass bugs.
* Likewise, remove orc slaying.Adam Borowski2013-10-221-0/+8
| | | | Such weapons retained the brand, yet it did nothing.
* Fix broken wizmode item tweaking.Adam Borowski2013-10-061-1/+3
|
* Reformat multi-line array literals.Adam Borowski2013-10-051-7/+14
|
* Remove ARTP_JUMP, redundant with the armour brand.Adam Borowski2013-10-051-1/+3
| | | | | It never had been fully implemented: art-data would break if you tried to use it.
* Fix ordering of SPARM_* name arrays and tile enums.Neil Moore2013-10-011-1/+1
|
* Jump-related save compatibilitygammafunk2013-10-011-1/+1
| | | | | | | The jump enums (two abilities, arte prop, mutation) were previously not added to the proper location, which would break save compat with trunk. Also add a bit of save compat code to give Fe innate jump if loading from a save where they don't have it.
* Add a jump artefact property giving the evoke jump abilitygammafunk2013-10-011-0/+2
| | | | | | * Can be added to anything that's not a ranged weapon with same frequency code as used for fly/blink/rage (occurs after rage) * Shops appraise this for same value as +Rage.
* Add SPARM_JUMPING ego. Wearing this grants the evoke jump attack ability.gammafunk2013-10-011-0/+1
|
* Macabre Finger Necklacepubby2013-09-221-1/+2
| | | | | | | | | | | | A warding amulet that provides you with another ring slot. I rewrote some of the jewellery code, but never re-added the TOUCH_UI code I removed in _prompt_ring_to_remove. Note that octopodes never had TOUCH_UI code for their jewellery in the first place. This should probably be looked at. Also, the player dumps do not show the amulet ring on the top, but I do not consider this a problem.
* Moon troll leather armourpubby2013-09-021-0/+4
| | | | Double troll armour regen branded with spirit shield.
* Allow tweaking the last artefact property in wizmode.Neil Moore2013-08-271-3/+8
| | | | | | | | | | | | (Currently +Fog) We are at 36, just over the number of letters plus nonzero digits. Allow zero, and also allow keypresses for ASCII characters between the numbers and uppercase letters (:;<=>?@). This will allow seven more properties; after that, or perhaps before, we should move to uppercase/lowercase. If we do exceed the limit, use '-' to indicate that the later properties aren't selectable (instead of re-using letters).
* Don't break wizmode artefact editing on the next major save increment.Neil Moore2013-08-261-1/+11
| | | | Also, use "+Fog" instead of "Fog".
* Cancel an american speling.Adam Borowski2013-08-241-3/+3
| | | | | | Looks like, unlike "target[t]ing" where a single t is used by many brits and even some aussies, "cancel[l]ing" has double l even for a good deal of americans.
* Rename some item properties in &t modeChris Oelmueller2013-07-311-17/+17
| | | | | | | Mostly modernizing and unifying the abbreviations to kind-of match current inscription policies. Notable changes are adding 'r' in front of a bunch of stuff, renaming 'Mag' to 'MR' and introducing the "-+*" modifiers.
* Refactor 'you.religion' checks.Brendan Hickey2013-07-281-2/+2
| | | | | Pull 'you.religion [!=]= FOO' checks into a function: you_worship(FOO). This change is part of a large plan to clean up religion.
* Add MSG_OK when canceling for various promptsPekka Lampila2013-06-101-0/+7
| | | | | Also in a couple of cases add other messages. The goal here is to always print something when a prompt is dealt with.
* Fix a monster_type misbuild with clang-3.3.Adam Borowski2013-04-261-1/+1
| | | | | Again, a magic value of -1. It was also wrongly checked in a few error handling routines, rendering them inoperative even with gcc.