Combat Damage

From Corruption of Champions Wiki
Revision as of 19:21, 31 March 2015 by Dragon643 (talk | contribs) (Created page with "Describes how the game handles damage (and effects?) during combat. [] means int value not included; 0..[1] will be 0-0.9999.....9 instead. (That's close enough, but it can be...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Describes how the game handles damage (and effects?) during combat. [] means int value not included; 0..[1] will be 0-0.9999.....9 instead. (That's close enough, but it can be quite important for strict checks.) (Please rename this article as you see fit as it includes full combat handling, but if you do so, please use redirects or kill all orphans [you monster!] left behind. Also, please get rid of ghost comments if you find some.)

Latest update on article : 0.8.9

Weapon attack value

  • First, get the weapon's base attack value.
  • If the player has the Weapon Mastery perk, more than 60 Strength and is wielding a large weapon, weapon attack is increased by 20%.
  • If the player has the Lightning Strikes perk active (at least 60 Speed) and is not wielding a large weapon, weapon attack is increased by (Speed-50)/3, rounded to the nearest integer.
  • If the player is under Berzerking status effect, weapon attack is increased by 30.
  • If the player is under Charge Weapon status effect, weapon attack is increased by its first value (bonus).

Normal attack

  • If the player is not under First Attack status effect, recover Fatigue.
  • If the player is under Sealed:Attack status effect, attack automatically fails and the target gets to act.
  • If the player has three or more fetishes and is not playing as Urta (wait, what? Oh, Urta, you foxy fetishist), attack automatically fails and the target gets to act.
  • If the target is under Concentration status effect (Amily), attack automatically fails and the target gets to act.
  • If the target is under Level status effect (Sand Trap) and the player is not under First Attack status effect, reduce the Sand Trap's trap level by 4.
  • If the player has the Double Attack perk, at least 50 Speed and is using "Forced" or "Dynamic" (not "Off")...
    • If the player is under First Attack, remove the status effect and perform the Strength check.
    • If the player picked "Forced", apply the status again.
    • If the player picked "Dynamic" and has less than 61 Strength, apply the status again.
    • ...else, if the player has the Brawler perk and is fighting with fists...
      • If under First Attack, remove the status.
      • If not under First Attack, apply the status.
  • If the player is under Blind status, remind them they probably won't have much luck (depending on their opponent).
  • If facing a Basilisk, roll INT/5+0..[20]. If lower than 25, the player isn't turned to stone but loses First Attack status, is affected with Basilisk Slow status of -20 (-20 Speed) and the round ends.
  • If facing Worms (you asked for it), roll INT/3+0..[100]. If 50 or higher, roll STR/5-0..[5] (rounded down, minimum 1 damage). If the first roll fails and under First Attack status, attack again. Target then gets to act.
  • At this point, perform normal attack checks...
    • Roll a speed dodge check to get the success rate. If Blind, success rate capped at 50%. If the attack fails:
      • If First Attack and not facing Akbal, Shouldra or the Forest Kitsune, attack again.
      • If not (or no longer) under First Attack status, target gets to act.
    • If the target is under Earthshield status (Sand Mother), 25% chance of failing; attack again if under First attack or target gets to act.
    • Perform the Strength caps from Double attack. If using "Forced", Strength is capped at 60.5 if it is higher than 61. (Allows for double attacks at up to 61 Strength, though.)
    • Add the Strength to the (modified) weapon attack to get the base damage.
    • If target is under the Level status (see above), multiply damage by 1.75, rounded to the nearest integer.
  • Now, let's perform the critical hit check...
    • If 4% chance or the player has the Tactician perk, at least 50 Intelligence and (INT-50)/5 > 0..[100] (10% chance), it's a critical hit; multiply damage by 1.75. (up to ~13.6% chance with both)
  • Now, let's perform target's damage reduction, starting with natural armor from their Toughness. Start with 0..[Target's Toughness].
  • If the player isn't using the Deadly Spear or the Jeweled Rapier (which are piercing weapons), add the target's ArmorDef.
    • If the player has the Lunging Attacks perk, remove one half of the target's ArmorDef. (The player must still not be using any of the above weapons.)
  • If the player is using a Katana, reduce the target's ArmorDef by 5, unless it is lower, in which case damage is reduced by the target's ArmorDef instead.
  • If the player has the Thunderous Strikes perk active (at least 80 Strength), multiply damage by 1.2.
  • If the player has the Chi Flow - Magic perk active, multiply damage by 0.75.
  • If the player has the Chi Flow - Attack perk active, multiply damage by 1.1.
  • Round the damage to the nearest integer and keep going.
  • If facing an Anemone, she has a 10% chance of attempting to tame the player. If the player's corruption is lower than 75, damage becomes 0 (attack fails); check for First Attack to attack again or process target AI.
  • If some damage was done and the player has the History: Fighter perk, multiply final damage by 1.1.
  • Display the damage done (and critical message if applicable) if more than 0.
  • If the player has the Brutal Blows perk active (Strength higher than 75), damage the target's ArmorDef by 10 points or make it 0 if lower.
  • If facing an Anemone, poisoned with Anemone Venom (instant). Player loses 1 Strength and Speed per dose (1..3); if either stat is lower than 2, they gain 2 Lust for the stat and each dose.
  • Check whether the player's weapon deals lust damage if the target's lust resistance is lower than 100%. (Note: Everything below affected by lust resistance.)
    • If the player is using an aphrodisiac weapon, additionally deals 5+player's Corruption/10 lust damage.
    • If the player is using a coiled whip, additionally deals 5+player's Corruption/12 lust damage.
    • If the player is using a Succubi Whip, additionally deals 20+player's Corruption/15 lust damage. If player's Corruption is below 90, gains 0.3 Corruption. The player also has a 50% chance of gaining 1 Lust.
  • If the player is using Izma's Hooked Gauntlets (you thief), Spiked Gauntlets or the Huge Warhammer...
    • If the target doesn't have the Resolute perk, 10% chance of causing the Stunned effect.
    • If target isn't already bleeding from IzmaBleed and their ArmorDef is lower than 10, 50% chance of causing the IzmaBleed effect for 3 turns with the Hooked Gauntlets.
  • Perform one last First Attack check. If the status is on, attack again; if it isn't and the target isn't defeated by 0 HP/100 Lust, they can act now.

Tease

Tease attack fails automatically, when:

  • Target's lust resistance is 100%
  • Target is immune to Lust Attacks like worms or Sirius

From then on, the tease is monster-specific. Call their tease function and if the combat round isn't over, allow them to act.

  • If the target is Blind, the player is affected with Sealed:Tease
  • Recover Fatigue.
  • Start like the Naga Tease formula but add tease bonus from Chi Reflow - Lust (+10% chance) as well as one of 45 possible random poses (weighed) from the player's assets (lust is lust damage dealt unless stated otherwise).
    • 0: You slap your butt. (Weight 1-6 depending on butt rating. Must not have the Bimbo/Bro/Futa Form perks.)
    • 1: You expose your breasts. If you have more than 1 breast row, +1 lust. (Weight 1-8 depending on biggest tit size. See pose 0, tit size must be at least 2".)
    • 2: If centaur, you perform facesitting for +4% chance and +2 lust. Else open armor; if visible cocks, +1% chance and +1 lust, extra +5 lust with Bulge Armor. (Weight 2-7 depending on vagicap and wetness. See pose 0.)
    • 3: If centaur and shaft, you expose your horsemeat; +5 lust with Bulge Armor. Else open armor; +1% chance and +5 lust with Bulge armor. (Weight 1-9, affected by cock total and cock area. See pose 0.)
    • 4: You bounce your hypnobutt. If butt rating is 10 or higher, +3% chance; else, if you have a vagina, +1% chance. (Weight 1-6 affected by butt rating. Must be a herm and have Bimbo Body or Futa Form.)
    • 5: You expose your nipples for +1% chance and +2 lust. If they are fuckable and your own lust is at least 50, additional +1% chance. (Weight 1-8 affected by tit size. See pose 4, needs at least 2" tit.)
    • 6: You open your armor and perform a full bimbo-style show. +5 lust with Bulge Armor. (Weight 0-5, affected by vaginal wetness and capacity. See pose 4, needs vagina. If wetness less than 3, pose 2 instead.)
    • 7: Something catches your eye and you bend over, exposing your vagina. +1% chance, +2 lust. (Weight 4. See pose 4, needs vagina, butt rating of 8+, hip rating of 6+ and tit of at least 4".)
    • 8: You flex your bro muscles in the "You feel stronger" Atlas fashion. +(Muscle tone - 75)/5% chance, +(Muscle tone - 70)/5 lust. (Weight 1-4 affected by tone. Bro Body; no cock or no Futa Form, tit size<1, tone 60+.)
    • 9: You lift your bro arms and do the same. See above effect. (Weight 1-4 affected by tone. See pose 8 but also requires 50+ Strength.)
    • 10: You pump your bro hips and display your massive brocock. +5 lust with Bulge Armor. (Weight 1-5 affected by cock total and cock area. See pose 8 but obviously requires cock.)
    • 11: DO YOU EVEN LIFT? You admire your own brocock and let your target judge it. Same as above. (Weight 1-5. See pose 10.)
    • 12: You perform some stretching. +1% chance if thickness less than 33, else -1% chance. +(Thickness-50)/10 lust damage. (Weight 2-5 depending on wetness and vagicap. Must be a biped, have Flexibility and vagina.)
    • 13: Pregnancy milkshow! If lactating, +2% chance and +4 lust. If timer<100 hours, +1% chance and +2 lust. If <50 hours, extra +1% chance and +2 lust. (Weight 1-10 depending on timer. Must be pregnant.)
    • 14: This is my pregnant vagina. There are many like it, but this one is mine. +2%/+4. If heat, extra +2%/+4. (Weight 3-10: +7 if heat. Must have vagina, Broodmother and preggotimer>216 or <=0. Target must have cock.)
    • 15: You fingerfuck your nipples. Tits bigger than 1" and vagina, 1/2 chance of +2%/+4; else bigger than 1", 1/2 chance of +1%/+2. (Weight 2-9: +3 if vagina, +1-2 if wet, +1 if 3" tit, +1 if 3" nipple. Must have fuckable nips.)
    • 16: You strip and fistfuck your own anus. (Weight 1 or 2. Must have an anal looseness of at least 4 for weight 1. If 5 or more, weight 2 instead.)
    • 17: You wave your and bee abdomen and... Damn Fen, now I can't get the FF7 Honeybee Inn scene out of my mind. +0.5% chance, +0.5 lust. (Weight 2. Must have a bee abdomen.)
    • 18: You sit down like a dog and pant with your tongue out. +1% chance, +2 lust. (Weight 2. Must be a biped with a dog score of 4 or more and have a vagina.)
    • 19: You capture your opponent's attention using your feminine facial features and blow a kiss at them. +2% chance, +4 lust. (Weight 3. Feminity must be 100 or more.)
    • 20: You use your mega masculine facial features to show that a real man can turn another man's gay in a second with their face alone. +2% chance, +4 lust. (Weight 3. Feminity must be 0 or less.)
    • 21: You use your androgynous facial features and mystify your opponent. -3 lust. (Weight 3. Feminity must be exactly 50.)
    • 22: You milk some silk from your spider abdomen and play with it. (Weight 3 or 6. Must have a spider abdomen; weight 6 if spider score is 4 or higher.)
    • 23: You spin your target's vagina with your cock because of your rut. (Weight 5. Must be in rut, have a cock and target must have a vagina.)
    • 24: You perform a live lapdance using your staff, breasts and butt. (Weight 5. Must be using Wizard's Staff, have at least 1" tit and a set gender - other staves will not add this pose.)
    • 25: You get closer to your target and titsmother them. +2% chance, +4 lust. (Weight 5. Must be at least 2' taller than the opponent and have at least 4" tit.)
    • 26: You plant your weapon into the ground and summon magic lustballs. +1% chance, +2 lust. (Weight 3. Must know Arouse and have at least 70 INT.)
    • 27: You show your milking breasts. +1% chance, +1 lust. (Weight 3-9 depending on biggest tit size. Must have the Feeder perk and at least 4" tit.)
    • 28: You show your butt and play horny sex ed teacher. (Weight 4. Must be female and wearing backless female teacher's clothes)
    • 29: You play with your formal vest, teacher-style. +1% chance, +3 lust. (Weight 4. Must be male and wearing formal vest, tie, and crotchless pants)
    • 30: You perform an erotic dance for your opponent. +2% chance, +4 lust. (Weight 4. Must be wearing headdress, necklaces, and many body-chains)
    • 31: This horse is ready to ride all night long! +2% chance, +4 lust. (Weight 4. Must be wearing bridle bit and saddle set.)
    • 32: You flip-flap your butt. +1% chance, +2 lust. (Weight 4. Must be wearing servant's clothes.)
    • 33: You perform a series of revealing poses, playing master and slave with your opponent. +2% chance, +4 lust. (Weight 4. Must be herm and wearing crotch-revealing clothes.)
    • 34: You give an explicit curtsey towards your opponent and go for some master and servant maid play. +1% chance, +2 lust. (Weight 4. Must have a vagina and wear Sakuya Izayoi maid's clothes.)
    • 35: You brush aside your crotch flap and go for some master and servant butler play. +1% chance, +2 lust. (Weight 4. Must have a cock and wear Ciel Phantomhive cute servant's clothes.)
    • 36: You go for some hospital play and ask for medical care. +1% chance, +2 lust. (Weight 4. Must wear bondage patient clothes.)
    • 37: You make great use of your foxy assets. +6% chance, +3 lust. (Weight 4. Must have a kitsune score of at least 2 and fox-type tail.)
    • 38: You play with your fox tail. +1% chance, +1 lust. (Weight 4. See pose 37.)
    • 39: You wiggle your foxy hips back and forth. +1% chance, +1 lust. (Weight 4. See pose 37.)
    • 40: You batter your eyelashes and play with your hips while teasing your opponent. +1% chance, +2 lust. (Weight 4. See pose 37.)
    • 41: You play with your multiple foxy assets. +1% chance, +2 lust. (Weight 4. See pose 37.)
    • 42: 50% chance of showing cock (-1%/+3) or bend over (+2%/+3) (Weight 9. Urta tease.)
    • 43: 7 random poses; +2%/+1, +2%/+2, +1%/+1, +3%/+1, +1%/+3, +1%, +2; extra +3%/+6 for each if facing minotaur-like. (Weight 9-10. +1 if facing minotaur-like. Must have vagina, cow tail, cow score of at least 3, lactate 500+ mL and have tit of 6"+.)
    • 44: 5 random poses; base +3%/+5; +3% if exposing g-string; +2% if bending over. (Weight 15. Must have tit of at least 4" and wear Leina Vance Lusty Maiden's Armor.)
  • Now putting the tease flags to good use. The following bonuses start at 0 and will get capped at +5%/+10 when done. Balls are a lie. If you've been flexing your muscles, skip that step, bro; that shit's for nerds.
    • If you didn't flex your muscles...
      • If you used your breasts...
        • More than 1 breast row, +0.5%/+1; more than 2, +1%/+2 instead; more than 4, +1.5%/+3 instead;
        • Biggest lactation at least 2, +1%/+2; at least 3, +2%/+4 instead;
        • Biggest tit size at least 4", +0.5%/+1; at least 7", +1%/+2 instead; at least 12" (1'), +1.5%/+3 instead; at least 25" (2'1"), +2%/+4 instead; at least 50" (4'2"), +2.5%/+5 instead;
        • Fuckable nipples: +1%/+2;
        • More than one average nipple per breast: +1%/+2;
      • If you used your vagina...
        • Wet, +0.5%/+1; slick, +1%/+2; drooling, +1.5%/+3 instead; slavering, +2%/+4 instead;
        • Clit longer than 1.5", +0.5%/+1; longer than 3.5", +1%/+2 instead; longer than 7", +1.5%/+3 instead; longer than 12" (1'), +2%/+4 instead;
        • Vaginal capacity at least 30, +0.5%/+1; at least 70, +1%/+2 instead; at least 120, +1.5%/+3 instead; at least 200, +2%/+4 instead;
      • If you used your meatstick...
        • More than one cock: +1%/+2;
        • Biggest cock area at least 15in², +0.5%/+1; at least 30in², +1%/+2 instead; at least 60in², +1.5%/+3 instead; at least 120in², +2%/+4 instead;
        • Cum quantity at least 50mL, +0.5%/+1; at least 150mL, +1%/+2 instead; at least 300mL, +1.5%/+3 instead; at least 1L, +2%/+4 instead;
        • If you have balls...
          • >2 balls gives +1%/+2;
          • Ball size >3" gives +0.5%/+1; >7" gives +1%/+2 instead; >12" (1') gives +2%/+4 instead;
        • If biggest cock area lower than 8in², -1%/-2; if lower than 5in², -2%/-4 instead.
      • If you used your butt...
        • Butt rating at least 6, +0.5%/+1; at least 10, +1%/+2 instead; at least 13, +1.5%/+3 instead; at least 16, +2%/+4 instead; at least 20, +2.5%/+5 instead;
        • Hip rating follows the same formula.
      • If you used your anus...
        • Virgin anus: +1.5%/+3;
        • Wet anus: +1%/+2;
        • Anal capacity: Same as vaginal capacity, see above;
        • Stretched, +0.5%/+1; gaping, +1.5%/+3;
    • Cap additional success rate bonus to +5% and additional lust damage to +10.
  • Perform a check roll if the success rate is lower than 100%. If the roll fails, the target is unimpressed, but you gain 5 tease XP unless you are doing Urta's quest.
  • Start processing lust damage; multiply lust damage and lust damage bonus from the no-flex step by 0.7.
  • If you have the History: Whore perk, multiply both by 1.15.
  • If you have the Chi Reflow - Lust perk active, multiply lust damage but not lust damage bonus by the multiplier (1.1). Intended?
  • If you are facing several targets, multiply lust damage but not lust damage bonus by 1.3. Again, intended?
  • Sum up the lust damage and 0..[lust damage bonus], then apply the target's lust resistance.
  • Finally, if not in a special situation, deal lust damage to the monster, rounded to the nearest tenth as a float.
  • If you have at least one fetish and are not playing Urta's quest, gain 2..[5] lust. (Meaning Urta will never gain lust from all of her fetishes in her quest, possibly because they were innate and not Ceraph's doing.)
  • If you are not playing Urta's quest, gain 1 tease XP. (Yes, failed teases will give you five times as much experience.)
  • Each level requires 10+5*(LV+1)² XP, where LV is the current tease level. XP does not carry over. Level 0 to 1 needs 15 XP, 1 to 2 needs 30 XP, 2 to 3 needs 55 XP, 3 to 4 needs 135 XP and 4 to 5 needs 190 XP.

Direct damage

  • First, damage gets rounded to the nearest integer.
  • If the damage taken is lower than 1, it becomes 1 instead.
  • If the base damage taken was higher than 0 and the player is addicted to Minotaur Cum, gain half of the base damage as Lust as well.
  • Damage is then substracted from the player's HP. If HP is 0 or less, set HP to 0, check for current game state and proceed with the game.
  • Does not involve any kind of damage reduction. Damage reduction is handled separately for attacks that don't ignore defenses.
  • Works in a similar manner for direct damage dealt to NPCs and monsters.

Damage reduction

  • First, damage is reduced by ArmorDefense+0..Toughness.
  • If Easy Mode is enabled, damage is halved.
  • If under Shielding status effect, damage is reduced by 30, to a minimum of 1.
  • If under Black Cat Beer status effect, damage is multiplied by 0.85 (85%), rounded to the nearest integer.
  • If the player has the Masochist perk active (Libido is 60 or more), damage is multiplied by 0.7 (70%), rounded to the nearest integer, to a minimum of 1. Player also gains 2 Lust.
  • If the player has the Immovable Object perk active (Toughness is 75 or more), damage is multiplied by 0.8 (80%), rounded to the nearest integer, to a minimum of 1.
  • If Chi Reflow - Relaxation is active (Uma's Clinic in Tel'Adre, unlocked by getting friendly with Loppe and talking about her mother), damage is multiplied by the bonus (0.9, 90%) and rounded to the nearest integer.
  • If Chi Reflow - Defense☆ is active, damage is reduced by ArmorDefense * CRD Defense Multiplier - ArmorDefense (CRD=1.1, so 10% of ArmorDefense)
  • If Chi Reflow - Attack is active - Attack is active, damage is reduced by ArmorDefense * CRA Defense Multiplier - ArmorDefense (CRA=0.9, so -10% of ArmorDefense; 10% increase)
  • Finally, if damage is lower than 0 at this point, it becomes 0 instead.

Speed dodge

  • If target is faster than the attacker and 0..80+(Target's Speed-Attacker's Speed)/4 (rounded down) > 80, the attack fails.
  • Many attacks do not check for speed dodge but some have their own, which is essentially the same.

Notes

  • ☆Waiting for fixes. Remove the star once it's fixed.
  • Damage reduction working as intended?