mirror of
https://gitgud.io/Ed86/rjw-whoring.git
synced 2024-08-15 00:03:25 +00:00
Removed VFE android specific stations from whoring to fix UI
This commit is contained in:
parent
82e23f0a4b
commit
1601c4e620
4 changed files with 26 additions and 4 deletions
Binary file not shown.
|
@ -17,7 +17,13 @@ namespace rjwwhoring
|
||||||
if (building_Bed?.def.building.bed_humanlike == true)
|
if (building_Bed?.def.building.bed_humanlike == true)
|
||||||
{
|
{
|
||||||
if (building_Bed.ForPrisoners) return 0;
|
if (building_Bed.ForPrisoners) return 0;
|
||||||
if (building_Bed.IsAllowedForWhoringAll()) num++;
|
if (building_Bed.def.building.bed_humanlike ||
|
||||||
|
!(building_Bed.Faction != Faction.OfPlayerSilentFail) ||
|
||||||
|
!building_Bed.Medical ||
|
||||||
|
!building_Bed.ForPrisoners ||
|
||||||
|
!building_Bed.def.defName.Contains("Guest") ||
|
||||||
|
!building_Bed.def.defName.Contains("Android") )
|
||||||
|
num++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (num < 1) return 0;
|
if (num < 1) return 0;
|
||||||
|
|
|
@ -287,7 +287,11 @@ namespace rjwwhoring
|
||||||
}
|
}
|
||||||
public static bool IsAllowedForWhoringOwner(this Building_Bed bed)
|
public static bool IsAllowedForWhoringOwner(this Building_Bed bed)
|
||||||
{
|
{
|
||||||
if (!bed.def.building.bed_humanlike || bed.Faction != Faction.OfPlayerSilentFail || bed.Medical || bed.def.defName.Contains("Guest"))
|
if (!bed.def.building.bed_humanlike ||
|
||||||
|
bed.Faction != Faction.OfPlayerSilentFail ||
|
||||||
|
bed.Medical ||
|
||||||
|
bed.def.defName.Contains("Guest") ||
|
||||||
|
bed.def.defName.Contains("Android") )
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -322,7 +326,13 @@ namespace rjwwhoring
|
||||||
{
|
{
|
||||||
if (WhoringBase.DataStore.GetBedData(bed).allowedForWhoringAll)
|
if (WhoringBase.DataStore.GetBedData(bed).allowedForWhoringAll)
|
||||||
{
|
{
|
||||||
if (!bed.def.building.bed_humanlike || bed.Faction != Faction.OfPlayerSilentFail || bed.Medical || bed.ForPrisoners || bed.def.defName.Contains("Guest") || bed.GetRoom()?.IsPrisonCell == true)
|
if (!bed.def.building.bed_humanlike
|
||||||
|
|| bed.Faction != Faction.OfPlayerSilentFail
|
||||||
|
|| bed.Medical
|
||||||
|
|| bed.ForPrisoners
|
||||||
|
|| bed.def.defName.Contains("Guest")
|
||||||
|
|| bed.def.defName.Contains("Android")
|
||||||
|
|| bed.GetRoom()?.IsPrisonCell == true)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,13 @@ namespace rjwwhoring
|
||||||
private static IEnumerable<Gizmo> Process(Building_Bed __instance, IEnumerable<Gizmo> __result)
|
private static IEnumerable<Gizmo> Process(Building_Bed __instance, IEnumerable<Gizmo> __result)
|
||||||
{
|
{
|
||||||
var isPrisonCell = __instance.GetRoom()?.IsPrisonCell == true;
|
var isPrisonCell = __instance.GetRoom()?.IsPrisonCell == true;
|
||||||
if (!__instance.ForPrisoners && !__instance.Medical && __instance.def.building.bed_humanlike && __instance.Faction == Faction.OfPlayerSilentFail && !__instance.def.defName.Contains("Guest") && !isPrisonCell)
|
if (!__instance.ForPrisoners &&
|
||||||
|
!__instance.Medical &&
|
||||||
|
__instance.def.building.bed_humanlike &&
|
||||||
|
__instance.Faction == Faction.OfPlayerSilentFail &&
|
||||||
|
!__instance.def.defName.Contains("Guest") &&
|
||||||
|
!__instance.def.defName.Contains("Android") &&
|
||||||
|
!isPrisonCell)
|
||||||
{
|
{
|
||||||
|
|
||||||
yield return
|
yield return
|
||||||
|
|
Loading…
Reference in a new issue