Add proc chance capabilities to Sugarrush

This commit is contained in:
FreezePhoenix
2023-11-12 23:23:26 -05:00
committed by GitHub
parent af4380eaa1
commit ff9a95f4f7
+1 -1
View File
@@ -3476,7 +3476,7 @@ function complete_attack(attacker, target, info) {
add_condition(target, c);
}
});
if (info.procs && attacker.a.sugarrush && Math.random() < 0.0025) {
if (info.procs && attacker.a.sugarrush && Math.random() < (attacker.a.sugarrush.attr0 / 100)) {
def.trigger = "sugarrush";
add_condition(attacker, "sugarrush");
disappearing_text(attacker.socket, attacker, "SUGAR RUSH!", { xy: 1, size: "huge", color: "sugar", nv: 1 }); //target.is_player&&"huge"||undefined