From ca7ec93a4d55b50ffb49f454e284a8487964a770 Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Fri, 24 Feb 2023 02:42:57 -0500 Subject: [PATCH] Type fixes --- src/js/statsChecker/statsChecker.js | 13 ++++++++----- src/player/js/PlayerState.js | 4 ++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/js/statsChecker/statsChecker.js b/src/js/statsChecker/statsChecker.js index 00fb514fe54..45e0681696c 100644 --- a/src/js/statsChecker/statsChecker.js +++ b/src/js/statsChecker/statsChecker.js @@ -479,7 +479,7 @@ globalThis.isPure = function(slave) { }; /** - * @param {App.Entity.SlaveState} slave + * @param {FC.HumanState} slave * @returns {boolean} */ globalThis.isVirile = function(slave) { @@ -1117,7 +1117,7 @@ globalThis.isVegetable = function(slave) { /** * Returns the hair color the slave was (or would be) born with. * - * @param {App.Entity.SlaveState} slave + * @param {FC.HumanState} slave * @returns {string} */ globalThis.getGeneticHairColor = function(slave) { @@ -1130,7 +1130,7 @@ globalThis.getGeneticHairColor = function(slave) { /** * Returns the skin color the slave was (or would be) born with. * - * @param {App.Entity.SlaveState} slave + * @param {FC.HumanState} slave * @returns {string} */ globalThis.getGeneticSkinColor = function(slave) { @@ -1141,7 +1141,6 @@ globalThis.getGeneticSkinColor = function(slave) { }; /** - * * @param {App.Entity.SlaveState} slave * @returns {boolean} */ @@ -1172,13 +1171,17 @@ globalThis.milkFlavor = function(slave) { return `${slave.milkFlavor}-flavored `; }; +/** + * @param {FC.HumanState} slave + * @returns {boolean} + */ globalThis.canBeDeflowered = function(slave) { return (slave.vagina === 0 && canDoVaginal(slave)) || (slave.anus === 0 && canDoAnal(slave)); }; /** * A consolidated function for checking if an actor is currently aroused. - * @param {App.Entity.HumanState} actor + * @param {FC.HumanState} actor * @returns {boolean} */ globalThis.isHorny = function(actor) { diff --git a/src/player/js/PlayerState.js b/src/player/js/PlayerState.js index 54e5149ca8e..ef4f1d8c425 100644 --- a/src/player/js/PlayerState.js +++ b/src/player/js/PlayerState.js @@ -2039,6 +2039,10 @@ App.Entity.PlayerState = class PlayerState { * * 0: stable; 1: gaining; -1: losing */ this.weightDirection = 0; + /** Stores the exact colors of the albinism quirk + * @type {{skin:string, eyeColor:string, hColor:string}} + */ + this.albinismOverride = null; // exclusive minor player variables (probably) here /** have you been drugged with fertility drugs * -- GitLab