.

User:Antohha

 
(12 intermediate revisions by one user not shown)
Line 1: Line 1:
At first target's resistances and thresholds are calculated.
+
{| class="wikitable sortable" width="90%"  
 
+
=Damage resistance=
+
TargetDR = Armor + Perks<br />
+
TargetDR = (TargetDR* (100 - (10 * HitTheGap) + 30*attacker.Param[TRAIT_FINESSE])) / 100<br />
+
if (PartialBypass > 0 )
+
{
+
TargetDR = (TargetDR * (100 - PartialBypass )) / 100;
+
}
+
TargetDR += Ammo.DRMod<br />
+
TargetDR = CLAMP(TargetDR , 0, 100)<br />
+
 
+
=Bypass=
+
PartialBypass % = 60 * Decreaed DR WeaponTrait<br />
+
PartialBypass += 30 + (30 * (55 - ((21 - L) * L) / 2)) / 45<br />
+
PartialBypass -= target.Perk[PE_ARMOR_EFFICIENCY] * 15<br />
+
PartialBypass += 15 * (weaponPerkEff(attack.WeaponPerks, attack.Skill, WP_PIERCING_STRIKE))<br />
+
PartialBypass += 15 * weaponLegendaryEff(realWeapon,WP_PIERCING_STRIKE)<br />
+
PartialBypass += GetLeadershipBoost(attacker,FTLB_MORE_ARMOR_BYPASS)<br />
+
PartialBypass -= GetLeadershipBoost(target,FTLB_LESS_ARMOR_BYPASS)<br />
+
PartialBypass = CLAMP(partialBypass, 0, 100)<br />
+
 
+
=Damage threshold=
+
TargetDT = Armor + Perks<br />
+
TargetDT = (TargetDT * (100 - (10 * HitTheGap) + changeDT)) / 100<br />
+
TargetDT = (TargetDT * (100 + Ammo.DTMod)) / 100<br />
+
TargetDT = CLAMP(TargetDT , 0, 9999)<br />
+
 
+
=Damage calculation=
+
DmgMul = DmgMul * Ammo.DmgMul / 100<br />
+
DmgMul = (DmgMul * bonusDamage) / 100<br />
+
 
+
rawMin += BRD - targetDT<br />
+
rawMin -= rawMin * targetDR / 100<br />
+
rawMin *= dmgMul / 100<br />
+
rawMin *= rounds<br />
+
rawMax += BRD - targetDT<br />
+
rawMax -= rawMax * targetDR / 100<br />
+
rawMax *= dmgMul / 100<br />
+
rawMax *= rounds<br />
+
 
+
rawDmg = Random(rawMin, rawMax)<br />
+
 
+
=Bleed calculation=
+
if rawDmg was higher than zero, [[Bleed]] is calculated.
+
 
+
 
+
BleedCoEff +=  attack.BleedStr + 20 * weaponPerkEff(attack.WeaponPerks,attack.Skill, WP_BETTER_BLEED);
+
BleedCoEff += 20*weaponLegendaryEff(realWeapon,WP_BETTER_BLEED);
+
 
+
if (BleedCoEff > 0)
+
 
+
{
+
 
+
BleedCoEff -= GetLeadershipBoost(target,FTLB_LESS_BLEED);
+
if (valid(attacker))BleedCoEff += GetLeadershipBoost(target,FTLB_MORE_BLEED);<br />
+
 
+
BleedDmg = rawDmg *  BleedCoEff / 100;<br />
+
 
+
}
+
 
+
int toBleed = target.Param[ST_DAMAGE_TO_BLEED_DR] + 10 * target.Perk[PE_PMS];<br />
+
 
+
int mitbd = rawDmg * toBleed / 100 + target.Param[ST_DAMAGE_TO_BLEED_DT];<br />
+
 
+
if (mitbd > rawDmg )mitbd = rawDmg ;<br />
+
 
+
rawDmg -= mitbd ;<br />
+
BleedDmg += mitbd;<br />
+
+
if (bd > 0)AffectBleed(target, BleedDmg );<br />
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
{| class="wikitable" width="90%"  
+
 
|-  
 
|-  
 
! colspan="6" | <center>Energy Weapons</center>
 
! colspan="6" | <center>Energy Weapons</center>
 
|-
 
|-
! Name !! Damage !! range !! ap cost !! speed !! accuracy !! dmgtype !! skill !! burstcount !! 1hex !! spread
+
! <center>Name</center> !! <center>Str.</center> !! <center>Damage</center> !! <center>AP cost</center> !! <center>Range</center> !! <center>Reload</center>
 
|-
 
|-
| Name || Damage || range || ap cost || speed || accuracy || dmgtype || skill || burstcount || 1hex || spread
+
| <center>[[Alien Blaster]]</center> || - || - || - || - || -
|}
+
[[Faction Currency]]
+
 
+
{| class="wikitable" width="90%"
+
 
|-  
 
|-  
! colspan="6" | <center>Faction Currency</center>
+
|  <center>[[Electro SMG]]</center> <br> <center>[[File:DAMPistol.png]]</center> || 3 || 45-100(single) <br>15-25(burst) || 45(single) <br>20(burst) || 35(single) <br>25(burst) || 27
|-
+
|-
! Brahmin Boys !! Family !! Vault Tec !! Lawyers
+
|  <center>[[Laser Pistol]]</center> <br> <center>[[File:Laserhandgun.png]]</center> || 3 || 20-45(single) || 25(single) || 45(single) || 22
|-
+
|-
||[[File:Brahminc.png]] || [[File:Familyc.png]]||[[File:Vaultc.png]] ||[[File:Lawyerc.png]]
+
|  <center>[[Magneto Laser Pistol]]</center> <br> <center>[[File:Mlasaerhandgun.png]]</center> || 3 || 45-60(single) || 25(single) || 40(single) || 27
 +
|-
 +
|  <center>[[Phazer]]</center> <br> <center>[[File:Phazer.gif]]</center> || 3 || 25-45(single) || 20(single) || 30(single) || 30
 +
|-
 +
|  <center>[[Plasma Pistol]]</center> <br> <center>[[File:PP.gif]]</center> || 4 || 35-55(single) || 15(single) || 30(single) || 40
 +
|-
 +
|  <center>[[Plasma Pistol Ext. Cap.]]</center> <br> <center>[[File:PPext.gif]]</center> || 4 || 40-60(single) || 20(single) || 30(single) || 60
 +
|-
 +
|  <center>[[Rad SMG]]</center> <br> <center>[[File:RADPistol.png]]</center> || 4 || 35-50(single) <br>25-30(burst) || 20(single) <br>45(burst) || 40(single) <br>40(burst) || 35
 +
|-
 +
|  <center>[[Solar Scorcher]]</center> <br> <center>[[File:Solars.png]]</center> || 3 || 35-55(single) || 50(single) || 60(single) || 27
 +
|-
 +
|  <center>[[YK32 Pulse Pistol]]</center> <br> <center>[[File:Yk32.png]]</center> || 3 || 40-85(single) || 18(single) || 22(single) || 36
 +
|-
 +
| <center> [[Gravitron]]</center> || - || - || - || - || -
 +
|-
 +
|  <center>[[Electro Rifle]]</center> <br> <center>[[File:DAMRifle.png]]</center> || 6 || 1-180(single) || 40(single) || 40(single) || 60
 +
|-
 +
<center>[[Gatling Laser]]</center> <br> <center>[[File:Gatling.gif]]</center> || 7 || 20-25(burst) || 10(burst) || 55(burst) || 200
 +
|-  
 +
|  <center>[[Laser Rifle]]</center> <br> <center>[[File:Laserrifle.png]]</center> || 6 || 80-100(single) || 50(single) || 75(single) || 35
 +
|-  
 +
| <center>[[Laser Rifle Ext. Cap.]]</center> <br> <center>[[File:LaserrifleEC.png]]</center> || 6 || 60-80(single) || 23(single) || 55(single) || 70
 +
|-
 +
|  <center>[[Plasma Rifle]]</center> <br> <center>[[File:Plasma.gif]]</center> || 6 || 62-82(single) || 24(single) || 35(single) || 35
 +
|-
 +
|  <center>[[Rad Rifle]]</center> <br> <center>[[File:RADRifle.png]]</center> || 6 || 80-100(single) || 49(single) || 33(single) || 60
 +
|-
 +
|  <center>[[Turbo Plasma Rifle]]</center> <br> <center>[[File:Turbo.gif]]</center> || 6 || 70-80(single) || 25(single) || 40(single) || 50
 +
|-
 +
|  <center>[[YK42B Pulse Rifle]]</center> <br> <center>[[File:Pulserifle.png]]</center> || 6 || 80-90(single) || 45(single) || 45(single) || 50
 +
|-
 +
|  <center>[[Plasma Cannon]]</center> <br> <center>[[File:PlasmaCannon.png]]</center> || 7 || 160-220(single) || 80(single) || 66(single) || 50
 +
|-
 +
|  <center>[[Sonic Cannon]]</center> <br> <center>[[File:Soniccannon.png]]</center> || 7 || 60-70(single) || 80(single) || 55(single) || 60
 +
|-
 +
|}

Latest revision as of 23:45, 14 April 2016

Energy Weapons
Name
Str.
Damage
AP cost
Range
Reload
Alien Blaster
- - - - -
Electro SMG

DAMPistol.png
3 45-100(single)
15-25(burst)
45(single)
20(burst)
35(single)
25(burst)
27
Laser Pistol

Laserhandgun.png
3 20-45(single) 25(single) 45(single) 22
Magneto Laser Pistol

Mlasaerhandgun.png
3 45-60(single) 25(single) 40(single) 27
Phazer

Phazer.gif
3 25-45(single) 20(single) 30(single) 30
Plasma Pistol

PP.gif
4 35-55(single) 15(single) 30(single) 40
Plasma Pistol Ext. Cap.

PPext.gif
4 40-60(single) 20(single) 30(single) 60
Rad SMG

RADPistol.png
4 35-50(single)
25-30(burst)
20(single)
45(burst)
40(single)
40(burst)
35
Solar Scorcher

Solars.png
3 35-55(single) 50(single) 60(single) 27
YK32 Pulse Pistol

Yk32.png
3 40-85(single) 18(single) 22(single) 36
Gravitron
- - - - -
Electro Rifle

DAMRifle.png
6 1-180(single) 40(single) 40(single) 60
Gatling Laser

Gatling.gif
7 20-25(burst) 10(burst) 55(burst) 200
Laser Rifle

Laserrifle.png
6 80-100(single) 50(single) 75(single) 35
Laser Rifle Ext. Cap.

LaserrifleEC.png
6 60-80(single) 23(single) 55(single) 70
Plasma Rifle

Plasma.gif
6 62-82(single) 24(single) 35(single) 35
Rad Rifle

RADRifle.png
6 80-100(single) 49(single) 33(single) 60
Turbo Plasma Rifle

Turbo.gif
6 70-80(single) 25(single) 40(single) 50
YK42B Pulse Rifle

Pulserifle.png
6 80-90(single) 45(single) 45(single) 50
Plasma Cannon

PlasmaCannon.png
7 160-220(single) 80(single) 66(single) 50
Sonic Cannon

Soniccannon.png
7 60-70(single) 80(single) 55(single) 60
(Difference between revisions)
Jump to: navigation, search