From 451b79b24f1918cb3028023aa63c9d49c4c24ec1 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Mon, 31 Dec 2018 20:26:27 -0600 Subject: [PATCH] Separated victim descriptions from the other actions --- game.js | 4 +- recursive-desc.js | 133 +++++++++++++++++++++++++--------------------- 2 files changed, 74 insertions(+), 63 deletions(-) diff --git a/game.js b/game.js index 3417fcd..ba17907 100644 --- a/game.js +++ b/game.js @@ -4646,7 +4646,7 @@ function startGame(e) { } if (macro.arousalEnabled) { - enable_victim("cum-flood",describe("victim-cum-flood", null, macro, null, flat)); + enable_victim("cum-flood"); if (macro.maleMuskEnabled) { enable_victim("male-spurt-musk","Inundated in masculine precum musk"); @@ -4949,7 +4949,7 @@ function showStats() { if (victims.hasOwnProperty(key)) { if (victims[key]["people"] > 0) { lines.push([ - victims[key]["people"] + " " + describe("victim-" + key, null, macro, false, false), + victims[key]["people"] + " " + describeVictim("victim-" + key, macro), victims[key]["people"] ]); total += victims[key]["people"]; diff --git a/recursive-desc.js b/recursive-desc.js index ce9ddec..8f957a3 100644 --- a/recursive-desc.js +++ b/recursive-desc.js @@ -20,6 +20,17 @@ function getDefault(name) { return window[funcName]; } +function getDefaultVictim(name) { + let tokens = name.split("-"); + for (let i=0; i