Browse Source

Add fill spell

master
Fen Dweller 5 years ago
parent
commit
84054c412e
No known key found for this signature in database GPG Key ID: E80B35A6F11C3656
2 changed files with 33 additions and 0 deletions
  1. +12
    -0
      features.js
  2. +21
    -0
      game.js

+ 12
- 0
features.js View File

@@ -477,6 +477,10 @@ const panels = {
{ {
"name": "Arousal", "name": "Arousal",
"target": "magic_arousal" "target": "magic_arousal"
},
{
"name": "Summon Cum",
"target": "magic_fill_sexual"
} }
] ]
}, },
@@ -1531,6 +1535,14 @@ options = [
"buttons": ["magic_arousal"], "buttons": ["magic_arousal"],
"default": true, "default": true,
"tooltip": "Rapidly arouses the caster" "tooltip": "Rapidly arouses the caster"
},
{
"name": "Summon cum",
"id": "magicFillSexual",
"type": "checkbox",
"buttons": ["magic_fill_sexual"],
"default": true,
"tooltip": "Prepares the caster for quite the gush!"
} }
] ]
}, },


+ 21
- 0
game.js View File

@@ -4368,6 +4368,27 @@ function macro_arousal_execute(remaining, max) {
} }
} }


function magic_fill_sexual() {
let line = "Full up!";

update([line, newline]);

macro_fill_sexual_execute(100, 100);
}

function macro_fill_sexual_execute(remaining, max) {
if (macro.maleParts) {
macro.cumStorage.amount += macro.cumStorage.limit * 0.03 * remaining / max;
}
if (macro.femaleParts) {
macro.femcumStorage.amount += macro.femcumStorage.limit * 0.03 * remaining / max;
}

if (remaining > 0) {
setTimeout(() => macro_fill_sexual_execute(remaining - 1, max), 25);
}
}

function wings_flap() function wings_flap()
{ {
let area = macro.wingArea * 2; let area = macro.wingArea * 2;


Loading…
Cancel
Save