mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-toys-and-masturbation.git
synced 2024-08-15 00:43:44 +00:00
better bed positioning + mirroring
This commit is contained in:
parent
fbac7e273d
commit
d617dc6a1b
10 changed files with 10 additions and 12 deletions
|
@ -72,7 +72,7 @@ namespace RJW_ToysAndMasturbation {
|
|||
return false;
|
||||
};
|
||||
|
||||
Predicate<Thing> validatorForBed = delegate (Thing t) {
|
||||
Predicate<Thing> validatorForRoom = delegate (Thing t) {
|
||||
if (t.TryGetComp<CompSexToy>() == null)
|
||||
{
|
||||
return false;
|
||||
|
@ -81,7 +81,7 @@ namespace RJW_ToysAndMasturbation {
|
|||
if (t.TryGetComp<CompSexToy>().Props.primaryGender == p.gender ||
|
||||
(t.TryGetComp<CompSexToy>().Props.primaryGender == Gender.Male && xxx.can_fuck(p) && (RJWPreferenceSettings.FeMalesex == RJWPreferenceSettings.AllowedSex.All || RJWPreferenceSettings.FeMalesex == RJWPreferenceSettings.AllowedSex.Homo)) ||
|
||||
(t.TryGetComp<CompSexToy>().Props.primaryGender == Gender.Female && xxx.can_be_fucked(p) && (RJWPreferenceSettings.Malesex == RJWPreferenceSettings.AllowedSex.All || RJWPreferenceSettings.Malesex == RJWPreferenceSettings.AllowedSex.Homo))
|
||||
&& t.GetRoom(RegionType.Set_All) == p.CurrentBed().GetRoom(RegionType.Set_All))
|
||||
&& t.GetRoom(RegionType.Set_All) == p.ownership.OwnedRoom)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -89,9 +89,9 @@ namespace RJW_ToysAndMasturbation {
|
|||
return false;
|
||||
};
|
||||
|
||||
if (p.CurrentBed() != null)
|
||||
if (p.ownership.OwnedRoom != null)
|
||||
{
|
||||
sexToy = GenClosest.ClosestThingReachable(p.Position, p.Map, ThingRequest.ForGroup(ThingRequestGroup.HaulableAlways), PathEndMode.OnCell, TraverseParms.For(p), validator: validatorForBed, maxDistance: 100);
|
||||
sexToy = GenClosest.ClosestThingReachable(p.Position, p.Map, ThingRequest.ForGroup(ThingRequestGroup.HaulableAlways), PathEndMode.OnCell, TraverseParms.For(p), validator: validatorForRoom, maxDistance: 100);
|
||||
}
|
||||
|
||||
if(sexToy == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue