This mod adds various interactions between pawns who are in family relationships.
Added interactions :
1. Babbling between babies/children
2. Shoulder rides
3. Watching the sky together
4. Stealing food
Includes simple mod settings :
1. Enable logging
2. Adjust interaction frequency (for testing)
Common Conditions :
All behaviors are checked every 200 ticks.
Among pawns within a 20-tile radius, only those that return false from IsInterruptible are considered valid.
However, this is currently being changed to evaluate based on Toil instead of JobDef.
public static bool IsInterruptible(Pawn pawn)
{
Job curJob = pawn.CurJob;
if (curJob == null) return true;
if (pawn.Drafted || pawn.InMentalState) return false;
JobDef def = curJob.def;
if (def.IsLivingBondsJob()) return false;
if (!def.casualInterruptible || def.alwaysShowWeapon) return false;
bool isRoutineWorkOrRest = def.allowOpportunisticPrefix ||
def.joyKind != null ||
def.isIdle;
if (isRoutineWorkOrRest)
{
if (def == JobDefOf.Hunt || def == JobDefOf.Vomit) return false;
return true;
}
return false;
}
GiveShoulderRide :
Searches for a pawn who is:
- An adult (a)
- Not carrying anything (a)
- In a family relationship, but not another adult (b)
BabyBabble :
Searches for a pawn who is:
-A baby or child (a, b)
-Ignores family relationships, Only checks age and other conditions
FoodStealPrank :
Searches for a pawn who is:
- A child or male (a)
- Carrying food (b)
- In a family relationship
FamilySkygaze :
Uses GatheringWorker
- Searches for an outdoor tile within 30 tiles of the host (a)
- Uses the same base conditions as vanilla RimWorld skygazing
- Participants must be in a family relationship with the host
- Uses the same weight (1) as parties
Conditions for the acting pawn are marked as (a), and the target pawn is marked as (b). Since I used a translator, please let me know if anything sounds unnatural.
Chinese Translation
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3711261601]https://steamcommunity.com/sharedfiles/filedetails/?id=3711261601[/url]
Russian Translation
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3711019457]https://steamcommunity.com/sharedfiles/filedetails/?id=3711019457[/url]
If you encounter any issues while using the mod, please let me know in the comments.