ソースを参照

Added wings

tags/v1.0.0
Fen Dweller 6年前
コミット
1bfda7e21c
4個のファイルの変更74行の追加2行の削除
  1. +28
    -0
      features.js
  2. +28
    -0
      game.js
  3. +17
    -2
      recursive-desc.js
  4. +1
    -0
      stroll.html

+ 28
- 0
features.js ファイルの表示

@@ -948,5 +948,33 @@ options = [
[

]
},
{
"name": "Wings",
"id": "hasWings",
"optional": true,
"entries":
[
{
"name": "Wing width",
"id": "baseWingWidth",
"type": "float",
"default": "1",
"unit": "length"
},
{
"name": "Wing length",
"id": "baseWingLength",
"type": "float",
"default": "1",
"unit": "length"
},
{
"name": "Wing description",
"id": "wingDesc",
"type": "text",
"default": "feathery"
}
]
}
];

+ 28
- 0
game.js ファイルの表示

@@ -71,6 +71,10 @@ let macro =
get assArea() { return this.scaling(this.baseAssArea * this.assScale, this.scale, 2); },
get handArea() { return this.scaling(this.baseHandArea, this.scale, 2); },

get wingLength() { return this.scaling(this.baseWingLength, this.scale, 1); },
get wingWidth() { return this.scaling(this.baseWingWidth, this.scale, 1); },
get wingArea() { return this.wingLength * this.wingWidth; },

"footOnlyDesc": function(plural=false,capital=false) {
let result = "";

@@ -3646,6 +3650,24 @@ function magic_fast_digestion()
update([line, newline]);
}

function wings_flap()
{
let area = macro.wingArea * 2;
let prey = getPrey(biome, area, false);
let line = describe("wings-flap", prey, macro, verbose);
let linesummary = summarize(prey.sum(), true);

let people = get_living_prey(prey.sum());

let preyMass = prey.sum_property("mass");

let sound = getSound("breath", preyMass);

add_victim_people("wings-flap", prey);

update([sound,line,linesummary,newline]);
}

function cooldown_start(name) {
let button = document.querySelector("#" + "button-action-" + name);

@@ -4451,6 +4473,12 @@ function startGame(e) {
}
}

if (macro.hasWings) {
enable_panel("misc");
enable_button("wings_flap");
enable_victim("wings-flap");
}

document.getElementById("button-arousal").innerHTML = (macro.arousalEnabled ? "Arousal On" : "Arousal Off");
if (!macro.arousalEnabled) {
document.getElementById("arousal").style.display = "none";


+ 17
- 2
recursive-desc.js ファイルの表示

@@ -31,9 +31,9 @@ var action_keys = ["eat","chew","vomit","stomp","stomp-wedge","flex-toes","kick"
"sheath-toy","slit-toy","breast-toy","melt","solidify","flood","stomp-goo","goo-digest","ass-goo","goo-stomach-pull","goo-stomach-push",
"goo-bowels-pull","goo-bowels-push","goo-womb-pull","goo-womb-push","goo-balls-pull","goo-balls-push","goo-breasts-pull","goo-breasts-push",
"goo-tail-pull","goo-tail-push","goo-paws-pull","goo-paws-push","paw-vore","paw-vore-toes","paws","crop-swallow","crop-transfer",
"breath-fire","breath-ice","breath-electric","breath-smoke","breath-radiation","breath-foul","drool","magic-shrink","magic-hypnotize"];
"breath-fire","breath-ice","breath-electric","breath-smoke","breath-radiation","breath-foul","drool","magic-shrink","magic-hypnotize","wings-flap"];

var victim_keys = ["victim-cum-flood", "victim-femcum-flood", "victim-stomped", "victim-flex-toes", "victim-eaten", "victim-ass-crush", "victim-ass-ground", "victim-humped", "victim-vomit", "victim-chew", "victim-drool", "victim-anal-vore", "victim-tail-slap", "victim-tail-vore", "victim-cock-slap", "victim-cock-vore", "victim-ball-smother", "victim-sheath-crush", "victim-sheath-absorb", "victim-cum-flood", "victim-male-spurt-musk", "victim-male-orgasm-musk", "victim-unbirth", "victim-femcum-flood", "victim-female-spurt-musk", "victim-female-orgasm-musk", "victim-breast-crush", "victim-cleavage-crush", "victim-cleavage-absorb", "victim-cleavage-drop", "victim-milk-flood", "victim-breast-vore", "victim-pouch-absorb", "victim-soul-digest", "victim-soul-paw", "victim-paw-stench", "victim-ass-stench", "victim-gas-belch", "victim-gas-fart", "victim-piss", "victim-bladder-vore", "victim-piss-stench", "victim-scat", "victim-scat-stench", "victim-goo", "victim-paw-vore", "victim-breath-fire", "victim-breath-ice", "victim-breath-electric", "victim-breath-smoke", "victim-breath-radiation", "victim-breath-foul"]
var victim_keys = ["victim-cum-flood", "victim-femcum-flood", "victim-stomped", "victim-flex-toes", "victim-eaten", "victim-ass-crush", "victim-ass-ground", "victim-humped", "victim-vomit", "victim-chew", "victim-drool", "victim-anal-vore", "victim-tail-slap", "victim-tail-vore", "victim-cock-slap", "victim-cock-vore", "victim-ball-smother", "victim-sheath-crush", "victim-sheath-absorb", "victim-cum-flood", "victim-male-spurt-musk", "victim-male-orgasm-musk", "victim-unbirth", "victim-femcum-flood", "victim-female-spurt-musk", "victim-female-orgasm-musk", "victim-breast-crush", "victim-cleavage-crush", "victim-cleavage-absorb", "victim-cleavage-drop", "victim-milk-flood", "victim-breast-vore", "victim-pouch-absorb", "victim-soul-digest", "victim-soul-paw", "victim-paw-stench", "victim-ass-stench", "victim-gas-belch", "victim-gas-fart", "victim-piss", "victim-bladder-vore", "victim-piss-stench", "victim-scat", "victim-scat-stench", "victim-goo", "victim-paw-vore", "victim-breath-fire", "victim-breath-ice", "victim-breath-electric", "victim-breath-smoke", "victim-breath-radiation", "victim-breath-foul", "victim-wings-flap"]

for (let i=0; i<action_keys.length; i++) {
rules[action_keys[i]] = [];
@@ -1123,6 +1123,10 @@ function defaultMagicShrink(container, macro, verbose) {
return "You envelop " + container.describe(verbose) + " in swirling tendrils of magic, shrinking " + (container.count == 1 ? "it" : "them") + " down!";
}

function defaultWingsFlap(container, macro, verbose) {
return "You flap your wings, blowing away " + container.describe(verbose) + ".";
}

function defaultVictimCumFlood(container, macro, verbose) {
if (isSadistic(macro)) {
return "drowned in viscous cum";
@@ -1745,6 +1749,17 @@ function defaultVictimBreathFoul(container, macro, verbose) {
}
}

function defaultVictimWingsFlap(container, macro, verbose) {
if (isSadistic(macro)) {
return "ripped asunder by gusts from your mighty wings";
} else if (isGory(macro)) {
return "thrown and dashed to bits by your sweeping wings";
} else if (isFatal(macro)) {
return "thrown away by your swooping wings";
} else if (isNonFatal(macro)) {
return "blown away by your wings";
}
}
// EATING

rules["eat"].push({


+ 1
- 0
stroll.html ファイルの表示

@@ -329,6 +329,7 @@
<button class="action-button" id="button-action-pouch_rub">Rub Pouch</button>
<button class="action-button" id="button-action-pouch_eat">Eat From Pouch</button>
<button class="action-button" id="button-action-pouch_absorb">Absorb Pouch</button>
<button class="action-button" id="button-action-wings_flap">Flap Wings</button>
</div>

<div class="action-tab" id="actions-breath">


読み込み中…
キャンセル
保存