From 53e343c3a924c3af9df4cb504238b789513bf35b Mon Sep 17 00:00:00 2001 From: Kaan Soral Date: Sat, 1 Mar 2025 19:06:39 -0500 Subject: [PATCH] skill weapon type requirement UI --- config.py | 1 + js/html.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 5f84103..9396198 100644 --- a/config.py +++ b/config.py @@ -120,6 +120,7 @@ update_notes=[ "Last Update [28th of February]", "Poison passive ability for items", "PR: add cooldown time when failing to equip (use) potion #154", + "PR: Showing a skill tooltip now also shows weapon type requirement #121", ] ip_to_subdomain={ #IMPORTANT: SPECIAL PAGE RULES ARE NEEDED: https://dash.cloudflare.com/b6f5a13bded5fdd273e4a1cd3777162d/adventure.land/page-rules - uss1 / eus1 was best "35.187.255.184":"asia1", diff --git a/js/html.js b/js/html.js index 55dd784..6c46fbb 100644 --- a/js/html.js +++ b/js/html.js @@ -2225,7 +2225,7 @@ function render_skill(selector,skill_name,args) if(skill.range_multiplier && skill.range_bonus) html+=bold_prop_line("Range",to_pretty_float(skill.range_multiplier||1)+"X + "+skill.range_bonus,"gray"); else if(skill.range_multiplier) html+=bold_prop_line("Range",to_pretty_float(skill.range_multiplier||1)+"X of Character Range","gray"); if(skill.level) html+=bold_prop_line("Level Requirement",skill.level,"gray"); - if(skill.wtype) html+=bold_prop_line("Weapon Requirement", is_array(skill.wtype) ? skill.wtype.join(", ") : skill.wtype,"gray"); + if (skill.wtype) html += bold_prop_line("Weapon Requirement", is_array(skill.wtype) ? `"${skill.wtype.join('", "')}"` : `"${skill.wtype}"`, "gray"); if(skill.max) html+=bold_prop_line("Max",skill.max,"gray"); if(skill.type=="passive") html+="
Passive
"; if(skill.damage_type)