Ad placeholder

User:NtCarlson/Sandbox: Difference between revisions

Jump to navigation Jump to search
Added universal damage rider discussion
(Replaced the term "attack damage" with "weapon rider")
(Added universal damage rider discussion)
Line 48: Line 48:


==Damage Riders (<code>DamageBonus()</code>) ==
==Damage Riders (<code>DamageBonus()</code>) ==
This is a comprehensive list of all the damage riders in the game that use <code>DamageBonus()</code> which can be acquired by the player. There are other <code>DamageBonus()</code> effects exclusive to certain enemies or attached to items not available in the game (outside of cheats). These effects are excluded from the list below.
Unlike '''weapon riders''', '''damage riders''' can "ride" on damage sources other than weapon or unarmed damage.
This makes them more flexible and potentially abusable than basic '''weapon riders'''.
In particular, when combined with one or more '''damage rider source''' effects, a '''damage rider''' can potentially apply multiple times to a single attack, effectively multiplying their provided damage bonus.
 
This is a comprehensive list of all the '''damage riders''' in the game which can be acquired by the player. There are other '''damage riders''' exclusive to certain enemies or attached to items not available in the game (outside of cheats). These effects are excluded from the list below.


If a damage type is not specified, the damage bonus will inherit the type from whatever damage source it is applied to.
If a damage type is not specified, the damage bonus will inherit the type from whatever damage source it is applied to.
{| class="wikitable"
{| class="wikitable"
|+ <code>DamageBonus()</code> sources
|+ '''Damage riders'''
!Source
!Source
! Damage Bonus
! Damage Bonus
Line 187: Line 191:
|}
|}
<references>
<references>
<ref name="universal">These '''damage riders''' are universal. They will apply to any damage source, even damage '''detached''' from an attack or spell.</ref>
<ref name="universal">These '''damage riders''' are '''universal''' (see below).</ref>
<ref name="spellmight">Prior to Patch 4, this worked with ''any'' direct damage spell. More testing is needed to see what it works with after Patch 4.</ref>
<ref name="spellmight">Prior to Patch 4, this worked with ''any'' direct damage spell. More testing is needed to see what it works with after Patch 4.</ref>
<ref name="shadow-cloaked">The Shadow-Cloaked Ring boosts both weapon and unarmed damage, but weapon damage is boosted using <code>CharacterWeaponDamage()</code>.</ref>
<ref name="shadow-cloaked">The Shadow-Cloaked Ring boosts both weapon and unarmed damage, but weapon damage is boosted using <code>CharacterWeaponDamage()</code>.</ref>
<ref name="crit">The damage bonus applies to any Critical Hit, not just those made with this weapon.</ref>
<ref name="crit">The damage bonus applies to any Critical Hit, not just those made with this weapon.</ref>
</references>
</references>
The top 5 '''damage riders''' in the above list are '''universal'''. They will apply to any damage instance, even ones '''detached''' from a spell or attack. All the other '''damage riders''' involve conditions like <code>IsSpell()</code> or <code>IsMeleeAttack()</code> so any damage instance that is not a part of a spell or weapon attack cannot be boosted by these non-'''universal damage riders'''. Status effect damage like {{Cond|Simple Toxin}} is an example of damage '''detached''' from any attack or spell that can only be boosted by '''universal damage riders'''. See below for a more detailed discussion of '''detached''' damage instances.


== <code>DealDamage()</code>==
== <code>DealDamage()</code>==

Navigation menu