summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/art-func.h
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Make the Elemental Staff apply elemental effects (8093)Nicholas Feinberg2014-07-261-1/+1
|
* Arguably refactor the Elemental StaffNicholas Feinberg2014-07-261-16/+54
|
* Staticify is_dragonkind() (wheals)Nicholas Feinberg2014-07-221-0/+33
|
* Separate 'permanent' and 'temporary' monster hit diceNicholas Feinberg2014-07-131-2/+2
| | | | As part of a wider scheme to make draining temporary.
* Reformat.Neil Moore2014-07-051-6/+2
| | | | | Mostly by joining short lines in places where that would let us remove braces.
* Formatting Fixesreaverb2014-06-221-1/+0
|
* Promote intra-cephalopod monarchy synergy.Shmuale Mark2014-06-221-0/+36
| | | | | Octopus king trident gets +1 for every octopus ring worn, ending at +16, naturally.
* 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.
* Fix Wyrmbane not being enchanted on killsreaverb2014-06-211-18/+19
| | | | | | | | | | The old code didn't work for several reasons (such as not reseting mondied despite possibly changing it). The new code awkwardly saves information before possibly killing the defender, so a better solution would be nice. Also contains some miscellaneous refactoring of the _WYRMBANE_melee_effects() function.
* Re-implement the dragon slaying brand for Wyrmbanereaverb2014-06-181-0/+9
| | | | | As a rare unrandart, it can be exempt from the normal rules for what's deep enough for a weapon brand.
* Plus2: Update unrand weaponsChris Oelmueller2014-06-141-14/+5
| | | | | | Leech receives a buff to +8 and increased penalties (-2 instead of -1). [Committer's note: Tweaked some more.]
* Revert "Make random_choose_weighted() end on -1 weight"reaverb2014-06-101-1/+1
| | | | | | | This reverts commit 7e81480cda18144ff185f5248639a072b654deff. Turns out I missed some calls to random_choose_weighted(), this change might not even be worth doing.
* Make random_choose_weighted() end on -1 weightreaverb2014-06-101-1/+1
| | | | For consistency with random_choose().
* Add the Majin-Bo, a new fixedart that offers power atNicholas Feinberg2014-05-251-0/+17
| | | | a terrible price. (It's not that terrible!)
* Modify unrands Chilly Death and Flaming Deathdrachereborn2014-05-251-0/+65
| | | | | | | | | | | Chilly Death now has flash freeze Flaming Death now has sticky flame (1 in 3 chance) Chilly Death's slaying is also buffed (+8, +10) [wheals: tweaked chilly death description to make it clear it only affects movement speed, and used increase_duration on MarvinPA's suggestion.]
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+2
| | | | This fixes all the instances caught by unbrace.
* Revert "Revert "Remove player clinging"."reaver2014-05-071-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 65ff1ef470978c29490100d1732bf2b9ce2fb7cd. Conflicts: crawl-ref/source/main.cc crawl-ref/source/output.cc crawl-ref/source/player.cc crawl-ref/source/shout.cc crawl-ref/source/status.cc crawl-ref/source/status.h crawl-ref/source/terrain.cc crawl-ref/source/transform.cc Minor, prerequesite reverts: b0d520741c8e9a26e7a786a34285f7a9412d8d10 Trival removal of clinging from the Boots of the Spider 3e0928f93c3f8a78ac6327c26986b406f7d7f603 (conflict in crawl-ref/source/item_use.cc) Thanks to gammafunk for removing the last bits of clinging code! To do: Decide what to do about the boots of the spider.
* Hacks to get Hellfire working as intended.Steve Melenchuk2014-05-051-1/+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.
* Let stabbing with blowgun attacks extend effect duration (elliptic).Steve Melenchuk2014-04-271-1/+4
| | | | | | | | | | | | Poisoned needles deal more poison damage; curare has its effect amplified; duration-based needles have their durations extended (except frenzy, possibly for now). The needle of paralysis hits the stone giant in a vulnerable spot!!!! This code might have some side effects based on the dur paramater of enchant_monster_with_flavour being meaningful for the duration-base needle enchantment types; if so, that'll need fixing.
* Ranged attack brands!Steve Melenchuk2014-04-271-10/+5
| | | | | | | | | | | Launchers use the equivalent melee brand effects if the missile isn't an elemental brand (or the attacker is Nessos). Missiles have their own set of effects; flame, frost, and poison use effects basically identical to weapon brands, and everything else has its old effect back. The lajatang of Order works again. Hooray!
* Gut most of the core of ranged attacks.Steve Melenchuk2014-04-271-1/+3
| | | | | | | | | | | | | | We're going to start fresh with something that makes sense. Things that are left intact: explosion effects (this is better handled as a function of the beam, since the ranged attack functionality won't know when the bolt stops, and explosions should happen even if the projectile doesn't hit anything); returning efffects (purely a beam function as well). Things that are disabled: warning for ranged weapon slowdowns and the lajatang of Order's silver brand. At least the latter will need to be re-enabled at some point; the former might be completely unnecessary.
* Turn !coinflip() to coinflip()reaver2014-04-271-1/+1
|
* Fix Singing Sword messagesChris Campbell2014-03-281-6/+6
| | | | | Broken by 25a9b7f745d6, it was using the same messages for silence and 0 tension and never using the SCREAM messages.
* Fix arc blade discharge behaviour.Steve Melenchuk2014-03-241-1/+12
| | | | | | | | The "new" behaviour is what was intended all along, yet never somehow made it into the final version of that commit. Using cast_discharge was using to strange behaviour (especially when monsters, e.g. Nikola, were using it).
* Badtiles for the latest unrands.Steve Melenchuk2014-03-071-0/+6
| | | | If only so that they can have *something* to show.
* Give the ring of Shadows an umbra.Shmuale Mark2014-03-031-0/+11
| | | | | | The size is equivalent to Brilliance's halo, and the stealth modifier is 1.5. It loses +4 EV and -4 Acc since lower accuracy is an inherent trait of an umbra.
* New artefact: FirestarterSage2014-02-271-0/+30
| | | | +7 great mace of flaming. rF++, scrollcons, inner flames monsters on hit.
* Lajatang of Order description fixesChris Campbell2014-02-261-5/+0
| | | | | | | Don't describe the rMut as explicitly from Zin, since it still applies to those Zin hates (presumably it's just an innate property of the weapon). Removed the equip message since something like "You feel shielded from chaos." seemed potentially misleading.
* The +7,+7 lajatang of Order {silver, rMut}wheals2014-02-261-0/+27
| | | | The code is mostly based off of Grunt's lajatang of the Silver Moon patch.
* Unduplicate an antimagic checkChris Campbell2014-02-251-3/+1
| | | | Since it's needed in a bunch of different places now.
* Remove djinn.wheals2014-02-241-0/+2
| | | | | | | Djinn games can't be started (hopefully including using the rcfile), and djinn code should be removed on save-compat bump. Also, schedule a few SE things to be removed.
* Unrand: the +3,+6 demon whip "Spellbinder" {antimagic, MR+}.Steve Melenchuk2014-02-101-0/+44
| | | | It inflicts miscast effects related to the target's spells on hit.
* Unrand: the +3,+5 arc blade {discharge, rElec}.Steve Melenchuk2014-02-101-0/+20
| | | | | It is a cutlass that casts Static Discharge centred on the target on one in three melee hits - effectively an amplified electrocution brand.
* Fix Snakebite curare affecting the user instead of target. (wheals)Pekka Lampila2014-02-091-1/+1
|
* Tweak an Axe of Woe messageChris Campbell2014-02-031-1/+1
|
* Additional unrand tweaks to Snakebite and LeechChris Campbell2014-02-031-1/+1
| | | | | | Make Snakebite a regular whip again, but increase to-dam and apply curare on 2/5 hits, and reduce Leech's to-dam in exchange for the guaranteed vampiric effect.
* Make some unrands more interesting, bring back twowheals2014-02-031-0/+9
| | | | | | | | | | | | | * Make Zhor have rC+++ (as it is it has some trouble competing with a robe of resistance) * Make Leech drain hp on all hits, rather than 3/5ths like other vampiric weapons * Bring back Sniper: it's a +15 vorpal crossbow with slower fire (ranged dark maul) * Bring back Snakebite: it's a +5 venom dwhip that curares the defender on 1 out of 5 hits * Make the Singing Sword a bastard sword (this is fairly big buff, but it still has no brand) * Remove Bullseye, give Gong 21 more SH and 5 less EV (remaining a normal-sized shield)
* Make the Singing Sword's low tension speech cosmetic only (no noise)Chris Campbell2013-12-221-7/+7
| | | | | Since otherwise it's easier and safer to just unwield while travelling anyway. When monsters are around it is noisy as usual.
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-3/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-3/+3
| | | | | | | | | 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.
* Get rid of the radius_iterator "legacy" constructor.Adam Borowski2013-11-051-2/+2
| | | | | | | | | | It was really weird: working on a square, but in almost all cases restricting it to your view (a circle). Note this is _your_ view rather than from the iterator's center -- which hasn't been used once in the obvious interesting way. As usual, this commit fixes a load of "act through glass" bugs, ando/or using los modes that don't make sense in the context.
* Disallow using abilities with a hp cost while under DDoor.Adam Borowski2013-11-011-1/+1
|
* Shut up a compiler warning.Steve Melenchuk2013-10-301-1/+1
|
* De-noise High Council.Steve Melenchuk2013-10-301-11/+0
| | | | | | | This was mostly a relic of its original design. If it ends up being too powerful after this, I may play with its impact on spell success rates some more.
* Elemental Staff rework, try 2.Adam Borowski2013-10-301-0/+47
| | | | | | | | | | | | It's a 100% staff now (per the name) rather than 25% as it was before. In return, its special damage has been improved, and no longer depends on the base hit. The new formula has the same damage as the elec brand (obeying one of random four resistances), with a chance of proccing depending on the Evoc skill. At 27 skill, it does ~2/3 damage of enhancer staves. It lacks the power boost (ie, the main reason to use such staves) but its awesome resists make it a good fixedart.
* Unrand: the +2 hat of the High Council {Archmagi, Wiz- Noisy Contam Stlth-}.Steve Melenchuk2013-10-291-0/+11
| | | | | | | | It has an anti-wizardry effect, e.g. it negatively impacts spell success rates - on the whole, it's basically a hat of wild magic. There's a minor adjustment here to item name code to get the noises to display properly.
* Hellfire-the-unrand gains a "hellfire brand".Steve Melenchuk2013-10-251-0/+30
| | | | | | | | | | | | | | Bolts fired from it inflict hellfire-flavoured damage and explode in a manner similar to other exploding projectiles (but also with hellfire-flavoured damage) - this of course means bolts fired from it have a 100% mulch rate. Its base damage enchantment is now +6; +9 is probably too overpowered, but lowering it all the way to +0 might be considered too much of a drawback in light of the mulch rate and the fact that rHellfire enemies, well, completely resist damage from Hellfire. (Who would have thought?) It's also now evil! (What the hellfire!?)