From 803b0503f4deb4ea6f71272e0462d8b988aa2285 Mon Sep 17 00:00:00 2001 From: Sauceke <76826783+Sauceke@users.noreply.github.com> Date: Mon, 20 Dec 2021 04:19:02 +0300 Subject: [PATCH] [AGH] Add more female bones --- .../HoukagoRinkanButtplugController.cs | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/LoveMachine.AGH/HoukagoRinkanButtplugController.cs b/LoveMachine.AGH/HoukagoRinkanButtplugController.cs index 2247581a..883ab873 100644 --- a/LoveMachine.AGH/HoukagoRinkanButtplugController.cs +++ b/LoveMachine.AGH/HoukagoRinkanButtplugController.cs @@ -1,5 +1,6 @@ using System.Collections; using System.Collections.Generic; +using System.Linq; using LoveMachine.Core; using UnityEngine; @@ -7,6 +8,22 @@ namespace LoveMachine.AGH { public abstract class HoukagoRinkanButtplugController : ButtplugController { + private static readonly List SayaBones = new List + { + "CH01/CH0001/CH01_pussy00", + "bip01 L Finger1Nub", + "BF01_tongue01", + "HS_Breast_LL" + }; + + private static readonly List ElenaBones = new List + { + "CH02/CH0002/CH01_pussy00", + "bip01 L Finger1Nub_02", + "BF01_tongue01_02", + "HS_Breast_LL_02" + }; + protected override int HeroineCount => 1; protected override bool IsHardSex => true; @@ -16,18 +33,12 @@ public abstract class HoukagoRinkanButtplugController : ButtplugController protected override bool IsHSceneInterrupted => false; protected override Animator GetFemaleAnimator(int girlIndex) - => GameObject.Find("CH01/CH0001")?.GetComponent() - ?? GameObject.Find("CH02/CH0002")?.GetComponent(); + => (GameObject.Find("CH01/CH0001") ?? GameObject.Find("CH02/CH0002")) + .GetComponent(); protected override List GetFemaleBones(int girlIndex) - { - var chara = GameObject.Find("CH01") != null ? "CH01/CH0001/" : "CH02/CH0002/"; - return new List - { - // there are CH01 prefixed bones under CH02, wtf - GameObject.Find(chara + "CH01_pussy00").transform - }; - } + => (GameObject.Find("CH01") != null ? SayaBones : ElenaBones) + .Select(bone => GameObject.Find(bone).transform).ToList(); protected override Transform GetMaleBone() => GameObject.Find("PC01/PC/HS_kiten_PC/PC00Bip/PC00Bip Pelvis").transform;