diff --git a/features.js b/features.js index 17628af..12c6f03 100644 --- a/features.js +++ b/features.js @@ -473,6 +473,10 @@ const panels = { { "name": "Pause Digestion", "target": "magic_pause_digestion" + }, + { + "name": "Arousal", + "target": "magic_arousal" } ] }, @@ -1512,6 +1516,24 @@ options = [ } ] }, + { + "name": "Sexual Magic", + "id": "sexualMagicEnabled", + "group": "nsfw", + "optional": true, + "panels": ["magic"], + "entries": + [ + { + "name": "Arousal", + "id": "magicArousal", + "type": "checkbox", + "buttons": ["magic_arousal"], + "default": true, + "tooltip": "Rapidly arouses the caster" + } + ] + }, { "name": "Breasts", "id": "hasBreasts", diff --git a/game.js b/game.js index fe4e9fe..4d047cf 100644 --- a/game.js +++ b/game.js @@ -4348,6 +4348,26 @@ function magic_pause_digestion() update([line, newline]); } + +function magic_arousal() { + let line = "Ooo"; + + if (macro.maleParts && macro.femaleParts) { + + } + + update([line, newline]); + + macro_arousal_execute(100, 100); +} + +function macro_arousal_execute(remaining, max) { + if (remaining > 0) { + macro.arouse(2 * remaining / max); + setTimeout(() => macro_arousal_execute(remaining - 1, max), 25); + } +} + function wings_flap() { let area = macro.wingArea * 2; @@ -5283,10 +5303,6 @@ function startGame(e) { enable_growth_part("body"); enable_growth_part("ass"); - if (macro.magicEnabled) { - enable_panel("magic"); - } - if (macro.arousalEnabled) { document.querySelector("#arousalMeter").style.display = 'inline-block'; document.querySelector("#orgasmMeter").style.display = 'inline-block';