Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

armorPen & armorPenPercent + Tower names info

armorPenPercent armorPen Lethality Towers tower Turret

  • Please log in to reply
No replies to this topic

#1
Impuls

Impuls

    Advanced Member

  • Scripts Developer
  • 108 posts
Reworking DamageLib and noticed a few things

unit.armorPenPercent:

unit.armorPenPercent is a bit weird at first glance
It returns 1 if you have 0% for 100%

unit.armorPenPercent returns 1 - the% 
0.81999999284744 if 18% from Last Whisper
0.69999998807907 if 30% from LDR
local ActualarmorPenPercent  = (math.floor(100-(unit.armorPenPercent*100)) / 100)

Was my fix to this issue.
But over all calculations are unaffected is used for reducing Armor = Armor * unit.armorPenPercent


Edit:
unit.magicPenPercent function is the same


but..

unit.armorPen:

Also with armorPen + Lethality rework for damage calculations
We never really implemented Lethality as it just took place of armorPen
Lethality = unit.armorPen
but has self scaling with source unit level that isn't seen but useful for the flat pentation damage calculations
So,

local ArmorPen = source.armorPen  
local Lethality = ArmorPen * (0.6222 + 0.3778 / 17 * (source.levelData.lvl-1))
Fixed for proper calculations


Towers:

Towers changed their names to go along with other outdated changes to various things
They kinda follow a new naming scheme
"Turret_Team_Location_Number_A"
Team = T1 or T2 ; doesn't appear dependent on what team you are on.
Location = L, C, R ;  ish? they tried
    L = Top
    C = Mic
    R = Bot
Number = arbitrary

Blue side Top and Bot towers have C/Center/Mid Turret names 
["Turret_T1_C_06_A"]  --top inhib
["Turret_T1_C_07_A"]  --botlane inhib
instead of their respective Left/Right
["Turret_T1_L_01_A"] -- top inhib
["Turret_T1_R_01_A"] --bot inhib

And ARAM Towers don't really follow any name scheme either besides Blue side is C and Red is L
gj riot c:

This doesn't really effect anything besides some smol damage to minion from tower stuff now a days, but just some updates since they've changed towers a while ago.

.charName = Turret
.name = see table in Spoiler
Spoiler

Edited by Impuls, 26 June 2022 - 06:31 .

  • 3





Also tagged with one or more of these keywords: armorPenPercent, armorPen, Lethality, Towers, tower, Turret

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users