From 68dda3a649b50f012c6e9e271b74359125a35cc3 Mon Sep 17 00:00:00 2001 From: ferricles Date: Mon, 10 Jun 2024 01:09:52 -0400 Subject: [PATCH] minor fixes + rewording --- css/article.css | 6 +++ js/docs.js | 11 ++++-- wynnfo/powders/index.html | 79 ++++++++++++++++++++------------------- 3 files changed, 53 insertions(+), 43 deletions(-) diff --git a/css/article.css b/css/article.css index 74cbec6..0ffaacc 100644 --- a/css/article.css +++ b/css/article.css @@ -107,6 +107,12 @@ main .heart { color: #e44078; } +.fig { + margin: 16px 0 16px; +} +div.caption { + font-style: italic; +} @keyframes scroll-bg { 0% { diff --git a/js/docs.js b/js/docs.js index 6e57d15..1895185 100644 --- a/js/docs.js +++ b/js/docs.js @@ -59,6 +59,9 @@ function initDropdownSections() { let title = document.createElement("div"); title.classList.add("col-10", "item-title", "text-start", "dropdown-title") title.style.margin = "0 0 0"; + title.style.fontWeight = "bold"; + title.style.fontSize = 18; + title.style.textDecoration = "underline"; title.textContent = dropdown.title; dropdown.textContent = ""; let indicator = document.createElement("div"); @@ -86,15 +89,15 @@ function initDropdownSections() { }); title.addEventListener("mouseover", function(){ title.style.color = "#ddd"; - title.style.fontWeight = "bold"; + // title.style.fontWeight = "bold"; indicator.style.color = "#ddd"; - indicator.style.fontWeight = "bold"; + // indicator.style.fontWeight = "bold"; }); title.addEventListener("mouseleave", function(){ title.style.color = ""; - title.style.fontWeight = "normal"; + // title.style.fontWeight = "normal"; indicator.style.color = ""; - indicator.style.fontWeight = "normal"; + // indicator.style.fontWeight = "normal"; }); diff --git a/wynnfo/powders/index.html b/wynnfo/powders/index.html index 34b1202..489f226 100644 --- a/wynnfo/powders/index.html +++ b/wynnfo/powders/index.html @@ -1,7 +1,7 @@ - WynnAtlas Help + Powder Mechanics Guide @@ -46,6 +46,7 @@

Powder Application Guide

June 5, 2024 (Wynn 2.0)

+

Authors: ferricles, hppeng

@@ -55,8 +56,8 @@ Here's some terminology that we'll use later:
  • Base damage range: the low and high damage ranges which are shown in the item display.
  • Damage type: There are 6 types of damage. There is neutral damage (N) and 5 elemental types: earth (E), thunder (T), water (W), fire (F), and air (A).
  • -
  • Conversion rate (powder.conv_rate): The percentage conversion rate of a powder from neutral to elemental damage.
  • -
  • Powder range (powder.range): The raw boost to the base damage range of an element given by a powder.
  • +
  • Conversion (powder.conversion): The percentage conversion rate of a powder from neutral to elemental damage.
  • +
  • Powder raw (powder.raw): The raw boost to the base damage range of an element given by a powder.
  • Before we get into calculations, one last thing - there are two types of weapons we can powder: non-crafted (regular) and crafted. There are also two corresponding types of powder application which have their own mechanics: applied powders, when a powder master puts powders on your items, and ingredient powders, when you use a powder in the recipe to make a crafted item. We will start with the more common weapon type: regular weapons.

    @@ -81,35 +82,35 @@
     powders = [] //populated with powders which have a type, a conversion rate, and a range
     order = []
    -conversions = {type: {range: [low, high], conv_rate: float }}
    +conversions = {type: {raw: [low, high], conversion: float }}
     
     for powder in powders:
         If powder.type not in order:
         order += powder.type
    -    conversions[powder.type][range] += powder.range
    -    conversions[powder.type][conv_rate] += powder.conv_rate
    +    conversions[powder.type][raw] += powder.raw
    +    conversions[powder.type][conversion] += powder.conversion
     
     for powder_type in order:
         powder_conversion = conversions[powder_type]
    -    neu_conversion = (powder_conversion.conv_rate * weapon_neu_range)
    +    neu_conversion = (powder_conversion.conversion * weapon_neu_range)
         weapon_neu_range  -= neu_conversion
         weapon_elem_range += neu_conversion + powder_conversion.range //the appropriate elemental type

    We verified this algorithm by testing in-game. If you're interested, click on this dropdown for a worked example!

    - +

    We used a Crystal Senbon to test. Crystal Senbon has 5 powder slots and a base damage range of [77, 77].

    The powders we applied, in order: [III, III, III, III, III]

    And their stats:

    -
  • III: [8, 14] range, 25% conversion
  • -
  • III: [2, 18] range, 13% conversion
  • -
  • III: [6, 10] range, 17% conversion
  • +
  • III: [8, 14] raw, 25% conversion
  • +
  • III: [2, 18] raw, 13% conversion
  • +
  • III: [6, 10] raw, 17% conversion
  • We can start running the applied powder algorithm. After the aggregation step, we'd have:

     order = [E, T, W]
     conversions: {
    -    E: {range: [24, 42], conv_rate: 0.75}, 
    -    T: {range: [2, 18], conv_rate: 0.13}, 
    -    W: {range: [6, 10], conv_rate: 0.17}
    +    E: {raw: [24, 42], conversion: 0.75}, 
    +    T: {raw: [2, 18], conversion: 0.13}, 
    +    W: {raw: [6, 10], conversion: 0.17}
     }

    Then we can run through the application step.

    @@ -132,29 +133,29 @@ floor([13.900425, 13.900425]) = [13, 13]
     floor([81.75, 99.75]) = [81, 99]
     floor([4.5025, 20.5025]) = [4, 20]
     floor([8.847, 12.847]) = [8, 12]
    -

    After flooring all damage values, the Crystal Senbon should display damage ranges of [13, 13] [43, 19] [4, 20] [8, 12]. However, our weapon display suggests otherwise! This is because it is lying*.

    -
    - +

    After flooring all damage values, the Crystal Senbon should display damage ranges of [13, 13] [43, 19] [4, 20] [8, 12]. However, our weapon display suggests otherwise! This is because it is lying.

    +
    +
    -

    We collected some data samples by melee-ing some combat dummies many times. Showing photo proof for many hits in this post is infeasible (we show one for good measure). We tested this on a character with 0 abilities, 0 external buffs, and only the skill points necessary for holding Crystal Senbon (10 in each).

    +

    We collected some data samples by melee-ing some combat dummies many times (on the order of hundreds). Showing photo proof for many hits in this post is excessive (we show one for good measure). We tested this on a character with 0 abilities, 0 external buffs, and only the skill points necessary for holding Crystal Senbon (10 in each).

    This is somewhat handwaving damage calculation, but here's the expected ranges of an assassin melee attack using the weapon damages we calculated.

    Stat bonuses: -

  • 3% earth damage (crystal senbon id)
  • -
  • 7% thunder damage (crystal senbon id)
  • -
  • 4% water damage (crystal senbon id)
  • +
  • 3% earth damage boost (crystal senbon id)
  • +
  • 7% thunder damage boost (crystal senbon id)
  • +
  • 4% water damage boost (crystal senbon id)
  • 11.3% earth dmg boost (12 str)
  • 11.3% thunder dmg boost (12 dex)
  • 7.0% water dmg boost (12 int)
  • -
  • 11.3% total damage (12 strength)
  • +
  • 11.3% total damage boost (12 strength)
  • The damage ranges we would expect to see from using a melee attack using our calculated base damage ranges:

    [13.900425, 13.900425] * (1 + .113) ~= [15.4707, 15.4707]

    [81.75, 99.75] * (1 + 0.03 + 0.113) * (1 + 0.113) ~= [103.999, 126.898]

    [4.5025, 20.5025] * (1 + 0.07 + 0.113) * (1 + 0.113) ~= [5.928, 26.995]

    [8.847, 12.847] * (1 + 0.04 + 0.07) * (1 + 0.113) ~= [10.930, 15.872]

    -
    +
    -
    Note: the double damage hit is due to a dexterity crit.
    +
    Note: the double damage hit is due to a dexterity crit.

    Evidently, the observed damages match up much more closely the powder/damage calculations we've performed compared to the advertised damages on the weapon. Consider the fact that the weapon display doesn't even show neutral damage...

    @@ -168,9 +169,9 @@ floor([8.847, 12.847]) = [8, 12]
     powders = [crafting menu powders in order of reading english]
     for powder in powders: 
    -    conversion factor = floor(neutral_remaining * powder.conv_rate)
    -    Neutral_base_dmg -= conv factor
    -    Elem_base_dmg += conv factor + floor((powder.range.low + powder.range.high) / 2)
    + conversion = floor(neutral_remaining * powder.conversion) + Neutral_base_dmg -= conversion + Elem_base_dmg += conversion + floor((powder.raw.low + powder.raw.high) / 2)

    For those unfamiliar with crafted weapon base damage: crafted weapons have a singular base damage value that is randomly chosen from a range when the item is crafted. The resulting base damage range is calculated using this value: if base is the base damage value, then the corresponding range is [floor(0.9 * base), floor(1.1 * base)]. The ingredient powder mechanic modifies the base damage values of a crafted weapon before they get converted to base damage ranges.

    If you use a powder as an ingredient in a crafting recipe for a crafted weapon, the above ingredient powder mechanic is applied. However, there's a more complex interaction when using both ingredient and applied powders. Using the ingredient powder mechanic and the applied powder mechanic as subroutines, we can define the algorithm for applying powders on crafted weapons as below:

      1) Apply all applied powders with the ingredient powder mechanic.
    @@ -181,14 +182,14 @@ for powder in powders:

    We crafted a wand using a III powder as an ingredient. Here's a link to the recipe. We then applied these powders, in order: [I, I, I]. Powder stats below:

    -
  • III: [4, 11] range, 17% conversion rate
  • -
  • I: [3, 4] range, 13% conversion rate
  • -
  • I: [2, 5] range, 14% conversion rate
  • -
    +
  • III: [4, 11] raw, 17% conversion
  • +
  • I: [3, 4] raw, 13% conversion
  • +
  • I: [2, 5] raw, 14% conversion
  • +
    -
    The CR weapon pre-applied powders.
    +
    The crafted weapon pre-applied powders.
    -

    The CR weapon starts with 181 base (before applying any powders through any mechanic). We will run through the entire crafted weapon powder application process below:

    +

    The crafted weapon starts with 181 base (before applying any powders through any mechanic). We will run through the entire crafted weapon powder application process below:

     Starting Neutral Base: 181
     
    @@ -224,8 +225,8 @@ Starting base ranges:
     Powders applied: [I, I, I]
     
     Aggregation step:
    -[3, 4] *2, 13% * 2 = {range: [6, 8], conv_rate: .26} 
    -[2, 5], 14% * 1 = {range: [2, 5], conv_rate: .14}
    +[3, 4] *2, 13% * 2 = {raw: [6, 8], conversion: .26} 
    +[2, 5], 14% * 1 = {raw: [2, 5], conversion: .14}
     
     Application step:
     
    @@ -243,12 +244,12 @@ floor([70.16, 86.08]) = [70, 86]
     floor([33.2204, 43.1888])= [33, 43]
     floor([24, 29]) = [24, 29]

    And, to compare, here's the crafted weapon after applying powders. Again, the numbers are slightly off for the same reasons as they are with the regular weapon example.

    -
    +
    -
    The CR weapon after applied powders.
    +
    The crafted weapon after applied powders.

    We did the same melee attack testing on combat dummies. We leave damage calculation out of this example, but the damages observed more closely match the calculated numbers than the displayed numbers. Here's a screenshot:

    -
    +
    @@ -257,7 +258,7 @@ floor([24, 29]) = [24, 29]
    - +