Skip to content

Commit

Permalink
Merge pull request #450 from nabbhacker/master
Browse files Browse the repository at this point in the history
Damage.cs: Added Jhin, Jinx Tweaks.
  • Loading branch information
legacy3 committed Mar 29, 2016
2 parents 7b32db6 + eafac97 commit b5010b7
Showing 1 changed file with 56 additions and 2 deletions.
58 changes: 56 additions & 2 deletions Damage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3463,6 +3463,60 @@ target is Obj_AI_Minion
},
});

Spells.Add(
"Jhin",
new List<DamageSpell>
{
//Q
new DamageSpell
{
Slot = SpellSlot.Q, DamageType = DamageType.Physical,
Damage =
(source, target, level) =>
new double[] { 60, 85, 110, 135, 160 }[level]
+ new double[] { 0.3, 0.35, 0.4, 0.45, 0.5 }[level] * source.FlatPhysicalDamageMod
+ 0.6 * source.TotalMagicalDamage
},
//W
new DamageSpell
{
Slot = SpellSlot.W, DamageType = DamageType.Physical,
Damage =
(source, target, level) =>
new double[] { 50, 85, 120, 155, 190 }[level]
+ 0.7 * source.FlatPhysicalDamageMod
},
//E
new DamageSpell
{
Slot = SpellSlot.E, DamageType = DamageType.Magical,
Damage =
(source, target, level) =>
new double[] { 20, 80, 140, 200, 260 }[level]
+ 1.20 * source.FlatPhysicalDamageMod
+ 1 * source.TotalMagicalDamage
},
//R - Normal Shot
new DamageSpell
{
Slot = SpellSlot.R, DamageType = DamageType.Physical,
Damage =
(source, target, level) =>
new double[] { 50, 125, 200 }[level]
+ 0.25 * source.FlatPhysicalDamageMod * (1 + (100 - target.HealthPercent) * 1.02)
},
//R - Final Shot
new DamageSpell
{
Slot = SpellSlot.R, Stage = 1, DamageType = DamageType.Physical,
Damage =
(source, target, level) =>
new double[] { 50, 125, 200 }[level]
+ 0.25 * source.FlatPhysicalDamageMod * (1 + (100 - target.HealthPercent) * 1.02)
* 2 + 0.01 * source.FlatCritDamageMod
},
});

Spells.Add(
"Jinx",
new List<DamageSpell>
Expand All @@ -3473,7 +3527,7 @@ target is Obj_AI_Minion
Slot = SpellSlot.Q, DamageType = DamageType.Physical,
Damage =
(source, target, level) =>
0.1 * (source.BaseAttackDamage + source.FlatPhysicalDamageMod)
0.1 * source.TotalAttackDamage
},
//W
new DamageSpell
Expand All @@ -3482,7 +3536,7 @@ target is Obj_AI_Minion
Damage =
(source, target, level) =>
new double[] { 10, 60, 110, 160, 210 }[level]
+ 1.4 * (source.BaseAttackDamage + source.FlatPhysicalDamageMod)
+ 1.4 * source.FlatPhysicalDamageMod
},
//E
new DamageSpell
Expand Down

1 comment on commit b5010b7

@ehmehe
Copy link
Contributor

@ehmehe ehmehe commented on b5010b7 Apr 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gj

Please sign in to comment.