Skip to content

changchiyou/wildrift-gold-efficiency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wild Rift Gold Efficiency

Github Action

WR(Wild Rift) Gold Efficiency, a website combining the gold efficiency calculation formula from with the design elements from , featuring manually updated item data from .

Backstory

Being a data enthusiast, I found the concept of Gold Efficiency mentioned in highly intriguing. However, upon initial inspection, I noticed that the website contained a multitude of outdated and erroneous item data. Moreover, its disorganized layout made reading difficult, rendering it unsuitable for direct use.

After some time, I came across another website, , which drew me in with its sleek and elegant design, as well as its CSS style. Although it also suffered from the issue of outdated and inaccurate item data, I had an idea:

Merging the calculation formula from with the style of , and manually updating the item data myself. Thus, this website was born out of this concept.

Installation (for developer)

  1. Installation | Jekyll • Simple, blog-aware, static sites
  2. Clone this project via git:
    git clone [email protected]:changchiyou/wildrift-gold-efficiency.git; cd wildrift-gold-efficiency
    
  3. Update bundle & Install dependencies from Gemfile:
    bundle update; bundle install
    
  4. Serve the Site:
    bundle exec jekyll serve
    

Establish Gold Efficiency Page for the New Version (for maintainer)

Taking the update from 5.1a to 5.1b as an example:

  1. Copy items_5_1a.yml & stats_5_1a.yml and rename to items_5_1b.yml & stats_5_1b.yml:

  2. Manually update item data in items_5_1b.yml based on WILD RIFT PATCH NOTES 5.1B - ITEMS:

    The field info of items_[version].yml:

    Field Requirement Description
    amount no need Generated by data.py
    category required Determines where the item belongs to. For instance, set category as PHYSICAL DAMAGE ITEMS to make the item belong to 📌 Physical Damage Items.
    cost required The cost of the item.
    formula no need Generated by data.py
    image required The image reference of the item.
    name required The name of the item. The notes in () would be extracted and rendered with different style (only allowed 1 () set exists).
    stats required The stats info of the item. Check more detail info in following sheet.

    The fields info of stats field:

    Field Requirement Description
    formula no need Generated by data.py
    passive optional The unique passive which give the item the stat.
    ratio optional The stat ratio which is calculated with ref ( and ref_type) to generate value
    ref optional The target base stat for value's calculation
    ref_type optional The target stat from the item for value's calculation
    type required The type of the stat
    value required The value of the stat
    value* no need Generated by data.py (only if ratio&ref are set)*

    Some example:

    1. Basic:

      - amount: 138.34%
      category: PHYSICAL DAMAGE ITEMS
      cost: 3300
      formula: (50*41.67+25*50.0+12*36.66+11*41.67+10*33.33)/3300
      image: https://wr-meta.com/uploads/posts/2021-03/1616981867_itemsquarebloodthirster.png
      name: Bloodthirster (Bloodsworn - lv1)
      stats:
      - type: Attack Damage
      value: 50
      - type: '% Critical Rate'
      value: 25
      - passive: Bloody
      type: '% Physical Vamp'
      value: 12
      - passive: Bloodsworn
      type: Attack Damage
      value: 11
      - passive: Bloodsworn
      type: '% Attack Speed'
      value: 10

    2. ratio & ref:

      - amount: 76.89%
      category: PHYSICAL DAMAGE ITEMS
      cost: 3200
      formula: (400*3.33+-5*16.0+29.0*41.67)/3200
      image: https://wr-meta.com/uploads/posts/2024-04/1712772856_3053_11zon.png
      name: Sterak's Gage (Heavy Handed - lv1 IRE 58 AD)
      stats:
      - type: Max Health
      value: 400
      - passive: Guilt Bearer
      type: Move Speed
      value: -5
      - formula: 58*0.5
      passive: Heavy Handed
      ratio: 0.5
      ref: 58
      type: Attack Damage
      value: 29.0

    3. ref_type:

      - amount: 122.84%
      category: PHYSICAL DAMAGE ITEMS
      cost: 2700
      formula: (25*41.67+300*3.0+20*40.0+13.8*41.67)/2700
      image: https://wr-meta.com/uploads/posts/2021-03/1616982445_3004.png
      name: Manamune (Awe - lv1 EZ 390 Mana)
      stats:
      - type: Attack Damage
      value: 25
      - type: Max Mana
      value: 300
      - type: Ability Haste
      value: 20
      - formula: (390+300)*0.02
      passive: Awe
      ratio: 0.02
      ref: 390
      ref_type: Max Mana
      type: Attack Damage
      value: 13.8

  3. Manually update stats_5_1b.yml:

    The fields info of stats_[version].yml:

    Field Requirement Description
    image required The reference of the image.
    base_type optional Determines where the statistic price belongs in 💰 Base Statistic Prices. Set first for First-tier Base Item and set second for Second-tier Base Item.
    base_item optional The item used as the basis for calculating the statistic price.
    type required Determines the classification of the stat in the 🔎 Stat Filters. Set "" to exclude from filters.

    Some examples:

    1. Basic:

      "% Physical Vamp":
      image: "https://wr-meta.com/templates/wrw-v2/images/icon-stat/fls.png"
      base_type: "second"
      base_item: "Vampiric Scepter"
      type: "Attack"

    2. Excluded from statistic price calculation:

      "% Magic Penetration":
      image: "https://wr-meta.com/templates/wrw-v2/images/icon-stat/mpen.png"
      type: "Magic"

    3. Exclude from statistic price calculation and filters:

      "gold":
      image: "https://wr-meta.com/templates/wrw-v2/images/Gold_icon.png"
      type: ""

  4. Install python dependencies:

    pip install -r requirements.txt
    
  5. Execute data.py to re-generate amount and formula in items_5_1b.yml based on step 2.( Manually update item data in items_5_1b.yml ):

    python data.py -c --items items_5_1b.yml --stats stats_5_1b.yml
    

    For more info of params, execute:

    python data.py -h
    
  6. Create 5_1b.md based on 5_1a.md & 5_1.md:

    The params info of page.md:

    Field Requirement Description
    layout fixed value Set gold_efficiency means the page is using the layout of gold_efficiency.html.
    title required The title of the page, normally named with version name.
    date required The publish date of the page. Required for generating rss with feed.xml. (2024/04/19 12:02 a.m. or simply 2024/04/19 are both valid value)
    description required Briefly describe the page.
    image fixed value /assets/favicon512x512.png
    permalink required Specific the sub-path for this page.
    redirect_from optional Set to / to redirect the root path to this page.
    data required Fields for item data.
    data.refer_url required The URL of wildrift badge.
    data.refer_text required The TEXT of wildrift badge.
    data.items required The item datas.
    data.stats required The base stats info.
    patch_note optional Fields for comparing last version. (icon, row)
    patch_note.statuses required A string combining item names separated by commas(,) with uppercase. The item names in string would be listed with following patch-note statuses.
    patch_note.statuses.buffed optional Items that have been buffed.
    patch_note.statuses.adjusted optional Items that have been adjusted.
    patch_note.statuses.nerfed optional Items that have been nerfed.
    patch_note.statuses.new optional Items that have been added.
    patch_note.excludes optional The specific item name to be excluded from listing patch-note statuses.
    patch_note.compare optional Fields for comparing last version. (generate a row of item data from last version)
    patch_note.compare.statuses fixed value The patch-note statuses would find the item data from last version to compare with.
    patch_note.compare.items optional The item datas to compare with.
    patch_note.compare.stats optional The stats to compare with.
    patch_note.compare.item_prefix optional The prefix which would be render in frount of the row of comparing item data.

    For example:

    1. 5.1:
      ---
      layout: gold_efficiency
      title: 5.1
      date: 2024/04/19 12:02 a.m.
      description: Wild Rift Gold Efficiency of 5.1
      image: /assets/favicon512x512.png
      permalink: /5.1/
      data_refer_url: https://x.com/wildrift/status/1780990172869366111
      data_refer_text: 5.1 hotfix
      items: items_5_1
      stats: stats_5_1
      ---
    2. 5.1a:
      ---
      layout: gold_efficiency
      title: 5.1a
      date: 2024/04/25
      description: Wild Rift Gold Efficiency of 5.1a
      image: /assets/favicon512x512.png
      permalink: /5.1a/
      data_refer_url: https://wildrift.leagueoflegends.com/en-us/news/game-updates/wild-rift-patch-notes-5-1a/#items
      data_refer_text: 5.1a
      items: items_5_1a
      stats: stats_5_1a
      patch_note:
      statuses:
      buffed: "FORCE OF NATURE,RUIN - BLADE OF THE RUINED KING,THORNMAIL"
      adjusted: "RUIN - INFINITY EDGE,RUIN - RABADON’S DEATHCAP"
      nerfed: "LIGHT - YOUMUU’S GHOSTBLADE"
      new: ""
      excludes: "Light - Youmuu's Ghostblade"
      compare_statuses: "buffed,adjusted,nerfed"
      compare_items: items_5_1
      compare_stats: stats_5_1
      item_prefix: 5.1
      ---
    3. 5.1b:
      ---
      layout: gold_efficiency
      title: 5.1b
      date: 2024/05/15
      description: Wild Rift Gold Efficiency of 5.1b
      image: /assets/favicon512x512.png
      permalink: /5.1b/
      redirect_from: /
      data_refer_url: https://wildrift.leagueoflegends.com/en-gb/news/game-updates/wild-rift-patch-notes-5-1b/#items
      data_refer_text: 5.1b
      items: items_5_1b
      stats: stats_5_1b
      patch_note:
      statuses:
      buffed: "SUNFIRE AEGIS,MANAMUNE,MURAMANA,WINTER’S APPROACH,FIMBULWINTER"
      adjusted: ""
      nerfed: "TITANIC HYDRA"
      new: ""
      compare_statuses: "buffed,adjusted,nerfed"
      compare_items: items_5_1a
      compare_stats: stats_5_1a
      item_prefix: 5.1a
      ---