Compare commits

...

4 commits

Author SHA1 Message Date
Salacian
dc50482caa Merge branch 'non-selectable-anims' into 'master'
Added a way to make custom animation not selectable

See merge request c0ffeeeeeeee/rimworld-animations!9
2024-03-18 07:01:53 +00:00
c0ffeeeeeeee
b5947db5ac Merge branch 'FutaFix' into 'master'
(Probably?) Fixed futa reverse sex incorrect animations

See merge request c0ffeeeeeeee/rimworld-animations!19
2024-03-18 02:35:50 +00:00
Gargule
328ea7ae4d (Probably?) Fixed futa reverse sex incorrect animations 2024-03-17 22:13:02 +00:00
Salacian
447c4d61b6 Added a field to the AnimationDef to prevent random selection 2023-02-21 01:25:23 +01:00
2 changed files with 8 additions and 1 deletions

View file

@ -13,6 +13,7 @@ namespace Rimworld_Animations {
public List<Actor> actors;
public int animationTimeTicks = 0; //do not set manually
public bool sounds = false;
public bool randomlySelectable = true;
public List<rjw.xxx.rjwSextype> sexTypes = null;
public List<String> interactionDefTypes = null;
public List<string> tags = new List<string>();

View file

@ -25,6 +25,7 @@ namespace Rimworld_Animations {
participants =
participants.OrderBy(p =>
p.jobs.curDriver is rjw.JobDriver_Sex
&& !(p.jobs.curDriver as rjw.JobDriver_Sex).Sexprops.isRevese /*Gargulefix!!!*/
&& !(p.jobs.curDriver as rjw.JobDriver_Sex).Sexprops.isReceiver)
.OrderBy(p => rjw.xxx.can_fuck(p))
.ToList();
@ -33,7 +34,12 @@ namespace Rimworld_Animations {
List<Pawn> localParticipants = new List<Pawn>(participants);
IEnumerable<AnimationDef> options = DefDatabase<AnimationDef>.AllDefs.Where((AnimationDef x) => {
if (!x.randomlySelectable)
{
if (AnimationSettings.debugMode)
Log.Message(x.defName.ToStringSafe() + " not selected -- isn't randomly selectable");
return false;
}
if (x.actors.Count != localParticipants.Count) {
if (AnimationSettings.debugMode)