소스 검색

Add arousal magic

master
Fen Dweller 5 년 전
부모
커밋
eac36ae986
No known key found for this signature in database GPG 키 ID: E80B35A6F11C3656
2개의 변경된 파일42개의 추가작업 그리고 4개의 파일을 삭제
  1. +22
    -0
      features.js
  2. +20
    -4
      game.js

+ 22
- 0
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",


+ 20
- 4
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';


불러오는 중...
취소
저장