From 1e54d0b1087e8d571561d9ad79ad5db915f9f88a Mon Sep 17 00:00:00 2001 From: FreezePhoenix <24441367+FreezePhoenix@users.noreply.github.com> Date: Tue, 28 Nov 2023 12:33:59 -0500 Subject: [PATCH 1/2] Make Charm more consistent with other abilities This PR makes Charm more consistent with the other abilities, and actually consistent with the item description. Also adds a dedicated description for the Charm ability. --- node/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/server.js b/node/server.js index 6045951..a4efaf8 100644 --- a/node/server.js +++ b/node/server.js @@ -8905,7 +8905,7 @@ function init_io() { } if (data.name == "charm") { consume_mp(player, G.skills[data.name].mp); - if (Math.random() > 0.01) { + if (Math.random() > attacker.a.charm.attr0 / 100) { socket.emit("game_response", "charm_failed"); xy_emit(player, "ui", { type: "charm", name: player.name, id: target.id, fail: true }); } else { From 9c602d65c952d83a0f4dccc2cdbc270776f309d8 Mon Sep 17 00:00:00 2001 From: FreezePhoenix <24441367+FreezePhoenix@users.noreply.github.com> Date: Tue, 28 Nov 2023 12:37:24 -0500 Subject: [PATCH 2/2] Add item description for Charm. --- js/html.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/html.js b/js/html.js index 155bbc4..223fbb2 100644 --- a/js/html.js +++ b/js/html.js @@ -3192,6 +3192,11 @@ function render_item(selector,args) html+=bold_prop_line("Ability","Sugar Rush","#D64770"); html+="
"+"Trigger a Sugar Rush on attack with "+prop.attr0+"% chance. Gain 240 Attack Speed for 10 seconds!
"; } + else if(item.ability=="charm") + { + html+=bold_prop_line("Ability","Charm","#D64770"); + html+="
"+"Charm an enemy with "+prop.attr0+"% chance. Activate the ability from the 'SKILLS' system.
"; + } else if(item.ability=="restore_mp") { html+=bold_prop_line("Ability","Restore MP","#5D9ED9");