mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	Hats
This commit is contained in:
		
							parent
							
								
									8deae217e0
								
							
						
					
					
						commit
						2627a285d5
					
				
					 2 changed files with 14 additions and 2 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -53,8 +53,8 @@ namespace Rimworld_Animations {
 | 
				
			||||||
				if (!ba.CanDrawAddon(pawn: pawn)) continue;
 | 
									if (!ba.CanDrawAddon(pawn: pawn)) continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				AlienPartGenerator.RotationOffset offset;
 | 
									AlienPartGenerator.RotationOffset offset;
 | 
				
			||||||
 | 
									if (ba.drawnInBed || ba.alignWithHead) {
 | 
				
			||||||
				offset = ((ba.drawnInBed || ba.alignWithHead) ? pawnAnimator.headFacing : rotation) == Rot4.South ?
 | 
										offset = pawnAnimator.headFacing == Rot4.South ?
 | 
				
			||||||
														ba.offsets.south :
 | 
																			ba.offsets.south :
 | 
				
			||||||
														pawnAnimator.headFacing == Rot4.North ?
 | 
																			pawnAnimator.headFacing == Rot4.North ?
 | 
				
			||||||
															ba.offsets.north :
 | 
																				ba.offsets.north :
 | 
				
			||||||
| 
						 | 
					@ -62,6 +62,18 @@ namespace Rimworld_Animations {
 | 
				
			||||||
															ba.offsets.east :
 | 
																				ba.offsets.east :
 | 
				
			||||||
															ba.offsets.west;
 | 
																				ba.offsets.west;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									} else {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										offset = rotation == Rot4.South ?
 | 
				
			||||||
 | 
															ba.offsets.south :
 | 
				
			||||||
 | 
															rotation == Rot4.North ?
 | 
				
			||||||
 | 
																ba.offsets.north :
 | 
				
			||||||
 | 
																rotation == Rot4.East ?
 | 
				
			||||||
 | 
																ba.offsets.east :
 | 
				
			||||||
 | 
																ba.offsets.west;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				
 | 
									
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				Vector2 bodyOffset = (portrait ? offset?.portraitBodyTypes ?? offset?.bodyTypes : offset?.bodyTypes)?.FirstOrDefault(predicate: to => to.bodyType == pawn.story.bodyType)
 | 
									Vector2 bodyOffset = (portrait ? offset?.portraitBodyTypes ?? offset?.bodyTypes : offset?.bodyTypes)?.FirstOrDefault(predicate: to => to.bodyType == pawn.story.bodyType)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue