Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.79 KB | None | 0 0
  1. if(hero = GetFromMap("Aatrox", heroes)) {
  2.     championSpells.emplace("Aatrox", std::map<SpellSlot, std::map<SkillStage, SpellDefinition>> {
  3.         {
  4.             SpellSlot::Q,
  5.             {
  6.                 {
  7.                     SkillStage::Default, SpellDefinition(hero, SpellSlot::Q, DamageType::Physical, SpellEffectType::AoE,
  8.                     {
  9.                     {
  10.                             SpellDamageData(SkillStage::Default, std::vector<std::pair<SpellScalingType, std::vector<float>>> {
  11.                                 { BaseDamage, {0, 10, 25, 40, 55, 70 } },
  12.                                 { AttackPoints, { 0, 0.55, 0.6, 0.65, 0.7, 0.75 }}
  13.                             })
  14.                     }
  15.                     })
  16.                 },
  17.                 {
  18.                     SkillStage::SecondCast, SpellDefinition(hero, SpellSlot::Q, DamageType::Physical, SpellEffectType::AoE,
  19.                     {
  20.                     {
  21.                             SpellDamageData(SkillStage::Default, std::vector<std::pair<SpellScalingType, std::vector<float>>> {
  22.                                 { BaseDamage, {0, 12.5, 31.25, 50, 68.75, 87.5 } },
  23.                                 { AttackPoints, { 0, 0.6875, 0.75, 0.8125, 0.875, 0.9375 }}
  24.                             })
  25.                     }
  26.                     })
  27.                 },
  28.                 {
  29.                     SkillStage::ThirdCast, SpellDefinition(hero, SpellSlot::Q, DamageType::Physical, SpellEffectType::AoE,
  30.                     {
  31.                     {
  32.                             SpellDamageData(SkillStage::Default, std::vector<std::pair<SpellScalingType, std::vector<float>>> {
  33.                                 { BaseDamage, {0, 15, 37.5, 100, 137.5, 175 } },
  34.                                 { AttackPoints, { 0, 0.825, 0.9, 0.975, 1.05, 1.125 }}
  35.                             })
  36.                     }
  37.                     })
  38.                
  39.                 }
  40.             }
  41.         },
  42.         {
  43.             SpellSlot::W,
  44.             {
  45.                 {
  46.                     SkillStage::Default, SpellDefinition(hero, SpellSlot::W, DamageType::Physical, SpellEffectType::Single,
  47.                     {
  48.                     {
  49.                             SpellDamageData(SkillStage::Default, std::vector<std::pair<SpellScalingType, std::vector<float>>> {
  50.                                 { BaseDamage, {0, 30, 40, 50, 60, 70 } },
  51.                                 { AttackPoints, { 0, 0.4, 0.4, 0.4, 0.4, 0.4 }}
  52.                             })
  53.                     }
  54.                     })
  55.                
  56.                 }
  57.             }
  58.         }
  59.     });
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement