mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
improving context by using rjw's new sexprops
This commit is contained in:
parent
a890f7ccd7
commit
cd7a778f07
5 changed files with 74 additions and 9 deletions
|
@ -14,11 +14,13 @@ namespace Rimworld_Animations {
|
|||
Note: always make the list in this order:
|
||||
Female pawns, animal female pawns, male pawns, animal male pawns
|
||||
*/
|
||||
public static AnimationDef tryFindAnimation(ref List<Pawn> participants, rjw.xxx.rjwSextype sexType = 0) {
|
||||
public static AnimationDef tryFindAnimation(ref List<Pawn> participants, rjw.xxx.rjwSextype sexType = 0, rjw.SexProps sexProps = null) {
|
||||
|
||||
//aggressors last
|
||||
participants = participants.OrderBy(p => p.jobs.curDriver is rjw.JobDriver_SexBaseInitiator).ToList();
|
||||
|
||||
participants = participants.OrderBy(p => p == sexProps.Giver).ToList();
|
||||
|
||||
participants = participants.OrderByDescending(p => rjw.GenderHelper.GetSex(p) == rjw.GenderHelper.Sex.futa).ToList();
|
||||
|
||||
//pawns that can fuck last
|
||||
|
@ -30,7 +32,6 @@ namespace Rimworld_Animations {
|
|||
IEnumerable<AnimationDef> options = DefDatabase<AnimationDef>.AllDefs.Where((AnimationDef x) => {
|
||||
|
||||
|
||||
|
||||
if (x.actors.Count != localParticipants.Count) {
|
||||
return false;
|
||||
}
|
||||
|
@ -191,7 +192,15 @@ namespace Rimworld_Animations {
|
|||
|
||||
//if the animation not for initiators, but an initiator is playing it
|
||||
|
||||
if (x.actors[i].initiator && !(localParticipants[i].jobs.curDriver is rjw.JobDriver_SexBaseInitiator)) {
|
||||
if(sexProps != null) {
|
||||
|
||||
if(x.actors[i].initiator && localParticipants[i] == sexProps.Reciever) {
|
||||
initiatorsAlignWithSexType = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else if (x.actors[i].initiator && !(localParticipants[i].jobs.curDriver is rjw.JobDriver_SexBaseInitiator)) {
|
||||
initiatorsAlignWithSexType = false;
|
||||
}
|
||||
}
|
||||
|
@ -203,7 +212,15 @@ namespace Rimworld_Animations {
|
|||
|
||||
//if the animation not for initiators, but an initiator is playing it
|
||||
|
||||
if (x.actors[i].initiator && !(localParticipants[i].jobs.curDriver is rjw.JobDriver_SexBaseInitiator)) {
|
||||
if (sexProps != null) {
|
||||
|
||||
if (x.actors[i].initiator && localParticipants[i] == sexProps.Giver) {
|
||||
initiatorsAlignWithSexType = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else if (x.actors[i].initiator && !(localParticipants[i].jobs.curDriver is rjw.JobDriver_SexBaseInitiator)) {
|
||||
initiatorsAlignWithSexType = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue