function macro_fill_sexual_execute(remaining, max) {
function macro_fill_sexual_execute(remaining, max) {
@@ -4651,6 +4656,8 @@ function grow_pick(times) {
case "wings": grow_wings(times); break;
case "wings": grow_wings(times); break;
case "musk": grow_musk(times); break;
case "musk": grow_musk(times); break;
case "stench": grow_stench(times); break;
case "stench": grow_stench(times); break;
case "breath": grow_breath(times); break;
case "magic": grow_magic(times); break;
}
}
}
}
}
}
@@ -4844,7 +4851,7 @@ function grow_wings(factor, simpleCalc = true) {
let lengthDelta = macro.wingLength - oldLength;
let lengthDelta = macro.wingLength - oldLength;
update([pickString("Power surges through you", "Energy flows into you", "Your back muscles fight for space", "Your muscles tense", "A crackeling fills the air", "Your balance shifts", "You feel a buzz of power", "A warm sensation fills you") + " as your " + macro.wingDesc + " wings grow, gaining " + length(2 * lengthDelta, unit, false) + " of wingspan.", newline]);
update([pickString("Power surges through you", "Energy flows into you", "Your back muscles fight for space", "Your muscles tense", "A crackling fills the air", "Your balance shifts", "You feel a buzz of power", "A warm sensation fills you") + " as your " + macro.wingDesc + " wings grow, gaining " + length(2 * lengthDelta, unit, false) + " of wingspan.", newline]);
}
}
function grow_musk(factor, simpleCalc = true) {
function grow_musk(factor, simpleCalc = true) {
@@ -4859,7 +4866,7 @@ function grow_musk(factor, simpleCalc = true) {
let scaleDelta = macro.muskScale - oldScale;
let scaleDelta = macro.muskScale - oldScale;
update([pickString("Power surges through you", "Energy flows into you", "A crackeling fills the air", "Your balance shifts", "You feel a buzz of power", "A warm sensation fills you") + " as your musk thickens, growing more potent.", newline]);
update([pickString("Power surges through you", "Energy flows into you", "A crackling fills the air", "Your balance shifts", "You feel a buzz of power", "A warm sensation fills you") + " as your musk thickens, growing more potent.", newline]);
}
}
function grow_stench(factor, simpleCalc = true) {
function grow_stench(factor, simpleCalc = true) {
@@ -4874,7 +4881,37 @@ function grow_stench(factor, simpleCalc = true) {
let scaleDelta = macro.stenchScale - oldScale;
let scaleDelta = macro.stenchScale - oldScale;
update([pickString("Power surges through you", "Energy flows into you", "A crackeling fills the air", "Your balance shifts", "You feel a buzz of power", "A warm sensation fills you") + " as your stench thickens, growing more potent.", newline]);
update([pickString("Power surges through you", "Energy flows into you", "A crackling fills the air", "Your balance shifts", "You feel a buzz of power", "A warm sensation fills you") + " as your stench thickens, growing more potent.", newline]);
update([pickString("Power surges through you", "Energy flows into you", "A crackling fills the air", "Your balance shifts", "You feel a buzz of power", "A warm sensation fills you") + " as your breath weapon grows more potent.", newline]);
update([pickString("Power surges through you", "Energy flows into you", "A crackling fills the air", "Your balance shifts", "You feel a buzz of power", "A warm sensation fills you") + " as your magical powers grow.", newline]);
}
}
function resetSettings() {
function resetSettings() {
@@ -5478,6 +5515,13 @@ function showStats() {
update(lines);
update(lines);
}
}
function performAction(name) {
if (name != "magic_shrink" && macro.magicShrinkAuto) {
magic_shrink();
}
window[name]();
}
function registerActions() {
function registerActions() {
let buttons = document.querySelectorAll("[id^='button-action']");
let buttons = document.querySelectorAll("[id^='button-action']");
@@ -5485,9 +5529,9 @@ function registerActions() {
let name = button.id;
let name = button.id;
name = name.replace(/button-action-/, "");
name = name.replace(/button-action-/, "");
if (macro.difficulty > 0) {
if (macro.difficulty > 0) {
button.addEventListener("click", function () { cooldown_start(name); window[name](); });
button.addEventListener("click", function () { cooldown_start(name); performAction(name) });
} else {
} else {
button.addEventListener("click", function () { window[name](); });
button.addEventListener("click", function () { performAction(name) });