mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Merge pull request #72 from FreezePhoenix/patch-7
Make Charm more consistent with other abilities
This commit is contained in:
@@ -3192,6 +3192,11 @@ function render_item(selector,args)
|
|||||||
html+=bold_prop_line("Ability","Sugar Rush","#D64770");
|
html+=bold_prop_line("Ability","Sugar Rush","#D64770");
|
||||||
html+="<div style='color: #C3C3C3'>"+"Trigger a Sugar Rush on attack with "+prop.attr0+"% chance. Gain 240 Attack Speed for 10 seconds!</div>";
|
html+="<div style='color: #C3C3C3'>"+"Trigger a Sugar Rush on attack with "+prop.attr0+"% chance. Gain 240 Attack Speed for 10 seconds!</div>";
|
||||||
}
|
}
|
||||||
|
else if(item.ability=="charm")
|
||||||
|
{
|
||||||
|
html+=bold_prop_line("Ability","Charm","#D64770");
|
||||||
|
html+="<div style='color: #C3C3C3'>"+"Charm an enemy with "+prop.attr0+"% chance. Activate the ability from the 'SKILLS' system.</div>";
|
||||||
|
}
|
||||||
else if(item.ability=="restore_mp")
|
else if(item.ability=="restore_mp")
|
||||||
{
|
{
|
||||||
html+=bold_prop_line("Ability","Restore MP","#5D9ED9");
|
html+=bold_prop_line("Ability","Restore MP","#5D9ED9");
|
||||||
|
|||||||
+1
-1
@@ -8797,7 +8797,7 @@ function init_io() {
|
|||||||
player.to_resend = "u+cid";
|
player.to_resend = "u+cid";
|
||||||
} else if (data.name == "charm") {
|
} else if (data.name == "charm") {
|
||||||
consume_mp(player, gSkill.mp);
|
consume_mp(player, gSkill.mp);
|
||||||
if (Math.random() > 0.01) {
|
if (Math.random() > attacker.a.charm.attr0 / 100) {
|
||||||
socket.emit("game_response", "charm_failed");
|
socket.emit("game_response", "charm_failed");
|
||||||
xy_emit(player, "ui", { type: "charm", name: player.name, id: target.id, fail: true });
|
xy_emit(player, "ui", { type: "charm", name: player.name, id: target.id, fail: true });
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user