Oth -> GeometryUtils

This commit is contained in:
2026-06-14 00:51:27 +02:00
parent 0c62525f54
commit 72c181950b
11 changed files with 63 additions and 63 deletions

View File

@@ -367,44 +367,44 @@ namespace _2DGAMELIB
case Open.Top:
{
frame1.GetMiY_MaY(out var MM7);
PlusBrush = Oth.GetLGB(Unit, MM7, ref PlusColor2, ref PlusColor1);
PlusBrush = GeometryUtils.GetLGB(Unit, MM7, ref PlusColor2, ref PlusColor1);
if (Range == Range.MinusPlus)
{
frame2.GetMiY_MaY(out var MM8);
MinusBrush = Oth.GetLGB(Unit, MM8, ref MinusColor1, ref MinusColor2);
MinusBrush = GeometryUtils.GetLGB(Unit, MM8, ref MinusColor1, ref MinusColor2);
}
break;
}
case Open.Bot:
{
frame1.GetMaY_MiY(out var MM3);
PlusBrush = Oth.GetLGB(Unit, MM3, ref PlusColor2, ref PlusColor1);
PlusBrush = GeometryUtils.GetLGB(Unit, MM3, ref PlusColor2, ref PlusColor1);
if (Range == Range.MinusPlus)
{
frame2.GetMaY_MiY(out var MM4);
MinusBrush = Oth.GetLGB(Unit, MM4, ref MinusColor1, ref MinusColor2);
MinusBrush = GeometryUtils.GetLGB(Unit, MM4, ref MinusColor1, ref MinusColor2);
}
break;
}
case Open.Rig:
{
frame1.GetMaX_MiX(out var MM5);
PlusBrush = Oth.GetLGB(Unit, MM5, ref PlusColor2, ref PlusColor1);
PlusBrush = GeometryUtils.GetLGB(Unit, MM5, ref PlusColor2, ref PlusColor1);
if (Range == Range.MinusPlus)
{
frame2.GetMaX_MiX(out var MM6);
MinusBrush = Oth.GetLGB(Unit, MM6, ref MinusColor1, ref MinusColor2);
MinusBrush = GeometryUtils.GetLGB(Unit, MM6, ref MinusColor1, ref MinusColor2);
}
break;
}
case Open.Lef:
{
frame1.GetMiX_MaX(out var MM);
PlusBrush = Oth.GetLGB(Unit, MM, ref PlusColor2, ref PlusColor1);
PlusBrush = GeometryUtils.GetLGB(Unit, MM, ref PlusColor2, ref PlusColor1);
if (Range == Range.MinusPlus)
{
frame2.GetMiX_MaX(out var MM2);
MinusBrush = Oth.GetLGB(Unit, MM2, ref MinusColor1, ref MinusColor2);
MinusBrush = GeometryUtils.GetLGB(Unit, MM2, ref MinusColor1, ref MinusColor2);
}
break;
}
@@ -419,12 +419,12 @@ namespace _2DGAMELIB
{
PlusBrush.Dispose();
frame1.GetMiY_MaY(out var MM7);
PlusBrush = Oth.GetLGB(Unit, MM7, Color.FromArgb((int)(255.0 * Alpha), PlusColor2), Color.FromArgb((int)(255.0 * Alpha), PlusColor1));
PlusBrush = GeometryUtils.GetLGB(Unit, MM7, Color.FromArgb((int)(255.0 * Alpha), PlusColor2), Color.FromArgb((int)(255.0 * Alpha), PlusColor1));
if (Range == Range.MinusPlus)
{
MinusBrush.Dispose();
frame2.GetMiY_MaY(out var MM8);
MinusBrush = Oth.GetLGB(Unit, MM8, Color.FromArgb((int)(255.0 * Alpha), MinusColor1), Color.FromArgb((int)(255.0 * Alpha), MinusColor2));
MinusBrush = GeometryUtils.GetLGB(Unit, MM8, Color.FromArgb((int)(255.0 * Alpha), MinusColor1), Color.FromArgb((int)(255.0 * Alpha), MinusColor2));
}
break;
}
@@ -432,12 +432,12 @@ namespace _2DGAMELIB
{
PlusBrush.Dispose();
frame1.GetMaY_MiY(out var MM3);
PlusBrush = Oth.GetLGB(Unit, MM3, Color.FromArgb((int)(255.0 * Alpha), PlusColor2), Color.FromArgb((int)(255.0 * Alpha), PlusColor1));
PlusBrush = GeometryUtils.GetLGB(Unit, MM3, Color.FromArgb((int)(255.0 * Alpha), PlusColor2), Color.FromArgb((int)(255.0 * Alpha), PlusColor1));
if (Range == Range.MinusPlus)
{
MinusBrush.Dispose();
frame2.GetMaY_MiY(out var MM4);
MinusBrush = Oth.GetLGB(Unit, MM4, Color.FromArgb((int)(255.0 * Alpha), MinusColor1), Color.FromArgb((int)(255.0 * Alpha), MinusColor2));
MinusBrush = GeometryUtils.GetLGB(Unit, MM4, Color.FromArgb((int)(255.0 * Alpha), MinusColor1), Color.FromArgb((int)(255.0 * Alpha), MinusColor2));
}
break;
}
@@ -445,12 +445,12 @@ namespace _2DGAMELIB
{
PlusBrush.Dispose();
frame1.GetMaX_MiX(out var MM5);
PlusBrush = Oth.GetLGB(Unit, MM5, Color.FromArgb((int)(255.0 * Alpha), PlusColor2), Color.FromArgb((int)(255.0 * Alpha), PlusColor1));
PlusBrush = GeometryUtils.GetLGB(Unit, MM5, Color.FromArgb((int)(255.0 * Alpha), PlusColor2), Color.FromArgb((int)(255.0 * Alpha), PlusColor1));
if (Range == Range.MinusPlus)
{
MinusBrush.Dispose();
frame2.GetMaX_MiX(out var MM6);
MinusBrush = Oth.GetLGB(Unit, MM6, Color.FromArgb((int)(255.0 * Alpha), MinusColor1), Color.FromArgb((int)(255.0 * Alpha), MinusColor2));
MinusBrush = GeometryUtils.GetLGB(Unit, MM6, Color.FromArgb((int)(255.0 * Alpha), MinusColor1), Color.FromArgb((int)(255.0 * Alpha), MinusColor2));
}
break;
}
@@ -458,12 +458,12 @@ namespace _2DGAMELIB
{
PlusBrush.Dispose();
frame1.GetMiX_MaX(out var MM);
PlusBrush = Oth.GetLGB(Unit, MM, Color.FromArgb((int)(255.0 * Alpha), PlusColor2), Color.FromArgb((int)(255.0 * Alpha), PlusColor1));
PlusBrush = GeometryUtils.GetLGB(Unit, MM, Color.FromArgb((int)(255.0 * Alpha), PlusColor2), Color.FromArgb((int)(255.0 * Alpha), PlusColor1));
if (Range == Range.MinusPlus)
{
MinusBrush.Dispose();
frame2.GetMiX_MaX(out var MM2);
MinusBrush = Oth.GetLGB(Unit, MM2, Color.FromArgb((int)(255.0 * Alpha), MinusColor1), Color.FromArgb((int)(255.0 * Alpha), MinusColor2));
MinusBrush = GeometryUtils.GetLGB(Unit, MM2, Color.FromArgb((int)(255.0 * Alpha), MinusColor1), Color.FromArgb((int)(255.0 * Alpha), MinusColor2));
}
break;
}

View File

@@ -7,7 +7,7 @@ using System.Text;
namespace _2DGAMELIB
{
public static class Oth
public static class GeometryUtils
{
private static double s1;
@@ -349,7 +349,7 @@ public static BodyTemplate ObjLoad(this byte[] bd)
return string.Join(Separator, strs);
}
static Oth()
static GeometryUtils()
{
s1 = 1.01;
s0 = s1.Reciprocal();

View File

@@ -347,10 +347,10 @@ namespace _2DGAMELIB
//hit color stuff
public Color GetUniqueColor()
{
Oth.GetRandomColor(out var ret);
GeometryUtils.GetRandomColor(out var ret);
while (HitColors.Contains(ret))
{
Oth.GetRandomColor(out ret);
GeometryUtils.GetRandomColor(out ret);
}
HitColors.Add(ret);
return ret;
@@ -358,10 +358,10 @@ namespace _2DGAMELIB
public void GetUniqueColor(out Color c)
{
Oth.GetRandomColor(out c);
GeometryUtils.GetRandomColor(out c);
while (HitColors.Contains(c))
{
Oth.GetRandomColor(out c);
GeometryUtils.GetRandomColor(out c);
}
HitColors.Add(c);
}

View File

@@ -619,7 +619,7 @@ namespace SlaveMatrix
item.SizeXCont = xc;
}
}
調UI..C = Oth.GetRandomVector() * 0.001;
調UI..C = GeometryUtils.GetRandomVector() * 0.001;
調UI..C = 調UI..C;
},
OnReach = delegate(Motion m)
@@ -678,7 +678,7 @@ namespace SlaveMatrix
if (調UI..Yv >= 0.65 && 調UI.Focus == )
{
p = 調UI..Body.Current.EnumAllPar().First();
cp = p.ToGlobal(p.OP.GetCenter() + Oth.GetRandomVector() * 0.0025);
cp = p.ToGlobal(p.OP.GetCenter() + GeometryUtils.GetRandomVector() * 0.0025);
hc = 2.Med.GetHitColor(2.Med.FromBasePosition(cp));
2.Bod.Addぶっかけ(cp, hc);
調UI.Action(c = 2.Cha.GetContact(ref hc).c, ActionType.Contact, CurrentState.Start, ToolType.Penis, 0, 1, : false, : true);

View File

@@ -364,8 +364,8 @@ namespace SlaveMatrix
d = m.Value.Inverse();
2..Element.C = s * d;
}
2..Element.C = Oth.GetRandomVector() * d * 0.0005;
調UI..X2Y0_舌.PositionCont = Oth.GetRandomVector() * d * 0.001;
2..Element.C = GeometryUtils.GetRandomVector() * d * 0.0005;
調UI..X2Y0_舌.PositionCont = GeometryUtils.GetRandomVector() * d * 0.001;
if (sw.IsRunning)
{
if (sw.ElapsedMilliseconds > 250)

View File

@@ -1468,7 +1468,7 @@ namespace SlaveMatrix
Color c4 = (Color)item2.GetValue();
if (!c3.IsEmpty && !c4.IsEmpty)
{
item2.SetValue(2, Oth.GetInter(ref c3, ref c4));
item2.SetValue(2, GeometryUtils.GetInter(ref c3, ref c4));
}
else
{
@@ -1485,7 +1485,7 @@ namespace SlaveMatrix
Color c6 = (Color)item3.GetValue();
if (!c5.IsEmpty && !c6.IsEmpty)
{
item3.SetValue(2, Oth.GetInter(ref c5, ref c6));
item3.SetValue(2, GeometryUtils.GetInter(ref c5, ref c6));
}
else
{
@@ -1502,7 +1502,7 @@ namespace SlaveMatrix
Color c2 = (Color)item4.GetValue();
if (!c.IsEmpty && !c2.IsEmpty)
{
item4.SetValue(2, Oth.GetInter(ref c, ref c2));
item4.SetValue(2, GeometryUtils.GetInter(ref c, ref c2));
}
else
{
@@ -1549,7 +1549,7 @@ namespace SlaveMatrix
{
double[] obj = new double[4] { 1.0, 2.0, 8.0, 0.0 };
obj[3] = 500.0 * ((Sta.GameData. != null && Sta.GameData..Race == GameText.) ? 0.5 : 1.0);
switch (Oth.GetRandomIndex(obj))
switch (GeometryUtils.GetRandomIndex(obj))
{
case 0:
if (2..Contains(GameText.))
@@ -1690,13 +1690,13 @@ namespace SlaveMatrix
2. = 2.;
break;
case 2:
Oth.GetInter(ref 2., ref 2., out 2.);
GeometryUtils.GetInter(ref 2., ref 2., out 2.);
2. = 2.;
2. = 2.;
2. = 2.;
break;
case 3:
Oth.GetInter(ref 2., ref 2., out 2.);
GeometryUtils.GetInter(ref 2., ref 2., out 2.);
2. = 2.;
2. = 2.;
2. = 2.;
@@ -1756,13 +1756,13 @@ namespace SlaveMatrix
2. = 2.;
break;
case 2:
Oth.GetInter(ref 2., ref 2., out 2.);
GeometryUtils.GetInter(ref 2., ref 2., out 2.);
2. = 2.;
2. = 2.;
2. = 2.;
break;
case 3:
Oth.GetInter(ref 2., ref 2., out 2.);
GeometryUtils.GetInter(ref 2., ref 2., out 2.);
2. = 2.;
2. = 2.;
2. = 2.;

View File

@@ -430,7 +430,7 @@ namespace SlaveMatrix
{
if ((0.1 * Player. * Player.Tension.Inverse()).Lot())
{
switch (Oth.GetRandomIndex(4.0, 4.0, 1.0, 1.0))
switch (GeometryUtils.GetRandomIndex(4.0, 4.0, 1.0, 1.0))
{
case 0:
//Sounds.挿抜前3.Play();

View File

@@ -104,7 +104,7 @@ namespace SlaveMatrix
public static Unit ()
{
switch (Oth.GetRandomIndex(7.0, 5.0, 3.0, 1.0))
switch (GeometryUtils.GetRandomIndex(7.0, 5.0, 3.0, 1.0))
{
case 0:
return Generate(SpeciesDefaults.Getヒューマン(), SpeciesDefaults.Getヒューマン(), 2, GameText.);
@@ -139,7 +139,7 @@ namespace SlaveMatrix
protected Unit GetBird()
{
return Oth.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()) switch
return GeometryUtils.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()) switch
{
0 => Generate(SpeciesDefaults.GetHarpy(), SpeciesDefaults.GetHarpy(), 2, GameText.),
1 => Generate(SpeciesDefaults.Getハルピュイア(), SpeciesDefaults.Getハルピュイア(), 2, GameText.),
@@ -150,7 +150,7 @@ namespace SlaveMatrix
protected Unit GetSnake()
{
return Oth.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()) switch
return GeometryUtils.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()) switch
{
0 => Generate(SpeciesDefaults.Getラミア(), SpeciesDefaults.Getラミア(), 2, GameText.),
1 => Generate(SpeciesDefaults.Getヒュドラ(), SpeciesDefaults.Getヒュドラ(), 3, GameText.),
@@ -162,7 +162,7 @@ namespace SlaveMatrix
protected Unit GetBeast()
{
return Oth.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()) switch
return GeometryUtils.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()) switch
{
0 => Generate(SpeciesDefaults.Getウェアキャット(), SpeciesDefaults.Getウェアキャット(), 2, GameText.),
1 => Generate(SpeciesDefaults.Getウェアウルフ(), SpeciesDefaults.Getウェアウルフ(), 2, GameText.),
@@ -183,7 +183,7 @@ namespace SlaveMatrix
protected Unit GetAquatic()
{
switch (Oth.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()))
switch (GeometryUtils.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()))
{
case 0:
return Generate(SpeciesDefaults.Getカッパ(), SpeciesDefaults.Getカッパ(), 2, GameText.);
@@ -225,7 +225,7 @@ namespace SlaveMatrix
protected Unit GetInsect()
{
switch (Oth.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()))
switch (GeometryUtils.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()))
{
case 0:
return Generate(SpeciesDefaults.Getウェアマンティス(), SpeciesDefaults.Getウェアマンティス(), 1, GameText.);
@@ -261,7 +261,7 @@ namespace SlaveMatrix
protected Unit GetHumanoid()
{
switch (Oth.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()))
switch (GeometryUtils.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()))
{
case 0:
return Generate(SpeciesDefaults.Getリリン(), SpeciesDefaults.Getリリン(), 2, GameText.);
@@ -298,7 +298,7 @@ namespace SlaveMatrix
protected Unit Get幻獣()
{
return Oth.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()) switch
return GeometryUtils.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()) switch
{
0 => Generate(SpeciesDefaults.Getカーバンクル(), SpeciesDefaults.Getカーバンクル(), 2, GameText.),
1 => Generate(SpeciesDefaults.Getペガサス(), SpeciesDefaults.Getペガサス(), 3, GameText.),
@@ -314,7 +314,7 @@ namespace SlaveMatrix
protected Unit Get魔獣()
{
switch (Oth.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()))
switch (GeometryUtils.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()))
{
case 0:
return Generate(SpeciesDefaults.Getキマイラ(), SpeciesDefaults.Getキマイラ(), 3, GameText.);
@@ -338,7 +338,7 @@ namespace SlaveMatrix
protected Unit GetDragon()
{
return Oth.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()) switch
return GeometryUtils.GetRandomIndex(GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight(), GameText..GetRareWeight()) switch
{
0 => Generate(SpeciesDefaults.Getリザードマン(), SpeciesDefaults.Getリザードマン(), 2, GameText.),
1 => Generate(SpeciesDefaults.Getドラゴニュート(), SpeciesDefaults.Getドラゴニュート(), 3, GameText.),

View File

@@ -36,7 +36,7 @@ namespace SlaveMatrix
{
if (b)
{
pt.PositionCont = Oth.GetRandomVector() * 0.0025 * d;
pt.PositionCont = GeometryUtils.GetRandomVector() * 0.0025 * d;
}
pt.TextColor = Color.FromArgb((int)((double)(int)pt.TextColor.A * m.Value.Inverse()), pt.TextColor);
Are.DisplayGraphics.TextRenderingHint = TextRenderingHint.AntiAlias;

View File

@@ -2031,7 +2031,7 @@ namespace SlaveMatrix
switch (c.CharacterData.Emotion)
{
case EmotionType.none:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._(), c._(), c._(), c._(), c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._(), c._(), c._(), c._(), c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Denial;
@@ -2069,7 +2069,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.Denial:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Denial;
@@ -2086,7 +2086,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.Humiliation:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Denial;
@@ -2103,7 +2103,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.Shame:
switch (Oth.GetRandomIndex(c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Humiliation;
@@ -2117,7 +2117,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.Acceptance:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Shame;
@@ -2137,7 +2137,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.Desire:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Acceptance;
@@ -2157,7 +2157,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.Excitement:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Shame;
@@ -2177,7 +2177,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Acceptance;
@@ -2197,7 +2197,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.Happiness:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Acceptance;
@@ -2217,7 +2217,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.Joy:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Shame;
@@ -2243,7 +2243,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.Lewd:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Humiliation;
@@ -2269,7 +2269,7 @@ namespace SlaveMatrix
}
break;
case EmotionType.Other:
switch (Oth.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
switch (GeometryUtils.GetRandomIndex(c._(), c._(), c._(), c._(), c._()))
{
case 0:
c.CharacterData.Emotion = EmotionType.Shame;
@@ -2331,7 +2331,7 @@ namespace SlaveMatrix
if (Virgin && CurrentActionType == ActionType.Insertion && (CurrentToolType == ToolType.Penis || CurrentToolType == ToolType.Dildo || CurrentToolType == ToolType.Vibrator || CurrentToolType == ToolType.Drill || CurrentToolType == ToolType. || CurrentToolType == ToolType.AnalVibrator) && CurrentContactType == ContactType.Vagina && Lvn > 2)
{
Reaction2();
Cha.Body.Waist.B += Oth.GetRandomVector() * 0.0004;
Cha.Body.Waist.B += GeometryUtils.GetRandomVector() * 0.0004;
Cha.Body.HipMotionValue = RNG.XS.NextDouble();
switch (RNG.XS.Next(2))
{
@@ -2393,7 +2393,7 @@ namespace SlaveMatrix
public static void Reaction1()
{
Reaction2();
Cha.Body.Waist.B += Oth.GetRandomVector() * 0.0004;
Cha.Body.Waist.B += GeometryUtils.GetRandomVector() * 0.0004;
Cha.Body.HipMotionValue = RNG.XS.NextDouble();
Cha.Emotion();
Cha.UpdateExpression();
@@ -2503,7 +2503,7 @@ namespace SlaveMatrix
else
{
double num2 = (Tension + Pride) * 0.5;
num = 1 + Oth.GetRandomIndex((Shame + Tension + Training + Pride) / 4.0, (Sensitivity + Affection + Lust) / 3.0 - num2, (Sensitivity + Excitement + Affection + Lust + Training) / 5.0 - num2);
num = 1 + GeometryUtils.GetRandomIndex((Shame + Tension + Training + Pride) / 4.0, (Sensitivity + Affection + Lust) / 3.0 - num2, (Sensitivity + Excitement + Affection + Lust + Training) / 5.0 - num2);
}
string text = "";
if (Cha.Body.i == 4 || Cha.Body.i == 10 || Cha.Body.i == 11)
@@ -2529,7 +2529,7 @@ namespace SlaveMatrix
public static string (this string s)
{
switch (Oth.GetRandomIndex((Shame + Tension) * 0.5, Cha.() ? 1.0 : ((Sensitivity + Excitement + Lust) / 3.0), (Affection + Lust) * 0.4 - Pride))
switch (GeometryUtils.GetRandomIndex((Shame + Tension) * 0.5, Cha.() ? 1.0 : ((Sensitivity + Excitement + Lust) / 3.0), (Affection + Lust) * 0.4 - Pride))
{
case 0:
return s + Sta.end[(!RNG.XS.NextBool()) ? 1u : 0u];

View File

@@ -897,7 +897,7 @@ namespace SlaveMatrix
{
array[i] = count - (num - i).Abs();
}
num = Oth.GetRandomIndex(array);
num = GeometryUtils.GetRandomIndex(array);
int num2 = ((int)((double)t[num].Length * v2)).Limit(0, t[num].Length);
return t[num][num2];
}