From fce4b1dac9c75ecdbfa22c7b8f3b555fbc2b9f78 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sun, 14 Oct 2018 20:03:58 -0400 Subject: [PATCH] Added magic + shrinking --- game.js | 39 ++++++++++++++++++++++++++++++++++++++- recursive-desc.js | 6 +++++- sounds.js | 4 +++- stroll.html | 14 ++++++++++++++ 4 files changed, 60 insertions(+), 3 deletions(-) diff --git a/game.js b/game.js index f926be0..80e592b 100644 --- a/game.js +++ b/game.js @@ -1276,7 +1276,7 @@ let macro = if (this.orgasm) amount /= 5; - + this.arousal += amount * this.arousalFactor; if (this.arousal >= 200) { @@ -1558,6 +1558,11 @@ let macro = return length(this.vaginaLength, unit, true) + " long " + state; }, + "droolEnabled": false, + + "magicEnabled": false, + "shrunkPrey": null, + "growthPoints": 0, // 0 = entirely non-fatal @@ -1690,6 +1695,9 @@ function summarize(sum, fatal = true) function getOnePrey(biome, area, sameSize = true) { + if (macro.shrunkPrey != null) { + return getPrey(biome, area, sameSize); + } let weights = getWeights(biome, area); let potential = []; @@ -1786,6 +1794,11 @@ function getWeights(region, area) { function getPrey(region, area, sameSize = false) { + if (macro.shrunkPrey != null) { + let prey = macro.shrunkPrey; + macro.shrunkPrey = null; + return prey; + } let weights = getWeights(region, area); var prey = fill_area(area,weights); @@ -3699,6 +3712,25 @@ function breath_cone() { update(["You prepare to exhale a broad cone of breath!",newline]); } +function magic_shrink() +{ + let prey = new Container(); + + prey = getPrey(biome, macro.height * macro.height * 100, true); + + macro.shrunkPrey = prey; + macro.shrunkPrey.mass /= 1000000; + + let line = describe("magic-shrink", prey, macro, false); + let linesummary = summarize(prey.sum(), false); + let preyMass = prey.sum_property("mass"); + let sound = getSound("magic", preyMass); + + update([sound, line, linesummary, newline]); + + return; +} + function cooldown_start(name) { let button = document.querySelector("#" + "button-action-" + name); let parent = button.parentElement; @@ -4183,6 +4215,11 @@ function startGame(e) { enable_victim("drool","Drenched in drool"); } + if (macro.magicEnabled) { + enable_panel("magic"); + enable_button("magic_shrink"); + } + if (macro.arousalEnabled) { document.querySelector("#arousalMeter").style.display = 'inline-block'; document.querySelector("#orgasmMeter").style.display = 'inline-block'; diff --git a/recursive-desc.js b/recursive-desc.js index d2210d7..1014186 100644 --- a/recursive-desc.js +++ b/recursive-desc.js @@ -31,7 +31,7 @@ var actions = ["eat","chew","vomit","stomp","stomp-wedge","flex-toes","kick","an "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"]; +"breath-fire","breath-ice","breath-electric","breath-smoke","breath-radiation","breath-foul","drool","magic-shrink","magic-hypnotize"]; for (let i=0; iShoes + @@ -339,6 +340,11 @@ +
+ + +
+
@@ -1132,6 +1138,14 @@
+ +
+ + +
+ +
+