mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Compare commits
4 commits
c206d1192d
...
dc50482caa
Author | SHA1 | Date | |
---|---|---|---|
|
dc50482caa | ||
|
b5947db5ac | ||
|
328ea7ae4d | ||
|
447c4d61b6 |
2 changed files with 8 additions and 1 deletions
|
@ -13,6 +13,7 @@ namespace Rimworld_Animations {
|
||||||
public List<Actor> actors;
|
public List<Actor> actors;
|
||||||
public int animationTimeTicks = 0; //do not set manually
|
public int animationTimeTicks = 0; //do not set manually
|
||||||
public bool sounds = false;
|
public bool sounds = false;
|
||||||
|
public bool randomlySelectable = true;
|
||||||
public List<rjw.xxx.rjwSextype> sexTypes = null;
|
public List<rjw.xxx.rjwSextype> sexTypes = null;
|
||||||
public List<String> interactionDefTypes = null;
|
public List<String> interactionDefTypes = null;
|
||||||
public List<string> tags = new List<string>();
|
public List<string> tags = new List<string>();
|
||||||
|
|
|
@ -25,6 +25,7 @@ namespace Rimworld_Animations {
|
||||||
participants =
|
participants =
|
||||||
participants.OrderBy(p =>
|
participants.OrderBy(p =>
|
||||||
p.jobs.curDriver is rjw.JobDriver_Sex
|
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)
|
&& !(p.jobs.curDriver as rjw.JobDriver_Sex).Sexprops.isReceiver)
|
||||||
.OrderBy(p => rjw.xxx.can_fuck(p))
|
.OrderBy(p => rjw.xxx.can_fuck(p))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
@ -33,7 +34,12 @@ namespace Rimworld_Animations {
|
||||||
List<Pawn> localParticipants = new List<Pawn>(participants);
|
List<Pawn> localParticipants = new List<Pawn>(participants);
|
||||||
|
|
||||||
IEnumerable<AnimationDef> options = DefDatabase<AnimationDef>.AllDefs.Where((AnimationDef x) => {
|
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 (x.actors.Count != localParticipants.Count) {
|
||||||
if (AnimationSettings.debugMode)
|
if (AnimationSettings.debugMode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue