diff --git a/web/js/common.js b/web/js/common.js index 1e68034..989bf56 100644 --- a/web/js/common.js +++ b/web/js/common.js @@ -38,6 +38,35 @@ _ITEM_NAME_SPECIAL = { "vecosmicticket": "VE Cosmic Ticket" }; +WEAPON_TYPE_ABBR = { + "Great Sword": "GS", + "Long Sword": "LS", + "Sword and Shield": "Sw", + "Dual Blades": "DB", + "Hammer": "Ha", + "Hunting Horn": "HH", + "Lance": "La", + "Gunlance": "GL", + "Switch Axe": "SA", + "Charge Blade": "CB", + "Insect Glaive": "IG", + "Light Bowgun": "LBG", + "Heavy Bowgun": "HBG", + "Bow": "Bow" +}; + +ELEMENT_ABBR = { + "Fire": "Fi", + "Water": "Wa", + "Thunder": "Th", + "Ice": "Ic", + "Dragon": "Dr", + "Poison": "Po", + "Paralysis": "Pa", + "Sleep": "Sl", + "Blashblight": "Bl" +}; + (function($) { $.QueryString = (function(a) { if (a == "") return {}; diff --git a/web/templates/weaponrow.ejs b/web/templates/weaponrow.ejs index 8fc78bb..2a4eef6 100644 --- a/web/templates/weaponrow.ejs +++ b/web/templates/weaponrow.ejs @@ -9,23 +9,29 @@ <%= name %> -
<%= awaken_attack %>
+ <%= ELEMENT_ABBR[awaken] %>)
<% } else if (element) { %>
- (<%= element_attack %> <%= element %>
+
<%= element_attack %>
+ <%= ELEMENT_ABBR[element] %>
<% if (element_2) { %>
- , <%= element_2_attack %> <%= element_2 %>
- <% } %>)
+
<%= element_2_attack %>
+ <%= ELEMENT_ABBR[element_2] %>
+ <% } %>
<% } %>